summaryrefslogtreecommitdiff
path: root/riscv/riscv_platform_impl.h
diff options
context:
space:
mode:
authorPrashanth Mundkur2018-09-10 12:16:42 -0700
committerPrashanth Mundkur2018-10-23 15:32:15 -0700
commit2cef8d0c31a09ea4fac9a48faff882dde4e98641 (patch)
treea69ee2f3f27742cb971fadad6b29feb0700835ad /riscv/riscv_platform_impl.h
parente489f2d37efa4c320004d35c3025c77e0a0c60d0 (diff)
RISC-V: Refactor c platform bits.
Diffstat (limited to 'riscv/riscv_platform_impl.h')
-rw-r--r--riscv/riscv_platform_impl.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/riscv/riscv_platform_impl.h b/riscv/riscv_platform_impl.h
new file mode 100644
index 00000000..baae2749
--- /dev/null
+++ b/riscv/riscv_platform_impl.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <stdbool.h>
+#include <stdint.h>
+
+/* Settings of the platform implementation. */
+
+extern bool rv_enable_dirty_update;
+extern bool rv_enable_misaligned;
+
+extern uint64_t rv_ram_base;
+extern uint64_t rv_ram_size;
+
+extern uint64_t rv_rom_base;
+extern uint64_t rv_rom_size;
+
+extern uint64_t rv_clint_base;
+extern uint64_t rv_clint_size;
+
+extern uint64_t rv_htif_tohost;