From 8a71c570226d06d6a179700c114de91d2c177be0 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 12 Mar 2018 17:19:36 -0700 Subject: [PATCH] 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 --- src/arch/x86/isa/insts/system/msrs.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2