mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
remove some UB
- savestates used to read a four bytes from a single byte value - a few unassigned variables - some other things - also make the ROR macro an inline function
This commit is contained in:
@ -1087,7 +1087,10 @@ void ResetBlockCache()
|
||||
|
||||
InvalidLiterals.Clear();
|
||||
for (int i = 0; i < ARMJIT_Memory::memregions_Count; i++)
|
||||
memset(FastBlockLookupRegions[i], 0xFF, CodeRegionSizes[i] * sizeof(u64) / 2);
|
||||
{
|
||||
if (FastBlockLookupRegions[i])
|
||||
memset(FastBlockLookupRegions[i], 0xFF, CodeRegionSizes[i] * sizeof(u64) / 2);
|
||||
}
|
||||
for (auto it = RestoreCandidates.begin(); it != RestoreCandidates.end(); it++)
|
||||
delete it->second;
|
||||
RestoreCandidates.clear();
|
||||
|
Reference in New Issue
Block a user