From e47f1667b6f5f3b329c171a10d571696bd24b045 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 2 Jun 2007 03:41:47 +0000 Subject: [PATCH] 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 --- src/cpu/simple/base.cc | 4 +--- 1 file changed, 1 insertion(+), 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(); -- 2.30.2