Skip to content

Boot to lowest supported priv mode - #2175

Open
Jordan Carlin (jordancarlin) wants to merge 23 commits into
riscv:act4from
jordancarlin:boot_to_low_priv
Open

Boot to lowest supported priv mode#2175
Jordan Carlin (jordancarlin) wants to merge 23 commits into
riscv:act4from
jordancarlin:boot_to_low_priv

Conversation

@jordancarlin

Copy link
Copy Markdown
Collaborator

By default, tests boot to the lowest supported priv mode. That means unpriv tests run in U mode when supported and Sm otherwise. Priv tests that need to run in a different mode (Sm or S) must define BOOT_TO_MMODE or BOOT_TO_SMODE respectively. Priv tests that need to run in U mode do not need any special defines.

All priv tests that are not yet ported to T-SBI temporarily have BOOT_TO_MMODE added to avoid changing their behavior.

Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
Signed-off-by: Jordan Carlin <jcarlin@qti.qualcomm.com>
@github-actions github-actions Bot added status: needs-review PR is ready for a review Test Environment Issues or pull requests that modify test environment headers, macros, or support code Tests Issues or pull requests related to the test generator or handwritten tests labels Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: needs-review PR is ready for a review Test Environment Issues or pull requests that modify test environment headers, macros, or support code Tests Issues or pull requests related to the test generator or handwritten tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants