Changeset 36669 in vbox for trunk/src/VBox/VMM/include
- Timestamp:
- Apr 14, 2011 12:21:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/include/PATMInternal.h
r35348 r36669 241 241 } PATCHINFOTEMP, *PPATCHINFOTEMP; 242 242 243 /** Forward declaration for a pointer to a trampoline patch record. */ 244 typedef struct TRAMPREC *PTRAMPREC; 245 243 246 typedef struct _PATCHINFO 244 247 { … … 298 301 R3PTRTYPE(PPATCHINFOTEMP) pTempInfo; 299 302 303 /* List of trampoline patches referencing this patch. 304 * Used when refreshing the patch. (Only for function duplicates) */ 305 R3PTRTYPE(PTRAMPREC) pTrampolinePatchesHead; 306 300 307 /* Count the number of writes to the corresponding guest code. */ 301 308 uint32_t cCodeWrites; … … 312 319 /* First opcode byte, that's overwritten when a patch is marked dirty. */ 313 320 uint8_t bDirtyOpcode; 314 uint8_t Alignment2[ 7]; /**< Align the structure size on a 8-byte boundary. */321 uint8_t Alignment2[HC_ARCH_BITS == 64 ? 7 : 3]; /**< Align the structure size on a 8-byte boundary. */ 315 322 } PATCHINFO, *PPATCHINFO; 316 323 … … 330 337 PATCHINFO patch; 331 338 } PATMPATCHREC, *PPATMPATCHREC; 339 340 /** 341 * Record for a trampoline patch. 342 */ 343 typedef struct TRAMPREC 344 { 345 /** Pointer to the next trampoline patch. */ 346 struct TRAMPREC *pNext; 347 /** Pointer to the trampoline patch record. */ 348 PPATMPATCHREC pPatchTrampoline; 349 } TRAMPREC; 332 350 333 351 /** Increment for allocating room for pointer array */
Note:
See TracChangeset
for help on using the changeset viewer.