Changeset 45799 in vbox for trunk/src/recompiler
- Timestamp:
- Apr 29, 2013 3:46:29 AM (12 years ago)
- Location:
- trunk/src/recompiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxREMWrapper.cpp
r45618 r45799 1272 1272 { "PGMChangeMode", VMM_FN(PGMChangeMode), &g_aArgsPGMChangeMode[0], RT_ELEMENTS(g_aArgsPGMChangeMode), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1273 1273 { "PGMFlushTLB", VMM_FN(PGMFlushTLB), &g_aArgsPGMFlushTLB[0], RT_ELEMENTS(g_aArgsPGMFlushTLB), REMFNDESC_FLAGS_RET_INT, sizeof(int), NULL }, 1274 { "PGMCr0WpEnabled", VMM_FN(PGMCr0WpEnabled), &g_aArgsVMCPU[0], RT_ELEMENTS(g_aArgsVMCPU), REMFNDESC_FLAGS_RET_VOID, 0, NULL }, 1274 1275 { "PGMR3PhysReadU8", VMM_FN(PGMR3PhysReadU8), &g_aArgsPGMR3PhysReadUxx[0], RT_ELEMENTS(g_aArgsPGMR3PhysReadUxx), REMFNDESC_FLAGS_RET_INT, sizeof(uint8_t), NULL }, 1275 1276 { "PGMR3PhysReadU16", VMM_FN(PGMR3PhysReadU16), &g_aArgsPGMR3PhysReadUxx[0], RT_ELEMENTS(g_aArgsPGMR3PhysReadUxx), REMFNDESC_FLAGS_RET_INT, sizeof(uint16_t), NULL }, -
trunk/src/recompiler/VBoxRecompiler.c
r45751 r45799 1953 1953 Assert(pVM->rem.s.fInREM); 1954 1954 1955 pCtx = (PCPUMCTX)pVM->rem.s.pCtx; 1956 Assert(pCtx); 1957 1958 /* 1959 * Notify PGM about WP0 being enabled (like CPUSetGuestCR0 does). 1960 */ 1961 if (((env->cr[0] ^ pCtx->cr0) & X86_CR0_WP) && (env->cr[0] & X86_CR0_WP)) 1962 PGMCr0WpEnabled(env->pVCpu); 1963 1955 1964 /* 1956 1965 * Update the control registers before calling PGMChangeMode() 1957 1966 * as it may need to map whatever cr3 is pointing to. 1958 1967 */ 1959 pCtx = (PCPUMCTX)pVM->rem.s.pCtx;1960 Assert(pCtx);1961 1968 pCtx->cr0 = env->cr[0]; 1962 1969 pCtx->cr3 = env->cr[3];
Note:
See TracChangeset
for help on using the changeset viewer.