Changeset 41831 in vbox
- Timestamp:
- Jun 19, 2012 3:07:16 PM (12 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
-
Makefile.kmk (modified) (2 diffs)
-
VMMAll/IEMAll.cpp (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/Makefile.kmk
r41477 r41831 432 432 VMMRC_SOURCES += $(VMMRCImp_0_OUTDIR)/VMMRC.def 433 433 endif 434 434 ifdef VBOX_WITH_IEM 435 VMMRC_SOURCES += \ 436 VMMAll/IEMAll.cpp \ 437 VMMAll/IEMAllAImpl.asm \ 438 VMMAll/IEMAllAImplC.cpp 439 endif 435 440 436 441 # the very last one. … … 532 537 VMMR0/VMMR0TripleFaultHackA.asm 533 538 endif 539 ifdef VBOX_WITH_IEM 540 VMMR0_SOURCES += \ 541 VMMAll/IEMAll.cpp \ 542 VMMAll/IEMAllAImpl.asm \ 543 VMMAll/IEMAllAImplC.cpp 544 endif 534 545 VMMR0_SOURCES.amd64 = \ 535 546 VMMR0/VMMR0JmpA-amd64.asm -
trunk/src/VBox/VMM/VMMAll/IEMAll.cpp
r41829 r41831 78 78 #include <VBox/vmm/iem.h> 79 79 #include <VBox/vmm/pgm.h> 80 #include <internal/pgm.h> 80 81 #include <VBox/vmm/iom.h> 81 82 #include <VBox/vmm/em.h> … … 683 684 { 684 685 uint32_t GCPtrPC32 = pCtx->eip; 685 Assert (!(GCPtrPC32 & ~(uint32_t)UINT16_MAX) || pIemCpu->enmCpuMode == IEMMODE_32BIT);686 AssertMsg(!(GCPtrPC32 & ~(uint32_t)UINT16_MAX) || pIemCpu->enmCpuMode == IEMMODE_32BIT, ("%04x:%RX64\n", pCtx->cs, pCtx->rip)); 686 687 if (GCPtrPC32 > pCtx->csHid.u32Limit) 687 688 return iemRaiseSelectorBounds(pIemCpu, X86_SREG_CS, IEM_ACCESS_INSTRUCTION); … … 2159 2160 * Extensive logging. 2160 2161 */ 2161 #if def LOG_ENABLED2162 #if defined(LOG_ENABLED) && defined(IN_RING3) 2162 2163 if (LogIs3Enabled()) 2163 2164 { … … 2530 2531 * 2531 2532 */ 2532 #include <iprt/mem.h>2533 //#include <iprt/mem.h> 2533 2534 2534 2535 /** … … 2538 2539 static void iemOpStubMsg2(PIEMCPU pIemCpu) 2539 2540 { 2541 #if defined(LOG_ENABLED) && defined(IN_RING3) 2540 2542 PVM pVM = IEMCPU_TO_VM(pIemCpu); 2541 2543 PVMCPU pVCpu = IEMCPU_TO_VMCPU(pIemCpu); … … 2574 2576 2575 2577 RTAssertMsg2Weak("%s%s\n", szRegs, szInstr); 2578 #else 2579 RTAssertMsg2Weak("cs:rip=%04x:%RX64\n", pIemCpu->CTX_SUFF(pCtx)->cs, pIemCpu->CTX_SUFF(pCtx)->rip); 2580 #endif 2576 2581 } 2577 2582 … … 3295 3300 NOREF(pIemCpu); 3296 3301 #else 3297 # error "Implement me" 3302 /** @todo RZ: FIXME */ 3303 //# error "Implement me" 3298 3304 #endif 3299 3305 } … … 4409 4415 */ 4410 4416 /** @todo need some better API. */ 4417 #ifdef IN_RING3 4411 4418 return PGMR3PhysTlbGCPhys2Ptr(IEMCPU_TO_VM(pIemCpu), 4412 4419 GCPhysMem, 4413 4420 RT_BOOL(fAccess & IEM_ACCESS_TYPE_WRITE), 4414 4421 ppvMem); 4422 #else 4423 //# error "Implement me" 4424 if (fAccess & IEM_ACCESS_TYPE_WRITE) 4425 return PGMPhysGCPhys2CCPtr(IEMCPU_TO_VM(pIemCpu), 4426 GCPhysMem, 4427 ppvMem, 4428 /** @todo pLock */ NULL); 4429 return PGMPhysGCPhys2CCPtrReadOnly(IEMCPU_TO_VM(pIemCpu), 4430 GCPhysMem, 4431 (void const **)ppvMem, 4432 /** @todo pLock */ NULL); 4433 #endif 4415 4434 } 4416 4435 … … 7835 7854 #ifdef LOG_ENABLED 7836 7855 PCPUMCTX pCtx = pIemCpu->CTX_SUFF(pCtx); 7856 # ifdef IN_RING3 7837 7857 if (LogIs2Enabled()) 7838 7858 { … … 7861 7881 } 7862 7882 else 7883 # endif 7863 7884 LogFlow(("IEMExecOne: cs:rip=%04x:%08RX64 ss:rsp=%04x:%08RX64 EFL=%06x\n", 7864 7885 pCtx->cs, pCtx->rip, pCtx->ss, pCtx->rsp, pCtx->eflags.u)); … … 7916 7937 7917 7938 VBOXSTRICTRC rcStrict; 7918 if (cbOpcodeBytes) 7939 if ( cbOpcodeBytes 7940 && pCtx->rip == OpcodeBytesPC) 7919 7941 { 7920 7942 iemInitDecoder(pIemCpu);
Note:
See TracChangeset
for help on using the changeset viewer.

