diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-13 16:35:35 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-13 16:35:35 +0000 |
commit | a5d251bd7e5ad862146f2f94d912bd52149843fa (patch) | |
tree | 607de14d8951ef197103eb66069e9864587de0b3 /target-sh4 | |
parent | f09111e0886d16425fa59ec11cfb3293095cb06c (diff) |
Remove unnecessary pointer magic in shift operations, by Magnus Damm.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2816 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4')
-rw-r--r-- | target-sh4/op.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/target-sh4/op.c b/target-sh4/op.c index 758aa53b7..1b52e8103 100644 --- a/target-sh4/op.c +++ b/target-sh4/op.c @@ -561,14 +561,14 @@ void OPPROTO op_shal_Rn(void) void OPPROTO op_shar_Rn(void) { cond_t(env->gregs[PARAM1] & 1); - *(int32_t *) & env->gregs[PARAM1] >>= 1; + env->gregs[PARAM1] >>= 1; RETURN(); } void OPPROTO op_shlr_Rn(void) { cond_t(env->gregs[PARAM1] & 1); - *(uint32_t *) & env->gregs[PARAM1] >>= 1; + env->gregs[PARAM1] >>= 1; RETURN(); } @@ -592,19 +592,19 @@ void OPPROTO op_shll16_Rn(void) void OPPROTO op_shlr2_Rn(void) { - *(uint32_t *) & env->gregs[PARAM1] >>= 2; + env->gregs[PARAM1] >>= 2; RETURN(); } void OPPROTO op_shlr8_Rn(void) { - *(uint32_t *) & env->gregs[PARAM1] >>= 8; + env->gregs[PARAM1] >>= 8; RETURN(); } void OPPROTO op_shlr16_Rn(void) { - *(uint32_t *) & env->gregs[PARAM1] >>= 16; + env->gregs[PARAM1] >>= 16; RETURN(); } |