hw/x86: implement wrmsr in macro

Issue #3623
This commit is contained in:
Alexander Boettcher 2020-01-28 14:48:06 +01:00 committed by Christian Helmuth
parent 465b2e0a93
commit d7622b1a46
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@
return (high << 32) | (low & ~0U); \
} \
\
static void write(access_t const) { } \
static void write(access_t const value) { \
asm volatile ("wrmsr" : : "a" (value), "d" (value >> 32), "c" (msr)); \
} \
\
__VA_ARGS__; \
};