Browse Source

[core] memory: fix inverted cond

pull/4181/head
Exverge 6 days ago
parent
commit
91f9df92f2
No known key found for this signature in database GPG Key ID: DAD399BCC5FB77E4
  1. 2
      src/core/memory.cpp

2
src/core/memory.cpp

@ -77,7 +77,7 @@ struct Memory::Impl {
Common::PageType::Memory);
if (current_page_table->fastmem_arena) {
bool is_fastmem = GetInteger(base) % Common::HostPageSize != GetInteger(target) % Common::HostPageSize;
bool is_fastmem = GetInteger(base) % Common::HostPageSize == GetInteger(target) % Common::HostPageSize;
if (!is_fastmem) {
LOG_WARNING(HW_Memory, "base {:#x} and target {:#x} aren't aligned in relation to host page size {}",
GetInteger(base), GetInteger(target), Common::HostPageSize);

Loading…
Cancel
Save