Warning fixes, alignment checks

This commit is contained in:
Henrik Rydgård committed 2025-05-15 09:48:23 +02:00
1 parent fba2489c79
commit 5260be6f69
7 files changed
+28 -9

No files matched your search

+1 -2
View File
@@ -74,6 +74,7 @@ namespace MIPSCodeUtils
}
}
// As long as addr is aligned, this will only return aligned addresses.
u32 GetSureBranchTarget(u32 addr) {
MIPSOpcode op = Memory::Read_Instruction(addr, true);
if (op != 0) {
@@ -130,6 +131,4 @@ namespace MIPSCodeUtils
bool IsBranch(MIPSOpcode op) {
return (MIPSGetInfo(op) & IS_CONDBRANCH) == IS_CONDBRANCH;
}
}