- Timestamp:
- Mar 30, 2023 12:48:09 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156594
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Disassembler/testcase/tstDisasm-1.cpp
r98103 r99221 89 89 DISSTATE DisOnly; 90 90 rc = DISInstrWithPrefetchedBytes((uintptr_t)&pabInstrs[off], enmDisCpuMode, 0 /*fFilter - none */, 91 Dis. abInstr, Dis.cbCachedInstr, NULL, NULL, &DisOnly, &cbOnly);91 Dis.u.abInstr, Dis.cbCachedInstr, NULL, NULL, &DisOnly, &cbOnly); 92 92 93 93 RTTESTI_CHECK_RC(rc, VINF_SUCCESS); -
trunk/src/VBox/HostDrivers/Support/posix/SUPR3HardenedMain-posix.cpp
r99220 r99221 365 365 return VERR_SUPLIB_UNEXPECTED_INSTRUCTION; 366 366 367 if (Dis.arch.x86.ModRM.Bits.Mod == 0 && Dis. ModRM.Bits.Rm == 5 /* wrt RIP */)367 if (Dis.arch.x86.ModRM.Bits.Mod == 0 && Dis.arch.x86.ModRM.Bits.Rm == 5 /* wrt RIP */) 368 368 cRipRelMovs++; 369 369 if ( Dis.pCurInstr->uOpcode == OP_CALL … … 427 427 return VERR_SUPLIB_UNEXPECTED_INSTRUCTION; 428 428 429 uintptr_t uAddr = (uintptr_t)&pbTarget[offInsn + cbInstr] + (intptr_t)Dis.Param2. uDisp.i32;429 uintptr_t uAddr = (uintptr_t)&pbTarget[offInsn + cbInstr] + (intptr_t)Dis.Param2.arch.x86.uDisp.i32; 430 430 431 431 if (fConvRipRelMovs) … … 443 443 *pbPatchMem++ = 0x48; 444 444 *pbPatchMem++ = 0x8b; 445 *pbPatchMem++ = (Dis.Param1. Base.arch.x86.idxGenReg << X86_MODRM_REG_SHIFT) | Dis.Param1.Base.arch.x86.idxGenReg;445 *pbPatchMem++ = (Dis.Param1.arch.x86.Base.idxGenReg << X86_MODRM_REG_SHIFT) | Dis.Param1.Base.arch.x86.idxGenReg; 446 446 } 447 447 else -
trunk/src/VBox/Runtime/testcase/tstLdrDisasmTest.cpp
r99208 r99221 46 46 *********************************************************************************************************************************/ 47 47 #include <VBox/dis.h> 48 #include <VBox/disopcode.h>49 48 #include <VBox/sup.h> 50 49 #include <iprt/string.h> … … 98 97 if (cb + pDis->uInstrAddr + offInstr > sizeof(g_ab32BitCode)) 99 98 cb = cbMinRead; 100 memcpy(&pDis-> abInstr[offInstr], &g_ab32BitCode[pDis->uInstrAddr + offInstr], cb);99 memcpy(&pDis->u.abInstr[offInstr], &g_ab32BitCode[pDis->uInstrAddr + offInstr], cb); 101 100 pDis->cbCachedInstr = offInstr + (uint8_t)cb; 102 101 return VINF_SUCCESS; … … 113 112 *pcb = cb; 114 113 MY_PRINTF(("DISCoreOneEx -> rc=%d cb=%d Cpu: bOpCode=%#x pCurInstr=%p (42=%d)\n", \ 115 rc, cb, pDis-> bOpCode, pDis->pCurInstr, 42)); \114 rc, cb, pDis->arch.x86.bOpCode, pDis->pCurInstr, 42)); \ 116 115 return rc; 117 116 }
Note:
See TracChangeset
for help on using the changeset viewer.