VirtualBox

Changeset 73027 in vbox


Ignore:
Timestamp:
Jul 10, 2018 10:04:51 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123579
Message:

VMM/IEM: Don't guru with VERR_IEM_INSTR_NOT_IMPLEMENTED for rdpmc instruction. Fake it like EM currently does.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImpl.cpp.h

    r72896 r73027  
    61966196    }
    61976197
    6198     /** @todo Implement RDPMC for the regular guest execution case (the above only
    6199      *        handles nested-guest intercepts). */
    6200     RT_NOREF(cbInstr);
    6201     return VERR_IEM_INSTR_NOT_IMPLEMENTED;
     6198    /** @todo Emulate performance counters, for now just return 0. */
     6199    pVCpu->cpum.GstCtx.rax = 0;
     6200    pVCpu->cpum.GstCtx.rdx = 0;
     6201    pVCpu->cpum.GstCtx.fExtrn &= ~(CPUMCTX_EXTRN_RAX | CPUMCTX_EXTRN_RDX);
     6202    /** @todo We should trigger a \#GP here if the CPU doesn't support the index in
     6203     *        ecx but see @bugref{3472}! */
     6204
     6205    iemRegAddToRipAndClearRF(pVCpu, cbInstr);
     6206    return VINF_SUCCESS;
    62026207}
    62036208
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