mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-22 13:17:41 -04:00
Do not support DRET when DebugEn = 0 (#1596)
When debug mode is disable, DRET instruction is not supported.
This commit is contained in:
parent
b7e936e754
commit
3fcb7b9c9b
1 changed files with 6 additions and 2 deletions
|
@ -171,8 +171,12 @@ module decoder
|
|||
// DRET
|
||||
12'b111_1011_0010: begin
|
||||
instruction_o.op = ariane_pkg::DRET;
|
||||
// check that we are in debug mode when executing this instruction
|
||||
illegal_instr = (!debug_mode_i) ? 1'b1 : illegal_instr;
|
||||
if (CVA6Cfg.DebugEn) begin
|
||||
// check that we are in debug mode when executing this instruction
|
||||
illegal_instr = (!debug_mode_i) ? 1'b1 : illegal_instr;
|
||||
end else begin
|
||||
illegal_instr = 1'b1;
|
||||
end
|
||||
end
|
||||
// WFI
|
||||
12'b1_0000_0101: begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue