diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2023-05-11 11:53:44 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2023-05-11 11:53:44 +0000 |
commit | 8445b2628a04f528dd24e6042fd85e344bef23fa (patch) | |
tree | 99b46137f217d6050442550d37f801a7cf0b7899 | |
parent | f7ec9f382aeef0689314a9aaf800766c85a2e66f (diff) | |
download | VirtualBox-svn-8445b2628a04f528dd24e6042fd85e344bef23fa.tar.gz |
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
-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. |