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
This commit is contained in:
parent
aba2eeaf8f
commit
e47f1667b6
1 changed files with 1 additions and 3 deletions
|
@ -380,10 +380,8 @@ BaseSimpleCPU::preExecute()
|
||||||
//This should go away once the constructor can be set up properly
|
//This should go away once the constructor can be set up properly
|
||||||
predecoder.setTC(thread->getTC());
|
predecoder.setTC(thread->getTC());
|
||||||
//If more fetch data is needed, pass it in.
|
//If more fetch data is needed, pass it in.
|
||||||
const Addr PCMask = ~((Addr)sizeof(MachInst) - 1);
|
|
||||||
if(predecoder.needMoreBytes())
|
if(predecoder.needMoreBytes())
|
||||||
predecoder.moreBytes((thread->readPC() & PCMask) + fetchOffset,
|
predecoder.moreBytes(thread->readPC() + fetchOffset, 0, inst);
|
||||||
0, inst);
|
|
||||||
else
|
else
|
||||||
predecoder.process();
|
predecoder.process();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue