MMU: Replace uses of cassert with Common/Assert.h

This commit is contained in:
Pokechu22 2021-09-04 10:49:13 -07:00
parent aacc1a5e49
commit 673f886a7e
1 changed files with 5 additions and 6 deletions

View File

@ -3,7 +3,6 @@
#include "Core/PowerPC/MMU.h"
#include <cassert>
#include <cstddef>
#include <cstring>
#include <string>
@ -495,7 +494,7 @@ TryReadResult<u32> HostTryReadInstruction(const u32 address, RequestedAddressSpa
}
}
assert(0);
ASSERT(0);
return TryReadResult<u32>();
}
@ -601,7 +600,7 @@ static TryReadResult<T> HostTryReadUX(const u32 address, RequestedAddressSpace s
}
}
assert(0);
ASSERT(0);
return TryReadResult<T>();
}
@ -785,7 +784,7 @@ static TryWriteResult HostTryWriteUX(const u32 var, const u32 address, const u32
return TryWriteResult(true);
}
assert(0);
ASSERT(0);
return TryWriteResult();
}
@ -925,7 +924,7 @@ bool HostIsRAMAddress(u32 address, RequestedAddressSpace space)
return IsRAMAddress<XCheckTLBFlag::NoException>(address, true);
}
assert(0);
ASSERT(0);
return false;
}
@ -947,7 +946,7 @@ bool HostIsInstructionRAMAddress(u32 address, RequestedAddressSpace space)
return IsRAMAddress<XCheckTLBFlag::OpcodeNoException>(address, true);
}
assert(0);
ASSERT(0);
return false;
}