diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-11 16:56:22 -0600 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-09-23 16:55:23 -0700 |
| commit | 3014059e8faa7e4d25482710ca2c0f095441396b (patch) | |
| tree | 9054872ff65853d0b08e5bed88f2f19b39f7c89e /include/hw/core | |
| parent | a50347a4145faf6d409afd4b9b682c8b3e60854a (diff) | |
| download | focaccia-qemu-3014059e8faa7e4d25482710ca2c0f095441396b.tar.gz focaccia-qemu-3014059e8faa7e4d25482710ca2c0f095441396b.zip | |
include/hw/core/cpu: Introduce MMUIdxMap
Use a typedef instead of uint16_t directly when describing sets of mmu indexes. 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')
| -rw-r--r-- | include/hw/core/cpu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index fb788ca110..8dd83f7457 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -198,10 +198,10 @@ struct CPUClass { }; /* - * Fix the number of mmu modes to 16, which is also the maximum - * supported by the softmmu tlb api. + * Fix the number of mmu modes to 16. */ #define NB_MMU_MODES 16 +typedef uint16_t MMUIdxMap; /* Use a fully associative victim tlb of 8 entries. */ #define CPU_VTLB_SIZE 8 @@ -306,7 +306,7 @@ typedef struct CPUTLBCommon { * mmu_idx N since the last time that mmu_idx was flushed. * Protected by tlb_c.lock. */ - uint16_t dirty; + MMUIdxMap dirty; /* * Statistics. These are not lock protected, but are read and * written atomically. This allows the monitor to print a snapshot |