aboutsummaryrefslogtreecommitdiff
path: root/target-sh4
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-16 11:31:11 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-16 11:31:11 +0000
commit59aa3bbf9f6ca12acabe1759b9eab25162f9d945 (patch)
treeddf5d42298b10e0934231d1f10429bae2f93b050 /target-sh4
parentff9cf2cbe4fb8e865dc0e2371cedbcd7fbec8aad (diff)
downloadqemu-59aa3bbf9f6ca12acabe1759b9eab25162f9d945.zip
qemu-59aa3bbf9f6ca12acabe1759b9eab25162f9d945.tar.gz
qemu-59aa3bbf9f6ca12acabe1759b9eab25162f9d945.tar.bz2
Remove unintended dereference, kills a warning (Jan Kiszka).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4875 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4')
-rw-r--r--target-sh4/op.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sh4/op.c b/target-sh4/op.c
index ce3185e..4dc7193 100644
--- a/target-sh4/op.c
+++ b/target-sh4/op.c
@@ -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();
}