From: Vincentius Robby Date: Fri, 1 Jun 2007 16:24:49 +0000 (-0400) Subject: Minor error. Forgotten to remove brackets for threadPC. X-Git-Tag: m5_2.0_beta4~384^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7fe9345eefa106c12630eb92df5dc956d94820c;p=gem5.git Minor error. Forgotten to remove brackets for threadPC. --HG-- extra : convert_revision : 40a636a539e84decfca438c07adf022eed7b7780 --- diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc index 5e078c502..6145b13a1 100644 --- a/src/cpu/simple/base.cc +++ b/src/cpu/simple/base.cc @@ -342,7 +342,7 @@ BaseSimpleCPU::setupFetchRequest(Request *req) const Addr PCMask = ~(sizeof(MachInst) - 1); Addr fetchPC = thread->readPC() + fetchOffset; - req->setVirt(0, fetchPC & PCMask, sizeof(MachInst), 0, threadPC()); + req->setVirt(0, fetchPC & PCMask, sizeof(MachInst), 0, threadPC); Fault fault = thread->translateInstReq(req);