Re: [gem5-dev] Help with X86 ISA (RDTSC/RDTSCP) to read the correct clock cycles

2018-03-24 Thread Li Zhou
Hi Jason, Thanks for your reply. The suggested pointers are very useful! I tried the new patches and played with the example config files. It worked in SE mode using the two_level.py config in your tutorial (not working with default se.py). In FS mode, the code doesn't work well using default

Re: [gem5-dev] Help with X86 ISA (RDTSC/RDTSCP) to read the correct clock cycles

2018-03-22 Thread Jason Lowe-Power
Hi Li, This patch (https://gem5-review.googlesource.com/c/public/gem5/+/9042/ ) and a few after it should solve the problem. Interestingly, the reason I found this issue was for exactly the same reason that you did. I was trying to run

[gem5-dev] Help with X86 ISA (RDTSC/RDTSCP) to read the correct clock cycles

2018-03-22 Thread Li Zhou
Hi all (specifically Gabe and Jason), I'm trying to use gem5 to reproduce the results of Spectre code ( https://github.com/crozone/SpectrePoC) in FS mode. It uses RDTSC/RDTSCP to measure the timing of a load operation. I have exactly the same issue with one previous post, the gem5 simply returns