mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
Add support for SIGILL (reserved-instruction-exception).
This commit is contained in:
@ -99,8 +99,6 @@ lookup_hash (ins, size)
|
||||
{
|
||||
if (h->next == NULL)
|
||||
{
|
||||
(*d10v_callback->printf_filtered)
|
||||
(d10v_callback, "ERROR: Illegal instruction %x at PC %x\n", ins, PC);
|
||||
State.exception = SIGILL;
|
||||
State.pc_changed = 1; /* Don't increment the PC. */
|
||||
return NULL;
|
||||
@ -979,6 +977,13 @@ sim_resume (sd, step, siggnal)
|
||||
JMP (AE_VECTOR_START);
|
||||
SLOT_FLUSH ();
|
||||
break;
|
||||
case SIGILL:
|
||||
SET_BPC (PC);
|
||||
SET_BPSW (PSW);
|
||||
SET_HW_PSW ((PSW & (PSW_F0_BIT | PSW_F1_BIT | PSW_C_BIT)));
|
||||
JMP (RIE_VECTOR_START);
|
||||
SLOT_FLUSH ();
|
||||
break;
|
||||
default:
|
||||
/* just ignore it */
|
||||
break;
|
||||
|
Reference in New Issue
Block a user