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:
Gabe Black 2007-06-02 03:41:47 +00:00
parent aba2eeaf8f
commit e47f1667b6

View file

@ -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();