HI Teng,
It depends on where you are. Internally the CPU models have different ways of mapping registers. From an external point of view this is wrapped up in a ThreadContext (tc). Nominally, you can call tc->readIntReg(<regnum>) and should get the right thing. Ali On 14.02.2012 14:32, Teng Lu wrote: > Hi, > > I want to get the content of CPU registers while gem5 is running. How does gem5 map the registers? In other words, which parameters should I observe? > > Thanks a lot! > > Regards, > Teng
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
