summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/insts/system/msrs.py
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-02-28 17:07:16 +0800
committerIru Cai <mytbk920423@gmail.com>2019-03-11 13:34:03 +0800
commit156b2eaa59f063e53e3fa9ea82632821f999352e (patch)
tree8fba561f7e4402271bd86afe6e0d21276bbf022e /src/arch/x86/isa/insts/system/msrs.py
parentf1b7d0afe93497ef55e857cdd7ae9e168970bd65 (diff)
downloadgem5-156b2eaa59f063e53e3fa9ea82632821f999352e.tar.xz
invisispec-1.0 source
Diffstat (limited to 'src/arch/x86/isa/insts/system/msrs.py')
-rw-r--r--src/arch/x86/isa/insts/system/msrs.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/arch/x86/isa/insts/system/msrs.py b/src/arch/x86/isa/insts/system/msrs.py
index d0e2675de..f269742dd 100644
--- a/src/arch/x86/isa/insts/system/msrs.py
+++ b/src/arch/x86/isa/insts/system/msrs.py
@@ -65,4 +65,14 @@ def macroop RDTSC
srli t1, t1, 32, dataSize=8
mov rdx, rdx, t1, dataSize=4
};
+
+
+def macroop RDTSCP
+{
+ .block
+ rdtsc t1
+ mov rax, rax, t1, dataSize=4
+ srli t1, t1, 32, dataSize=8
+ mov rdx, rdx, t1, dataSize=4
+};
'''