Skip to content

Commit

Permalink
Add B standard extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ved-rivos committed Mar 25, 2024
1 parent d69d777 commit cdb2585
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/b-st-ext.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[[bits]]
== "B" Standard Extension for Bit Manipulation, Version 1.0.0

The B standard extension comprises instructions provided by the Zba, Zbb, and
Zbs extensions.

[[preface]]
=== Bit-manipulation a, b, c and s extensions grouped for public review and ratification

Expand Down Expand Up @@ -3898,4 +3901,4 @@ strcmp:
ret

.size strcmp, .-strcmp
--
--
6 changes: 5 additions & 1 deletion src/machine.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ X +
Y +
Z
|Atomic extension +
_Reserved_ +
B extension +
Compressed extension +
Double-precision floating-point extension +
RV32E/64E base ISA +
Expand Down Expand Up @@ -192,6 +192,10 @@ supervisor modes respectively.

The "X" bit will be set if there are any non-standard extensions.

When "B" bit is 1, the implementation supports the instructions provided by the
Zba, Zbb, and Zbs extensions. When "B" bit is 0, it indicates that the
implementation may not support one or more of the Zba, Zbb, or Zbs extensions.

[NOTE]
====
The `misa` CSR exposes a rudimentary catalog of CPU features to
Expand Down
2 changes: 2 additions & 0 deletions src/naming.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ e.g., RV32IMACV is legal, whereas RV32IMAVC is not.

|16-bit Compressed Instructions |C |

|B Extension |B |

|Packed-SIMD Extensions |P |

|Vector Extension |V |D
Expand Down

0 comments on commit cdb2585

Please sign in to comment.