diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2024-01-29 11:37:54 +1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2024-02-03 16:46:10 +1000 |
| commit | a120d32097910edfc1612c604836582c3a4b83c6 (patch) | |
| tree | 5825ea99713119a574477988b1673b52103598bd /target/i386/cpu.c | |
| parent | 68283ff4b48344fb996384f0481b3d8d72c830fe (diff) | |
| download | focaccia-qemu-a120d32097910edfc1612c604836582c3a4b83c6.tar.gz focaccia-qemu-a120d32097910edfc1612c604836582c3a4b83c6.zip | |
include/exec: Implement cpu_mmu_index generically
For user-only mode, use MMU_USER_IDX. For system mode, use CPUClass.mmu_index. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/i386/cpu.c')
| -rw-r--r-- | target/i386/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 280bcb7d00..ef46755a50 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -7720,7 +7720,7 @@ static bool x86_cpu_has_work(CPUState *cs) return x86_cpu_pending_interrupt(cs, cs->interrupt_request) != 0; } -int x86_cpu_mmu_index(CPUState *cs, bool ifetch) +static int x86_cpu_mmu_index(CPUState *cs, bool ifetch) { CPUX86State *env = cpu_env(cs); |