Commit a5d251bd7e5ad862146f2f94d912bd52149843fa

Authored by ths
1 parent f09111e0

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
Showing 1 changed file with 5 additions and 5 deletions
target-sh4/op.c
@@ -561,14 +561,14 @@ void OPPROTO op_shal_Rn(void) @@ -561,14 +561,14 @@ void OPPROTO op_shal_Rn(void)
561 void OPPROTO op_shar_Rn(void) 561 void OPPROTO op_shar_Rn(void)
562 { 562 {
563 cond_t(env->gregs[PARAM1] & 1); 563 cond_t(env->gregs[PARAM1] & 1);
564 - *(int32_t *) & env->gregs[PARAM1] >>= 1; 564 + env->gregs[PARAM1] >>= 1;
565 RETURN(); 565 RETURN();
566 } 566 }
567 567
568 void OPPROTO op_shlr_Rn(void) 568 void OPPROTO op_shlr_Rn(void)
569 { 569 {
570 cond_t(env->gregs[PARAM1] & 1); 570 cond_t(env->gregs[PARAM1] & 1);
571 - *(uint32_t *) & env->gregs[PARAM1] >>= 1; 571 + env->gregs[PARAM1] >>= 1;
572 RETURN(); 572 RETURN();
573 } 573 }
574 574
@@ -592,19 +592,19 @@ void OPPROTO op_shll16_Rn(void) @@ -592,19 +592,19 @@ void OPPROTO op_shll16_Rn(void)
592 592
593 void OPPROTO op_shlr2_Rn(void) 593 void OPPROTO op_shlr2_Rn(void)
594 { 594 {
595 - *(uint32_t *) & env->gregs[PARAM1] >>= 2; 595 + env->gregs[PARAM1] >>= 2;
596 RETURN(); 596 RETURN();
597 } 597 }
598 598
599 void OPPROTO op_shlr8_Rn(void) 599 void OPPROTO op_shlr8_Rn(void)
600 { 600 {
601 - *(uint32_t *) & env->gregs[PARAM1] >>= 8; 601 + env->gregs[PARAM1] >>= 8;
602 RETURN(); 602 RETURN();
603 } 603 }
604 604
605 void OPPROTO op_shlr16_Rn(void) 605 void OPPROTO op_shlr16_Rn(void)
606 { 606 {
607 - *(uint32_t *) & env->gregs[PARAM1] >>= 16; 607 + env->gregs[PARAM1] >>= 16;
608 RETURN(); 608 RETURN();
609 } 609 }
610 610