mirror of
https://github.com/qemu/qemu.git
synced 2024-12-16 16:53:28 +08:00
target/sh4: Add missing FPSCR.PR == 0 checks
Both frchg and fschg require PR == 0, otherwise undefined_operation. Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net> Message-Id: <20170718200255.31647-26-rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
907759f997
commit
61dedf2af7
@ -473,10 +473,12 @@ static void _decode_opc(DisasContext * ctx)
|
||||
tcg_gen_movi_i32(cpu_sr_t, 1);
|
||||
return;
|
||||
case 0xfbfd: /* frchg */
|
||||
CHECK_FPSCR_PR_0
|
||||
tcg_gen_xori_i32(cpu_fpscr, cpu_fpscr, FPSCR_FR);
|
||||
ctx->bstate = BS_STOP;
|
||||
return;
|
||||
case 0xf3fd: /* fschg */
|
||||
CHECK_FPSCR_PR_0
|
||||
tcg_gen_xori_i32(cpu_fpscr, cpu_fpscr, FPSCR_SZ);
|
||||
ctx->bstate = BS_STOP;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user