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
23 changes: 23 additions & 0 deletions arch/csr/misa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,29 @@ fields:
.. Execute every in-scope multiply extension instruction
. check
.. Check that every multiply extension instruction throws illegal instruction exception
Q:
location: 16
description: |
Indicates support for the `Q` (quad precision float) extension.

[when,"MUTABLE_MISA_Q == true"]
--
Writing 0 to this field will cause all quad-precision floating point instructions to raise an `IllegalInstruction` exception.
--
type(): |
return (implemented?(ExtensionName::Q) && MUTABLE_MISA_Q) ? CsrFieldType::RW : CsrFieldType::RO;
reset_value(): |
return implemented?(ExtensionName::Q) ? 1 : 0;
definedBy: Q
sw_write(csr_value): |
if (csr_value.Q == 0) {
return UNDEFINED_LEGAL_DETERMINISTIC;
}

# fall-through; write the intended value
return csr_value.Q;
legal?(csr_value): |
return !(csr_value.Q == 0);
S:
location: 18
description: |
Expand Down
6 changes: 6 additions & 0 deletions arch/ext/Q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ versions:
state: ratified
ratification_date: null
requires: D
params:
MUTABLE_MISA_Q:
description: |
Indicates whether or not the `Q` extension can be disabled with the `misa.Q` bit.
schema:
type: boolean
Loading