diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-03-31 00:41:33 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-05-19 19:56:51 -0700 |
commit | 877a8069db245018b8c2449cb44e76a48d216c5e (patch) | |
tree | 6fe92bac46144939d219367e4342bb7d11d92b71 /riscv/sim.h | |
parent | cf79c7ba82ca0a477354fbabdb18558b124a211d (diff) | |
download | spike-877a8069db245018b8c2449cb44e76a48d216c5e.zip spike-877a8069db245018b8c2449cb44e76a48d216c5e.tar.gz spike-877a8069db245018b8c2449cb44e76a48d216c5e.tar.bz2 |
fdt: option: add --dtb option to specify dtb binary file
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/sim.h')
-rw-r--r-- | riscv/sim.h | 5 |
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; |