render / rpms / qemu

Forked from rpms/qemu 9 months ago
Clone

Blame 0005-target-s390x-fix-style.patch

5544c1
From 985b8342244b5f76ed1df75eb8757d6feff30316 Mon Sep 17 00:00:00 2001
5544c1
From: Blue Swirl <blauwirbel@gmail.com>
5544c1
Date: Sun, 2 Sep 2012 07:33:30 +0000
5544c1
Subject: [PATCH] target-s390x: fix style
5544c1
5544c1
Before splitting op_helper.c and helper.c in the next patches,
5544c1
fix style issues. No functional changes.
5544c1
5544c1
Replace also GCC specific __FUNCTION__ with
5544c1
standard __func__.
5544c1
5544c1
Don't init static variable (cpu_s390x_init:inited) with 0.
5544c1
5544c1
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
5544c1
Signed-off-by: Alexander Graf <agraf@suse.de>
5544c1
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
5544c1
---
5544c1
 target-s390x/helper.c    |  96 ++++++-----
5544c1
 target-s390x/op_helper.c | 438 +++++++++++++++++++++++++++--------------------
5544c1
 2 files changed, 297 insertions(+), 237 deletions(-)
5544c1
5544c1
diff --git a/target-s390x/helper.c b/target-s390x/helper.c
5544c1
index d0a1180..d98e6d9 100644
5544c1
--- a/target-s390x/helper.c
5544c1
+++ b/target-s390x/helper.c
5544c1
@@ -74,7 +74,7 @@ S390CPU *cpu_s390x_init(const char *cpu_model)
5544c1
 {
5544c1
     S390CPU *cpu;
5544c1
     CPUS390XState *env;
5544c1
-    static int inited = 0;
5544c1
+    static int inited;
5544c1
 
5544c1
     cpu = S390_CPU(object_new(TYPE_S390_CPU));
5544c1
     env = &cpu->env;
5544c1
@@ -91,25 +91,27 @@ S390CPU *cpu_s390x_init(const char *cpu_model)
5544c1
 
5544c1
 #if defined(CONFIG_USER_ONLY)
5544c1
 
5544c1
-void do_interrupt (CPUS390XState *env)
5544c1
+void do_interrupt(CPUS390XState *env)
5544c1
 {
5544c1
     env->exception_index = -1;
5544c1
 }
5544c1
 
5544c1
-int cpu_s390x_handle_mmu_fault (CPUS390XState *env, target_ulong address, int rw,
5544c1
-                                int mmu_idx)
5544c1
+int cpu_s390x_handle_mmu_fault(CPUS390XState *env, target_ulong address,
5544c1
+                               int rw, int mmu_idx)
5544c1
 {
5544c1
-    /* fprintf(stderr,"%s: address 0x%lx rw %d mmu_idx %d\n",
5544c1
-            __FUNCTION__, address, rw, mmu_idx); */
5544c1
+    /* fprintf(stderr, "%s: address 0x%lx rw %d mmu_idx %d\n",
5544c1
+       __func__, address, rw, mmu_idx); */
5544c1
     env->exception_index = EXCP_ADDR;
5544c1
-    env->__excp_addr = address; /* FIXME: find out how this works on a real machine */
5544c1
+    /* FIXME: find out how this works on a real machine */
5544c1
+    env->__excp_addr = address;
5544c1
     return 1;
5544c1
 }
5544c1
 
5544c1
 #else /* !CONFIG_USER_ONLY */
5544c1
 
5544c1
 /* Ensure to exit the TB after this call! */
5544c1
-static void trigger_pgm_exception(CPUS390XState *env, uint32_t code, uint32_t ilc)
5544c1
+static void trigger_pgm_exception(CPUS390XState *env, uint32_t code,
5544c1
+                                  uint32_t ilc)
5544c1
 {
5544c1
     env->exception_index = EXCP_PGM;
5544c1
     env->int_pgm_code = code;
5544c1
@@ -138,19 +140,20 @@ static int trans_bits(CPUS390XState *env, uint64_t mode)
5544c1
     return bits;
5544c1
 }
5544c1
 
5544c1
-static void trigger_prot_fault(CPUS390XState *env, target_ulong vaddr, uint64_t mode)
5544c1
+static void trigger_prot_fault(CPUS390XState *env, target_ulong vaddr,
5544c1
+                               uint64_t mode)
5544c1
 {
5544c1
     int ilc = ILC_LATER_INC_2;
5544c1
     int bits = trans_bits(env, mode) | 4;
5544c1
 
5544c1
-    DPRINTF("%s: vaddr=%016" PRIx64 " bits=%d\n", __FUNCTION__, vaddr, bits);
5544c1
+    DPRINTF("%s: vaddr=%016" PRIx64 " bits=%d\n", __func__, vaddr, bits);
5544c1
 
5544c1
     stq_phys(env->psa + offsetof(LowCore, trans_exc_code), vaddr | bits);
5544c1
     trigger_pgm_exception(env, PGM_PROTECTION, ilc);
5544c1
 }
5544c1
 
5544c1
-static void trigger_page_fault(CPUS390XState *env, target_ulong vaddr, uint32_t type,
5544c1
-                               uint64_t asc, int rw)
5544c1
+static void trigger_page_fault(CPUS390XState *env, target_ulong vaddr,
5544c1
+                               uint32_t type, uint64_t asc, int rw)
5544c1
 {
5544c1
     int ilc = ILC_LATER;
5544c1
     int bits = trans_bits(env, asc);
5544c1
@@ -160,26 +163,26 @@ static void trigger_page_fault(CPUS390XState *env, target_ulong vaddr, uint32_t
5544c1
         ilc = 2;
5544c1
     }
5544c1
 
5544c1
-    DPRINTF("%s: vaddr=%016" PRIx64 " bits=%d\n", __FUNCTION__, vaddr, bits);
5544c1
+    DPRINTF("%s: vaddr=%016" PRIx64 " bits=%d\n", __func__, vaddr, bits);
5544c1
 
5544c1
     stq_phys(env->psa + offsetof(LowCore, trans_exc_code), vaddr | bits);
5544c1
     trigger_pgm_exception(env, type, ilc);
5544c1
 }
5544c1
 
5544c1
-static int mmu_translate_asce(CPUS390XState *env, target_ulong vaddr, uint64_t asc,
5544c1
-                              uint64_t asce, int level, target_ulong *raddr,
5544c1
-                              int *flags, int rw)
5544c1
+static int mmu_translate_asce(CPUS390XState *env, target_ulong vaddr,
5544c1
+                              uint64_t asc, uint64_t asce, int level,
5544c1
+                              target_ulong *raddr, int *flags, int rw)
5544c1
 {
5544c1
     uint64_t offs = 0;
5544c1
     uint64_t origin;
5544c1
     uint64_t new_asce;
5544c1
 
5544c1
-    PTE_DPRINTF("%s: 0x%" PRIx64 "\n", __FUNCTION__, asce);
5544c1
+    PTE_DPRINTF("%s: 0x%" PRIx64 "\n", __func__, asce);
5544c1
 
5544c1
     if (((level != _ASCE_TYPE_SEGMENT) && (asce & _REGION_ENTRY_INV)) ||
5544c1
         ((level == _ASCE_TYPE_SEGMENT) && (asce & _SEGMENT_ENTRY_INV))) {
5544c1
         /* XXX different regions have different faults */
5544c1
-        DPRINTF("%s: invalid region\n", __FUNCTION__);
5544c1
+        DPRINTF("%s: invalid region\n", __func__);
5544c1
         trigger_page_fault(env, vaddr, PGM_SEGMENT_TRANS, asc, rw);
5544c1
         return -1;
5544c1
     }
5544c1
@@ -222,7 +225,7 @@ static int mmu_translate_asce(CPUS390XState *env, target_ulong vaddr, uint64_t a
5544c1
 
5544c1
     new_asce = ldq_phys(origin + offs);
5544c1
     PTE_DPRINTF("%s: 0x%" PRIx64 " + 0x%" PRIx64 " => 0x%016" PRIx64 "\n",
5544c1
-                __FUNCTION__, origin, offs, new_asce);
5544c1
+                __func__, origin, offs, new_asce);
5544c1
 
5544c1
     if (level != _ASCE_TYPE_SEGMENT) {
5544c1
         /* yet another region */
5544c1
@@ -232,7 +235,7 @@ static int mmu_translate_asce(CPUS390XState *env, target_ulong vaddr, uint64_t a
5544c1
 
5544c1
     /* PTE */
5544c1
     if (new_asce & _PAGE_INVALID) {
5544c1
-        DPRINTF("%s: PTE=0x%" PRIx64 " invalid\n", __FUNCTION__, new_asce);
5544c1
+        DPRINTF("%s: PTE=0x%" PRIx64 " invalid\n", __func__, new_asce);
5544c1
         trigger_page_fault(env, vaddr, PGM_PAGE_TRANS, asc, rw);
5544c1
         return -1;
5544c1
     }
5544c1
@@ -243,13 +246,14 @@ static int mmu_translate_asce(CPUS390XState *env, target_ulong vaddr, uint64_t a
5544c1
 
5544c1
     *raddr = new_asce & _ASCE_ORIGIN;
5544c1
 
5544c1
-    PTE_DPRINTF("%s: PTE=0x%" PRIx64 "\n", __FUNCTION__, new_asce);
5544c1
+    PTE_DPRINTF("%s: PTE=0x%" PRIx64 "\n", __func__, new_asce);
5544c1
 
5544c1
     return 0;
5544c1
 }
5544c1
 
5544c1
-static int mmu_translate_asc(CPUS390XState *env, target_ulong vaddr, uint64_t asc,
5544c1
-                             target_ulong *raddr, int *flags, int rw)
5544c1
+static int mmu_translate_asc(CPUS390XState *env, target_ulong vaddr,
5544c1
+                             uint64_t asc, target_ulong *raddr, int *flags,
5544c1
+                             int rw)
5544c1
 {
5544c1
     uint64_t asce = 0;
5544c1
     int level, new_level;
5544c1
@@ -257,15 +261,15 @@ static int mmu_translate_asc(CPUS390XState *env, target_ulong vaddr, uint64_t as
5544c1
 
5544c1
     switch (asc) {
5544c1
     case PSW_ASC_PRIMARY:
5544c1
-        PTE_DPRINTF("%s: asc=primary\n", __FUNCTION__);
5544c1
+        PTE_DPRINTF("%s: asc=primary\n", __func__);
5544c1
         asce = env->cregs[1];
5544c1
         break;
5544c1
     case PSW_ASC_SECONDARY:
5544c1
-        PTE_DPRINTF("%s: asc=secondary\n", __FUNCTION__);
5544c1
+        PTE_DPRINTF("%s: asc=secondary\n", __func__);
5544c1
         asce = env->cregs[7];
5544c1
         break;
5544c1
     case PSW_ASC_HOME:
5544c1
-        PTE_DPRINTF("%s: asc=home\n", __FUNCTION__);
5544c1
+        PTE_DPRINTF("%s: asc=home\n", __func__);
5544c1
         asce = env->cregs[13];
5544c1
         break;
5544c1
     }
5544c1
@@ -276,8 +280,7 @@ static int mmu_translate_asc(CPUS390XState *env, target_ulong vaddr, uint64_t as
5544c1
     case _ASCE_TYPE_REGION2:
5544c1
         if (vaddr & 0xffe0000000000000ULL) {
5544c1
             DPRINTF("%s: vaddr doesn't fit 0x%16" PRIx64
5544c1
-                        " 0xffe0000000000000ULL\n", __FUNCTION__,
5544c1
-                        vaddr);
5544c1
+                    " 0xffe0000000000000ULL\n", __func__, vaddr);
5544c1
             trigger_page_fault(env, vaddr, PGM_TRANS_SPEC, asc, rw);
5544c1
             return -1;
5544c1
         }
5544c1
@@ -285,8 +288,7 @@ static int mmu_translate_asc(CPUS390XState *env, target_ulong vaddr, uint64_t as
5544c1
     case _ASCE_TYPE_REGION3:
5544c1
         if (vaddr & 0xfffffc0000000000ULL) {
5544c1
             DPRINTF("%s: vaddr doesn't fit 0x%16" PRIx64
5544c1
-                        " 0xfffffc0000000000ULL\n", __FUNCTION__,
5544c1
-                        vaddr);
5544c1
+                    " 0xfffffc0000000000ULL\n", __func__, vaddr);
5544c1
             trigger_page_fault(env, vaddr, PGM_TRANS_SPEC, asc, rw);
5544c1
             return -1;
5544c1
         }
5544c1
@@ -294,8 +296,7 @@ static int mmu_translate_asc(CPUS390XState *env, target_ulong vaddr, uint64_t as
5544c1
     case _ASCE_TYPE_SEGMENT:
5544c1
         if (vaddr & 0xffffffff80000000ULL) {
5544c1
             DPRINTF("%s: vaddr doesn't fit 0x%16" PRIx64
5544c1
-                        " 0xffffffff80000000ULL\n", __FUNCTION__,
5544c1
-                        vaddr);
5544c1
+                    " 0xffffffff80000000ULL\n", __func__, vaddr);
5544c1
             trigger_page_fault(env, vaddr, PGM_TRANS_SPEC, asc, rw);
5544c1
             return -1;
5544c1
         }
5544c1
@@ -358,7 +359,7 @@ int mmu_translate(CPUS390XState *env, target_ulong vaddr, int rw, uint64_t asc,
5544c1
         break;
5544c1
     }
5544c1
 
5544c1
-out:
5544c1
+ out:
5544c1
     /* Convert real address -> absolute address */
5544c1
     if (*raddr < 0x2000) {
5544c1
         *raddr = *raddr + env->psa;
5544c1
@@ -378,18 +379,18 @@ out:
5544c1
     return r;
5544c1
 }
5544c1
 
5544c1
-int cpu_s390x_handle_mmu_fault (CPUS390XState *env, target_ulong _vaddr, int rw,
5544c1
-                                int mmu_idx)
5544c1
+int cpu_s390x_handle_mmu_fault(CPUS390XState *env, target_ulong orig_vaddr,
5544c1
+                               int rw, int mmu_idx)
5544c1
 {
5544c1
     uint64_t asc = env->psw.mask & PSW_MASK_ASC;
5544c1
     target_ulong vaddr, raddr;
5544c1
     int prot;
5544c1
 
5544c1
     DPRINTF("%s: address 0x%" PRIx64 " rw %d mmu_idx %d\n",
5544c1
-            __FUNCTION__, _vaddr, rw, mmu_idx);
5544c1
+            __func__, _vaddr, rw, mmu_idx);
5544c1
 
5544c1
-    _vaddr &= TARGET_PAGE_MASK;
5544c1
-    vaddr = _vaddr;
5544c1
+    orig_vaddr &= TARGET_PAGE_MASK;
5544c1
+    vaddr = orig_vaddr;
5544c1
 
5544c1
     /* 31-Bit mode */
5544c1
     if (!(env->psw.mask & PSW_MASK_64)) {
5544c1
@@ -403,22 +404,23 @@ int cpu_s390x_handle_mmu_fault (CPUS390XState *env, target_ulong _vaddr, int rw,
5544c1
 
5544c1
     /* check out of RAM access */
5544c1
     if (raddr > (ram_size + virtio_size)) {
5544c1
-        DPRINTF("%s: aaddr %" PRIx64 " > ram_size %" PRIx64 "\n", __FUNCTION__,
5544c1
+        DPRINTF("%s: aaddr %" PRIx64 " > ram_size %" PRIx64 "\n", __func__,
5544c1
                 (uint64_t)aaddr, (uint64_t)ram_size);
5544c1
         trigger_pgm_exception(env, PGM_ADDRESSING, ILC_LATER);
5544c1
         return 1;
5544c1
     }
5544c1
 
5544c1
-    DPRINTF("%s: set tlb %" PRIx64 " -> %" PRIx64 " (%x)\n", __FUNCTION__,
5544c1
+    DPRINTF("%s: set tlb %" PRIx64 " -> %" PRIx64 " (%x)\n", __func__,
5544c1
             (uint64_t)vaddr, (uint64_t)raddr, prot);
5544c1
 
5544c1
-    tlb_set_page(env, _vaddr, raddr, prot,
5544c1
+    tlb_set_page(env, orig_vaddr, raddr, prot,
5544c1
                  mmu_idx, TARGET_PAGE_SIZE);
5544c1
 
5544c1
     return 0;
5544c1
 }
5544c1
 
5544c1
-target_phys_addr_t cpu_get_phys_page_debug(CPUS390XState *env, target_ulong vaddr)
5544c1
+target_phys_addr_t cpu_get_phys_page_debug(CPUS390XState *env,
5544c1
+                                           target_ulong vaddr)
5544c1
 {
5544c1
     target_ulong raddr;
5544c1
     int prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC;
5544c1
@@ -509,7 +511,7 @@ static void do_program_interrupt(CPUS390XState *env)
5544c1
         break;
5544c1
     }
5544c1
 
5544c1
-    qemu_log("%s: code=0x%x ilc=%d\n", __FUNCTION__, env->int_pgm_code, ilc);
5544c1
+    qemu_log("%s: code=0x%x ilc=%d\n", __func__, env->int_pgm_code, ilc);
5544c1
 
5544c1
     lowcore = cpu_physical_memory_map(env->psa, &len, 1);
5544c1
 
5544c1
@@ -522,7 +524,7 @@ static void do_program_interrupt(CPUS390XState *env)
5544c1
 
5544c1
     cpu_physical_memory_unmap(lowcore, len, 1, len);
5544c1
 
5544c1
-    DPRINTF("%s: %x %x %" PRIx64 " %" PRIx64 "\n", __FUNCTION__,
5544c1
+    DPRINTF("%s: %x %x %" PRIx64 " %" PRIx64 "\n", __func__,
5544c1
             env->int_pgm_code, ilc, env->psw.mask,
5544c1
             env->psw.addr);
5544c1
 
5544c1
@@ -565,15 +567,15 @@ static void do_ext_interrupt(CPUS390XState *env)
5544c1
         env->pending_int &= ~INTERRUPT_EXT;
5544c1
     }
5544c1
 
5544c1
-    DPRINTF("%s: %" PRIx64 " %" PRIx64 "\n", __FUNCTION__,
5544c1
+    DPRINTF("%s: %" PRIx64 " %" PRIx64 "\n", __func__,
5544c1
             env->psw.mask, env->psw.addr);
5544c1
 
5544c1
     load_psw(env, mask, addr);
5544c1
 }
5544c1
 
5544c1
-void do_interrupt (CPUS390XState *env)
5544c1
+void do_interrupt(CPUS390XState *env)
5544c1
 {
5544c1
-    qemu_log("%s: %d at pc=%" PRIx64 "\n", __FUNCTION__, env->exception_index,
5544c1
+    qemu_log("%s: %d at pc=%" PRIx64 "\n", __func__, env->exception_index,
5544c1
              env->psw.addr);
5544c1
 
5544c1
     s390_add_running_cpu(env);
5544c1
diff --git a/target-s390x/op_helper.c b/target-s390x/op_helper.c
5544c1
index abc35dd..195e93e 100644
5544c1
--- a/target-s390x/op_helper.c
5544c1
+++ b/target-s390x/op_helper.c
5544c1
@@ -31,13 +31,13 @@
5544c1
 #include <linux/kvm.h>
5544c1
 #endif
5544c1
 
5544c1
-#if !defined (CONFIG_USER_ONLY)
5544c1
+#if !defined(CONFIG_USER_ONLY)
5544c1
 #include "sysemu.h"
5544c1
 #endif
5544c1
 
5544c1
 /*****************************************************************************/
5544c1
 /* Softmmu support */
5544c1
-#if !defined (CONFIG_USER_ONLY)
5544c1
+#if !defined(CONFIG_USER_ONLY)
5544c1
 #include "softmmu_exec.h"
5544c1
 
5544c1
 #define MMUSUFFIX _mmu
5544c1
@@ -95,7 +95,7 @@ void tlb_fill(CPUS390XState *env1, target_ulong addr, int is_write, int mmu_idx,
5544c1
 /* raise an exception */
5544c1
 void HELPER(exception)(uint32_t excp)
5544c1
 {
5544c1
-    HELPER_LOG("%s: exception %d\n", __FUNCTION__, excp);
5544c1
+    HELPER_LOG("%s: exception %d\n", __func__, excp);
5544c1
     env->exception_index = excp;
5544c1
     cpu_loop_exit(env);
5544c1
 }
5544c1
@@ -164,7 +164,7 @@ uint32_t HELPER(nc)(uint32_t l, uint64_t dest, uint64_t src)
5544c1
     uint32_t cc = 0;
5544c1
 
5544c1
     HELPER_LOG("%s l %d dest %" PRIx64 " src %" PRIx64 "\n",
5544c1
-               __FUNCTION__, l, dest, src);
5544c1
+               __func__, l, dest, src);
5544c1
     for (i = 0; i <= l; i++) {
5544c1
         x = ldub(dest + i) & ldub(src + i);
5544c1
         if (x) {
5544c1
@@ -183,7 +183,7 @@ uint32_t HELPER(xc)(uint32_t l, uint64_t dest, uint64_t src)
5544c1
     uint32_t cc = 0;
5544c1
 
5544c1
     HELPER_LOG("%s l %d dest %" PRIx64 " src %" PRIx64 "\n",
5544c1
-               __FUNCTION__, l, dest, src);
5544c1
+               __func__, l, dest, src);
5544c1
 
5544c1
 #ifndef CONFIG_USER_ONLY
5544c1
     /* xor with itself is the same as memset(0) */
5544c1
@@ -217,7 +217,7 @@ uint32_t HELPER(oc)(uint32_t l, uint64_t dest, uint64_t src)
5544c1
     uint32_t cc = 0;
5544c1
 
5544c1
     HELPER_LOG("%s l %d dest %" PRIx64 " src %" PRIx64 "\n",
5544c1
-               __FUNCTION__, l, dest, src);
5544c1
+               __func__, l, dest, src);
5544c1
     for (i = 0; i <= l; i++) {
5544c1
         x = ldub(dest + i) | ldub(src + i);
5544c1
         if (x) {
5544c1
@@ -236,7 +236,7 @@ void HELPER(mvc)(uint32_t l, uint64_t dest, uint64_t src)
5544c1
     uint32_t l_64 = (l + 1) / 8;
5544c1
 
5544c1
     HELPER_LOG("%s l %d dest %" PRIx64 " src %" PRIx64 "\n",
5544c1
-               __FUNCTION__, l, dest, src);
5544c1
+               __func__, l, dest, src);
5544c1
 
5544c1
 #ifndef CONFIG_USER_ONLY
5544c1
     if ((l > 32) &&
5544c1
@@ -278,10 +278,11 @@ void HELPER(mvc)(uint32_t l, uint64_t dest, uint64_t src)
5544c1
 uint32_t HELPER(clc)(uint32_t l, uint64_t s1, uint64_t s2)
5544c1
 {
5544c1
     int i;
5544c1
-    unsigned char x,y;
5544c1
+    unsigned char x, y;
5544c1
     uint32_t cc;
5544c1
+
5544c1
     HELPER_LOG("%s l %d s1 %" PRIx64 " s2 %" PRIx64 "\n",
5544c1
-               __FUNCTION__, l, s1, s2);
5544c1
+               __func__, l, s1, s2);
5544c1
     for (i = 0; i <= l; i++) {
5544c1
         x = ldub(s1 + i);
5544c1
         y = ldub(s2 + i);
5544c1
@@ -295,7 +296,7 @@ uint32_t HELPER(clc)(uint32_t l, uint64_t s1, uint64_t s2)
5544c1
         }
5544c1
     }
5544c1
     cc = 0;
5544c1
-done:
5544c1
+ done:
5544c1
     HELPER_LOG("\n");
5544c1
     return cc;
5544c1
 }
5544c1
@@ -303,9 +304,10 @@ done:
5544c1
 /* compare logical under mask */
5544c1
 uint32_t HELPER(clm)(uint32_t r1, uint32_t mask, uint64_t addr)
5544c1
 {
5544c1
-    uint8_t r,d;
5544c1
+    uint8_t r, d;
5544c1
     uint32_t cc;
5544c1
-    HELPER_LOG("%s: r1 0x%x mask 0x%x addr 0x%" PRIx64 "\n", __FUNCTION__, r1,
5544c1
+
5544c1
+    HELPER_LOG("%s: r1 0x%x mask 0x%x addr 0x%" PRIx64 "\n", __func__, r1,
5544c1
                mask, addr);
5544c1
     cc = 0;
5544c1
     while (mask) {
5544c1
@@ -313,7 +315,7 @@ uint32_t HELPER(clm)(uint32_t r1, uint32_t mask, uint64_t addr)
5544c1
             d = ldub(addr);
5544c1
             r = (r1 & 0xff000000UL) >> 24;
5544c1
             HELPER_LOG("mask 0x%x %02x/%02x (0x%" PRIx64 ") ", mask, r, d,
5544c1
-                        addr);
5544c1
+                       addr);
5544c1
             if (r < d) {
5544c1
                 cc = 1;
5544c1
                 break;
5544c1
@@ -334,7 +336,8 @@ uint32_t HELPER(clm)(uint32_t r1, uint32_t mask, uint64_t addr)
5544c1
 void HELPER(stcm)(uint32_t r1, uint32_t mask, uint64_t addr)
5544c1
 {
5544c1
     uint8_t r;
5544c1
-    HELPER_LOG("%s: r1 0x%x mask 0x%x addr 0x%lx\n", __FUNCTION__, r1, mask,
5544c1
+
5544c1
+    HELPER_LOG("%s: r1 0x%x mask 0x%x addr 0x%lx\n", __func__, r1, mask,
5544c1
                addr);
5544c1
     while (mask) {
5544c1
         if (mask & 8) {
5544c1
@@ -355,6 +358,7 @@ void HELPER(mlg)(uint32_t r1, uint64_t v2)
5544c1
 #if HOST_LONG_BITS == 64 && defined(__GNUC__)
5544c1
     /* assuming 64-bit hosts have __uint128_t */
5544c1
     __uint128_t res = (__uint128_t)env->regs[r1 + 1];
5544c1
+
5544c1
     res *= (__uint128_t)v2;
5544c1
     env->regs[r1] = (uint64_t)(res >> 64);
5544c1
     env->regs[r1 + 1] = (uint64_t)res;
5544c1
@@ -370,18 +374,18 @@ void HELPER(dlg)(uint32_t r1, uint64_t v2)
5544c1
 
5544c1
     if (!env->regs[r1]) {
5544c1
         /* 64 -> 64/64 case */
5544c1
-        env->regs[r1] = env->regs[r1+1] % divisor;
5544c1
-        env->regs[r1+1] = env->regs[r1+1] / divisor;
5544c1
+        env->regs[r1] = env->regs[r1 + 1] % divisor;
5544c1
+        env->regs[r1 + 1] = env->regs[r1 + 1] / divisor;
5544c1
         return;
5544c1
     } else {
5544c1
-
5544c1
 #if HOST_LONG_BITS == 64 && defined(__GNUC__)
5544c1
         /* assuming 64-bit hosts have __uint128_t */
5544c1
         __uint128_t dividend = (((__uint128_t)env->regs[r1]) << 64) |
5544c1
-                               (env->regs[r1+1]);
5544c1
+            (env->regs[r1 + 1]);
5544c1
         __uint128_t quotient = dividend / divisor;
5544c1
-        env->regs[r1+1] = quotient;
5544c1
         __uint128_t remainder = dividend % divisor;
5544c1
+
5544c1
+        env->regs[r1 + 1] = quotient;
5544c1
         env->regs[r1] = remainder;
5544c1
 #else
5544c1
         /* 32-bit hosts would need special wrapper functionality - just abort if
5544c1
@@ -431,7 +435,7 @@ uint32_t HELPER(srst)(uint32_t c, uint32_t r1, uint32_t r2)
5544c1
     uint64_t str = get_address_31fix(r2);
5544c1
     uint64_t end = get_address_31fix(r1);
5544c1
 
5544c1
-    HELPER_LOG("%s: c %d *r1 0x%" PRIx64 " *r2 0x%" PRIx64 "\n", __FUNCTION__,
5544c1
+    HELPER_LOG("%s: c %d *r1 0x%" PRIx64 " *r2 0x%" PRIx64 "\n", __func__,
5544c1
                c, env->regs[r1], env->regs[r2]);
5544c1
 
5544c1
     for (i = str; i != end; i++) {
5544c1
@@ -452,11 +456,12 @@ uint32_t HELPER(clst)(uint32_t c, uint32_t r1, uint32_t r2)
5544c1
     uint64_t s2 = get_address_31fix(r2);
5544c1
     uint8_t v1, v2;
5544c1
     uint32_t cc;
5544c1
+
5544c1
     c = c & 0xff;
5544c1
 #ifdef CONFIG_USER_ONLY
5544c1
     if (!c) {
5544c1
         HELPER_LOG("%s: comparing '%s' and '%s'\n",
5544c1
-                   __FUNCTION__, (char*)g2h(s1), (char*)g2h(s2));
5544c1
+                   __func__, (char *)g2h(s1), (char *)g2h(s2));
5544c1
     }
5544c1
 #endif
5544c1
     for (;;) {
5544c1
@@ -501,10 +506,11 @@ void HELPER(mvst)(uint32_t c, uint32_t r1, uint32_t r2)
5544c1
     uint64_t dest = get_address_31fix(r1);
5544c1
     uint64_t src = get_address_31fix(r2);
5544c1
     uint8_t v;
5544c1
+
5544c1
     c = c & 0xff;
5544c1
 #ifdef CONFIG_USER_ONLY
5544c1
     if (!c) {
5544c1
-        HELPER_LOG("%s: copy '%s' to 0x%lx\n", __FUNCTION__, (char*)g2h(src),
5544c1
+        HELPER_LOG("%s: copy '%s' to 0x%lx\n", __func__, (char *)g2h(src),
5544c1
                    dest);
5544c1
     }
5544c1
 #endif
5544c1
@@ -526,6 +532,7 @@ uint32_t HELPER(csg)(uint32_t r1, uint64_t a2, uint32_t r3)
5544c1
     /* FIXME: locking? */
5544c1
     uint32_t cc;
5544c1
     uint64_t v2 = ldq(a2);
5544c1
+
5544c1
     if (env->regs[r1] == v2) {
5544c1
         cc = 0;
5544c1
         stq(a2, env->regs[r3]);
5544c1
@@ -564,8 +571,9 @@ uint32_t HELPER(cs)(uint32_t r1, uint64_t a2, uint32_t r3)
5544c1
 {
5544c1
     /* FIXME: locking? */
5544c1
     uint32_t cc;
5544c1
-    HELPER_LOG("%s: r1 %d a2 0x%lx r3 %d\n", __FUNCTION__, r1, a2, r3);
5544c1
     uint32_t v2 = ldl(a2);
5544c1
+
5544c1
+    HELPER_LOG("%s: r1 %d a2 0x%lx r3 %d\n", __func__, r1, a2, r3);
5544c1
     if (((uint32_t)env->regs[r1]) == v2) {
5544c1
         cc = 0;
5544c1
         stl(a2, (uint32_t)env->regs[r3]);
5544c1
@@ -612,14 +620,16 @@ static uint32_t helper_icm(uint32_t r1, uint64_t address, uint32_t mask)
5544c1
    it does not change the program counter
5544c1
    in other words: tricky...
5544c1
    currently implemented by interpreting the cases it is most commonly used in
5544c1
- */
5544c1
+*/
5544c1
 uint32_t HELPER(ex)(uint32_t cc, uint64_t v1, uint64_t addr, uint64_t ret)
5544c1
 {
5544c1
     uint16_t insn = lduw_code(addr);
5544c1
-    HELPER_LOG("%s: v1 0x%lx addr 0x%lx insn 0x%x\n", __FUNCTION__, v1, addr,
5544c1
-             insn);
5544c1
+
5544c1
+    HELPER_LOG("%s: v1 0x%lx addr 0x%lx insn 0x%x\n", __func__, v1, addr,
5544c1
+               insn);
5544c1
     if ((insn & 0xf0ff) == 0xd000) {
5544c1
         uint32_t l, insn2, b1, b2, d1, d2;
5544c1
+
5544c1
         l = v1 & 0xff;
5544c1
         insn2 = ldl_code(addr + 2);
5544c1
         b1 = (insn2 >> 28) & 0xf;
5544c1
@@ -645,13 +655,14 @@ uint32_t HELPER(ex)(uint32_t cc, uint64_t v1, uint64_t addr, uint64_t ret)
5544c1
         }
5544c1
     } else if ((insn & 0xff00) == 0x0a00) {
5544c1
         /* supervisor call */
5544c1
-        HELPER_LOG("%s: svc %ld via execute\n", __FUNCTION__, (insn|v1) & 0xff);
5544c1
+        HELPER_LOG("%s: svc %ld via execute\n", __func__, (insn | v1) & 0xff);
5544c1
         env->psw.addr = ret - 4;
5544c1
-        env->int_svc_code = (insn|v1) & 0xff;
5544c1
+        env->int_svc_code = (insn | v1) & 0xff;
5544c1
         env->int_svc_ilc = 4;
5544c1
         helper_exception(EXCP_SVC);
5544c1
     } else if ((insn & 0xff00) == 0xbf00) {
5544c1
         uint32_t insn2, r1, r3, b2, d2;
5544c1
+
5544c1
         insn2 = ldl_code(addr + 2);
5544c1
         r1 = (insn2 >> 20) & 0xf;
5544c1
         r3 = (insn2 >> 16) & 0xf;
5544c1
@@ -659,7 +670,7 @@ uint32_t HELPER(ex)(uint32_t cc, uint64_t v1, uint64_t addr, uint64_t ret)
5544c1
         d2 = insn2 & 0xfff;
5544c1
         cc = helper_icm(r1, get_address(0, b2, d2), r3);
5544c1
     } else {
5544c1
-abort:
5544c1
+    abort:
5544c1
         cpu_abort(env, "EXECUTE on instruction prefix 0x%x not implemented\n",
5544c1
                   insn);
5544c1
     }
5544c1
@@ -689,7 +700,7 @@ int32_t HELPER(nabs_i32)(int32_t val)
5544c1
 /* absolute value 64-bit */
5544c1
 uint64_t HELPER(abs_i64)(int64_t val)
5544c1
 {
5544c1
-    HELPER_LOG("%s: val 0x%" PRIx64 "\n", __FUNCTION__, val);
5544c1
+    HELPER_LOG("%s: val 0x%" PRIx64 "\n", __func__, val);
5544c1
 
5544c1
     if (val < 0) {
5544c1
         return -val;
5544c1
@@ -774,9 +785,9 @@ void HELPER(ipm)(uint32_t cc, uint32_t r1)
5544c1
     uint64_t r = env->regs[r1];
5544c1
 
5544c1
     r &= 0xffffffff00ffffffULL;
5544c1
-    r |= (cc << 28) | ( (env->psw.mask >> 40) & 0xf );
5544c1
+    r |= (cc << 28) | ((env->psw.mask >> 40) & 0xf);
5544c1
     env->regs[r1] = r;
5544c1
-    HELPER_LOG("%s: cc %d psw.mask 0x%lx r1 0x%lx\n", __FUNCTION__,
5544c1
+    HELPER_LOG("%s: cc %d psw.mask 0x%lx r1 0x%lx\n", __func__,
5544c1
                cc, env->psw.mask, r);
5544c1
 }
5544c1
 
5544c1
@@ -908,7 +919,7 @@ uint32_t HELPER(clcle)(uint32_t r1, uint64_t a2, uint32_t r3)
5544c1
     uint64_t srclen = env->regs[r3 + 1];
5544c1
     uint64_t src = get_address_31fix(r3);
5544c1
     uint8_t pad = a2 & 0xff;
5544c1
-    uint8_t v1 = 0,v2 = 0;
5544c1
+    uint8_t v1 = 0, v2 = 0;
5544c1
     uint32_t cc = 0;
5544c1
 
5544c1
     if (!(destlen || srclen)) {
5544c1
@@ -1036,7 +1047,7 @@ static uint32_t set_cc_nz_f128(float128 v)
5544c1
 /* convert 32-bit int to 64-bit float */
5544c1
 void HELPER(cdfbr)(uint32_t f1, int32_t v2)
5544c1
 {
5544c1
-    HELPER_LOG("%s: converting %d to f%d\n", __FUNCTION__, v2, f1);
5544c1
+    HELPER_LOG("%s: converting %d to f%d\n", __func__, v2, f1);
5544c1
     env->fregs[f1].d = int32_to_float64(v2, &env->fpu_status);
5544c1
 }
5544c1
 
5544c1
@@ -1044,6 +1055,7 @@ void HELPER(cdfbr)(uint32_t f1, int32_t v2)
5544c1
 void HELPER(cxfbr)(uint32_t f1, int32_t v2)
5544c1
 {
5544c1
     CPU_QuadU v1;
5544c1
+
5544c1
     v1.q = int32_to_float128(v2, &env->fpu_status);
5544c1
     env->fregs[f1].ll = v1.ll.upper;
5544c1
     env->fregs[f1 + 2].ll = v1.ll.lower;
5544c1
@@ -1052,14 +1064,14 @@ void HELPER(cxfbr)(uint32_t f1, int32_t v2)
5544c1
 /* convert 64-bit int to 32-bit float */
5544c1
 void HELPER(cegbr)(uint32_t f1, int64_t v2)
5544c1
 {
5544c1
-    HELPER_LOG("%s: converting %ld to f%d\n", __FUNCTION__, v2, f1);
5544c1
+    HELPER_LOG("%s: converting %ld to f%d\n", __func__, v2, f1);
5544c1
     env->fregs[f1].l.upper = int64_to_float32(v2, &env->fpu_status);
5544c1
 }
5544c1
 
5544c1
 /* convert 64-bit int to 64-bit float */
5544c1
 void HELPER(cdgbr)(uint32_t f1, int64_t v2)
5544c1
 {
5544c1
-    HELPER_LOG("%s: converting %ld to f%d\n", __FUNCTION__, v2, f1);
5544c1
+    HELPER_LOG("%s: converting %ld to f%d\n", __func__, v2, f1);
5544c1
     env->fregs[f1].d = int64_to_float64(v2, &env->fpu_status);
5544c1
 }
5544c1
 
5544c1
@@ -1067,8 +1079,9 @@ void HELPER(cdgbr)(uint32_t f1, int64_t v2)
5544c1
 void HELPER(cxgbr)(uint32_t f1, int64_t v2)
5544c1
 {
5544c1
     CPU_QuadU x1;
5544c1
+
5544c1
     x1.q = int64_to_float128(v2, &env->fpu_status);
5544c1
-    HELPER_LOG("%s: converted %ld to 0x%lx and 0x%lx\n", __FUNCTION__, v2,
5544c1
+    HELPER_LOG("%s: converted %ld to 0x%lx and 0x%lx\n", __func__, v2,
5544c1
                x1.ll.upper, x1.ll.lower);
5544c1
     env->fregs[f1].ll = x1.ll.upper;
5544c1
     env->fregs[f1 + 2].ll = x1.ll.lower;
5544c1
@@ -1078,7 +1091,7 @@ void HELPER(cxgbr)(uint32_t f1, int64_t v2)
5544c1
 void HELPER(cefbr)(uint32_t f1, int32_t v2)
5544c1
 {
5544c1
     env->fregs[f1].l.upper = int32_to_float32(v2, &env->fpu_status);
5544c1
-    HELPER_LOG("%s: converting %d to 0x%d in f%d\n", __FUNCTION__, v2,
5544c1
+    HELPER_LOG("%s: converting %d to 0x%d in f%d\n", __func__, v2,
5544c1
                env->fregs[f1].l.upper, f1);
5544c1
 }
5544c1
 
5544c1
@@ -1088,7 +1101,7 @@ uint32_t HELPER(aebr)(uint32_t f1, uint32_t f2)
5544c1
     env->fregs[f1].l.upper = float32_add(env->fregs[f1].l.upper,
5544c1
                                          env->fregs[f2].l.upper,
5544c1
                                          &env->fpu_status);
5544c1
-    HELPER_LOG("%s: adding 0x%d resulting in 0x%d in f%d\n", __FUNCTION__,
5544c1
+    HELPER_LOG("%s: adding 0x%d resulting in 0x%d in f%d\n", __func__,
5544c1
                env->fregs[f2].l.upper, env->fregs[f1].l.upper, f1);
5544c1
 
5544c1
     return set_cc_nz_f32(env->fregs[f1].l.upper);
5544c1
@@ -1099,7 +1112,7 @@ uint32_t HELPER(adbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     env->fregs[f1].d = float64_add(env->fregs[f1].d, env->fregs[f2].d,
5544c1
                                    &env->fpu_status);
5544c1
-    HELPER_LOG("%s: adding 0x%ld resulting in 0x%ld in f%d\n", __FUNCTION__,
5544c1
+    HELPER_LOG("%s: adding 0x%ld resulting in 0x%ld in f%d\n", __func__,
5544c1
                env->fregs[f2].d, env->fregs[f1].d, f1);
5544c1
 
5544c1
     return set_cc_nz_f64(env->fregs[f1].d);
5544c1
@@ -1111,7 +1124,7 @@ uint32_t HELPER(sebr)(uint32_t f1, uint32_t f2)
5544c1
     env->fregs[f1].l.upper = float32_sub(env->fregs[f1].l.upper,
5544c1
                                          env->fregs[f2].l.upper,
5544c1
                                          &env->fpu_status);
5544c1
-    HELPER_LOG("%s: adding 0x%d resulting in 0x%d in f%d\n", __FUNCTION__,
5544c1
+    HELPER_LOG("%s: adding 0x%d resulting in 0x%d in f%d\n", __func__,
5544c1
                env->fregs[f2].l.upper, env->fregs[f1].l.upper, f1);
5544c1
 
5544c1
     return set_cc_nz_f32(env->fregs[f1].l.upper);
5544c1
@@ -1123,7 +1136,7 @@ uint32_t HELPER(sdbr)(uint32_t f1, uint32_t f2)
5544c1
     env->fregs[f1].d = float64_sub(env->fregs[f1].d, env->fregs[f2].d,
5544c1
                                    &env->fpu_status);
5544c1
     HELPER_LOG("%s: subtracting 0x%ld resulting in 0x%ld in f%d\n",
5544c1
-               __FUNCTION__, env->fregs[f2].d, env->fregs[f1].d, f1);
5544c1
+               __func__, env->fregs[f2].d, env->fregs[f1].d, f1);
5544c1
 
5544c1
     return set_cc_nz_f64(env->fregs[f1].d);
5544c1
 }
5544c1
@@ -1140,12 +1153,13 @@ void HELPER(debr)(uint32_t f1, uint32_t f2)
5544c1
 void HELPER(dxbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     CPU_QuadU v1;
5544c1
+    CPU_QuadU v2;
5544c1
+    CPU_QuadU res;
5544c1
+
5544c1
     v1.ll.upper = env->fregs[f1].ll;
5544c1
     v1.ll.lower = env->fregs[f1 + 2].ll;
5544c1
-    CPU_QuadU v2;
5544c1
     v2.ll.upper = env->fregs[f2].ll;
5544c1
     v2.ll.lower = env->fregs[f2 + 2].ll;
5544c1
-    CPU_QuadU res;
5544c1
     res.q = float128_div(v1.q, v2.q, &env->fpu_status);
5544c1
     env->fregs[f1].ll = res.ll.upper;
5544c1
     env->fregs[f1 + 2].ll = res.ll.lower;
5544c1
@@ -1162,12 +1176,13 @@ void HELPER(mdbr)(uint32_t f1, uint32_t f2)
5544c1
 void HELPER(mxbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     CPU_QuadU v1;
5544c1
+    CPU_QuadU v2;
5544c1
+    CPU_QuadU res;
5544c1
+
5544c1
     v1.ll.upper = env->fregs[f1].ll;
5544c1
     v1.ll.lower = env->fregs[f1 + 2].ll;
5544c1
-    CPU_QuadU v2;
5544c1
     v2.ll.upper = env->fregs[f2].ll;
5544c1
     v2.ll.lower = env->fregs[f2 + 2].ll;
5544c1
-    CPU_QuadU res;
5544c1
     res.q = float128_mul(v1.q, v2.q, &env->fpu_status);
5544c1
     env->fregs[f1].ll = res.ll.upper;
5544c1
     env->fregs[f1 + 2].ll = res.ll.lower;
5544c1
@@ -1184,16 +1199,18 @@ void HELPER(ldebr)(uint32_t r1, uint32_t r2)
5544c1
 void HELPER(ldxbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     CPU_QuadU x2;
5544c1
+
5544c1
     x2.ll.upper = env->fregs[f2].ll;
5544c1
     x2.ll.lower = env->fregs[f2 + 2].ll;
5544c1
     env->fregs[f1].d = float128_to_float64(x2.q, &env->fpu_status);
5544c1
-    HELPER_LOG("%s: to 0x%ld\n", __FUNCTION__, env->fregs[f1].d);
5544c1
+    HELPER_LOG("%s: to 0x%ld\n", __func__, env->fregs[f1].d);
5544c1
 }
5544c1
 
5544c1
 /* convert 64-bit float to 128-bit float */
5544c1
 void HELPER(lxdbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     CPU_QuadU res;
5544c1
+
5544c1
     res.q = float64_to_float128(env->fregs[f2].d, &env->fpu_status);
5544c1
     env->fregs[f1].ll = res.ll.upper;
5544c1
     env->fregs[f1 + 2].ll = res.ll.lower;
5544c1
@@ -1203,6 +1220,7 @@ void HELPER(lxdbr)(uint32_t f1, uint32_t f2)
5544c1
 void HELPER(ledbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     float64 d2 = env->fregs[f2].d;
5544c1
+
5544c1
     env->fregs[f1].l.upper = float64_to_float32(d2, &env->fpu_status);
5544c1
 }
5544c1
 
5544c1
@@ -1210,10 +1228,11 @@ void HELPER(ledbr)(uint32_t f1, uint32_t f2)
5544c1
 void HELPER(lexbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     CPU_QuadU x2;
5544c1
+
5544c1
     x2.ll.upper = env->fregs[f2].ll;
5544c1
     x2.ll.lower = env->fregs[f2 + 2].ll;
5544c1
     env->fregs[f1].l.upper = float128_to_float32(x2.q, &env->fpu_status);
5544c1
-    HELPER_LOG("%s: to 0x%d\n", __FUNCTION__, env->fregs[f1].l.upper);
5544c1
+    HELPER_LOG("%s: to 0x%d\n", __func__, env->fregs[f1].l.upper);
5544c1
 }
5544c1
 
5544c1
 /* absolute value of 32-bit float */
5544c1
@@ -1221,6 +1240,7 @@ uint32_t HELPER(lpebr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     float32 v1;
5544c1
     float32 v2 = env->fregs[f2].d;
5544c1
+
5544c1
     v1 = float32_abs(v2);
5544c1
     env->fregs[f1].d = v1;
5544c1
     return set_cc_nz_f32(v1);
5544c1
@@ -1231,6 +1251,7 @@ uint32_t HELPER(lpdbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     float64 v1;
5544c1
     float64 v2 = env->fregs[f2].d;
5544c1
+
5544c1
     v1 = float64_abs(v2);
5544c1
     env->fregs[f1].d = v1;
5544c1
     return set_cc_nz_f64(v1);
5544c1
@@ -1241,6 +1262,7 @@ uint32_t HELPER(lpxbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     CPU_QuadU v1;
5544c1
     CPU_QuadU v2;
5544c1
+
5544c1
     v2.ll.upper = env->fregs[f2].ll;
5544c1
     v2.ll.lower = env->fregs[f2 + 2].ll;
5544c1
     v1.q = float128_abs(v2.q);
5544c1
@@ -1267,6 +1289,7 @@ uint32_t HELPER(ltebr)(uint32_t f1, uint32_t f2)
5544c1
 uint32_t HELPER(ltxbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     CPU_QuadU x;
5544c1
+
5544c1
     x.ll.upper = env->fregs[f2].ll;
5544c1
     x.ll.lower = env->fregs[f2 + 2].ll;
5544c1
     env->fregs[f1].ll = x.ll.upper;
5544c1
@@ -1294,6 +1317,7 @@ uint32_t HELPER(lcdbr)(uint32_t f1, uint32_t f2)
5544c1
 uint32_t HELPER(lcxbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     CPU_QuadU x1, x2;
5544c1
+
5544c1
     x2.ll.upper = env->fregs[f2].ll;
5544c1
     x2.ll.lower = env->fregs[f2 + 2].ll;
5544c1
     x1.q = float128_chs(x2.q);
5544c1
@@ -1307,8 +1331,9 @@ void HELPER(aeb)(uint32_t f1, uint32_t val)
5544c1
 {
5544c1
     float32 v1 = env->fregs[f1].l.upper;
5544c1
     CPU_FloatU v2;
5544c1
+
5544c1
     v2.l = val;
5544c1
-    HELPER_LOG("%s: adding 0x%d from f%d and 0x%d\n", __FUNCTION__,
5544c1
+    HELPER_LOG("%s: adding 0x%d from f%d and 0x%d\n", __func__,
5544c1
                v1, f1, v2.f);
5544c1
     env->fregs[f1].l.upper = float32_add(v1, v2.f, &env->fpu_status);
5544c1
 }
5544c1
@@ -1318,8 +1343,9 @@ void HELPER(deb)(uint32_t f1, uint32_t val)
5544c1
 {
5544c1
     float32 v1 = env->fregs[f1].l.upper;
5544c1
     CPU_FloatU v2;
5544c1
+
5544c1
     v2.l = val;
5544c1
-    HELPER_LOG("%s: dividing 0x%d from f%d by 0x%d\n", __FUNCTION__,
5544c1
+    HELPER_LOG("%s: dividing 0x%d from f%d by 0x%d\n", __func__,
5544c1
                v1, f1, v2.f);
5544c1
     env->fregs[f1].l.upper = float32_div(v1, v2.f, &env->fpu_status);
5544c1
 }
5544c1
@@ -1329,8 +1355,9 @@ void HELPER(meeb)(uint32_t f1, uint32_t val)
5544c1
 {
5544c1
     float32 v1 = env->fregs[f1].l.upper;
5544c1
     CPU_FloatU v2;
5544c1
+
5544c1
     v2.l = val;
5544c1
-    HELPER_LOG("%s: multiplying 0x%d from f%d and 0x%d\n", __FUNCTION__,
5544c1
+    HELPER_LOG("%s: multiplying 0x%d from f%d and 0x%d\n", __func__,
5544c1
                v1, f1, v2.f);
5544c1
     env->fregs[f1].l.upper = float32_mul(v1, v2.f, &env->fpu_status);
5544c1
 }
5544c1
@@ -1340,7 +1367,8 @@ uint32_t HELPER(cebr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     float32 v1 = env->fregs[f1].l.upper;
5544c1
     float32 v2 = env->fregs[f2].l.upper;
5544c1
-    HELPER_LOG("%s: comparing 0x%d from f%d and 0x%d\n", __FUNCTION__,
5544c1
+
5544c1
+    HELPER_LOG("%s: comparing 0x%d from f%d and 0x%d\n", __func__,
5544c1
                v1, f1, v2);
5544c1
     return set_cc_f32(v1, v2);
5544c1
 }
5544c1
@@ -1350,7 +1378,8 @@ uint32_t HELPER(cdbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     float64 v1 = env->fregs[f1].d;
5544c1
     float64 v2 = env->fregs[f2].d;
5544c1
-    HELPER_LOG("%s: comparing 0x%ld from f%d and 0x%ld\n", __FUNCTION__,
5544c1
+
5544c1
+    HELPER_LOG("%s: comparing 0x%ld from f%d and 0x%ld\n", __func__,
5544c1
                v1, f1, v2);
5544c1
     return set_cc_f64(v1, v2);
5544c1
 }
5544c1
@@ -1359,14 +1388,15 @@ uint32_t HELPER(cdbr)(uint32_t f1, uint32_t f2)
5544c1
 uint32_t HELPER(cxbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     CPU_QuadU v1;
5544c1
+    CPU_QuadU v2;
5544c1
+
5544c1
     v1.ll.upper = env->fregs[f1].ll;
5544c1
     v1.ll.lower = env->fregs[f1 + 2].ll;
5544c1
-    CPU_QuadU v2;
5544c1
     v2.ll.upper = env->fregs[f2].ll;
5544c1
     v2.ll.lower = env->fregs[f2 + 2].ll;
5544c1
 
5544c1
     return float_comp_to_cc(float128_compare_quiet(v1.q, v2.q,
5544c1
-                            &env->fpu_status));
5544c1
+                                                   &env->fpu_status));
5544c1
 }
5544c1
 
5544c1
 /* 64-bit FP compare RM */
5544c1
@@ -1374,8 +1404,9 @@ uint32_t HELPER(cdb)(uint32_t f1, uint64_t a2)
5544c1
 {
5544c1
     float64 v1 = env->fregs[f1].d;
5544c1
     CPU_DoubleU v2;
5544c1
+
5544c1
     v2.ll = ldq(a2);
5544c1
-    HELPER_LOG("%s: comparing 0x%ld from f%d and 0x%lx\n", __FUNCTION__, v1,
5544c1
+    HELPER_LOG("%s: comparing 0x%ld from f%d and 0x%lx\n", __func__, v1,
5544c1
                f1, v2.d);
5544c1
     return set_cc_f64(v1, v2.d);
5544c1
 }
5544c1
@@ -1385,8 +1416,9 @@ uint32_t HELPER(adb)(uint32_t f1, uint64_t a2)
5544c1
 {
5544c1
     float64 v1 = env->fregs[f1].d;
5544c1
     CPU_DoubleU v2;
5544c1
+
5544c1
     v2.ll = ldq(a2);
5544c1
-    HELPER_LOG("%s: adding 0x%lx from f%d and 0x%lx\n", __FUNCTION__,
5544c1
+    HELPER_LOG("%s: adding 0x%lx from f%d and 0x%lx\n", __func__,
5544c1
                v1, f1, v2.d);
5544c1
     env->fregs[f1].d = v1 = float64_add(v1, v2.d, &env->fpu_status);
5544c1
     return set_cc_nz_f64(v1);
5544c1
@@ -1397,6 +1429,7 @@ void HELPER(seb)(uint32_t f1, uint32_t val)
5544c1
 {
5544c1
     float32 v1 = env->fregs[f1].l.upper;
5544c1
     CPU_FloatU v2;
5544c1
+
5544c1
     v2.l = val;
5544c1
     env->fregs[f1].l.upper = float32_sub(v1, v2.f, &env->fpu_status);
5544c1
 }
5544c1
@@ -1406,6 +1439,7 @@ uint32_t HELPER(sdb)(uint32_t f1, uint64_t a2)
5544c1
 {
5544c1
     float64 v1 = env->fregs[f1].d;
5544c1
     CPU_DoubleU v2;
5544c1
+
5544c1
     v2.ll = ldq(a2);
5544c1
     env->fregs[f1].d = v1 = float64_sub(v1, v2.d, &env->fpu_status);
5544c1
     return set_cc_nz_f64(v1);
5544c1
@@ -1416,8 +1450,9 @@ void HELPER(mdb)(uint32_t f1, uint64_t a2)
5544c1
 {
5544c1
     float64 v1 = env->fregs[f1].d;
5544c1
     CPU_DoubleU v2;
5544c1
+
5544c1
     v2.ll = ldq(a2);
5544c1
-    HELPER_LOG("%s: multiplying 0x%lx from f%d and 0x%ld\n", __FUNCTION__,
5544c1
+    HELPER_LOG("%s: multiplying 0x%lx from f%d and 0x%ld\n", __func__,
5544c1
                v1, f1, v2.d);
5544c1
     env->fregs[f1].d = float64_mul(v1, v2.d, &env->fpu_status);
5544c1
 }
5544c1
@@ -1427,8 +1462,9 @@ void HELPER(ddb)(uint32_t f1, uint64_t a2)
5544c1
 {
5544c1
     float64 v1 = env->fregs[f1].d;
5544c1
     CPU_DoubleU v2;
5544c1
+
5544c1
     v2.ll = ldq(a2);
5544c1
-    HELPER_LOG("%s: dividing 0x%lx from f%d by 0x%ld\n", __FUNCTION__,
5544c1
+    HELPER_LOG("%s: dividing 0x%lx from f%d by 0x%ld\n", __func__,
5544c1
                v1, f1, v2.d);
5544c1
     env->fregs[f1].d = float64_div(v1, v2.d, &env->fpu_status);
5544c1
 }
5544c1
@@ -1464,6 +1500,7 @@ static void set_round_mode(int m3)
5544c1
 uint32_t HELPER(cgebr)(uint32_t r1, uint32_t f2, uint32_t m3)
5544c1
 {
5544c1
     float32 v2 = env->fregs[f2].l.upper;
5544c1
+
5544c1
     set_round_mode(m3);
5544c1
     env->regs[r1] = float32_to_int64(v2, &env->fpu_status);
5544c1
     return set_cc_nz_f32(v2);
5544c1
@@ -1473,6 +1510,7 @@ uint32_t HELPER(cgebr)(uint32_t r1, uint32_t f2, uint32_t m3)
5544c1
 uint32_t HELPER(cgdbr)(uint32_t r1, uint32_t f2, uint32_t m3)
5544c1
 {
5544c1
     float64 v2 = env->fregs[f2].d;
5544c1
+
5544c1
     set_round_mode(m3);
5544c1
     env->regs[r1] = float64_to_int64(v2, &env->fpu_status);
5544c1
     return set_cc_nz_f64(v2);
5544c1
@@ -1482,6 +1520,7 @@ uint32_t HELPER(cgdbr)(uint32_t r1, uint32_t f2, uint32_t m3)
5544c1
 uint32_t HELPER(cgxbr)(uint32_t r1, uint32_t f2, uint32_t m3)
5544c1
 {
5544c1
     CPU_QuadU v2;
5544c1
+
5544c1
     v2.ll.upper = env->fregs[f2].ll;
5544c1
     v2.ll.lower = env->fregs[f2 + 2].ll;
5544c1
     set_round_mode(m3);
5544c1
@@ -1501,9 +1540,10 @@ uint32_t HELPER(cgxbr)(uint32_t r1, uint32_t f2, uint32_t m3)
5544c1
 uint32_t HELPER(cfebr)(uint32_t r1, uint32_t f2, uint32_t m3)
5544c1
 {
5544c1
     float32 v2 = env->fregs[f2].l.upper;
5544c1
+
5544c1
     set_round_mode(m3);
5544c1
     env->regs[r1] = (env->regs[r1] & 0xffffffff00000000ULL) |
5544c1
-                     float32_to_int32(v2, &env->fpu_status);
5544c1
+        float32_to_int32(v2, &env->fpu_status);
5544c1
     return set_cc_nz_f32(v2);
5544c1
 }
5544c1
 
5544c1
@@ -1511,9 +1551,10 @@ uint32_t HELPER(cfebr)(uint32_t r1, uint32_t f2, uint32_t m3)
5544c1
 uint32_t HELPER(cfdbr)(uint32_t r1, uint32_t f2, uint32_t m3)
5544c1
 {
5544c1
     float64 v2 = env->fregs[f2].d;
5544c1
+
5544c1
     set_round_mode(m3);
5544c1
     env->regs[r1] = (env->regs[r1] & 0xffffffff00000000ULL) |
5544c1
-                     float64_to_int32(v2, &env->fpu_status);
5544c1
+        float64_to_int32(v2, &env->fpu_status);
5544c1
     return set_cc_nz_f64(v2);
5544c1
 }
5544c1
 
5544c1
@@ -1521,10 +1562,11 @@ uint32_t HELPER(cfdbr)(uint32_t r1, uint32_t f2, uint32_t m3)
5544c1
 uint32_t HELPER(cfxbr)(uint32_t r1, uint32_t f2, uint32_t m3)
5544c1
 {
5544c1
     CPU_QuadU v2;
5544c1
+
5544c1
     v2.ll.upper = env->fregs[f2].ll;
5544c1
     v2.ll.lower = env->fregs[f2 + 2].ll;
5544c1
     env->regs[r1] = (env->regs[r1] & 0xffffffff00000000ULL) |
5544c1
-                     float128_to_int32(v2.q, &env->fpu_status);
5544c1
+        float128_to_int32(v2.q, &env->fpu_status);
5544c1
     return set_cc_nz_f128(v2.q);
5544c1
 }
5544c1
 
5544c1
@@ -1544,6 +1586,7 @@ void HELPER(lzdr)(uint32_t f1)
5544c1
 void HELPER(lzxr)(uint32_t f1)
5544c1
 {
5544c1
     CPU_QuadU x;
5544c1
+
5544c1
     x.q = float64_to_float128(float64_zero, &env->fpu_status);
5544c1
     env->fregs[f1].ll = x.ll.upper;
5544c1
     env->fregs[f1 + 1].ll = x.ll.lower;
5544c1
@@ -1553,12 +1596,13 @@ void HELPER(lzxr)(uint32_t f1)
5544c1
 uint32_t HELPER(sxbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     CPU_QuadU v1;
5544c1
+    CPU_QuadU v2;
5544c1
+    CPU_QuadU res;
5544c1
+
5544c1
     v1.ll.upper = env->fregs[f1].ll;
5544c1
     v1.ll.lower = env->fregs[f1 + 2].ll;
5544c1
-    CPU_QuadU v2;
5544c1
     v2.ll.upper = env->fregs[f2].ll;
5544c1
     v2.ll.lower = env->fregs[f2 + 2].ll;
5544c1
-    CPU_QuadU res;
5544c1
     res.q = float128_sub(v1.q, v2.q, &env->fpu_status);
5544c1
     env->fregs[f1].ll = res.ll.upper;
5544c1
     env->fregs[f1 + 2].ll = res.ll.lower;
5544c1
@@ -1569,12 +1613,13 @@ uint32_t HELPER(sxbr)(uint32_t f1, uint32_t f2)
5544c1
 uint32_t HELPER(axbr)(uint32_t f1, uint32_t f2)
5544c1
 {
5544c1
     CPU_QuadU v1;
5544c1
+    CPU_QuadU v2;
5544c1
+    CPU_QuadU res;
5544c1
+
5544c1
     v1.ll.upper = env->fregs[f1].ll;
5544c1
     v1.ll.lower = env->fregs[f1 + 2].ll;
5544c1
-    CPU_QuadU v2;
5544c1
     v2.ll.upper = env->fregs[f2].ll;
5544c1
     v2.ll.lower = env->fregs[f2 + 2].ll;
5544c1
-    CPU_QuadU res;
5544c1
     res.q = float128_add(v1.q, v2.q, &env->fpu_status);
5544c1
     env->fregs[f1].ll = res.ll.upper;
5544c1
     env->fregs[f1 + 2].ll = res.ll.lower;
5544c1
@@ -1599,8 +1644,9 @@ void HELPER(ddbr)(uint32_t f1, uint32_t f2)
5544c1
 /* 64-bit FP multiply and add RM */
5544c1
 void HELPER(madb)(uint32_t f1, uint64_t a2, uint32_t f3)
5544c1
 {
5544c1
-    HELPER_LOG("%s: f1 %d a2 0x%lx f3 %d\n", __FUNCTION__, f1, a2, f3);
5544c1
     CPU_DoubleU v2;
5544c1
+
5544c1
+    HELPER_LOG("%s: f1 %d a2 0x%lx f3 %d\n", __func__, f1, a2, f3);
5544c1
     v2.ll = ldq(a2);
5544c1
     env->fregs[f1].d = float64_add(env->fregs[f1].d,
5544c1
                                    float64_mul(v2.d, env->fregs[f3].d,
5544c1
@@ -1611,7 +1657,7 @@ void HELPER(madb)(uint32_t f1, uint64_t a2, uint32_t f3)
5544c1
 /* 64-bit FP multiply and add RR */
5544c1
 void HELPER(madbr)(uint32_t f1, uint32_t f3, uint32_t f2)
5544c1
 {
5544c1
-    HELPER_LOG("%s: f1 %d f2 %d f3 %d\n", __FUNCTION__, f1, f2, f3);
5544c1
+    HELPER_LOG("%s: f1 %d f2 %d f3 %d\n", __func__, f1, f2, f3);
5544c1
     env->fregs[f1].d = float64_add(float64_mul(env->fregs[f2].d,
5544c1
                                                env->fregs[f3].d,
5544c1
                                                &env->fpu_status),
5544c1
@@ -1621,7 +1667,7 @@ void HELPER(madbr)(uint32_t f1, uint32_t f3, uint32_t f2)
5544c1
 /* 64-bit FP multiply and subtract RR */
5544c1
 void HELPER(msdbr)(uint32_t f1, uint32_t f3, uint32_t f2)
5544c1
 {
5544c1
-    HELPER_LOG("%s: f1 %d f2 %d f3 %d\n", __FUNCTION__, f1, f2, f3);
5544c1
+    HELPER_LOG("%s: f1 %d f2 %d f3 %d\n", __func__, f1, f2, f3);
5544c1
     env->fregs[f1].d = float64_sub(float64_mul(env->fregs[f2].d,
5544c1
                                                env->fregs[f3].d,
5544c1
                                                &env->fpu_status),
5544c1
@@ -1642,6 +1688,7 @@ void HELPER(maebr)(uint32_t f1, uint32_t f3, uint32_t f2)
5544c1
 void HELPER(ldeb)(uint32_t f1, uint64_t a2)
5544c1
 {
5544c1
     uint32_t v2;
5544c1
+
5544c1
     v2 = ldl(a2);
5544c1
     env->fregs[f1].d = float32_to_float64(v2,
5544c1
                                           &env->fpu_status);
5544c1
@@ -1651,8 +1698,9 @@ void HELPER(ldeb)(uint32_t f1, uint64_t a2)
5544c1
 void HELPER(lxdb)(uint32_t f1, uint64_t a2)
5544c1
 {
5544c1
     CPU_DoubleU v2;
5544c1
-    v2.ll = ldq(a2);
5544c1
     CPU_QuadU v1;
5544c1
+
5544c1
+    v2.ll = ldq(a2);
5544c1
     v1.q = float64_to_float128(v2.d, &env->fpu_status);
5544c1
     env->fregs[f1].ll = v1.ll.upper;
5544c1
     env->fregs[f1 + 2].ll = v1.ll.lower;
5544c1
@@ -1665,7 +1713,7 @@ uint32_t HELPER(tceb)(uint32_t f1, uint64_t m2)
5544c1
     int neg = float32_is_neg(v1);
5544c1
     uint32_t cc = 0;
5544c1
 
5544c1
-    HELPER_LOG("%s: v1 0x%lx m2 0x%lx neg %d\n", __FUNCTION__, (long)v1, m2, neg);
5544c1
+    HELPER_LOG("%s: v1 0x%lx m2 0x%lx neg %d\n", __func__, (long)v1, m2, neg);
5544c1
     if ((float32_is_zero(v1) && (m2 & (1 << (11-neg)))) ||
5544c1
         (float32_is_infinity(v1) && (m2 & (1 << (5-neg)))) ||
5544c1
         (float32_is_any_nan(v1) && (m2 & (1 << (3-neg)))) ||
5544c1
@@ -1687,7 +1735,7 @@ uint32_t HELPER(tcdb)(uint32_t f1, uint64_t m2)
5544c1
     int neg = float64_is_neg(v1);
5544c1
     uint32_t cc = 0;
5544c1
 
5544c1
-    HELPER_LOG("%s: v1 0x%lx m2 0x%lx neg %d\n", __FUNCTION__, v1, m2, neg);
5544c1
+    HELPER_LOG("%s: v1 0x%lx m2 0x%lx neg %d\n", __func__, v1, m2, neg);
5544c1
     if ((float64_is_zero(v1) && (m2 & (1 << (11-neg)))) ||
5544c1
         (float64_is_infinity(v1) && (m2 & (1 << (5-neg)))) ||
5544c1
         (float64_is_any_nan(v1) && (m2 & (1 << (3-neg)))) ||
5544c1
@@ -1706,10 +1754,12 @@ uint32_t HELPER(tcxb)(uint32_t f1, uint64_t m2)
5544c1
 {
5544c1
     CPU_QuadU v1;
5544c1
     uint32_t cc = 0;
5544c1
+    int neg;
5544c1
+
5544c1
     v1.ll.upper = env->fregs[f1].ll;
5544c1
     v1.ll.lower = env->fregs[f1 + 2].ll;
5544c1
 
5544c1
-    int neg = float128_is_neg(v1.q);
5544c1
+    neg = float128_is_neg(v1.q);
5544c1
     if ((float128_is_zero(v1.q) && (m2 & (1 << (11-neg)))) ||
5544c1
         (float128_is_infinity(v1.q) && (m2 & (1 << (5-neg)))) ||
5544c1
         (float128_is_any_nan(v1.q) && (m2 & (1 << (3-neg)))) ||
5544c1
@@ -1787,7 +1837,7 @@ void HELPER(cksm)(uint32_t r1, uint32_t r2)
5544c1
 
5544c1
     /* store result */
5544c1
     env->regs[r1] = (env->regs[r1] & 0xffffffff00000000ULL) |
5544c1
-                    ((uint32_t)cksm + (cksm >> 32));
5544c1
+        ((uint32_t)cksm + (cksm >> 32));
5544c1
 }
5544c1
 
5544c1
 static inline uint32_t cc_calc_ltgt_32(CPUS390XState *env, int32_t src,
5544c1
@@ -1848,10 +1898,12 @@ static inline uint32_t cc_calc_ltugtu_64(CPUS390XState *env, uint64_t src,
5544c1
     }
5544c1
 }
5544c1
 
5544c1
-static inline uint32_t cc_calc_tm_32(CPUS390XState *env, uint32_t val, uint32_t mask)
5544c1
+static inline uint32_t cc_calc_tm_32(CPUS390XState *env, uint32_t val,
5544c1
+                                     uint32_t mask)
5544c1
 {
5544c1
-    HELPER_LOG("%s: val 0x%x mask 0x%x\n", __FUNCTION__, val, mask);
5544c1
     uint16_t r = val & mask;
5544c1
+
5544c1
+    HELPER_LOG("%s: val 0x%x mask 0x%x\n", __func__, val, mask);
5544c1
     if (r == 0 || mask == 0) {
5544c1
         return 0;
5544c1
     } else if (r == mask) {
5544c1
@@ -1862,10 +1914,12 @@ static inline uint32_t cc_calc_tm_32(CPUS390XState *env, uint32_t val, uint32_t
5544c1
 }
5544c1
 
5544c1
 /* set condition code for test under mask */
5544c1
-static inline uint32_t cc_calc_tm_64(CPUS390XState *env, uint64_t val, uint32_t mask)
5544c1
+static inline uint32_t cc_calc_tm_64(CPUS390XState *env, uint64_t val,
5544c1
+                                     uint32_t mask)
5544c1
 {
5544c1
     uint16_t r = val & mask;
5544c1
-    HELPER_LOG("%s: val 0x%lx mask 0x%x r 0x%x\n", __FUNCTION__, val, mask, r);
5544c1
+
5544c1
+    HELPER_LOG("%s: val 0x%lx mask 0x%x r 0x%x\n", __func__, val, mask, r);
5544c1
     if (r == 0 || mask == 0) {
5544c1
         return 0;
5544c1
     } else if (r == mask) {
5544c1
@@ -1888,8 +1942,8 @@ static inline uint32_t cc_calc_nz(CPUS390XState *env, uint64_t dst)
5544c1
     return !!dst;
5544c1
 }
5544c1
 
5544c1
-static inline uint32_t cc_calc_add_64(CPUS390XState *env, int64_t a1, int64_t a2,
5544c1
-                                      int64_t ar)
5544c1
+static inline uint32_t cc_calc_add_64(CPUS390XState *env, int64_t a1,
5544c1
+                                      int64_t a2, int64_t ar)
5544c1
 {
5544c1
     if ((a1 > 0 && a2 > 0 && ar < 0) || (a1 < 0 && a2 < 0 && ar > 0)) {
5544c1
         return 3; /* overflow */
5544c1
@@ -1904,8 +1958,8 @@ static inline uint32_t cc_calc_add_64(CPUS390XState *env, int64_t a1, int64_t a2
5544c1
     }
5544c1
 }
5544c1
 
5544c1
-static inline uint32_t cc_calc_addu_64(CPUS390XState *env, uint64_t a1, uint64_t a2,
5544c1
-                                       uint64_t ar)
5544c1
+static inline uint32_t cc_calc_addu_64(CPUS390XState *env, uint64_t a1,
5544c1
+                                       uint64_t a2, uint64_t ar)
5544c1
 {
5544c1
     if (ar == 0) {
5544c1
         if (a1) {
5544c1
@@ -1915,15 +1969,15 @@ static inline uint32_t cc_calc_addu_64(CPUS390XState *env, uint64_t a1, uint64_t
5544c1
         }
5544c1
     } else {
5544c1
         if (ar < a1 || ar < a2) {
5544c1
-          return 3;
5544c1
+            return 3;
5544c1
         } else {
5544c1
-          return 1;
5544c1
+            return 1;
5544c1
         }
5544c1
     }
5544c1
 }
5544c1
 
5544c1
-static inline uint32_t cc_calc_sub_64(CPUS390XState *env, int64_t a1, int64_t a2,
5544c1
-                                      int64_t ar)
5544c1
+static inline uint32_t cc_calc_sub_64(CPUS390XState *env, int64_t a1,
5544c1
+                                      int64_t a2, int64_t ar)
5544c1
 {
5544c1
     if ((a1 > 0 && a2 < 0 && ar < 0) || (a1 < 0 && a2 > 0 && ar > 0)) {
5544c1
         return 3; /* overflow */
5544c1
@@ -1938,8 +1992,8 @@ static inline uint32_t cc_calc_sub_64(CPUS390XState *env, int64_t a1, int64_t a2
5544c1
     }
5544c1
 }
5544c1
 
5544c1
-static inline uint32_t cc_calc_subu_64(CPUS390XState *env, uint64_t a1, uint64_t a2,
5544c1
-                                       uint64_t ar)
5544c1
+static inline uint32_t cc_calc_subu_64(CPUS390XState *env, uint64_t a1,
5544c1
+                                       uint64_t a2, uint64_t ar)
5544c1
 {
5544c1
     if (ar == 0) {
5544c1
         return 2;
5544c1
@@ -1982,8 +2036,8 @@ static inline uint32_t cc_calc_comp_64(CPUS390XState *env, int64_t dst)
5544c1
 }
5544c1
 
5544c1
 
5544c1
-static inline uint32_t cc_calc_add_32(CPUS390XState *env, int32_t a1, int32_t a2,
5544c1
-                                      int32_t ar)
5544c1
+static inline uint32_t cc_calc_add_32(CPUS390XState *env, int32_t a1,
5544c1
+                                      int32_t a2, int32_t ar)
5544c1
 {
5544c1
     if ((a1 > 0 && a2 > 0 && ar < 0) || (a1 < 0 && a2 < 0 && ar > 0)) {
5544c1
         return 3; /* overflow */
5544c1
@@ -1998,26 +2052,26 @@ static inline uint32_t cc_calc_add_32(CPUS390XState *env, int32_t a1, int32_t a2
5544c1
     }
5544c1
 }
5544c1
 
5544c1
-static inline uint32_t cc_calc_addu_32(CPUS390XState *env, uint32_t a1, uint32_t a2,
5544c1
-                                       uint32_t ar)
5544c1
+static inline uint32_t cc_calc_addu_32(CPUS390XState *env, uint32_t a1,
5544c1
+                                       uint32_t a2, uint32_t ar)
5544c1
 {
5544c1
     if (ar == 0) {
5544c1
         if (a1) {
5544c1
-          return 2;
5544c1
+            return 2;
5544c1
         } else {
5544c1
-          return 0;
5544c1
+            return 0;
5544c1
         }
5544c1
     } else {
5544c1
         if (ar < a1 || ar < a2) {
5544c1
-          return 3;
5544c1
+            return 3;
5544c1
         } else {
5544c1
-          return 1;
5544c1
+            return 1;
5544c1
         }
5544c1
     }
5544c1
 }
5544c1
 
5544c1
-static inline uint32_t cc_calc_sub_32(CPUS390XState *env, int32_t a1, int32_t a2,
5544c1
-                                      int32_t ar)
5544c1
+static inline uint32_t cc_calc_sub_32(CPUS390XState *env, int32_t a1,
5544c1
+                                      int32_t a2, int32_t ar)
5544c1
 {
5544c1
     if ((a1 > 0 && a2 < 0 && ar < 0) || (a1 < 0 && a2 > 0 && ar > 0)) {
5544c1
         return 3; /* overflow */
5544c1
@@ -2032,8 +2086,8 @@ static inline uint32_t cc_calc_sub_32(CPUS390XState *env, int32_t a1, int32_t a2
5544c1
     }
5544c1
 }
5544c1
 
5544c1
-static inline uint32_t cc_calc_subu_32(CPUS390XState *env, uint32_t a1, uint32_t a2,
5544c1
-                                       uint32_t ar)
5544c1
+static inline uint32_t cc_calc_subu_32(CPUS390XState *env, uint32_t a1,
5544c1
+                                       uint32_t a2, uint32_t ar)
5544c1
 {
5544c1
     if (ar == 0) {
5544c1
         return 2;
5544c1
@@ -2076,11 +2130,12 @@ static inline uint32_t cc_calc_comp_32(CPUS390XState *env, int32_t dst)
5544c1
 }
5544c1
 
5544c1
 /* calculate condition code for insert character under mask insn */
5544c1
-static inline uint32_t cc_calc_icm_32(CPUS390XState *env, uint32_t mask, uint32_t val)
5544c1
+static inline uint32_t cc_calc_icm_32(CPUS390XState *env, uint32_t mask,
5544c1
+                                      uint32_t val)
5544c1
 {
5544c1
-    HELPER_LOG("%s: mask 0x%x val %d\n", __FUNCTION__, mask, val);
5544c1
     uint32_t cc;
5544c1
 
5544c1
+    HELPER_LOG("%s: mask 0x%x val %d\n", __func__, mask, val);
5544c1
     if (mask == 0xf) {
5544c1
         if (!val) {
5544c1
             return 0;
5544c1
@@ -2107,7 +2162,8 @@ static inline uint32_t cc_calc_icm_32(CPUS390XState *env, uint32_t mask, uint32_
5544c1
     return cc;
5544c1
 }
5544c1
 
5544c1
-static inline uint32_t cc_calc_slag(CPUS390XState *env, uint64_t src, uint64_t shift)
5544c1
+static inline uint32_t cc_calc_slag(CPUS390XState *env, uint64_t src,
5544c1
+                                    uint64_t shift)
5544c1
 {
5544c1
     uint64_t mask = ((1ULL << shift) - 1ULL) << (64 - shift);
5544c1
     uint64_t match, r;
5544c1
@@ -2136,8 +2192,8 @@ static inline uint32_t cc_calc_slag(CPUS390XState *env, uint64_t src, uint64_t s
5544c1
 }
5544c1
 
5544c1
 
5544c1
-static inline uint32_t do_calc_cc(CPUS390XState *env, uint32_t cc_op, uint64_t src,
5544c1
-                                  uint64_t dst, uint64_t vr)
5544c1
+static inline uint32_t do_calc_cc(CPUS390XState *env, uint32_t cc_op,
5544c1
+                                  uint64_t src, uint64_t dst, uint64_t vr)
5544c1
 {
5544c1
     uint32_t r = 0;
5544c1
 
5544c1
@@ -2244,7 +2300,7 @@ static inline uint32_t do_calc_cc(CPUS390XState *env, uint32_t cc_op, uint64_t s
5544c1
         cpu_abort(env, "Unknown CC operation: %s\n", cc_name(cc_op));
5544c1
     }
5544c1
 
5544c1
-    HELPER_LOG("%s: %15s 0x%016lx 0x%016lx 0x%016lx = %d\n", __FUNCTION__,
5544c1
+    HELPER_LOG("%s: %15s 0x%016lx 0x%016lx 0x%016lx = %d\n", __func__,
5544c1
                cc_name(cc_op), src, dst, vr, r);
5544c1
     return r;
5544c1
 }
5544c1
@@ -2334,6 +2390,7 @@ void HELPER(tr)(uint32_t len, uint64_t array, uint64_t trans)
5544c1
     for (i = 0; i <= len; i++) {
5544c1
         uint8_t byte = ldub(array + i);
5544c1
         uint8_t new_byte = ldub(trans + byte);
5544c1
+
5544c1
         stb(array + i, new_byte);
5544c1
     }
5544c1
 }
5544c1
@@ -2363,7 +2420,7 @@ static void program_interrupt(CPUS390XState *env, uint32_t code, int ilc)
5544c1
 }
5544c1
 
5544c1
 /*
5544c1
- * ret < 0 indicates program check, ret = 0,1,2,3 -> cc
5544c1
+ * ret < 0 indicates program check, ret = 0, 1, 2, 3 -> cc
5544c1
  */
5544c1
 int sclp_service_call(CPUS390XState *env, uint32_t sccb, uint64_t code)
5544c1
 {
5544c1
@@ -2382,24 +2439,24 @@ int sclp_service_call(CPUS390XState *env, uint32_t sccb, uint64_t code)
5544c1
         return -PGM_SPECIFICATION;
5544c1
     }
5544c1
 
5544c1
-    switch(code) {
5544c1
-        case SCLP_CMDW_READ_SCP_INFO:
5544c1
-        case SCLP_CMDW_READ_SCP_INFO_FORCED:
5544c1
-            while ((ram_size >> (20 + shift)) > 65535) {
5544c1
-                shift++;
5544c1
-            }
5544c1
-            stw_phys(sccb + SCP_MEM_CODE, ram_size >> (20 + shift));
5544c1
-            stb_phys(sccb + SCP_INCREMENT, 1 << shift);
5544c1
-            stw_phys(sccb + SCP_RESPONSE_CODE, 0x10);
5544c1
+    switch (code) {
5544c1
+    case SCLP_CMDW_READ_SCP_INFO:
5544c1
+    case SCLP_CMDW_READ_SCP_INFO_FORCED:
5544c1
+        while ((ram_size >> (20 + shift)) > 65535) {
5544c1
+            shift++;
5544c1
+        }
5544c1
+        stw_phys(sccb + SCP_MEM_CODE, ram_size >> (20 + shift));
5544c1
+        stb_phys(sccb + SCP_INCREMENT, 1 << shift);
5544c1
+        stw_phys(sccb + SCP_RESPONSE_CODE, 0x10);
5544c1
 
5544c1
-            s390_sclp_extint(sccb & ~3);
5544c1
-            break;
5544c1
-        default:
5544c1
+        s390_sclp_extint(sccb & ~3);
5544c1
+        break;
5544c1
+    default:
5544c1
 #ifdef DEBUG_HELPER
5544c1
-            printf("KVM: invalid sclp call 0x%x / 0x%" PRIx64 "x\n", sccb, code);
5544c1
+        printf("KVM: invalid sclp call 0x%x / 0x%" PRIx64 "x\n", sccb, code);
5544c1
 #endif
5544c1
-            r = 3;
5544c1
-            break;
5544c1
+        r = 3;
5544c1
+        break;
5544c1
     }
5544c1
 
5544c1
     return r;
5544c1
@@ -2479,7 +2536,7 @@ static inline uint64_t clock_value(CPUS390XState *env)
5544c1
     uint64_t time;
5544c1
 
5544c1
     time = env->tod_offset +
5544c1
-           time2tod(qemu_get_clock_ns(vm_clock) - env->tod_basetime);
5544c1
+        time2tod(qemu_get_clock_ns(vm_clock) - env->tod_basetime);
5544c1
 
5544c1
     return time;
5544c1
 }
5544c1
@@ -2503,7 +2560,6 @@ uint32_t HELPER(stcke)(uint64_t a1)
5544c1
     /* XXX programmable fields */
5544c1
     stw(a1 + 17, 0);
5544c1
 
5544c1
-
5544c1
     return 0;
5544c1
 }
5544c1
 
5544c1
@@ -2584,7 +2640,7 @@ uint32_t HELPER(stsi)(uint64_t a0, uint32_t r0, uint32_t r1)
5544c1
             ebcdic_put(sysib.model, "QEMU            ", 16);
5544c1
             ebcdic_put(sysib.sequence, "QEMU            ", 16);
5544c1
             ebcdic_put(sysib.plant, "QEMU", 4);
5544c1
-            cpu_physical_memory_rw(a0, (uint8_t*)&sysib, sizeof(sysib), 1);
5544c1
+            cpu_physical_memory_rw(a0, (uint8_t *)&sysib, sizeof(sysib), 1);
5544c1
         } else if ((sel1 == 2) && (sel2 == 1)) {
5544c1
             /* Basic Machine CPU */
5544c1
             struct sysib_121 sysib;
5544c1
@@ -2594,7 +2650,7 @@ uint32_t HELPER(stsi)(uint64_t a0, uint32_t r0, uint32_t r1)
5544c1
             ebcdic_put(sysib.sequence, "QEMUQEMUQEMUQEMU", 16);
5544c1
             ebcdic_put(sysib.plant, "QEMU", 4);
5544c1
             stw_p(&sysib.cpu_addr, env->cpu_num);
5544c1
-            cpu_physical_memory_rw(a0, (uint8_t*)&sysib, sizeof(sysib), 1);
5544c1
+            cpu_physical_memory_rw(a0, (uint8_t *)&sysib, sizeof(sysib), 1);
5544c1
         } else if ((sel1 == 2) && (sel2 == 2)) {
5544c1
             /* Basic Machine CPUs */
5544c1
             struct sysib_122 sysib;
5544c1
@@ -2606,68 +2662,68 @@ uint32_t HELPER(stsi)(uint64_t a0, uint32_t r0, uint32_t r1)
5544c1
             stw_p(&sysib.active_cpus, 1);
5544c1
             stw_p(&sysib.standby_cpus, 0);
5544c1
             stw_p(&sysib.reserved_cpus, 0);
5544c1
-            cpu_physical_memory_rw(a0, (uint8_t*)&sysib, sizeof(sysib), 1);
5544c1
+            cpu_physical_memory_rw(a0, (uint8_t *)&sysib, sizeof(sysib), 1);
5544c1
         } else {
5544c1
             cc = 3;
5544c1
         }
5544c1
         break;
5544c1
     case STSI_LEVEL_2:
5544c1
-    {
5544c1
-        if ((sel1 == 2) && (sel2 == 1)) {
5544c1
-            /* LPAR CPU */
5544c1
-            struct sysib_221 sysib;
5544c1
-
5544c1
-            memset(&sysib, 0, sizeof(sysib));
5544c1
-            /* XXX make different for different CPUs? */
5544c1
-            ebcdic_put(sysib.sequence, "QEMUQEMUQEMUQEMU", 16);
5544c1
-            ebcdic_put(sysib.plant, "QEMU", 4);
5544c1
-            stw_p(&sysib.cpu_addr, env->cpu_num);
5544c1
-            stw_p(&sysib.cpu_id, 0);
5544c1
-            cpu_physical_memory_rw(a0, (uint8_t*)&sysib, sizeof(sysib), 1);
5544c1
-        } else if ((sel1 == 2) && (sel2 == 2)) {
5544c1
-            /* LPAR CPUs */
5544c1
-            struct sysib_222 sysib;
5544c1
-
5544c1
-            memset(&sysib, 0, sizeof(sysib));
5544c1
-            stw_p(&sysib.lpar_num, 0);
5544c1
-            sysib.lcpuc = 0;
5544c1
-            /* XXX change when SMP comes */
5544c1
-            stw_p(&sysib.total_cpus, 1);
5544c1
-            stw_p(&sysib.conf_cpus, 1);
5544c1
-            stw_p(&sysib.standby_cpus, 0);
5544c1
-            stw_p(&sysib.reserved_cpus, 0);
5544c1
-            ebcdic_put(sysib.name, "QEMU    ", 8);
5544c1
-            stl_p(&sysib.caf, 1000);
5544c1
-            stw_p(&sysib.dedicated_cpus, 0);
5544c1
-            stw_p(&sysib.shared_cpus, 0);
5544c1
-            cpu_physical_memory_rw(a0, (uint8_t*)&sysib, sizeof(sysib), 1);
5544c1
-        } else {
5544c1
-            cc = 3;
5544c1
+        {
5544c1
+            if ((sel1 == 2) && (sel2 == 1)) {
5544c1
+                /* LPAR CPU */
5544c1
+                struct sysib_221 sysib;
5544c1
+
5544c1
+                memset(&sysib, 0, sizeof(sysib));
5544c1
+                /* XXX make different for different CPUs? */
5544c1
+                ebcdic_put(sysib.sequence, "QEMUQEMUQEMUQEMU", 16);
5544c1
+                ebcdic_put(sysib.plant, "QEMU", 4);
5544c1
+                stw_p(&sysib.cpu_addr, env->cpu_num);
5544c1
+                stw_p(&sysib.cpu_id, 0);
5544c1
+                cpu_physical_memory_rw(a0, (uint8_t *)&sysib, sizeof(sysib), 1);
5544c1
+            } else if ((sel1 == 2) && (sel2 == 2)) {
5544c1
+                /* LPAR CPUs */
5544c1
+                struct sysib_222 sysib;
5544c1
+
5544c1
+                memset(&sysib, 0, sizeof(sysib));
5544c1
+                stw_p(&sysib.lpar_num, 0);
5544c1
+                sysib.lcpuc = 0;
5544c1
+                /* XXX change when SMP comes */
5544c1
+                stw_p(&sysib.total_cpus, 1);
5544c1
+                stw_p(&sysib.conf_cpus, 1);
5544c1
+                stw_p(&sysib.standby_cpus, 0);
5544c1
+                stw_p(&sysib.reserved_cpus, 0);
5544c1
+                ebcdic_put(sysib.name, "QEMU    ", 8);
5544c1
+                stl_p(&sysib.caf, 1000);
5544c1
+                stw_p(&sysib.dedicated_cpus, 0);
5544c1
+                stw_p(&sysib.shared_cpus, 0);
5544c1
+                cpu_physical_memory_rw(a0, (uint8_t *)&sysib, sizeof(sysib), 1);
5544c1
+            } else {
5544c1
+                cc = 3;
5544c1
+            }
5544c1
+            break;
5544c1
         }
5544c1
-        break;
5544c1
-    }
5544c1
     case STSI_LEVEL_3:
5544c1
-    {
5544c1
-        if ((sel1 == 2) && (sel2 == 2)) {
5544c1
-            /* VM CPUs */
5544c1
-            struct sysib_322 sysib;
5544c1
-
5544c1
-            memset(&sysib, 0, sizeof(sysib));
5544c1
-            sysib.count = 1;
5544c1
-            /* XXX change when SMP comes */
5544c1
-            stw_p(&sysib.vm[0].total_cpus, 1);
5544c1
-            stw_p(&sysib.vm[0].conf_cpus, 1);
5544c1
-            stw_p(&sysib.vm[0].standby_cpus, 0);
5544c1
-            stw_p(&sysib.vm[0].reserved_cpus, 0);
5544c1
-            ebcdic_put(sysib.vm[0].name, "KVMguest", 8);
5544c1
-            stl_p(&sysib.vm[0].caf, 1000);
5544c1
-            ebcdic_put(sysib.vm[0].cpi, "KVM/Linux       ", 16);
5544c1
-            cpu_physical_memory_rw(a0, (uint8_t*)&sysib, sizeof(sysib), 1);
5544c1
-        } else {
5544c1
-            cc = 3;
5544c1
+        {
5544c1
+            if ((sel1 == 2) && (sel2 == 2)) {
5544c1
+                /* VM CPUs */
5544c1
+                struct sysib_322 sysib;
5544c1
+
5544c1
+                memset(&sysib, 0, sizeof(sysib));
5544c1
+                sysib.count = 1;
5544c1
+                /* XXX change when SMP comes */
5544c1
+                stw_p(&sysib.vm[0].total_cpus, 1);
5544c1
+                stw_p(&sysib.vm[0].conf_cpus, 1);
5544c1
+                stw_p(&sysib.vm[0].standby_cpus, 0);
5544c1
+                stw_p(&sysib.vm[0].reserved_cpus, 0);
5544c1
+                ebcdic_put(sysib.vm[0].name, "KVMguest", 8);
5544c1
+                stl_p(&sysib.vm[0].caf, 1000);
5544c1
+                ebcdic_put(sysib.vm[0].cpi, "KVM/Linux       ", 16);
5544c1
+                cpu_physical_memory_rw(a0, (uint8_t *)&sysib, sizeof(sysib), 1);
5544c1
+            } else {
5544c1
+                cc = 3;
5544c1
+            }
5544c1
+            break;
5544c1
         }
5544c1
-        break;
5544c1
-    }
5544c1
     case STSI_LEVEL_CURRENT:
5544c1
         env->regs[0] = STSI_LEVEL_3;
5544c1
         break;
5544c1
@@ -2781,6 +2837,7 @@ uint32_t HELPER(rrbe)(uint32_t r1, uint64_t r2)
5544c1
 {
5544c1
     uint8_t re;
5544c1
     uint8_t key;
5544c1
+
5544c1
     if (r2 > ram_size) {
5544c1
         return 0;
5544c1
     }
5544c1
@@ -2865,7 +2922,7 @@ static uint32_t mvc_asc(int64_t l, uint64_t a1, uint64_t mode1, uint64_t a2,
5544c1
 uint32_t HELPER(mvcs)(uint64_t l, uint64_t a1, uint64_t a2)
5544c1
 {
5544c1
     HELPER_LOG("%s: %16" PRIx64 " %16" PRIx64 " %16" PRIx64 "\n",
5544c1
-               __FUNCTION__, l, a1, a2);
5544c1
+               __func__, l, a1, a2);
5544c1
 
5544c1
     return mvc_asc(l, a1, PSW_ASC_SECONDARY, a2, PSW_ASC_PRIMARY);
5544c1
 }
5544c1
@@ -2873,7 +2930,7 @@ uint32_t HELPER(mvcs)(uint64_t l, uint64_t a1, uint64_t a2)
5544c1
 uint32_t HELPER(mvcp)(uint64_t l, uint64_t a1, uint64_t a2)
5544c1
 {
5544c1
     HELPER_LOG("%s: %16" PRIx64 " %16" PRIx64 " %16" PRIx64 "\n",
5544c1
-               __FUNCTION__, l, a1, a2);
5544c1
+               __func__, l, a1, a2);
5544c1
 
5544c1
     return mvc_asc(l, a1, PSW_ASC_PRIMARY, a2, PSW_ASC_SECONDARY);
5544c1
 }
5544c1
@@ -2883,9 +2940,9 @@ uint32_t HELPER(sigp)(uint64_t order_code, uint32_t r1, uint64_t cpu_addr)
5544c1
     int cc = 0;
5544c1
 
5544c1
     HELPER_LOG("%s: %016" PRIx64 " %08x %016" PRIx64 "\n",
5544c1
-               __FUNCTION__, order_code, r1, cpu_addr);
5544c1
+               __func__, order_code, r1, cpu_addr);
5544c1
 
5544c1
-    /* Remember: Use "R1 or R1+1, whichever is the odd-numbered register"
5544c1
+    /* Remember: Use "R1 or R1 + 1, whichever is the odd-numbered register"
5544c1
        as parameter (input). Status (output) is always R1. */
5544c1
 
5544c1
     switch (order_code) {
5544c1
@@ -2901,7 +2958,7 @@ uint32_t HELPER(sigp)(uint64_t order_code, uint32_t r1, uint64_t cpu_addr)
5544c1
         env->regs[r1] &= 0xffffffff00000000ULL;
5544c1
         cc = 1;
5544c1
         break;
5544c1
-#if !defined (CONFIG_USER_ONLY)
5544c1
+#if !defined(CONFIG_USER_ONLY)
5544c1
     case SIGP_RESTART:
5544c1
         qemu_system_reset_request();
5544c1
         cpu_loop_exit(env);
5544c1
@@ -2922,7 +2979,7 @@ uint32_t HELPER(sigp)(uint64_t order_code, uint32_t r1, uint64_t cpu_addr)
5544c1
 
5544c1
 void HELPER(sacf)(uint64_t a1)
5544c1
 {
5544c1
-    HELPER_LOG("%s: %16" PRIx64 "\n", __FUNCTION__, a1);
5544c1
+    HELPER_LOG("%s: %16" PRIx64 "\n", __func__, a1);
5544c1
 
5544c1
     switch (a1 & 0xf00) {
5544c1
     case 0x000:
5544c1
@@ -2953,13 +3010,13 @@ void HELPER(ipte)(uint64_t pte_addr, uint64_t vaddr)
5544c1
     /* XXX broadcast to other CPUs */
5544c1
 
5544c1
     /* XXX Linux is nice enough to give us the exact pte address.
5544c1
-           According to spec we'd have to find it out ourselves */
5544c1
+       According to spec we'd have to find it out ourselves */
5544c1
     /* XXX Linux is fine with overwriting the pte, the spec requires
5544c1
-           us to only set the invalid bit */
5544c1
+       us to only set the invalid bit */
5544c1
     stq_phys(pte_addr, pte | _PAGE_INVALID);
5544c1
 
5544c1
     /* XXX we exploit the fact that Linux passes the exact virtual
5544c1
-           address here - it's not obliged to! */
5544c1
+       address here - it's not obliged to! */
5544c1
     tlb_flush_page(env, page);
5544c1
 
5544c1
     /* XXX 31-bit hack */
5544c1
@@ -3008,7 +3065,8 @@ uint32_t HELPER(lra)(uint64_t addr, uint32_t r1)
5544c1
     env->exception_index = old_exc;
5544c1
 
5544c1
     if (!(env->psw.mask & PSW_MASK_64)) {
5544c1
-        env->regs[r1] = (env->regs[r1] & 0xffffffff00000000ULL) | (ret & 0xffffffffULL);
5544c1
+        env->regs[r1] = (env->regs[r1] & 0xffffffff00000000ULL) |
5544c1
+            (ret & 0xffffffffULL);
5544c1
     } else {
5544c1
         env->regs[r1] = ret;
5544c1
     }
5544c1
-- 
5544c1
1.7.12.1
5544c1