Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions arch/ext/Sm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,18 @@ Sm:
type: boolean
TRAP_ON_UNIMPLEMENTED_INSTRUCTION:
description: |
When true, fetching an unimplemented instruction will cause an `IllegalInstruction` exception.
When true, fetching an unimplemented instruction from the custom encoding space will cause
an `IllegalInstruction` exception.

When false, fetching an unimplemented instruction is `unpredictable`.
When false, fetching an unimplemented instruction is `UNPREDICTABLE`.
schema:
type: boolean
TRAP_ON_RESERVED_INSTRUCTION:
description: |
When true, fetching an unimplemented and/or undefined instruction from the standard/reserved
encoding space will cause an `IllegalInstruction` exception.

When false, fetching such an instruction is `UNPREDICTABLE`.
schema:
type: boolean
TRAP_ON_UNIMPLEMENTED_CSR:
Expand Down
1 change: 1 addition & 0 deletions cfgs/generic_rv64/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ params:
# when false, writing an illegal value to a WLRL CSR field is ignored
TRAP_ON_ILLEGAL_WLRL: true
TRAP_ON_UNIMPLEMENTED_INSTRUCTION: true
TRAP_ON_RESERVED_INSTRUCTION: true
TRAP_ON_UNIMPLEMENTED_CSR: true

# Whether or not a real hardware `time` CSR exists. Implementations can either provide a real
Expand Down
Loading