Commit 59aa3bbf9f6ca12acabe1759b9eab25162f9d945

Authored by balrog
1 parent ff9cf2cb

Remove unintended dereference, kills a warning (Jan Kiszka).


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4875 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
target-sh4/op.c
... ... @@ -594,8 +594,8 @@ void OPPROTO op_shlr16_Rn(void)
594 594  
595 595 void OPPROTO op_tasb_rN(void)
596 596 {
597   - cond_t(*(int8_t *) env->gregs[PARAM1] == 0);
598   - *(int8_t *) env->gregs[PARAM1] |= 0x80;
  597 + cond_t((env->gregs[PARAM1] && 0xff) == 0);
  598 + *(int8_t *) &env->gregs[PARAM1] |= 0x80;
599 599 RETURN();
600 600 }
601 601  
... ...