I am a beginner who has just started to learn Gem5. Recently, I attempted to
use the msr instruction to read out the currently allocated entries in L2cache
(variable "int allocated" in gem5 stable \ src \ mem \ cache \ queue.hh). I
have added a new system register for this purpose (by modifying gem5 stable \
src \ arch \ arm \ regs \ misc.hh and misc.cc), and the mrs instruction can
correctly read the value of this register. But what confuses me is how to pass
this variable to the MiscRegLUTEntry, or in other words, there is an array
called RegVal miscRegs [NUM-MISCREGS] in "gem 5 stable \ src \ arch \ arm \
isa. hh" (which I think is used to store different misc register values). What
should I do to pass the allocated variable in src \ mem \ cache \ queue.hh to
miscRegs [NUM-MISCREGS] in src \ arch \ arm \ isa. hh?Thank you very much for
your help!
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org