aboutsummaryrefslogtreecommitdiff
path: root/riscv/sim.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/sim.h')
-rw-r--r--riscv/sim.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/riscv/sim.h b/riscv/sim.h
index 91aedab..0cf518d 100644
--- a/riscv/sim.h
+++ b/riscv/sim.h
@@ -49,6 +49,10 @@ public:
void set_dtb_enabled(bool value) {
this->dtb_enabled = value;
}
+ void set_dtb_file(const char* value) {
+ if (value)
+ this->dtb_file = value;
+ }
void set_remote_bitbang(remote_bitbang_t* remote_bitbang) {
this->remote_bitbang = remote_bitbang;
}
@@ -68,6 +72,7 @@ private:
reg_t initrd_end;
reg_t start_pc;
std::string dts;
+ std::string dtb_file;
std::unique_ptr<rom_device_t> boot_rom;
std::unique_ptr<clint_t> clint;
bus_t bus;