Changeset 41730 in vbox
- Timestamp:
- Jun 14, 2012 11:28:16 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/dis.h
r41729 r41730 487 487 typedef DISOPPARAM *PDISOPPARAM; 488 488 /** Pointer to opcode parameter. */ 489 typedef const DISOPPARAM *PCOP_PARAMETER; 490 491 489 typedef const DISOPPARAM *PCDISOPPARAM; 490 491 492 /** 493 * Opcode descriptor. 494 */ 495 typedef struct DISOPCODE 496 { 497 #ifndef DIS_CORE_ONLY 498 const char *pszOpcode; 499 #endif 500 uint8_t idxParse1; 501 uint8_t idxParse2; 502 uint8_t idxParse3; 503 uint8_t uUnused; 504 uint16_t opcode; 505 uint16_t param1; 506 uint16_t param2; 507 uint16_t param3; 508 uint32_t optype; 509 } DISOPCODE; 492 510 /** Pointer to const opcode. */ 493 511 typedef const struct DISOPCODE *PCDISOPCODE; 512 494 513 495 514 /** … … 511 530 * @remark no DECLCALLBACK() here because it's considered to be internal (really, I'm too lazy to update all the functions). */ 512 531 typedef unsigned FNDISPARSE(RTUINTPTR pu8CodeBlock, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu); 532 /** Pointer to a disassembler parser function. */ 513 533 typedef FNDISPARSE *PFNDISPARSE; 534 /** Pointer to a const disassembler parser function pointer. */ 514 535 typedef PFNDISPARSE const *PCPFNDISPARSE; 515 536 537 /** 538 * The diassembler state and result. 539 */ 516 540 typedef struct DISCPUSTATE 517 541 { … … 614 638 615 639 616 /**617 * Opcode descriptor.618 */619 typedef struct DISOPCODE620 {621 #ifndef DIS_CORE_ONLY622 const char *pszOpcode;623 #endif624 uint8_t idxParse1;625 uint8_t idxParse2;626 uint8_t idxParse3;627 uint8_t uUnused;628 uint16_t opcode;629 uint16_t param1;630 uint16_t param2;631 uint16_t param3;632 uint32_t optype;633 } DISOPCODE;634 635 640 636 641 DISDECL(int) DISInstrToStr(void const *pvInstr, DISCPUMODE enmCpuMode, -
trunk/src/VBox/Disassembler/DisasmFormatYasm.cpp
r41727 r41730 91 91 * @param pcchReg Where to store the length of the name. 92 92 */ 93 static const char *disasmFormatYasmBaseReg(PCDISCPUSTATE pCpu, PC OP_PARAMETERpParam, size_t *pcchReg)93 static const char *disasmFormatYasmBaseReg(PCDISCPUSTATE pCpu, PCDISOPPARAM pParam, size_t *pcchReg) 94 94 { 95 95 switch (pParam->fUse & ( DISUSE_REG_GEN8 | DISUSE_REG_GEN16 | DISUSE_REG_GEN32 | DISUSE_REG_GEN64 … … 202 202 * @param pcchReg Where to store the length of the name. 203 203 */ 204 static const char *disasmFormatYasmIndexReg(PCDISCPUSTATE pCpu, PC OP_PARAMETERpParam, size_t *pcchReg)204 static const char *disasmFormatYasmIndexReg(PCDISCPUSTATE pCpu, PCDISOPPARAM pParam, size_t *pcchReg) 205 205 { 206 206 switch (pCpu->addrmode) … … 554 554 * Formatting context and associated macros. 555 555 */ 556 PC OP_PARAMETERpParam = &pCpu->param1;556 PCDISOPPARAM pParam = &pCpu->param1; 557 557 int iParam = 1; 558 558 -
trunk/src/VBox/VMM/VMMAll/IOMAll.cpp
r41727 r41730 65 65 * @param pcbSize Where to store the size of data (1, 2, 4, 8). 66 66 */ 67 bool iomGetRegImmData(PDISCPUSTATE pCpu, PC OP_PARAMETERpParam, PCPUMCTXCORE pRegFrame, uint64_t *pu64Data, unsigned *pcbSize)67 bool iomGetRegImmData(PDISCPUSTATE pCpu, PCDISOPPARAM pParam, PCPUMCTXCORE pRegFrame, uint64_t *pu64Data, unsigned *pcbSize) 68 68 { 69 69 NOREF(pCpu); … … 159 159 * @param u64Data 8/16/32/64 bit data to store. 160 160 */ 161 bool iomSaveDataToReg(PDISCPUSTATE pCpu, PC OP_PARAMETERpParam, PCPUMCTXCORE pRegFrame, uint64_t u64Data)161 bool iomSaveDataToReg(PDISCPUSTATE pCpu, PCDISOPPARAM pParam, PCPUMCTXCORE pRegFrame, uint64_t u64Data) 162 162 { 163 163 NOREF(pCpu); -
trunk/src/VBox/VMM/include/IOMInternal.h
r41692 r41730 431 431 432 432 /* Disassembly helpers used in IOMAll.cpp & IOMAllMMIO.cpp */ 433 bool iomGetRegImmData(PDISCPUSTATE pCpu, PC OP_PARAMETERpParam, PCPUMCTXCORE pRegFrame, uint64_t *pu64Data, unsigned *pcbSize);434 bool iomSaveDataToReg(PDISCPUSTATE pCpu, PC OP_PARAMETERpParam, PCPUMCTXCORE pRegFrame, uint64_t u32Data);433 bool iomGetRegImmData(PDISCPUSTATE pCpu, PCDISOPPARAM pParam, PCPUMCTXCORE pRegFrame, uint64_t *pu64Data, unsigned *pcbSize); 434 bool iomSaveDataToReg(PDISCPUSTATE pCpu, PCDISOPPARAM pParam, PCPUMCTXCORE pRegFrame, uint64_t u32Data); 435 435 436 436 RT_C_DECLS_END
Note:
See TracChangeset
for help on using the changeset viewer.