diff options
Diffstat (limited to 'src/VBox/VMM')
-rw-r--r-- | src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp b/src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp index 11d4e00ebc8..be136d984d6 100644 --- a/src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp +++ b/src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp @@ -79,8 +79,6 @@ /********************************************************************************************************************************* * Global Variables * *********************************************************************************************************************************/ -/** NEM_DARWIN_PAGE_STATE_XXX names. */ -NEM_TMPL_STATIC const char * const g_apszPageStates[4] = { "not-set", "unmapped", "readable", "writable" }; /** The general registers. */ static const struct { @@ -406,26 +404,6 @@ DECLINLINE(int) nemR3DarwinProtectPage(PVM pVM, RTGCPHYS GCPhys, size_t cb, uint } #endif -DECLINLINE(int) nemR3NativeGCPhys2R3PtrReadOnly(PVM pVM, RTGCPHYS GCPhys, const void **ppv) -{ - PGMPAGEMAPLOCK Lock; - int rc = PGMPhysGCPhys2CCPtrReadOnly(pVM, GCPhys, ppv, &Lock); - if (RT_SUCCESS(rc)) - PGMPhysReleasePageMappingLock(pVM, &Lock); - return rc; -} - - -DECLINLINE(int) nemR3NativeGCPhys2R3PtrWriteable(PVM pVM, RTGCPHYS GCPhys, void **ppv) -{ - PGMPAGEMAPLOCK Lock; - int rc = PGMPhysGCPhys2CCPtr(pVM, GCPhys, ppv, &Lock); - if (RT_SUCCESS(rc)) - PGMPhysReleasePageMappingLock(pVM, &Lock); - return rc; -} - - #ifdef LOG_ENABLED /** * Logs the current CPU state. |