>> Also, why do you change inst->readNextNPC() to inst->readNextPC()
>> in iew_impl.hh? Aren't you going to then print the same value twice?
> Well, I'm trying to fix error'd DPRINT statements here.
>
> In the DPRINT, it says "NPC", but it's printing out the NNPC which was
> confusing to me. So maybe the message should say "NNPC" or just say
> "redirecting fetch to"? Reading those in an ISA-slot-dependent fashion
> is hard, so we strive to make the debug message make sense regardless
> of MIPS, SPARC, ALPHA, or whatever.
>

I'm pretty sure NextNPC() and "redirecting fetch to" (aka the original  
version) is correct. Basically, when that instruction finishes, you'll  
set NPC to the next NPC value, redirecting fetch to the nextPC and the  
nextNPC. If you look at the predicted PC and NPC it's the same thing.  
There isn't any significant ISA defined magic going on there so that  
version should make sense for any ISA.

Gabe

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to