[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/33] include/hw/core: Add mmu_index to CPUClass
From: |
Richard Henderson |
Subject: |
[PATCH 01/33] include/hw/core: Add mmu_index to CPUClass |
Date: |
Tue, 30 Jan 2024 09:30:11 +1000 |
To be used after all targets have populated the hook.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/hw/core/cpu.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
index 2c284d6397..4385ce54c9 100644
--- a/include/hw/core/cpu.h
+++ b/include/hw/core/cpu.h
@@ -103,6 +103,8 @@ struct SysemuCPUOps;
* @parse_features: Callback to parse command line arguments.
* @reset_dump_flags: #CPUDumpFlags to use for reset logging.
* @has_work: Callback for checking if there is work to do.
+ * @mmu_index: Callback for choosing softmmu mmu index;
+ * may be used internally by memory_rw_debug without TCG.
* @memory_rw_debug: Callback for GDB memory access.
* @dump_state: Callback for dumping state.
* @query_cpu_fast:
@@ -150,6 +152,7 @@ struct CPUClass {
void (*parse_features)(const char *typename, char *str, Error **errp);
bool (*has_work)(CPUState *cpu);
+ int (*mmu_index)(CPUState *cpu, bool ifetch);
int (*memory_rw_debug)(CPUState *cpu, vaddr addr,
uint8_t *buf, int len, bool is_write);
void (*dump_state)(CPUState *cpu, FILE *, int flags);
--
2.34.1
- [PATCH 00/33] hw/core: Introduce CPUClass hook for mmu_index, Richard Henderson, 2024/01/29
- [PATCH 01/33] include/hw/core: Add mmu_index to CPUClass,
Richard Henderson <=
- [PATCH 02/33] target/alpha: Split out alpha_env_mmu_index, Richard Henderson, 2024/01/29
- [PATCH 03/33] target/alpha: Populate CPUClass.mmu_index, Richard Henderson, 2024/01/29
- [PATCH 04/33] target/arm: Split out arm_env_mmu_index, Richard Henderson, 2024/01/29
- [PATCH 08/33] target/cris: Populate CPUClass.mmu_index, Richard Henderson, 2024/01/29
- [PATCH 06/33] target/avr: Populate CPUClass.mmu_index, Richard Henderson, 2024/01/29