target/sh4: generate fences for SH4
synco is a SH4-A only instruction. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
a380f9db96
commit
aa3513176f
@ -1569,10 +1569,11 @@ static void _decode_opc(DisasContext * ctx)
|
||||
else
|
||||
break;
|
||||
case 0x00ab: /* synco */
|
||||
if (ctx->features & SH_FEATURE_SH4A)
|
||||
return;
|
||||
else
|
||||
break;
|
||||
if (ctx->features & SH_FEATURE_SH4A) {
|
||||
tcg_gen_mb(TCG_MO_ALL | TCG_BAR_SC);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case 0x4024: /* rotcl Rn */
|
||||
{
|
||||
TCGv tmp = tcg_temp_new();
|
||||
|
Loading…
Reference in New Issue
Block a user