Dear all, I'm a newbie interested in using Gem5 to obtain physical memory addresses.
The path I went through started from https://www.mail-archive.com/gem5-users@gem5.org/msg10675.html With a small variation due to version update I changed the code as follows: system.monitor2 = CommMonitor() system.monitor2.trace = MemTraceProbe(trace_file = "CT_mon2.trc.gz") system.monitor2.slave = system.l2.mem_side system.membus.slave = system.monitor2.master system.l2.cpu_side = system.tol2bus.master And ran the following command: build/X86/gem5.opt --debug-flag=CommMonitor configs/example/se.py --caches --l2cache --l2_size=2MB --mem-type=DDR4_2400_16x4 -c tests/test-progs/mm/bin/x86/linux/mm --cpu-type=TimingSimpleCPU The binary I used is just a simple matrix multiplication code. The trace I got shows like following: 5,u,2176,64,256,11500 6,u,851456,64,2,102000 5,u,5184,64,256,203000 6,u,851392,64,2,281000 5,u,5248,64,256,355000 5,u,3968,64,256,435000 6,u,841344,64,3,518000 6,u,851072,64,3,608000 5,u,4032,64,256,680000 5,u,4096,64,256,765000 What I can't understand is the "u" command. I was expecting "ReadReq" and "WriteReq", however, it is showing "UpgradeReq" and "ReadCleanReq". Can anyone give me an advice what's going on, and how to obtain correct memory access? I've also posted the same question at stackoverflow. You can see the code I executed in here. https://stackoverflow.com/questions/61052733/obtaining-physical-address-trace-from-gem5 Thank you, jwlee ᐧ
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users