Dear Sirs:
      I saw the following line in the preExecute() function of the SimpleCPU
model:

//If more fetch data is needed, pass it in.
Addr fetchPC = (pcState.instAddr() & PCMask) + fetchOffset;

     I'm a little confused, isn't pcState.instAddr() returns the address
where the instruction will be fetched? Why does it AND the PCMask?
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to