diff options
| author | Prashanth Mundkur | 2018-06-25 16:08:39 -0700 |
|---|---|---|
| committer | Prashanth Mundkur | 2018-06-25 16:08:39 -0700 |
| commit | 090d2b38c09f12fdbb677b94b94ac7d86bb8c789 (patch) | |
| tree | 7810094cb91b527bd83540ab74eef36f86d6f45f /riscv/platform_main.ml | |
| parent | 768728bc21bb45b39494443f81f3e9de65f94fe1 (diff) | |
Add a riscv platform parameter to control trapping to M-mode on misaligned access, and a cli option to control it.
Diffstat (limited to 'riscv/platform_main.ml')
| -rw-r--r-- | riscv/platform_main.ml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/riscv/platform_main.ml b/riscv/platform_main.ml index a087e90c..8dd47547 100644 --- a/riscv/platform_main.ml +++ b/riscv/platform_main.ml @@ -69,7 +69,10 @@ let options = Arg.align ([("-dump-dts", " dump the *binary* platform device-tree blob to stdout"); ("-enable-dirty-update", Arg.Set P.config_enable_dirty_update, - " enable dirty-bit update during page-table walks") + " enable dirty-bit update during page-table walks"); + ("-enable-misaligned-access", + Arg.Set P.config_enable_misaligned_access, + " enable misaligned accesses without M-mode traps") ]) let usage_msg = "RISC-V platform options:" |
