Hello,

I am executing a full system 64 bit ARM simulation. I use the linaro-minimal-aarch64.img disk image and the 64 kernel provided by the gem5 official site. For my testing applications I would like to get statistics for each different executed pthread. To do that i try to monitor which pthread is currently being executed in the simulator. I read in the ARM official site that the TPIDRURO registers contains the thread local storage address. So i would like to use the value of this register to distinguish threads in the simulator. When i read the value of this register it is always set to 0.

I read the register like this :
tc->readMiscReg(MISCREG_TPIDRURO);

I have also tried all the TPIDRURO_X registers implemented by gem5. None of them contain the Thread local storage. Am I doing something wrong? Or it is not implemented by gem5? There is always the case that the kernel does not use this register as a TLS register.

Thank you.

Konstantinos Parasyris.

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to