summaryrefslogtreecommitdiff
path: root/src/arch/x86/process.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-11-13 01:31:43 -0800
committerGabe Black <gblack@eecs.umich.edu>2007-11-13 01:31:43 -0800
commit5772e3cadaf12cf155e6ad0cb79a3b7333d1dd10 (patch)
tree319cf1613ae6f9a6a435d5f269ea3a9361a2068e /src/arch/x86/process.cc
parent1048b548fabfb7af2113f226f2151d3eb0e63289 (diff)
downloadgem5-5772e3cadaf12cf155e6ad0cb79a3b7333d1dd10.tar.xz
X86: Make microcode use presegmentation RIPs and the rest of m5 use post segmentation RIPS.
--HG-- extra : convert_revision : d8cda7c8b9a2afb8a9d601b6d61529a96c5f87fe
Diffstat (limited to 'src/arch/x86/process.cc')
-rw-r--r--src/arch/x86/process.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc
index c6246c76b..633b2f136 100644
--- a/src/arch/x86/process.cc
+++ b/src/arch/x86/process.cc
@@ -461,6 +461,8 @@ X86LiveProcess::argsInit(int intSize, int pageSize)
threadContexts[0]->setIntReg(StackPointerReg, stack_min);
Addr prog_entry = objFile->entryPoint();
+ // There doesn't need to be any segment base added in since we're dealing
+ // with the flat segmentation model.
threadContexts[0]->setPC(prog_entry);
threadContexts[0]->setNextPC(prog_entry + sizeof(MachInst));