From 8445b2628a04f528dd24e6042fd85e344bef23fa Mon Sep 17 00:00:00 2001 From: vboxsync Date: Thu, 11 May 2023 11:53:44 +0000 Subject: VMM/NEMR3Native-darwin-armv8: Remove some unused code, bugref:10390 git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@99749 cfe28804-0f27-0410-a406-dd0f0b0b656f --- src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp | 22 ---------------------- 1 file changed, 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. -- cgit v1.2.1