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

Change subject: x86: Set the effective base of the TSS when initializing a process.
......................................................................

x86: Set the effective base of the TSS when initializing a process.

For some segments, there are two base registers. One is the
architecturally visible base, and the other is the effective base used
when actually referencing memory relative to that segment. The process
initialization code was setting the architecturally visible base,
presumably because that's the value used by KVM, but was setting the
effective base to zero.

Change-Id: I06e079f24fa63f0051268437bf00c14578f62612
---
M src/arch/x86/process.cc
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc
index b2df546..ce0e6e3 100644
--- a/src/arch/x86/process.cc
+++ b/src/arch/x86/process.cc
@@ -321,7 +321,7 @@

         tc->setMiscReg(MISCREG_TR, tssSel);
         tc->setMiscReg(MISCREG_TR_BASE, tss_base_addr);
-        tc->setMiscReg(MISCREG_TR_EFF_BASE, 0);
+        tc->setMiscReg(MISCREG_TR_EFF_BASE, tss_base_addr);
         tc->setMiscReg(MISCREG_TR_LIMIT, tss_limit);
         tc->setMiscReg(MISCREG_TR_ATTR, tss_attr);


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/38488
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: I06e079f24fa63f0051268437bf00c14578f62612
Gerrit-Change-Number: 38488
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