unicorn/qemu/target
Paolo Bonzini 56afe9f919 target/i386: do not set LM for 32-bit emulation '-cpu host/max'
32-bit targets by definition do not support long mode; therefore, the
bit must be masked in the features supported by the accelerator.

As a side effect, this avoids setting up the 0x80000008 CPUID leaf
for

qemu-system-i386 -cpu host

which since commit 5a140b255d ("x86/cpu: Use max host physical address
if -cpu max option is applied") would have printed this error:

qemu-system-i386: phys-bits should be between 32 and 36 (but is 48)

Backports 5ea9e9e239db83391a39c09f1de63c4099c20df5
2021-03-04 18:07:38 -05:00
..
arm cpu: move debug_check_watchpoint to tcg_ops 2021-03-04 17:30:20 -05:00
i386 target/i386: do not set LM for 32-bit emulation '-cpu host/max' 2021-03-04 18:07:38 -05:00
m68k cpu: move cc->transaction_failed to tcg_ops 2021-03-04 17:16:41 -05:00
mips cpu: move do_unaligned_access to tcg_ops 2021-03-04 17:20:02 -05:00
riscv cpu: move do_unaligned_access to tcg_ops 2021-03-04 17:20:02 -05:00
sparc cpu: move do_unaligned_access to tcg_ops 2021-03-04 17:20:02 -05:00