[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v14 25/25] icount: clean up cpu_can_io before jumpin
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v14 25/25] icount: clean up cpu_can_io before jumping to the next block |
Date: |
Fri, 15 Mar 2019 15:10:43 +0300 |
User-agent: |
StGit/0.17.1-dirty |
Most of IO instructions can be executed only at the end of the block in
icount mode. Therefore translator can set cpu_can_io flag when translating
the last instruction.
But when the blocks are chained, then this flag is not reset and may
remain set at the beginning of the next block.
This patch resets the flag before "chaining" the translation blocks.
Signed-off-by: Pavel Dovgalyuk <address@hidden>
---
accel/tcg/tcg-runtime.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/accel/tcg/tcg-runtime.c b/accel/tcg/tcg-runtime.c
index d0d4484406..5871f5aba2 100644
--- a/accel/tcg/tcg-runtime.c
+++ b/accel/tcg/tcg-runtime.c
@@ -151,6 +151,8 @@ void *HELPER(lookup_tb_ptr)(CPUArchState *env)
target_ulong cs_base, pc;
uint32_t flags;
+ /* We are going to jump to the next block. can_do_io should be reset */
+ cpu->can_do_io = !use_icount;
tb = tb_lookup__cpu_state(cpu, &pc, &cs_base, &flags, curr_cflags());
if (tb == NULL) {
return tcg_ctx->code_gen_epilogue;
- [Qemu-devel] [PATCH v14 00/25] Fixing record/replay and adding reverse debugging, Pavel Dovgalyuk, 2019/03/15
- Re: [Qemu-devel] [PATCH v14 00/25] Fixing record/replay and adding reverse debugging, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 22/25] util/qemu-timer: refactor deadline calculation for external timers, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 23/25] replay: fix replay shutdown, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 25/25] icount: clean up cpu_can_io before jumping to the next block,
Pavel Dovgalyuk <=
- [Qemu-devel] [PATCH v14 13/25] replay: implement replay-seek command, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 14/25] replay: refine replay-time module, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 06/25] replay: finish record/replay before closing the disks, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 21/25] replay: document development rules, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 10/25] qapi: introduce replay.json for record/replay-related stuff, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 09/25] replay: provide an accessor for rr filename, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 18/25] replay: describe reverse debugging in docs/replay.txt, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 15/25] replay: flush rr queue before loading the vmstate, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 04/25] replay: update docs for record/replay with block devices, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 11/25] replay: introduce info hmp/qmp command, Pavel Dovgalyuk, 2019/03/15