summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-06-02 03:41:47 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-06-02 03:41:47 +0000
commite47f1667b6f5f3b329c171a10d571696bd24b045 (patch)
treea3a842a9774f76c50de9edfb1d7b4655e0d439b9
parentaba2eeaf8fba432ac5ee27a969543b9a92d485e1 (diff)
downloadgem5-e47f1667b6f5f3b329c171a10d571696bd24b045.tar.xz
Don't mask the pc because the Alpha predecoder needs it to set the PAL mode bit in the ExtMachInst.
--HG-- extra : convert_revision : 87dc6e6b2281b6a11a0c0e8320b7f4acc29f6fb8
-rw-r--r--src/cpu/simple/base.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc
index da50a3eb0..a8fe57f0a 100644
--- a/src/cpu/simple/base.cc
+++ b/src/cpu/simple/base.cc
@@ -380,10 +380,8 @@ BaseSimpleCPU::preExecute()
//This should go away once the constructor can be set up properly
predecoder.setTC(thread->getTC());
//If more fetch data is needed, pass it in.
- const Addr PCMask = ~((Addr)sizeof(MachInst) - 1);
if(predecoder.needMoreBytes())
- predecoder.moreBytes((thread->readPC() & PCMask) + fetchOffset,
- 0, inst);
+ predecoder.moreBytes(thread->readPC() + fetchOffset, 0, inst);
else
predecoder.process();