aboutsummaryrefslogtreecommitdiff
path: root/target-i386/cpu.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-03-15 12:26:21 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2011-03-16 17:11:05 -0300
commitebda377f8c6d9a5ec69a0aeb2000aa5ce74f7fa2 (patch)
treebebb3a9b4f319af91ad7d1c70e00f74c6bb4054b /target-i386/cpu.h
parentd841b6c4f16c3fc7afe2ce355e7e42813345f053 (diff)
downloadqemu-ebda377f8c6d9a5ec69a0aeb2000aa5ce74f7fa2.zip
qemu-ebda377f8c6d9a5ec69a0aeb2000aa5ce74f7fa2.tar.gz
qemu-ebda377f8c6d9a5ec69a0aeb2000aa5ce74f7fa2.tar.bz2
x86: Properly reset PAT MSR
Conforming to the Intel spec, set the power-on value of PAT also on reset, but save it across INIT. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r--target-i386/cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index d0eae75..c7047d5 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -685,8 +685,6 @@ typedef struct CPUX86State {
uint64_t tsc;
- uint64_t pat;
-
uint64_t mcg_status;
/* exception/interrupt handling */
@@ -707,6 +705,8 @@ typedef struct CPUX86State {
CPU_COMMON
+ uint64_t pat;
+
/* processor features (e.g. for CPUID insn) */
uint32_t cpuid_level;
uint32_t cpuid_vendor1;