ARMJit Compiler::Reset(): Cleaner way to fill memory with BRK.
This commit is contained in:
parent
2c2e868de0
commit
4754596870
|
@ -833,8 +833,9 @@ void Compiler::Reset()
|
||||||
|
|
||||||
const u32 brk_0 = 0xD4200000;
|
const u32 brk_0 = 0xD4200000;
|
||||||
|
|
||||||
for (int i = 0; i < (JitMemMainSize + JitMemSecondarySize) / 4; i++)
|
u8* const rw_ptr = GetWriteableRWPtr();
|
||||||
*(((u32*)GetRWPtr()) + i) = brk_0;
|
for (u32 i = 0; i < (JitMemMainSize + JitMemSecondarySize); i += sizeof(u32))
|
||||||
|
std::memcpy(rw_ptr + i, &brk_0, sizeof(u32));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Compiler::Comp_AddCycles_C(bool forceNonConstant)
|
void Compiler::Comp_AddCycles_C(bool forceNonConstant)
|
||||||
|
|
Loading…
Reference in New Issue