[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 05/15] target/sh4: fix BS_STOP exit
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] [PULL 05/15] target/sh4: fix BS_STOP exit |
Date: |
Sat, 13 May 2017 11:32:38 +0200 |
When stopping the translation because the state has changed, goto_tb
should not be used as it might link TB with different flags.
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>
---
target/sh4/translate.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index 2e29936ad8..04bc18bf7c 100644
--- a/target/sh4/translate.c
+++ b/target/sh4/translate.c
@@ -1901,8 +1901,9 @@ void gen_intermediate_code(CPUSH4State * env, struct
TranslationBlock *tb)
} else {
switch (ctx.bstate) {
case BS_STOP:
- /* gen_op_interrupt_restart(); */
- /* fall through */
+ tcg_gen_movi_i32(cpu_pc, ctx.pc);
+ tcg_gen_exit_tb(0);
+ break;
case BS_NONE:
if (ctx.envflags) {
gen_store_flags(ctx.envflags);
--
2.11.0
- [Qemu-devel] [PULL 00/15] Queued target/sh4 patches, Aurelien Jarno, 2017/05/13
- [Qemu-devel] [PULL 13/15] target/sh4: movua.l is an SH4-A only instruction, Aurelien Jarno, 2017/05/13
- [Qemu-devel] [PULL 12/15] target/sh4: implement tas.b using atomic helper, Aurelien Jarno, 2017/05/13
- [Qemu-devel] [PULL 05/15] target/sh4: fix BS_STOP exit,
Aurelien Jarno <=
- [Qemu-devel] [PULL 03/15] target/sh4: do not include DELAY_SLOT_TRUE in the TB state, Aurelien Jarno, 2017/05/13
- [Qemu-devel] [PULL 15/15] target/sh4: use cpu_loop_exit_restore, Aurelien Jarno, 2017/05/13
- [Qemu-devel] [PULL 08/15] target/sh4: fold ctx->bstate = BS_BRANCH into gen_conditional_jump, Aurelien Jarno, 2017/05/13
- [Qemu-devel] [PULL 01/15] target/sh4: split ctx->flags into ctx->tbflags and ctx->envflags, Aurelien Jarno, 2017/05/13
- [Qemu-devel] [PULL 11/15] target/sh4: generate fences for SH4, Aurelien Jarno, 2017/05/13
- [Qemu-devel] [PULL 09/15] target/sh4: optimize gen_store_fpr64, Aurelien Jarno, 2017/05/13
- [Qemu-devel] [PULL 10/15] target/sh4: optimize gen_write_sr using extract op, Aurelien Jarno, 2017/05/13
- [Qemu-devel] [PULL 06/15] target/sh4: fix BS_EXCP exit, Aurelien Jarno, 2017/05/13
- [Qemu-devel] [PULL 14/15] target/sh4: trap unaligned accesses, Aurelien Jarno, 2017/05/13
- [Qemu-devel] [PULL 02/15] target/sh4: get rid of DELAY_SLOT_CLEARME, Aurelien Jarno, 2017/05/13