Don't mask the pc because the Alpha predecoder needs it to set the PAL mode bit in...
authorGabe Black <gblack@eecs.umich.edu>
Sat, 2 Jun 2007 03:41:47 +0000 (03:41 +0000)
committerGabe Black <gblack@eecs.umich.edu>
Sat, 2 Jun 2007 03:41:47 +0000 (03:41 +0000)
--HG--
extra : convert_revision : 87dc6e6b2281b6a11a0c0e8320b7f4acc29f6fb8

src/cpu/simple/base.cc

index da50a3eb0a42057d6068ca86326b408201a29e39..a8fe57f0a090d2860624894e81a38a4a1585a1ec 100644 (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();