diff options
Diffstat (limited to '')
| -rw-r--r-- | rtl/core/decode/isa.sv | 2 | ||||
| -rw-r--r-- | tb/sim/modeswitch.S | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/rtl/core/decode/isa.sv b/rtl/core/decode/isa.sv index 4c9f316..2ad5b40 100644 --- a/rtl/core/decode/isa.sv +++ b/rtl/core/decode/isa.sv @@ -195,7 +195,7 @@ `define INSN_MSR_IMM 28'b0_0_1_1_0_?_1_0_????_1111_????_???????? `define INSN_MSR_REG 28'b0_0_0_1_0_?_1_0_????_1111_0000_0000_???? -`define GROUP_MSR 28'b0_0_?_1_0_?_1_0_????_1111_0000_0000_???? +`define GROUP_MSR `INSN_MSR_IMM, `INSN_MSR_REG `define FIELD_MRS_R [22] `define FIELD_MRS_RD [15:12] diff --git a/tb/sim/modeswitch.S b/tb/sim/modeswitch.S index 52908de..384eb65 100644 --- a/tb/sim/modeswitch.S +++ b/tb/sim/modeswitch.S @@ -1,6 +1,7 @@ .global reset reset: mov r6, lr + msr cpsr_c, #0xd3 mrs r0, cpsr udf mrs r2, cpsr |
