Skip to content

Conversation

@james-ball-qualcomm
Copy link
Collaborator

Fix #181

@james-ball-qualcomm james-ball-qualcomm linked an issue Oct 24, 2024 that may be closed by this pull request
family: MockCRDFamily

mandatory_priv_modes:
- M,U
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming you want this to be an array, this should be:

  mandatory_priv_modes:
  - M
  - U

or

  mandatory_priv_modes: [M,U]

What you've written is an array with one string:

["M,U"]

* Red fields are defined by the RISC-V ISA but not present
* [green]#Green fields# are present in the associated CRD.
* [red]#Red fields# are defined by the RISC-V ISA but not required in the associated CRD.
* [silver]#Grey fields# are reserved for future use by RISC-V (AKA WPRI). Software should ignore the values read from
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice


# @return [true/false]
def m_mode?
mandatory_priv_modes.include?('M')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note: you don't need to change this. You lucked out that String and Array both have an include? method.

@ThinkOpenly
Copy link
Collaborator

Not to be a pain, but my preference is for commit messages to have subject lines that reflect what is being changed, rather than "Fixes #181". So, something like "Move mandatory privilege mode option from CRD family to CRD" (if I understand the changes correctly).

It makes the git history much more helpful, especially one-line format.

@dhower-qc dhower-qc changed the title Fix #181 Move mandatory privilege mode option from CRD family to CRD Oct 25, 2024
@james-ball-qualcomm
Copy link
Collaborator Author

Premature PR

@james-ball-qualcomm james-ball-qualcomm deleted the 181-move-priv-modes-present-from-crd-family-to-crd branch November 8, 2024 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move priv modes present from CRD family to CRD

4 participants