summaryrefslogtreecommitdiff
path: root/src/arch/x86/regs
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-03-12 17:46:52 -0700
committerGabe Black <gabeblack@google.com>2018-03-14 20:08:54 +0000
commit497ebfe98578b71d22f979b848c4b873f05ec6ee (patch)
treeeef0c1aab82910f55e8c44f95cd96c1cbf070f4c /src/arch/x86/regs
parentea383880c61023360aee672c6197f2cda9889f07 (diff)
downloadgem5-497ebfe98578b71d22f979b848c4b873f05ec6ee.tar.xz
x86: Simplify the implementations of RDTSC and RDTSCP slightly.
These instructions originally read the TSC into t1 and then unpacked it into eax and edx using a move, a right shift, and then another move. We can combine the second shift and move. The shift will move the upper 32 bits into the lower 32 bits, and clear the upper 32 bits to zero. This has the same effect as moving the lower 32 bits post-shift into another register, since the upper 32 bits will be cleared to zero based on x86 partial register access semantics. Change-Id: Iba85e501c7e84147ad0047f5c555e61bdf8f032b Reviewed-on: https://gem5-review.googlesource.com/9044 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/arch/x86/regs')
0 files changed, 0 insertions, 0 deletions