Skip to content

Commit

Permalink
Make permission bit order consistent
Browse files Browse the repository at this point in the history
Use the same ordering for permission bits in CAndPerms as in the RV64 encoding.

Fixes #25
  • Loading branch information
Timmmm committed Jan 25, 2024
1 parent 4cb8337 commit 69d9353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cap-description.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ permissions are granted as follows:

* <<c_perm>>: bit 0 is set
* <<w_perm>>: bit 1 is set
* <<x_perm>>: bit 3 is set
* <<r_perm>>: bits 3 or 2 are set
* <<x_perm>>: bit 3 is set
* <<asr_perm>>: bits 3 and 2 are set

A {cap_rv64_perms_width}-bit vector encodes the permissions when XLENMAX=64. In
Expand Down
4 changes: 2 additions & 2 deletions src/img/candperms_bit_field.edn
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
(draw-box "Reserved" {:span 11})
(draw-box "ASR" {:span 1})
(draw-box "X" {:span 1})
(draw-box "C" {:span 1})
(draw-box "W" {:span 1})
(draw-box "R" {:span 1})
(draw-box "W" {:span 1})
(draw-box "C" {:span 1})

(draw-box "XLEN-SDPLEN-16" {:span 12 :borders {}})
(draw-box "SDPLEN" {:span 4 :borders {}})
Expand Down

0 comments on commit 69d9353

Please sign in to comment.