mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2024-12-28 04:23:36 +01:00
kernel: add crash details on illegal instructions
This commit is contained in:
parent
03ef59521c
commit
8d444b4f78
1 changed files with 3 additions and 1 deletions
|
@ -117,7 +117,9 @@ GNORETURN static void gint_default_panic(GUNUSED uint32_t code)
|
|||
/* Illegal instruction handler */
|
||||
if(code == 0x180)
|
||||
{
|
||||
dprint(6, 141, "Opcode: %04x", *(uint16_t *)PC);
|
||||
uint16_t *opcodes = (void *)PC;
|
||||
dprint(6, 141, "Opcodes: %04x %04x [%04x] %04x",
|
||||
opcodes[-2], opcodes[-1], opcodes[0], opcodes[1]);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue