Clarification on misa csr

120 views
Skip to first unread message

Joseph Rahmeh

unread,
Jan 9, 2018, 5:38:16 PM1/9/18
to isa...@groups.riscv.org

Hi All,

 

The privileged architecture spec (version 1.11) indicates that the misa register is read-write (table 2.4).  But section 3.1.1 says that the XML field may be writable (which suggests that it may also be read-only).

The remaining bits are either WARL or WIRI which suggests that they may be implemented as read only.  Since all the bits may be implemented as read only then can the whole register be read-only?

 

Thanks,

 

Joe

Christoph Hellwig

unread,
Jan 9, 2018, 5:48:27 PM1/9/18
to Joseph Rahmeh, isa...@groups.riscv.org
The misa register should generally be read-only except for a RV64 CPU
that also supports a RV32 mode (or in the future RV128 + RV64/32).

Andrew Waterman

unread,
Jan 9, 2018, 6:55:35 PM1/9/18
to Joseph Rahmeh, isa...@groups.riscv.org
It’s up to the implementation which, if any, parts of misa are read-only.

--
You received this message because you are subscribed to the Google Groups "RISC-V ISA Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isa-dev+u...@groups.riscv.org.
To post to this group, send email to isa...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/isa-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/BY2PR0401MB106196D451FBADC71D3E400CFB100%40BY2PR0401MB1061.namprd04.prod.outlook.com.

Stefan O'Rear

unread,
Jan 10, 2018, 5:03:48 AM1/10/18
to Christoph Hellwig, Joseph Rahmeh, isa...@groups.riscv.org
On Tue, Jan 9, 2018 at 2:48 PM, Christoph Hellwig
<Christop...@wdc.com> wrote:
> The misa register should generally be read-only except for a RV64 CPU
> that also supports a RV32 mode (or in the future RV128 + RV64/32).

The lower 26 bits of misa are defined to allow an implementation to
enable and disable standard extensions at runtime; this serves
virtualization use-cases, and may also be needed for lazy context
saving the V extension (past discussions have been inconclusive).

-s
Reply all
Reply to author
Forward
0 new messages