diff options
| author | Prashanth Mundkur | 2018-09-10 12:16:42 -0700 |
|---|---|---|
| committer | Prashanth Mundkur | 2018-10-23 15:32:15 -0700 |
| commit | 2cef8d0c31a09ea4fac9a48faff882dde4e98641 (patch) | |
| tree | a69ee2f3f27742cb971fadad6b29feb0700835ad /riscv/riscv_platform_impl.c | |
| parent | e489f2d37efa4c320004d35c3025c77e0a0c60d0 (diff) | |
RISC-V: Refactor c platform bits.
Diffstat (limited to 'riscv/riscv_platform_impl.c')
| -rw-r--r-- | riscv/riscv_platform_impl.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/riscv/riscv_platform_impl.c b/riscv/riscv_platform_impl.c new file mode 100644 index 00000000..1a1d42a7 --- /dev/null +++ b/riscv/riscv_platform_impl.c @@ -0,0 +1,17 @@ +#include "riscv_platform_impl.h" + +/* Settings of the platform implementation, with common defaults. */ + +bool rv_enable_dirty_update = false; +bool rv_enable_misaligned = false; + +uint64_t rv_ram_base = UINT64_C(0x80000000); +uint64_t rv_ram_size = UINT64_C(0x80000000); + +uint64_t rv_rom_base = UINT64_C(0x1000); +uint64_t rv_rom_size = UINT64_C(0x100); + +uint64_t rv_clint_base = UINT64_C(0x2000000); +uint64_t rv_clint_size = UINT64_C(0xc0000); + +uint64_t rv_htif_tohost = UINT64_C(0x80001000); |
