]> xenbits.xensource.com Git - qemu-xen-4.1-testing.git/commitdiff
More PowerPC target -1 usage fixes (reservation address).
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 12 Nov 2007 00:50:50 +0000 (00:50 +0000)
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 12 Nov 2007 00:50:50 +0000 (00:50 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3627 c046a42c-6fe2-441c-8c8c-71466251a162

target-ppc/op.c
target-ppc/op_mem.h

index 621b9755027a2da7cee4c2c8c33b0f0a5b792f63..05a6de31d3928c435b148454f5667d6144b95a6b 100644 (file)
@@ -1998,7 +1998,7 @@ void OPPROTO op_fneg (void)
 void OPPROTO op_check_reservation (void)
 {
     if ((uint32_t)env->reserve == (uint32_t)(T0 & ~0x00000003))
-        env->reserve = -1;
+        env->reserve = (target_ulong)-1ULL;
     RETURN();
 }
 
index b1daf848d4157bce6d675892cce9f37f639e8302..560a0edaefbd9cc8be74c11c510491d0c384a6f6 100644 (file)
@@ -678,7 +678,7 @@ void OPPROTO glue(op_stwcx, MEMSUFFIX) (void)
             env->crf[0] = xer_so | 0x02;
         }
     }
-    env->reserve = -1;
+    env->reserve = (target_ulong)-1ULL;
     RETURN();
 }
 
@@ -695,7 +695,7 @@ void OPPROTO glue(op_stwcx_64, MEMSUFFIX) (void)
             env->crf[0] = xer_so | 0x02;
         }
     }
-    env->reserve = -1;
+    env->reserve = (target_ulong)-1ULL;
     RETURN();
 }
 
@@ -711,7 +711,7 @@ void OPPROTO glue(op_stdcx, MEMSUFFIX) (void)
             env->crf[0] = xer_so | 0x02;
         }
     }
-    env->reserve = -1;
+    env->reserve = (target_ulong)-1ULL;
     RETURN();
 }
 
@@ -727,7 +727,7 @@ void OPPROTO glue(op_stdcx_64, MEMSUFFIX) (void)
             env->crf[0] = xer_so | 0x02;
         }
     }
-    env->reserve = -1;
+    env->reserve = (target_ulong)-1ULL;
     RETURN();
 }
 #endif
@@ -744,7 +744,7 @@ void OPPROTO glue(op_stwcx_le, MEMSUFFIX) (void)
             env->crf[0] = xer_so | 0x02;
         }
     }
-    env->reserve = -1;
+    env->reserve = (target_ulong)-1ULL;
     RETURN();
 }
 
@@ -761,7 +761,7 @@ void OPPROTO glue(op_stwcx_le_64, MEMSUFFIX) (void)
             env->crf[0] = xer_so | 0x02;
         }
     }
-    env->reserve = -1;
+    env->reserve = (target_ulong)-1ULL;
     RETURN();
 }
 
@@ -777,7 +777,7 @@ void OPPROTO glue(op_stdcx_le, MEMSUFFIX) (void)
             env->crf[0] = xer_so | 0x02;
         }
     }
-    env->reserve = -1;
+    env->reserve = (target_ulong)-1ULL;
     RETURN();
 }
 
@@ -793,7 +793,7 @@ void OPPROTO glue(op_stdcx_le_64, MEMSUFFIX) (void)
             env->crf[0] = xer_so | 0x02;
         }
     }
-    env->reserve = -1;
+    env->reserve = (target_ulong)-1ULL;
     RETURN();
 }
 #endif