summary refs log tree commit diff stats
path: root/include/exec/translator.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-09-14 08:06:14 -0700
committerRichard Henderson <richard.henderson@linaro.org>2023-09-28 10:07:32 -0700
commit0ca41ccf1c555f97873b8e02a47390fd6af4b18f (patch)
tree1e0d67976a3ad9d4402dd8cbb9297d31bd960edf /include/exec/translator.h
parent5d97e94638100fd3e5b8d76ab30e1066cd4b1823 (diff)
downloadfocaccia-qemu-0ca41ccf1c555f97873b8e02a47390fd6af4b18f.tar.gz
focaccia-qemu-0ca41ccf1c555f97873b8e02a47390fd6af4b18f.zip
accel/tcg: Track current value of can_do_io in the TB
Simplify translator_io_start by recording the current
known value of can_do_io within DisasContextBase.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec/translator.h')
-rw-r--r--include/exec/translator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/exec/translator.h b/include/exec/translator.h
index 4e17c4f401..9d9e980819 100644
--- a/include/exec/translator.h
+++ b/include/exec/translator.h
@@ -72,6 +72,7 @@ typedef enum DisasJumpType {
  * @num_insns: Number of translated instructions (including current).
  * @max_insns: Maximum number of instructions to be translated in this TB.
  * @singlestep_enabled: "Hardware" single stepping enabled.
+ * @saved_can_do_io: Known value of cpu->neg.can_do_io, or -1 for unknown.
  *
  * Architecture-agnostic disassembly context.
  */
@@ -83,6 +84,7 @@ typedef struct DisasContextBase {
     int num_insns;
     int max_insns;
     bool singlestep_enabled;
+    int8_t saved_can_do_io;
     void *host_addr[2];
 } DisasContextBase;