Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/57051 )

Change subject: arch-x86: Fix some settings installed by the init interrupt.
......................................................................

arch-x86: Fix some settings installed by the init interrupt.

VMX requires that the present bit of the LDT and the TR are set, and
that the unusable bit of the TR is zero.

Change-Id: I4c4feba38d4fef11ad3b804d41dacb69cc3e6bd5
---
M src/arch/x86/faults.cc
1 file changed, 15 insertions(+), 3 deletions(-)



diff --git a/src/arch/x86/faults.cc b/src/arch/x86/faults.cc
index 09b4d99..209f3e8 100644
--- a/src/arch/x86/faults.cc
+++ b/src/arch/x86/faults.cc
@@ -256,7 +256,7 @@

     SegAttr tslAttr = 0;
     tslAttr.unusable = 1;
-    tslAttr.present = 0;
+    tslAttr.present = 1;
     tslAttr.type = 2; // LDT
     tc->setMiscReg(MISCREG_TSL, 0);
     tc->setMiscReg(MISCREG_TSL_BASE, 0);
@@ -264,8 +264,8 @@
     tc->setMiscReg(MISCREG_TSL_ATTR, tslAttr);

     SegAttr trAttr = 0;
-    trAttr.unusable = 1;
-    trAttr.present = 0;
+    trAttr.unusable = 0;
+    trAttr.present = 1;
     trAttr.type = 3; // Busy 16-bit TSS
     tc->setMiscReg(MISCREG_TR, 0);
     tc->setMiscReg(MISCREG_TR_BASE, 0);

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/57051
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I4c4feba38d4fef11ad3b804d41dacb69cc3e6bd5
Gerrit-Change-Number: 57051
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabe.bl...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to