aboutsummaryrefslogtreecommitdiff
path: root/target/i386/cpu.h
diff options
context:
space:
mode:
authorZiqiao Kong <ziqiaokong@gmail.com>2021-05-30 23:01:14 +0800
committerRichard Henderson <richard.henderson@linaro.org>2021-07-13 08:13:19 -0700
commit84abdd7d271c2df69a9d394be093efd885da7a4c (patch)
tree1e852ab71fde9fd8bb38c7e4c72ff839831b25ef /target/i386/cpu.h
parentbbdda9b74f289328e9ee7be28bb472350dc84028 (diff)
downloadqemu-84abdd7d271c2df69a9d394be093efd885da7a4c.zip
qemu-84abdd7d271c2df69a9d394be093efd885da7a4c.tar.gz
qemu-84abdd7d271c2df69a9d394be093efd885da7a4c.tar.bz2
target/i386: Correct implementation for FCS, FIP, FDS and FDP
Update FCS:FIP and FDS:FDP according to the Intel Manual Vol.1 8.1.8. Note that CPUID.(EAX=07H,ECX=0H):EBX[bit 13] is not implemented by design in this patch and will be added along with TCG features flag in a separate patch later. Signed-off-by: Ziqiao Kong <ziqiaokong@gmail.com> Message-Id: <20210530150112.74411-2-ziqiaokong@gmail.com> [rth: Push FDS/FDP handling down into mod != 3 case; free last_addr.] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/i386/cpu.h')
-rw-r--r--target/i386/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
index 8f3747d..3dc52de 100644
--- a/target/i386/cpu.h
+++ b/target/i386/cpu.h
@@ -1437,6 +1437,8 @@ typedef struct CPUX86State {
FPReg fpregs[8];
/* KVM-only so far */
uint16_t fpop;
+ uint16_t fpcs;
+ uint16_t fpds;
uint64_t fpip;
uint64_t fpdp;