summaryrefslogtreecommitdiff
path: root/riscv/riscv_platform_impl.c
diff options
context:
space:
mode:
authorPrashanth Mundkur2018-10-08 09:35:11 -0700
committerPrashanth Mundkur2018-10-23 15:32:15 -0700
commitd43b475507ed9144b26be124376c3e656005a416 (patch)
tree5d4bc4eba9b4993610ee9098abbd68c2cac01fe0 /riscv/riscv_platform_impl.c
parente3490924e6bce23d3d4b236fdc61c7345a17e814 (diff)
RISC-V: Add a platform knob to control mtval contents on illegal instruction faults.
Diffstat (limited to 'riscv/riscv_platform_impl.c')
-rw-r--r--riscv/riscv_platform_impl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/riscv/riscv_platform_impl.c b/riscv/riscv_platform_impl.c
index d8d52da0..04a661c0 100644
--- a/riscv/riscv_platform_impl.c
+++ b/riscv/riscv_platform_impl.c
@@ -4,8 +4,9 @@
/* Settings of the platform implementation, with common defaults. */
-bool rv_enable_dirty_update = false;
-bool rv_enable_misaligned = false;
+bool rv_enable_dirty_update = false;
+bool rv_enable_misaligned = false;
+bool rv_mtval_has_illegal_inst_bits = false;
uint64_t rv_ram_base = UINT64_C(0x80000000);
uint64_t rv_ram_size = UINT64_C(0x80000000);