x86: Mark the RDTSC instruction as .serialize_before.
authorGabe Black <gabeblack@google.com>
Tue, 13 Mar 2018 00:19:36 +0000 (17:19 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 14 Mar 2018 20:07:18 +0000 (20:07 +0000)
Change-Id: I20bf6a57ea4354aac9267845bb37b70b83d6fcde
Reviewed-on: https://gem5-review.googlesource.com/9042
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/arch/x86/isa/insts/system/msrs.py

index 16d158ab5973558852b7c9a8057b50388d50a9a4..fe9c5b262623b9b90f0bb6edf1020e59d1471b6a 100644 (file)
@@ -60,6 +60,7 @@ def macroop WRMSR
 
 def macroop RDTSC
 {
+    .serialize_before
     rdtsc t1
     mov rax, rax, t1, dataSize=4
     srli t1, t1, 32, dataSize=8