diff options
author | Emilio G. Cota <cota@braap.org> | 2017-07-19 20:08:38 -0400 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2017-10-24 13:53:42 -0700 |
commit | 671f9a85d85ea7523707f88dffa9428ed4a19f75 (patch) | |
tree | 6f82b546a1bed55152e8ae6cd073037d9e010f96 /target/sh4 | |
parent | 6476615d385eb249105b25873ef30ba4b9c808dc (diff) | |
download | qemu-671f9a85d85ea7523707f88dffa9428ed4a19f75.zip qemu-671f9a85d85ea7523707f88dffa9428ed4a19f75.tar.gz qemu-671f9a85d85ea7523707f88dffa9428ed4a19f75.tar.bz2 |
target/sh4: check CF_PARALLEL instead of parallel_cpus
Thereby decoupling the resulting translated code from the current state
of the system.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/sh4')
-rw-r--r-- | target/sh4/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/sh4/translate.c b/target/sh4/translate.c index 33176c9..f918bae 100644 --- a/target/sh4/translate.c +++ b/target/sh4/translate.c @@ -521,7 +521,7 @@ static void _decode_opc(DisasContext * ctx) /* Detect the start of a gUSA region. If so, update envflags and end the TB. This will allow us to see the end of the region (stored in R0) in the next TB. */ - if (B11_8 == 15 && B7_0s < 0 && parallel_cpus) { + if (B11_8 == 15 && B7_0s < 0 && (tb_cflags(ctx->tb) & CF_PARALLEL)) { ctx->envflags = deposit32(ctx->envflags, GUSA_SHIFT, 8, B7_0s); ctx->bstate = BS_STOP; } |