diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-02-27 09:23:27 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-02-27 09:23:27 -0800 |
commit | 1786f200587384d595851972b2f4b9bdd70175ac (patch) | |
tree | 0f7992c24246b4e818df8fc38913ecc29cd486cb /src/arch/x86/process.cc | |
parent | e23d688d8f7e728e694f15752cd70df84bc4ae67 (diff) | |
download | gem5-1786f200587384d595851972b2f4b9bdd70175ac.tar.xz |
X86: Set an initial value for the LDT selector.
Diffstat (limited to 'src/arch/x86/process.cc')
-rw-r--r-- | src/arch/x86/process.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc index 22030cbfa..54d5d07ab 100644 --- a/src/arch/x86/process.cc +++ b/src/arch/x86/process.cc @@ -299,6 +299,9 @@ I386LiveProcess::startup() tc->setMiscRegNoEffect(MISCREG_TSG_EFF_BASE, _gdtStart); tc->setMiscRegNoEffect(MISCREG_TSG_LIMIT, _gdtStart + _gdtSize - 1); + // Set the LDT selector to 0 to deactivate it. + tc->setMiscRegNoEffect(MISCREG_TSL, 0); + //Set up the registers that describe the operating mode. CR0 cr0 = 0; cr0.pg = 1; // Turn on paging. |