From: ths Date: Sun, 13 May 2007 16:35:35 +0000 (+0000) Subject: Remove unnecessary pointer magic in shift operations, by Magnus Damm. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a5d251bd7e5ad862146f2f94d912bd52149843fa;p=qemu.git 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 --- diff --git a/target-sh4/op.c b/target-sh4/op.c index 758aa53b7c..1b52e81038 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(); }