Skip to content

Commit

Permalink
Merge pull request #36 from Timmmm/user/timh/permission_bit_order
Browse files Browse the repository at this point in the history
Make permission bit order consistent
  • Loading branch information
andresag01 authored Jan 25, 2024
2 parents 4cb8337 + 69d9353 commit 0c7d900
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 0c7d900

Please sign in to comment.