Fix ipatches backup on dumping

This commit is contained in:
balika011
2018-12-15 16:56:45 +01:00
parent 20040ae70f
commit dad380344f
2 changed files with 5 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ static void _se_lock(bool lock_se)
SE(SE_SECURITY_0) &= 0xFFFFFFFB; // Make access lock regs secure only.
}
memset((void *)IPATCH_BASE, 0, 13);
memset((void *)IPATCH_BASE, 0, 13 * sizeof(u32));
SB(SB_CSR) = 0x10; // Protected IROM enable.
// This is useful for documenting the bits in the SE config registers, so we can keep it around.