summary refs log tree commit diff stats
path: root/include/exec/translator.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-04-06 10:42:10 -1000
committerRichard Henderson <richard.henderson@linaro.org>2024-04-09 07:45:05 -1000
commite7face702ac1e98109dbfde557e7974ea04a295d (patch)
tree9d2a94775bf925353b4a64342f6e3b85c3238fc4 /include/exec/translator.h
parent07843f75fdaff26950e4ddfd5d03556915fee1a7 (diff)
downloadfocaccia-qemu-e7face702ac1e98109dbfde557e7974ea04a295d.tar.gz
focaccia-qemu-e7face702ac1e98109dbfde557e7974ea04a295d.zip
accel/tcg: Add insn_start to DisasContextBase
This is currently target-specific for many; begin making it
target independent.

Tested-by: Jørgen Hansen <Jorgen.Hansen@wdc.com>
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/exec/translator.h b/include/exec/translator.h
index 51624feb10..ceaeca8c91 100644
--- a/include/exec/translator.h
+++ b/include/exec/translator.h
@@ -74,6 +74,8 @@ typedef enum DisasJumpType {
  * @singlestep_enabled: "Hardware" single stepping enabled.
  * @saved_can_do_io: Known value of cpu->neg.can_do_io, or -1 for unknown.
  * @plugin_enabled: TCG plugin enabled in this TB.
+ * @insn_start: The last op emitted by the insn_start hook,
+ *              which is expected to be INDEX_op_insn_start.
  *
  * Architecture-agnostic disassembly context.
  */
@@ -87,6 +89,7 @@ typedef struct DisasContextBase {
     bool singlestep_enabled;
     int8_t saved_can_do_io;
     bool plugin_enabled;
+    struct TCGOp *insn_start;
     void *host_addr[2];
 } DisasContextBase;