Skip to content

Commit

Permalink
src/mte_tag: fix bit position for mte enabling in *envcfg (#16)
Browse files Browse the repository at this point in the history
Fixing up text and fixing up bit positions for memory tagging to be in
upper 32 bits of *envcfg CSR.

Signed-off-by: Deepak Gupta <[email protected]>
  • Loading branch information
deepak0414 authored Jan 7, 2025
1 parent bb7ef25 commit e1ea425
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/mte_tag.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ When `MTE_MODE` is `0b00`, the following rules apply to M-mode:
{bits: 2, name: 'CBIE'},
{bits: 1, name: 'CBCFE'},
{bits: 1, name: 'CBZE'},
{bits: 23, name: 'WPRI'},
{bits: 24, name: 'WPRI'},
{bits: 2, name: 'PMM'},
{bits: 2, name: 'MTE_MODE'},
{bits: 1, name: 'MT_ASYNC'},
Expand All @@ -469,7 +469,7 @@ When `MTE_MODE` is `0b00`, the following rules apply to M-mode:
], config:{lanes: 4, hspace:1024}}
....

The Zimte extension adds the `MTE_MODE` field (bit 8:2) to `menvcfg`. When the
The Zimte extension adds the `MTE_MODE` field (bit 34:2) to `menvcfg`. When the
`MTE_MODE` field is set to `0b10` or `0b11`, memory tagging is enabled for
HS/S-mode.

Expand Down Expand Up @@ -498,7 +498,7 @@ When `MTE_MODE` is `0b00`, the following rules apply to HS/S-mode:
], config:{lanes: 4, hspace:1024}}
....

The Zimte extension adds the `MTE_MODE` field (bit 8:2) to `senvcfg`. When the
The Zimte extension adds the `MTE_MODE` field (bit 34:2) to `senvcfg`. When the
`MTE_MODE` field is set to `0b10` or `0b11`, memory tagging is enabled for
VU/U-mode.

Expand All @@ -518,7 +518,7 @@ 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: 24, name: 'WPRI'},
{bits: 2, name: 'PMM'},
{bits: 2, name: 'MTE_MODE'},
{bits: 1, name: 'MT_ASYNC'},
Expand All @@ -531,7 +531,7 @@ When `MTE_MODE` is `0b00`, the following rules apply to VU/U-mode:
], config:{lanes: 4, hspace:1024}}
....

The Zimte extension adds the `MTE_MODE` field (bit 8:2) to `henvcfg`. When the
The Zimte extension adds the `MTE_MODE` field (bit 34:2) to `henvcfg`. When the
`MTE_MODE` field is set to `0b10` or `0b11`, memory tagging is enabled for
VS-mode.

Expand Down

0 comments on commit e1ea425

Please sign in to comment.