From fb191336c8c8a3398a9f5d5244e01114479e334d Mon Sep 17 00:00:00 2001 From: Olof Astrand Date: Tue, 14 Jul 2020 09:47:53 +0200 Subject: [PATCH] Goto inst_start on illegal instructions --- data/languages/xtensaInstructions.sinc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/languages/xtensaInstructions.sinc b/data/languages/xtensaInstructions.sinc index 4c06099..468b9fe 100644 --- a/data/languages/xtensaInstructions.sinc +++ b/data/languages/xtensaInstructions.sinc @@ -480,11 +480,13 @@ macro extract_bit(val, bit, result) { # ILL - Illegal Instruction, pg. 358. :ill is op2 = 0 & op1 = 0 & ar = 0 & as = 0 & at = 0 & op0 = 0 { ill(); + goto inst_start; } # ILL.N - Narrow Illegal Instruction, pg. 359. :ill.n is n_ar = 0b1111 & n_as = 0 & n_at = 0b0110 & n_op0 = 0b1101 { ill(); + goto inst_start; } # IPF - Instruction Cache Prefetch, pg. 360.