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
|
else
|
||||||
break;
|
break;
|
||||||
case 0x00ab: /* synco */
|
case 0x00ab: /* synco */
|
||||||
if (ctx->features & SH_FEATURE_SH4A)
|
if (ctx->features & SH_FEATURE_SH4A) {
|
||||||
return;
|
tcg_gen_mb(TCG_MO_ALL | TCG_BAR_SC);
|
||||||
else
|
return;
|
||||||
break;
|
}
|
||||||
|
break;
|
||||||
case 0x4024: /* rotcl Rn */
|
case 0x4024: /* rotcl Rn */
|
||||||
{
|
{
|
||||||
TCGv tmp = tcg_temp_new();
|
TCGv tmp = tcg_temp_new();
|
||||||
|
|
Loading…
Reference in a new issue