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 Norman Feske
parent 677d9abd07
commit 507a34b3d0
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__; \
};