Changeset 7015 in vbox for trunk/include/VBox
- Timestamp:
- Feb 19, 2008 1:14:15 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28229
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/dis.h
r7000 r7015 46 46 CPUMODE_16BIT = 1, 47 47 CPUMODE_32BIT = 2, 48 CPUMODE_64BIT = 3 48 CPUMODE_64BIT = 3, 49 /** hack forcing the size of the enum to 32-bits. */ 50 CPUMODE_MAKE_32BIT_HACK = 0x7fffffff 49 51 } DISCPUMODE; 50 52 /** @} */ … … 370 372 { 371 373 /* Global setting */ 372 uint32_tmode;374 DISCPUMODE mode; 373 375 374 376 /* Per instruction prefix settings */ … … 379 381 uint32_t prefix_rex; 380 382 /** addressing mode (16 or 32 bits). (CPUMODE_*) */ 381 uint32_taddrmode;383 DISCPUMODE addrmode; 382 384 /** operand mode (16 or 32 bits). (CPUMODE_*) */ 383 uint32_topmode;385 DISCPUMODE opmode; 384 386 385 387 OP_PARAMETER param1; … … 512 514 /** 513 515 * Parses one guest instruction. 514 * *The result is found in pCpu and pcbInstruction.516 * The result is found in pCpu and pcbInstruction. 515 517 * 516 518 * @returns VBox status code. 517 519 * @param InstructionAddr Address of the instruction to decode. What this means 518 520 * is left to the pfnReadBytes function. 519 * @param CpuModeThe CPU mode. CPUMODE_32BIT, CPUMODE_16BIT, or CPUMODE_64BIT.521 * @param enmCpuMode The CPU mode. CPUMODE_32BIT, CPUMODE_16BIT, or CPUMODE_64BIT. 520 522 * @param pfnReadBytes Callback for reading instruction bytes. 521 * @param pvUser User argument for the instruction reader. (Ends up in dwUserData[0].)523 * @param pvUser User argument for the instruction reader. (Ends up in apvUserData[0].) 522 524 * @param pCpu Pointer to cpu structure. Will be initialized. 523 525 * @param pcbInstruction Where to store the size of the instruction. 524 526 * NULL is allowed. 525 527 */ 526 DISDECL(int) DISCoreOneEx(RTUINTPTR InstructionAddr, unsignedCpuMode, PFN_DIS_READBYTES pfnReadBytes, void *pvUser,528 DISDECL(int) DISCoreOneEx(RTUINTPTR InstructionAddr, DISCPUMODE enmCpuMode, PFN_DIS_READBYTES pfnReadBytes, void *pvUser, 527 529 PDISCPUSTATE pCpu, unsigned *pcbInstruction); 528 530
Note:
See TracChangeset
for help on using the changeset viewer.