diff options
| author | Jon French | 2018-12-28 15:12:00 +0000 |
|---|---|---|
| committer | Jon French | 2018-12-28 15:12:00 +0000 |
| commit | b59fba68e535f39b6285ec7f4f693107b6e34148 (patch) | |
| tree | 3135513ac4b23f96b41f3d521990f1ce91206c99 /riscv/riscv_platform_impl.c | |
| parent | 9f6a95882e1d3d057bcb83d098ba1b63925a4d1f (diff) | |
| parent | 2c887e7d01331d3165120695594eac7a2650ec03 (diff) | |
Merge branch 'sail2' into rmem_interpreter
Diffstat (limited to 'riscv/riscv_platform_impl.c')
| -rw-r--r-- | riscv/riscv_platform_impl.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/riscv/riscv_platform_impl.c b/riscv/riscv_platform_impl.c deleted file mode 100644 index 04a661c0..00000000 --- a/riscv/riscv_platform_impl.c +++ /dev/null @@ -1,29 +0,0 @@ -#include "riscv_platform_impl.h" -#include <unistd.h> -#include <stdio.h> - -/* Settings of the platform implementation, with common defaults. */ - -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); - -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); -uint64_t rv_insns_per_tick = UINT64_C(100); - -int term_fd = 1; // set during startup -void plat_term_write_impl(char c) -{ - if (write(term_fd, &c, sizeof(c)) < 0) { - fprintf(stderr, "Unable to write to terminal!\n"); - } -} |
