Skip to content

Commit

Permalink
src/mte_tag: change bit position for mte control (#11)
Browse files Browse the repository at this point in the history
MTE is a 64 bit only feature and thus *envcfg CSR width are 64.
Moving mte control bits at upper word location in *envcfg CSR.


Suggested-by: Samuel Holland <[email protected]>

Signed-off-by: Deepak Gupta <[email protected]>
  • Loading branch information
deepak0414 authored Jan 3, 2025
1 parent 905024e commit c982927
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/mte_tag.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,12 @@ configuration
{bits: 2, name: 'CBIE'},
{bits: 1, name: 'CBCFE'},
{bits: 1, name: 'CBZE'},
{bits: 23, name: 'WPRI'},
{bits: 2, name: 'PMM'},
{bits: 2, name: 'MTE_MODE'},
{bits: 1, name: 'MT_ASYNC'},
{bits: 50, name: 'WPRI'},
{bits: 21, name: 'WPRI'},
{bits: 1, name: 'CDE'},
{bits: 1, name: 'ADUE'},
{bits: 1, name: 'PBMTE'},
{bits: 1, name: 'STCE'},
Expand All @@ -407,8 +410,11 @@ When `MTE_MODE` is `0b00`, the following rules apply to HS/S-mode:
{bits: 2, name: 'CBIE'},
{bits: 1, name: 'CBCFE'},
{bits: 1, name: 'CBZE'},
{bits: 1, name: 'MTE_MODE'},
{bits: 55, name: 'WPRI'},
{bits: 24, name: 'WPRI'},
{bits: 2, name: 'PMM'},
{bits: 2, name: 'MTE_MODE'},
{bits: 1, name: 'MT_ASYNC'},
{bits: 27, name: 'WPRI'},
], config:{lanes: 4, hspace:1024}}
....

Expand All @@ -432,9 +438,12 @@ When `MTE_MODE` is `0b00`, the following rules apply to VU/U-mode:
{bits: 2, name: 'CBIE'},
{bits: 1, name: 'CBCFE'},
{bits: 1, name: 'CBZE'},
{bits: 23, name: 'WPRI'},
{bits: 2, name: 'PMM'},
{bits: 2, name: 'MTE_MODE'},
{bits: 1, name: 'MT_ASYNC'},
{bits: 50, name: 'WPRI'},
{bits: 21, name: 'WPRI'},
{bits: 1, name: 'CDE'},
{bits: 1, name: 'ADUE'},
{bits: 1, name: 'PBMTE'},
{bits: 1, name: 'STCE'},
Expand Down

0 comments on commit c982927

Please sign in to comment.