Skip to content

It's unclear how mhselect[2] is concatenated with mhvalue #1138

@en-sc

Description

@en-sc

[5.7.17. Trigger Extra (RV32) (textra32, at 0x7a3), mhselect filed description] states:

1, 5 (mcontext_select): This trigger will only match or fire if the
low bits of
{csr-mcontext}/{csr-hcontext} equal {{textra32-mhvalue}, mhselect[2]}.

It's unclear whether mhselect[2] is compared with the most significant bit of [mh]context or with the least significant one.

From the position of the field (mhselect[2] is the 25th bit of textra32 and mhvalue spans bits 26 through 31) it seems like mhselect[2] is compared with the LSB.

Is the interpretation correct? Can this be clarified?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions