diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2017-05-01 23:20:43 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2017-05-13 11:18:26 +0200 |
commit | aa3513176f8c6f3150a9499f3d22da6c86b6b097 (patch) | |
tree | f299a0e2bc18fbd94112d79b5ef8384e1d6abfee /target | |
parent | a380f9db96dc94e5109611e4fd0fb4f671e30143 (diff) |
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>
Diffstat (limited to 'target')
-rw-r--r-- | target/sh4/translate.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/target/sh4/translate.c b/target/sh4/translate.c index 7a504a7f5a..d61b176a7d 100644 --- a/target/sh4/translate.c +++ b/target/sh4/translate.c @@ -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(); |