mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
Add rdpmc SVM intercept, by Bernhard Kauer.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3791 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
8543243c29
commit
df01e0fc33
4 changed files with 22 additions and 0 deletions
|
@ -2743,6 +2743,18 @@ void helper_rdtsc(void)
|
|||
EDX = (uint32_t)(val >> 32);
|
||||
}
|
||||
|
||||
void helper_rdpmc(void)
|
||||
{
|
||||
if ((env->cr[4] & CR4_PCE_MASK) && ((env->hflags & HF_CPL_MASK) != 0)) {
|
||||
raise_exception(EXCP0D_GPF);
|
||||
}
|
||||
|
||||
if (!svm_check_intercept_param(SVM_EXIT_RDPMC, 0)) {
|
||||
/* currently unimplemented */
|
||||
raise_exception_err(EXCP06_ILLOP, 0);
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(CONFIG_USER_ONLY)
|
||||
void helper_wrmsr(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue