diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-04 10:22:39 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-07 19:02:33 +0200 |
commit | 1da389c5dba3efca5de6b983cf788054880de432 (patch) | |
tree | fe7afb2c4d4721f697d3736fd249233af1b8f2dc /target/i386/cpu.c | |
parent | f05142d511e86d8e97967d21f205d990dfc634de (diff) | |
download | qemu-1da389c5dba3efca5de6b983cf788054880de432.zip qemu-1da389c5dba3efca5de6b983cf788054880de432.tar.gz qemu-1da389c5dba3efca5de6b983cf788054880de432.tar.bz2 |
target/i386: Check for USER_ONLY definition instead of SOFTMMU one
Since we *might* have user emulation with softmmu,
replace the system emulation check by !user emulation one.
(target/ was cleaned from invalid CONFIG_SOFTMMU uses at
commit cab35c73be, but these files were merged few days
after, thus missed the cleanup.)
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231004082239.27251-1-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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 ac0ae50..cec5d2b 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -719,7 +719,7 @@ void x86_cpu_vendor_words2str(char *dst, uint32_t vendor1, CPUID_7_0_EBX_HLE CPUID_7_0_EBX_INVPCID, CPUID_7_0_EBX_RTM */ -#if defined CONFIG_SOFTMMU || defined CONFIG_LINUX +#if !defined CONFIG_USER_ONLY || defined CONFIG_LINUX #define TCG_7_0_ECX_RDPID CPUID_7_0_ECX_RDPID #else #define TCG_7_0_ECX_RDPID 0 |