]> git.ipfire.org Git - thirdparty/qemu.git/commit
target-i386: fix set of registers zeroed on reset
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Apr 2014 11:10:05 +0000 (13:10 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 26 Jun 2014 19:57:46 +0000 (14:57 -0500)
commit3c1162e47121d4f511cc55bc9ffdd425d172f6f8
treedbac902c7ceaf2b202f8e50738e7d7d3e3aff6c9
parent73d8965bcc7cdec00dae7912f98f0db30bd1ba1b
target-i386: fix set of registers zeroed on reset

BND0-3, BNDCFGU, BNDCFGS, BNDSTATUS were not zeroed on reset, but they
should be (Intel Instruction Set Extensions Programming Reference
319433-015, pages 9-4 and 9-6).  Same for YMM.

XCR0 should be reset to 1.

TSC and TSC_RESET were zeroed already by the memset, remove the explicit
assignments.

Cc: Andreas Faerber <afaerber@suse.de>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 05e7e819d7d159a75a46354aead95e1199b8f168)

Conflicts:
target-i386/cpu.c
target-i386/cpu.h

*removed dependency on 79e9ebeb

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-i386/cpu.c
target-i386/cpu.h