msrs.py (12586:ab24f7edc1e3) | msrs.py (12587:e7ce22ce119f) |
---|---|
1# Copyright (c) 2007-2008 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 49 unchanged lines hidden (view full) --- 58 dataSize=8, addressSize=8 59}; 60 61def macroop RDTSC 62{ 63 .serialize_before 64 rdtsc t1 65 mov rax, rax, t1, dataSize=4 | 1# Copyright (c) 2007-2008 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 49 unchanged lines hidden (view full) --- 58 dataSize=8, addressSize=8 59}; 60 61def macroop RDTSC 62{ 63 .serialize_before 64 rdtsc t1 65 mov rax, rax, t1, dataSize=4 |
66 srli t1, t1, 32, dataSize=8 67 mov rdx, rdx, t1, dataSize=4 | 66 srli rdx, t1, 32, dataSize=8 |
68}; 69 70def macroop RDTSCP 71{ 72 .serialize_before 73 mfence 74 rdtsc t1 75 mov rax, rax, t1, dataSize=4 | 67}; 68 69def macroop RDTSCP 70{ 71 .serialize_before 72 mfence 73 rdtsc t1 74 mov rax, rax, t1, dataSize=4 |
76 srli t1, t1, 32, dataSize=8 77 mov rdx, rdx, t1, dataSize=4 | 75 srli rdx, t1, 32, dataSize=8 |
78 rdval rcx, "InstRegIndex(MISCREG_TSC_AUX)", dataSize=4 79}; 80''' | 76 rdval rcx, "InstRegIndex(MISCREG_TSC_AUX)", dataSize=4 77}; 78''' |