XUANTIE-RV / thead-extension-spec

XuanTie vendor extension Instruction Set spec
Apache License 2.0
30 stars 20 forks source link

Introduce th.sxstatus CSR #46

Closed cmuellner closed 5 months ago

cmuellner commented 5 months ago

To implement proper extension discovery, we need to specify a mechanism to identify the availability of XThead* extension in a system. This mechanism already exists with the th.sxstatus register's THEADISAEE bit. Let's document this CSR.

Other bits than THEADISAEE are either 0 or defined as WPRI. This allows to define them in other extensions (e.g. UCME is defined as part of XTheadCmo and MAEE is defined as part of XTheadMaee).

The th.sxstatus CSR is defined to be available on all system's with a mvendorid or 0x5B7.