summaryrefslogtreecommitdiff
path: root/target-sh4
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-13 16:35:35 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-13 16:35:35 +0000
commita5d251bd7e5ad862146f2f94d912bd52149843fa (patch)
tree607de14d8951ef197103eb66069e9864587de0b3 /target-sh4
parentf09111e0886d16425fa59ec11cfb3293095cb06c (diff)
downloadqemu-a5d251bd7e5ad862146f2f94d912bd52149843fa.zip
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.c10
1 files changed, 5 insertions, 5 deletions
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();
}