From 907759f9979d512eb072b8c31c921a78e44b8aa9 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 18 Jul 2017 10:02:49 -1000 Subject: target/sh4: Implement fpchg Reviewed-by: Aurelien Jarno Signed-off-by: Richard Henderson Message-Id: <20170718200255.31647-25-rth@twiddle.net> Signed-off-by: Aurelien Jarno --- target/sh4/translate.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'target/sh4/translate.c') diff --git a/target/sh4/translate.c b/target/sh4/translate.c index 6362a4781e..1ed0349374 100644 --- a/target/sh4/translate.c +++ b/target/sh4/translate.c @@ -480,6 +480,11 @@ static void _decode_opc(DisasContext * ctx) tcg_gen_xori_i32(cpu_fpscr, cpu_fpscr, FPSCR_SZ); ctx->bstate = BS_STOP; return; + case 0xf7fd: /* fpchg */ + CHECK_SH4A + tcg_gen_xori_i32(cpu_fpscr, cpu_fpscr, FPSCR_PR); + ctx->bstate = BS_STOP; + return; case 0x0009: /* nop */ return; case 0x001b: /* sleep */ -- cgit v1.2.3