VirtualBox

Changeset 42186 in vbox for trunk/src/VBox/Disassembler


Ignore:
Timestamp:
Jul 17, 2012 1:32:15 PM (12 years ago)
Author:
vboxsync
Message:

SELM,DIS,CPUM,EM: Hidden selector register cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/DisasmReg.cpp

    r41906 r42186  
    415415 *
    416416 */
    417 DISDECL(int) DISFetchRegSegEx(PCCPUMCTXCORE pCtx, DISSELREG sel, RTSEL *pVal, CPUMSELREGHID **ppSelHidReg)
    418 {
    419     AssertReturn((unsigned)sel < RT_ELEMENTS(g_aRegSegIndex), VERR_INVALID_PARAMETER);
    420 
    421     AssertCompile(sizeof(uint16_t) == sizeof(RTSEL));
    422     *pVal = DIS_READ_REGSEG(pCtx, sel);
    423     *ppSelHidReg = (CPUMSELREGHID *)((char *)pCtx + g_aRegHidSegIndex[sel]);
     417DISDECL(int) DISFetchRegSegEx(PCPUMCTXCORE pCtx, DISSELREG sel, PCPUMSELREG *ppSelReg)
     418{
     419    AssertReturnStmt((unsigned)sel < RT_ELEMENTS(g_aRegSegIndex), *ppSelReg = NULL, VERR_INVALID_PARAMETER);
     420    *ppSelReg = (CPUMSELREG *)((uintptr_t)pCtx + g_aRegHidSegIndex[sel]);
    424421    return VINF_SUCCESS;
    425422}
Note: See TracChangeset for help on using the changeset viewer.

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