hostmem doesn't exist?

This commit is contained in:
lizzie 2026-05-17 20:40:48 +00:00
parent b01a4cadd8
commit ff3874ef2b
3 changed files with 11 additions and 12 deletions

View file

@ -764,8 +764,7 @@ void HostMemory::Protect(size_t virtual_offset, size_t length, MemoryPermission
}
void HostMemory::ClearBackingRegion(size_t physical_offset, size_t length, u32 fill_value) {
if (!impl)
std::memset(backing_base + physical_offset, fill_value, length);
std::memset(backing_base + physical_offset, fill_value, length);
}
void HostMemory::EnableDirectMappedAddress() {

View file

@ -74,14 +74,13 @@ public:
}
private:
size_t backing_size{};
size_t virtual_size{};
#if !(defined(__OPENORBIS__) || defined(__managarm__))
// Low level handler for the platform dependent memory routines
class Impl;
std::unique_ptr<Impl> impl;
#endif
size_t backing_size{};
size_t virtual_size{};
u8* backing_base{};
u8* virtual_base{};
size_t virtual_base_offset{};