Remove unintended dereference, kills a warning (Jan Kiszka).
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 16 Jul 2008 11:31:11 +0000 (11:31 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 16 Jul 2008 11:31:11 +0000 (11:31 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4875 c046a42c-6fe2-441c-8c8c-71466251a162

target-sh4/op.c

index ce3185e..4dc7193 100644 (file)
@@ -594,8 +594,8 @@ void OPPROTO op_shlr16_Rn(void)
 
 void OPPROTO op_tasb_rN(void)
 {
-    cond_t(*(int8_t *) env->gregs[PARAM1] == 0);
-    *(int8_t *) env->gregs[PARAM1] |= 0x80;
+    cond_t((env->gregs[PARAM1] && 0xff) == 0);
+    *(int8_t *) &env->gregs[PARAM1] |= 0x80;
     RETURN();
 }