diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2020-03-12 14:20:37 +0900 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-13 10:02:42 +0530 |
commit | 86d37bbd7ddf44430eb63ac521261f2fa11733b0 (patch) | |
tree | 8912ecbec6ec3bf2aba67c11c1fdbab8180c6dfb /platform | |
parent | 757bb44e6eff4f093bcc8b38333db2a37ffe47a4 (diff) |
lib: sbi: Fix misaligned trap handling
Compile time checks of __riscv_compressed can only check if OpenSBI is
being compiled using compressed instructions or not. Checking this macro
does not indicate if an instruction that generated a misaligned trap is
a compressed instruction or not.
Since the misaligned trap handling code inspects instructions _C_ bits
to detect compressed instructions, we can remove all static checks on
__riscv_compressed and dissociate hanlding of misaligned traps and
OpenSBI compilation.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'platform')
0 files changed, 0 insertions, 0 deletions