diff options
| author | Prashanth Mundkur | 2018-10-08 09:35:11 -0700 |
|---|---|---|
| committer | Prashanth Mundkur | 2018-10-23 15:32:15 -0700 |
| commit | d43b475507ed9144b26be124376c3e656005a416 (patch) | |
| tree | 5d4bc4eba9b4993610ee9098abbd68c2cac01fe0 /riscv/riscv_platform.c | |
| parent | e3490924e6bce23d3d4b236fdc61c7345a17e814 (diff) | |
RISC-V: Add a platform knob to control mtval contents on illegal instruction faults.
Diffstat (limited to 'riscv/riscv_platform.c')
| -rw-r--r-- | riscv/riscv_platform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/riscv_platform.c b/riscv/riscv_platform.c index 5eeb0eb7..f0aff76a 100644 --- a/riscv/riscv_platform.c +++ b/riscv/riscv_platform.c @@ -14,6 +14,9 @@ bool plat_enable_dirty_update(unit u) bool plat_enable_misaligned_access(unit u) { return rv_enable_misaligned; } +bool plat_mtval_has_illegal_inst_bits(unit u) +{ return rv_mtval_has_illegal_inst_bits; } + mach_bits plat_ram_base(unit u) { return rv_ram_base; } |
