[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 20/25] accel/tcg: Add plugin_enabled to DisasContextBase
From: |
Alex Bennée |
Subject: |
[PATCH 20/25] accel/tcg: Add plugin_enabled to DisasContextBase |
Date: |
Mon, 9 Oct 2023 17:40:59 +0100 |
From: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230824181233.1568795-2-richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
include/exec/translator.h | 2 ++
accel/tcg/translator.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/include/exec/translator.h b/include/exec/translator.h
index 9d9e980819..6d3f59d095 100644
--- a/include/exec/translator.h
+++ b/include/exec/translator.h
@@ -73,6 +73,7 @@ typedef enum DisasJumpType {
* @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.
+ * @plugin_enabled: TCG plugin enabled in this TB.
*
* Architecture-agnostic disassembly context.
*/
@@ -85,6 +86,7 @@ typedef struct DisasContextBase {
int max_insns;
bool singlestep_enabled;
int8_t saved_can_do_io;
+ bool plugin_enabled;
void *host_addr[2];
} DisasContextBase;
diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c
index e7abcd86c1..c5da7b32a5 100644
--- a/accel/tcg/translator.c
+++ b/accel/tcg/translator.c
@@ -158,6 +158,7 @@ void translator_loop(CPUState *cpu, TranslationBlock *tb,
int *max_insns,
} else {
plugin_enabled = plugin_gen_tb_start(cpu, db, false);
}
+ db->plugin_enabled = plugin_enabled;
while (true) {
*max_insns = ++db->num_insns;
--
2.39.2
- [PATCH 23/25] contrib/plugins: fix coverity warning in cache, (continued)
- [PATCH 23/25] contrib/plugins: fix coverity warning in cache, Alex Bennée, 2023/10/09
- [PATCH 11/25] contrib/plugins: Use GRWLock in execlog, Alex Bennée, 2023/10/09
- [PATCH 12/25] gdbstub: Introduce GDBFeature structure, Alex Bennée, 2023/10/09
- [PATCH 25/25] contrib/plugins: fix coverity warning in hotblocks, Alex Bennée, 2023/10/09
- [PATCH 19/25] gdbstub: Replace gdb_regs with an array, Alex Bennée, 2023/10/09
- [PATCH 22/25] plugins: Set final instruction count in plugin_gen_tb_end, Alex Bennée, 2023/10/09
- [PATCH 15/25] gdbstub: Use g_markup_printf_escaped(), Alex Bennée, 2023/10/09
- [PATCH 21/25] target/sh4: Disable decode_gusa when plugins enabled, Alex Bennée, 2023/10/09
- [PATCH 20/25] accel/tcg: Add plugin_enabled to DisasContextBase,
Alex Bennée <=
- [PATCH 16/25] target/arm: Remove references to gdb_has_xml, Alex Bennée, 2023/10/09
- [PATCH 17/25] target/ppc: Remove references to gdb_has_xml, Alex Bennée, 2023/10/09
- [PATCH 18/25] gdbstub: Remove gdb_has_xml variable, Alex Bennée, 2023/10/09
- [PATCH 24/25] contrib/plugins: fix coverity warning in lockstep, Alex Bennée, 2023/10/09