Changeset 42186 in vbox for trunk/src/VBox/Disassembler
- Timestamp:
- Jul 17, 2012 1:32:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Disassembler/DisasmReg.cpp
r41906 r42186 415 415 * 416 416 */ 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]); 417 DISDECL(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]); 424 421 return VINF_SUCCESS; 425 422 }
Note:
See TracChangeset
for help on using the changeset viewer.