diff options
author | Clément Léger <cleger@rivosinc.com> | 2024-10-18 10:40:02 +0200 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-10-25 23:52:51 +0530 |
commit | daa282573ffac0f295de7631c98840668f20a568 (patch) | |
tree | 3de7a726113d69a316316abb2ccc71cc684968ec /platform/generic | |
parent | b919daf4958281b94fd2e03e23874b97b4908fc5 (diff) | |
download | opensbi-daa282573ffac0f295de7631c98840668f20a568.zip opensbi-daa282573ffac0f295de7631c98840668f20a568.tar.gz opensbi-daa282573ffac0f295de7631c98840668f20a568.tar.bz2 |
lib: sbi: factorize previous virtualization mode read from regs
The same pattern is used at multiple places to verify in which mode
the exception was actually taken. Factorize it.
Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Diffstat (limited to 'platform/generic')
0 files changed, 0 insertions, 0 deletions