Changeset 36933 in vbox
- Timestamp:
- May 3, 2011 1:42:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/include/PGMInternal.h
r36931 r36933 1060 1060 * @param a_uType PGM_PAGE_PDE_TYPE_*. 1061 1061 */ 1062 #ifdef PGMPAGE_USE_MORE_BITFIELDS 1063 #define PGM_PAGE_SET_PDE_TYPE(a_pPage, a_uType) \ 1064 do { (a_pPage)->u1.bit.u2PDETypeY = (a_uType); } while (0) 1065 #else 1062 1066 #define PGM_PAGE_SET_PDE_TYPE(a_pPage, a_uType) \ 1063 1067 do { \ … … 1065 1069 | (((a_uType) & UINT8_C(0x03)) << 5); \ 1066 1070 } while (0) 1071 #endif 1067 1072 1068 1073 /** … … 1071 1076 * @param a_pPage Pointer to the physical guest page tracking structure. 1072 1077 */ 1078 #ifdef PGMPAGE_USE_MORE_BITFIELDS 1079 #define PGM_PAGE_GET_PDE_TYPE(a_pPage) ( (a_pPage)->u1.bit.u2PDETypeY ) 1080 #else 1073 1081 #define PGM_PAGE_GET_PDE_TYPE(a_pPage) ( ((a_pPage)->u1.au8[1] & UINT8_C(0x60)) >> 5) 1082 #endif 1074 1083 1075 1084 /** Enabled optimized access handler tests.
Note:
See TracChangeset
for help on using the changeset viewer.