Fix ARM9 exceptions displaying ARM11-specific info

This commit is contained in:
Aurora Wright
2017-10-07 20:57:42 +02:00
parent 348b175994
commit 1e4431dcc9
2 changed files with 5 additions and 5 deletions

View File

@@ -117,7 +117,7 @@ void detectAndProcessExceptionDumps(void)
else
posY = drawFormattedString(true, 10, posY + SPACING_Y, COLOR_WHITE, "Exception type: %s", handledExceptionNames[dumpHeader->type]);
if(dumpHeader->type >= 2)
if(dumpHeader->processor == 11 && dumpHeader->type >= 2)
{
u32 xfsr = (dumpHeader->type == 2 ? regs[18] : regs[17]) & 0xF;
@@ -144,7 +144,7 @@ void detectAndProcessExceptionDumps(void)
posY = drawFormattedString(true, 10 + 22 * SPACING_X, posY, COLOR_WHITE, "%-7s%08X", registerNames[i + 1], regs[20]);
}
if(dumpHeader->type == 3)
if(dumpHeader->processor == 11 && dumpHeader->type == 3)
posY = drawFormattedString(true, 10, posY + SPACING_Y, COLOR_WHITE, "%-7s%08X Access type: %s", "FAR", regs[19], regs[17] & (1u << 11) ? "Write" : "Read");
posY += SPACING_Y;