Merge pull request #2732 from Sonicadvance1/remove_dead_interface

Context: Removes dead `AddVirtualMemoryMapping` function
This commit is contained in:
Mai authored and GitHub committed 2023-06-30 17:57:06 -04:00
commit c3e123df25
3 files changed
-17

No files matched your search

-4
View File
@@ -66,10 +66,6 @@ namespace FEXCore::Context {
CustomCPUFactory = std::move(Factory);
}
bool FEXCore::Context::ContextImpl::AddVirtualMemoryMapping([[maybe_unused]] uint64_t VirtualAddress, [[maybe_unused]] uint64_t PhysicalAddress, [[maybe_unused]] uint64_t Size) {
return false;
}
HostFeatures FEXCore::Context::ContextImpl::GetHostFeatures() const {
return HostFeatures;
}
-2
View File
@@ -100,8 +100,6 @@ namespace FEXCore::Context {
void SetCustomCPUBackendFactory(CustomCPUFactoryType Factory) override;
bool AddVirtualMemoryMapping(uint64_t VirtualAddress, uint64_t PhysicalAddress, uint64_t Size) override;
HostFeatures GetHostFeatures() const override;
void HandleCallback(FEXCore::Core::InternalThreadState *Thread, uint64_t RIP) override;
-11
View File
@@ -225,17 +225,6 @@ namespace FEXCore::Context {
*/
FEX_DEFAULT_VISIBILITY virtual void SetCustomCPUBackendFactory(CustomCPUFactoryType Factory) = 0;
/**
* @brief Sets up memory regions on the guest for mirroring within the guest's VM space
*
* @param VirtualAddress The address we want to set to mirror a physical memory region
* @param PhysicalAddress The physical memory region we are mapping
* @param Size Size of the region to mirror
*
* @return true when successfully mapped. false if there was an error adding
*/
FEX_DEFAULT_VISIBILITY virtual bool AddVirtualMemoryMapping(uint64_t VirtualAddress, uint64_t PhysicalAddress, uint64_t Size) = 0;
/**
* @brief Retrieves a feature struct indicating certain supported aspects from
* the hose.