From: Gabe Black Date: Tue, 13 Mar 2018 00:19:36 +0000 (-0700) Subject: x86: Mark the RDTSC instruction as .serialize_before. X-Git-Tag: v19.0.0.0~2234 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a71c570226d06d6a179700c114de91d2c177be0;p=gem5.git x86: Mark the RDTSC instruction as .serialize_before. Change-Id: I20bf6a57ea4354aac9267845bb37b70b83d6fcde Reviewed-on: https://gem5-review.googlesource.com/9042 Reviewed-by: Jason Lowe-Power Maintainer: Gabe Black --- diff --git a/src/arch/x86/isa/insts/system/msrs.py b/src/arch/x86/isa/insts/system/msrs.py index 16d158ab5..fe9c5b262 100644 --- a/src/arch/x86/isa/insts/system/msrs.py +++ b/src/arch/x86/isa/insts/system/msrs.py @@ -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