Compare commits

...

2 Commits

Author SHA1 Message Date
Admiral H. Curtiss 450387932f
Merge 4754596870 into 817b409ec8 2024-12-01 01:51:04 +00:00
Admiral H. Curtiss 4754596870 ARMJit Compiler::Reset(): Cleaner way to fill memory with BRK. 2021-03-24 23:50:12 +01:00
1 changed files with 3 additions and 2 deletions

View File

@ -837,8 +837,9 @@ void Compiler::Reset()
const u32 brk_0 = 0xD4200000;
for (int i = 0; i < (JitMemMainSize + JitMemSecondarySize) / 4; i++)
*(((u32*)GetRWPtr()) + i) = brk_0;
u8* const rw_ptr = GetWriteableRWPtr();
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)