msrs.py (7087:fb8d5786ff30) | msrs.py (7622:b49144029ec8) |
---|---|
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 --- 36 unchanged lines hidden (view full) --- 45 dataSize=8, addressSize=8 46 mov rax, rax, t2, dataSize=4 47 srli t2, t2, 32, dataSize=8 48 mov rdx, rdx, t2, dataSize=4 49}; 50 51def macroop WRMSR 52{ | 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 --- 36 unchanged lines hidden (view full) --- 45 dataSize=8, addressSize=8 46 mov rax, rax, t2, dataSize=4 47 srli t2, t2, 32, dataSize=8 48 mov rdx, rdx, t2, dataSize=4 49}; 50 51def macroop WRMSR 52{ |
53 .serializing |
|
53 mov t2, t2, rax, dataSize=4 54 slli t3, rdx, 32, dataSize=8 55 or t2, t2, t3, dataSize=8 56 st t2, intseg, [8, rcx, t0], "IntAddrPrefixMSR << 3", \ 57 dataSize=8, addressSize=8 58}; 59 60def macroop RDTSC 61{ 62 rdtsc t1 63 mov rax, rax, t1, dataSize=4 64 srli t1, t1, 32, dataSize=8 65 mov rdx, rdx, t1, dataSize=4 66}; 67''' | 54 mov t2, t2, rax, dataSize=4 55 slli t3, rdx, 32, dataSize=8 56 or t2, t2, t3, dataSize=8 57 st t2, intseg, [8, rcx, t0], "IntAddrPrefixMSR << 3", \ 58 dataSize=8, addressSize=8 59}; 60 61def macroop RDTSC 62{ 63 rdtsc t1 64 mov rax, rax, t1, dataSize=4 65 srli t1, t1, 32, dataSize=8 66 mov rdx, rdx, t1, dataSize=4 67}; 68''' |