diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-29 10:43:44 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-17 19:00:55 +0200 |
| commit | 3efe1a0f604cb7c4afd0381294acbdec75c65325 (patch) | |
| tree | 187ee6a57a8766ccc22bb3d3278fabf8581a153a | |
| parent | a445d3b85c4119aac7ecb7771b5da0709ee1f1a4 (diff) | |
| download | focaccia-qemu-3efe1a0f604cb7c4afd0381294acbdec75c65325.tar.gz focaccia-qemu-3efe1a0f604cb7c4afd0381294acbdec75c65325.zip | |
target/i386: limit a20 to system emulation
It is not used by user-mode emulation and is the only caller of cpu_interrupt() in qemu-i386 and qemu-x86_64. Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | target/i386/helper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/i386/helper.c b/target/i386/helper.c index e0aaed3c4c..651041ccfa 100644 --- a/target/i386/helper.c +++ b/target/i386/helper.c @@ -110,6 +110,7 @@ int cpu_x86_support_mca_broadcast(CPUX86State *env) /* x86 mmu */ /* XXX: add PGE support */ +#ifndef CONFIG_USER_ONLY void x86_cpu_set_a20(X86CPU *cpu, int a20_state) { CPUX86State *env = &cpu->env; @@ -129,6 +130,7 @@ void x86_cpu_set_a20(X86CPU *cpu, int a20_state) env->a20_mask = ~(1 << 20) | (a20_state << 20); } } +#endif void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0) { |