Changeset 62302 in vbox for trunk/src/VBox/VMM/include
- Timestamp:
- Jul 18, 2016 1:58:10 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 108829
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/include/IEMInternal.h
r62289 r62302 64 64 #endif 65 65 66 67 //#define IEM_WITH_CODE_TLB// - work in progress 66 68 67 69 … … 310 312 /** Pointer to the ring-3 mapping (possibly also valid in ring-0). */ 311 313 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE 312 R3PTRTYPE(uint8_t *) p MappingR3;314 R3PTRTYPE(uint8_t *) pbMappingR3; 313 315 #else 314 R3R0PTRTYPE(uint8_t *) p MappingR3;316 R3R0PTRTYPE(uint8_t *) pbMappingR3; 315 317 #endif 316 318 #if HC_ARCH_BITS == 32 … … 371 373 /** TLB misses. */ 372 374 uint32_t cTlbMisses; 375 /** Slow read path. */ 376 uint32_t cTlbSlowReadPath; 377 #if 0 373 378 /** TLB misses because of tag mismatch. */ 374 379 uint32_t cTlbMissesTag; … … 383 388 /** TLB misses because no r3(/r0) mapping. */ 384 389 uint32_t cTlbMissesMapping; 390 #endif 385 391 /** Alignment padding. */ 386 uint32_t au32Padding[3 ];392 uint32_t au32Padding[3+5]; 387 393 } IEMTLB; 388 394 AssertCompileSizeAlignment(IEMTLB, 64); … … 448 454 * This takes the CS segment limit into account. */ 449 455 uint16_t cbInstrBufTotal; /* 0x24 */ 450 /** Offset into pbInstrBuf of the first byte of the current instruction. */ 451 uint16_t offCurInstrStart; /* 0x26 */ 456 /** Offset into pbInstrBuf of the first byte of the current instruction. 457 * Can be negative to efficiently handle cross page instructions. */ 458 int16_t offCurInstrStart; /* 0x26 */ 452 459 453 460 /** The prefix mask (IEM_OP_PRF_XXX). */ … … 722 729 /** @def Gets the instruction length. */ 723 730 #ifdef IEM_WITH_CODE_TLB 724 # define IEM_GET_INSTR_LEN(a_pVCpu) ((a_pVCpu)->iem.s.offInstrNextByte - (uint32_t)( a_pVCpu)->iem.s.offCurInstrStart)731 # define IEM_GET_INSTR_LEN(a_pVCpu) ((a_pVCpu)->iem.s.offInstrNextByte - (uint32_t)(int32_t)(a_pVCpu)->iem.s.offCurInstrStart) 725 732 #else 726 733 # define IEM_GET_INSTR_LEN(a_pVCpu) ((a_pVCpu)->iem.s.offOpcode)
Note:
See TracChangeset
for help on using the changeset viewer.