diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-11 17:32:37 -0600 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-09-23 16:55:28 -0700 |
| commit | 3c58ddc9d784cd65af3d5810d9d66e57900e280a (patch) | |
| tree | af52f5df9cf2ed65b0e962a4e371d3d0e4af40a0 /include/hw/core/cpu.h | |
| parent | 3014059e8faa7e4d25482710ca2c0f095441396b (diff) | |
| download | focaccia-qemu-3c58ddc9d784cd65af3d5810d9d66e57900e280a.tar.gz focaccia-qemu-3c58ddc9d784cd65af3d5810d9d66e57900e280a.zip | |
include/hw/core/cpu: Introduce cpu_tlb_fast
Encapsulate access to cpu->neg.tlb.f[] in a function. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/hw/core/cpu.h')
| -rw-r--r-- | include/hw/core/cpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 8dd83f7457..22a78c9ee1 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -602,6 +602,13 @@ static inline CPUArchState *cpu_env(CPUState *cpu) return (CPUArchState *)(cpu + 1); } +#ifdef CONFIG_TCG +static inline CPUTLBDescFast *cpu_tlb_fast(CPUState *cpu, int mmu_idx) +{ + return &cpu->neg.tlb.f[mmu_idx]; +} +#endif + typedef QTAILQ_HEAD(CPUTailQ, CPUState) CPUTailQ; extern CPUTailQ cpus_queue; |