]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: Enable fdp-excptn-only and zero-fcs-fds
authorXiaoyao Li <xiaoyao.li@intel.com>
Wed, 14 Aug 2024 07:54:24 +0000 (03:54 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Oct 2024 10:30:21 +0000 (12:30 +0200)
commit7dddc3bb875e7141ab25931d0f30a1c319bc8457
tree826d33f5bd031b1e5448c95025209a13b05ae6ff
parent00c8a933d95add3ce4afebbe491ca0fa398a9007
target/i386: Enable fdp-excptn-only and zero-fcs-fds

- CPUID.(EAX=07H,ECX=0H):EBX[bit 6]: x87 FPU Data Pointer updated only
  on x87 exceptions if 1.

- CPUID.(EAX=07H,ECX=0H):EBX[bit 13]: Deprecates FPU CS and FPU DS
  values if 1. i.e., X87 FCS and FDS are always zero.

Define names for them so that they can be exposed to guest with -cpu host.

Also define the bit field MACROs so that named cpu models can add it as
well in the future.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20240814075431.339209-3-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h