]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Non-functional change. Fix some overly long lines and such..
authorFlorian Krohm <florian@eich-krohm.de>
Fri, 27 Jul 2012 20:55:01 +0000 (20:55 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Fri, 27 Jul 2012 20:55:01 +0000 (20:55 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@2451

VEX/priv/guest_s390_defs.h
VEX/priv/guest_s390_helpers.c

index 573a0b7796ec3d658c24787fc80256c0eebed71f..d237a4ebe515b3650648a9bf393ac419758cae78 100644 (file)
@@ -78,7 +78,7 @@ void s390x_dirtyhelper_EX(ULong torun);
 ULong s390x_dirtyhelper_STCK(ULong *addr);
 ULong s390x_dirtyhelper_STCKF(ULong *addr);
 ULong s390x_dirtyhelper_STCKE(ULong *addr);
-ULong s390x_dirtyhelper_STFLE(VexGuestS390XState *guest_state, HWord addr);
+ULong s390x_dirtyhelper_STFLE(VexGuestS390XState *guest_state, ULong *addr);
 void  s390x_dirtyhelper_CUxy(UChar *addr, ULong data, ULong num_bytes);
 
 ULong s390_do_cu21(UInt srcvalue, UInt low_surrogate);
index a4bebaf57c69508cda98baebfc8a54f37581da2f..e1f7811f23571b5e83d4f10945c0667363c6a401 100644 (file)
@@ -244,7 +244,8 @@ s390x_dirtyhelper_EX(ULong torun)
 /*--- Dirty helper for Clock instructions                  ---*/
 /*------------------------------------------------------------*/
 #if defined(VGA_s390x)
-ULong s390x_dirtyhelper_STCK(ULong *addr)
+ULong
+s390x_dirtyhelper_STCK(ULong *addr)
 {
    int cc;
 
@@ -255,7 +256,8 @@ ULong s390x_dirtyhelper_STCK(ULong *addr)
    return cc;
 }
 
-ULong s390x_dirtyhelper_STCKE(ULong *addr)
+ULong
+s390x_dirtyhelper_STCKE(ULong *addr)
 {
    int cc;
 
@@ -287,7 +289,7 @@ ULong s390x_dirtyhelper_STCKE(ULong *addr) {return 3;}
 /*------------------------------------------------------------*/
 #if defined(VGA_s390x)
 ULong
-s390x_dirtyhelper_STFLE(VexGuestS390XState *guest_state, HWord addr)
+s390x_dirtyhelper_STFLE(VexGuestS390XState *guest_state, ULong *addr)
 {
    ULong hoststfle[S390_NUM_FACILITY_DW], cc, num_dw, i;
    register ULong reg0 asm("0") = guest_state->guest_r0 & 0xF;  /* r0[56:63] */
@@ -308,7 +310,7 @@ s390x_dirtyhelper_STFLE(VexGuestS390XState *guest_state, HWord addr)
    guest_state->guest_r0 = reg0;
 
    for (i = 0; i < num_dw; ++i)
-      ((ULong *)addr)[i] = hoststfle[i];
+      addr[i] = hoststfle[i];
 
    return cc;
 }
@@ -316,7 +318,7 @@ s390x_dirtyhelper_STFLE(VexGuestS390XState *guest_state, HWord addr)
 #else
 
 ULong
-s390x_dirtyhelper_STFLE(VexGuestS390XState *guest_state, HWord addr)
+s390x_dirtyhelper_STFLE(VexGuestS390XState *guest_state, ULong *addr)
 {
    return 3;
 }
@@ -360,7 +362,7 @@ ULong
 s390_do_cu21(UInt srcval, UInt low_surrogate)
 {
    ULong retval = 0;   // shut up gcc
-   UInt b1, b2 , b3 , b4, num_bytes, invalid_low_surrogate = 0;
+   UInt b1, b2, b3, b4, num_bytes, invalid_low_surrogate = 0;
 
    srcval &= 0xffff;
 
@@ -708,17 +710,17 @@ s390_calculate_cc(ULong cc_op, ULong cc_dep1, ULong cc_dep2, ULong cc_ndep)
    case S390_CC_OP_LOAD_POSITIVE_32:
       __asm__ volatile (
            "lpr  %[result],%[op]\n\t"
-           "ipm  %[psw]\n\t"            : [psw] "=d"(psw), [result] "=d"(cc_dep1)
-                                        : [op] "d"(cc_dep1)
-                                        : "cc");
+           "ipm  %[psw]\n\t"         : [psw] "=d"(psw), [result] "=d"(cc_dep1)
+                                     : [op] "d"(cc_dep1)
+                                     : "cc");
       return psw >> 28;   /* cc */
 
    case S390_CC_OP_LOAD_POSITIVE_64:
       __asm__ volatile (
            "lpgr %[result],%[op]\n\t"
-           "ipm  %[psw]\n\t"            : [psw] "=d"(psw), [result] "=d"(cc_dep1)
-                                        : [op] "d"(cc_dep1)
-                                        : "cc");
+           "ipm  %[psw]\n\t"         : [psw] "=d"(psw), [result] "=d"(cc_dep1)
+                                     : [op] "d"(cc_dep1)
+                                     : "cc");
       return psw >> 28;   /* cc */
 
    case S390_CC_OP_TEST_UNDER_MASK_8: {
@@ -766,7 +768,8 @@ s390_calculate_cc(ULong cc_op, ULong cc_dep1, ULong cc_dep2, ULong cc_ndep)
            "lr   2,%[high]\n\t"
            "lr   3,%[low]\n\t"
            "slda 2,0(%[amount])\n\t"
-           "ipm %[psw]\n\t"             : [psw] "=d"(psw), [high] "+d"(high), [low] "+d"(low)
+           "ipm %[psw]\n\t"             : [psw] "=d"(psw), [high] "+d"(high),
+                                          [low] "+d"(low)
                                         : [amount] "a"(cc_dep2)
                                         : "cc", "r2", "r3");
       return psw >> 28;   /* cc */