target-sh4/op.c:597: warning: cast to pointer from integer of different size
The warning above pointed me to some strange code. I guess this was originally indented:
Signed-off-by Jan Kiszka <[email protected]>
target-sh4/op.c +2 -2
@@ -594,8 +594,8 @@ void OPPROTO op_shlr16_Rn(void) void OPPROTO op_tasb_rN(void) { -cond_t (*(int8_t *) env->gregs[PARAM1 ] ==0 ); - *(int8_t *) env->gregs[PARAM1 ] |=0x80 ; +cond_t ((env->gregs[PARAM1 ] &0xff ) ==0 ); + *(int8_t *) &env->gregs[PARAM1 ] |=0x80 ;RETURN (); }
Quoted 10 lines · Jan Kiszka
The warning above pointed me to some strange code. I guess this was originally indented:
Signed-off-by Jan Kiszka <[email protected]>Index:
qemu/target-sh4/op.c
===================================================================
target-sh4/op.c void OPPROTO op_shlr16_Rn(void) · line 601
Quoted 10 lines
target-sh4/op.c +2
-2@@ -594,8 +594,8 @@ void OPPROTO op_shlr16_Rn(void) void OPPROTO op_tasb_rN(void) { -cond_t (*(int8_t *) env->gregs[PARAM1 ] ==0 ); - *(int8_t *) env->gregs[PARAM1 ] |=0x80 ; +cond_t ((env->gregs[PARAM1 ] &0xff ) ==0 ); + *(int8_t *) &env->gregs[PARAM1 ] |=0x80 ;RETURN (); }
Problem still exists, patch still applies - does anyone take care of this arch?
Jan