VirtualBox

Changeset 42482 in vbox


Ignore:
Timestamp:
Jul 31, 2012 1:42:04 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79634
Message:

helper_rdmsr: Don't try to check if the value is the same for
MSR_IA32_TSC by re-reading it, as it *will* be different. Fixes bogus
and annoying assertion for debug builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/target-i386/op_helper.c

    r42407 r42482  
    39333933
    39343934# ifdef VBOX_STRICT
    3935     if (cpu_rdmsr(env, (uint32_t)ECX, &val) != 0)
    3936         val = 0;
    3937     AssertMsg(val == RT_MAKE_U64(EAX, EDX), ("idMsr=%#x val=%#llx eax:edx=%#llx\n", (uint32_t)ECX, val, RT_MAKE_U64(EAX, EDX)));
     3935    if ((uint32_t)ECX != MSR_IA32_TSC) {
     3936        if (cpu_rdmsr(env, (uint32_t)ECX, &val) != 0)
     3937            val = 0;
     3938        AssertMsg(val == RT_MAKE_U64(EAX, EDX), ("idMsr=%#x val=%#llx eax:edx=%#llx\n", (uint32_t)ECX, val, RT_MAKE_U64(EAX, EDX)));
     3939    }
    39383940# endif
    39393941}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette