summaryrefslogtreecommitdiff
path: root/rtl
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-10-23 23:16:36 -0600
committerAlejandro Soto <alejandro@34project.org>2022-10-23 23:16:36 -0600
commit1ad7b946c13493a19fcebb0d1d1e1c4397f476e8 (patch)
tree36bd9b119646b81474acbe66dfe9881007dd5364 /rtl
parenta7674fa6795171ac5055fe8d7165c392d9374482 (diff)
Enforce UND exceptions when SBZ is not followed in data-processing instructions
Diffstat (limited to '')
-rw-r--r--rtl/core/decode/isa.sv4
1 files changed, 3 insertions, 1 deletions
diff --git a/rtl/core/decode/isa.sv b/rtl/core/decode/isa.sv
index baaf371..98d338e 100644
--- a/rtl/core/decode/isa.sv
+++ b/rtl/core/decode/isa.sv
@@ -66,7 +66,9 @@
`define INSN_BIC 28'b00_?_1110_?_????_????_????????????
`define INSN_MVN 28'b00_?_1111_?_0000_????_????????????
-`define GROUP_ALU 28'b00_?_????_?_????_????_????????????
+`define GROUP_ALU \
+ `INSN_AND, `INSN_EOR, `INSN_SUB, `INSN_RSB, `INSN_ADD, `INSN_ADC, `INSN_SBC, `INSN_RSC, \
+ `INSN_TST, `INSN_TEQ, `INSN_CMP, `INSN_CMN, `INSN_ORR, `INSN_MOV, `INSN_BIC, `INSN_MVN
`define FIELD_DATA_IMM [25]
`define FIELD_DATA_OPCODE [24:21]