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,9 +1569,10 @@ static void _decode_opc(DisasContext * ctx)
|
||||
else
|
||||
break;
|
||||
case 0x00ab: /* synco */
|
||||
if (ctx->features & SH_FEATURE_SH4A)
|
||||
if (ctx->features & SH_FEATURE_SH4A) {
|
||||
tcg_gen_mb(TCG_MO_ALL | TCG_BAR_SC);
|
||||
return;
|
||||
else
|
||||
}
|
||||
break;
|
||||
case 0x4024: /* rotcl Rn */
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user