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
This commit is contained in:
ths 2007-05-13 16:35:35 +00:00
parent f09111e088
commit a5d251bd7e

View File

@ -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();
}