summaryrefslogtreecommitdiff
path: root/riscv/riscv_platform_impl.c
blob: 3135895d2460c1fcda8bb5cded5e3290618f77d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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);
uint64_t rv_insns_per_tick = UINT64_C(100);