diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-06-22 08:38:44 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-07-09 23:04:23 +0530 |
commit | 2cb19ac699b51d38fba57f4acb1ce02f06e7548f (patch) | |
tree | 5fef42799cb4cc024905ca5d0d08f79bfb3b4117 /riscv/sim.h | |
parent | 564ed97f618321b8499a3e8837c36f622ee8a893 (diff) | |
download | spike-2cb19ac699b51d38fba57f4acb1ce02f06e7548f.zip spike-2cb19ac699b51d38fba57f4acb1ce02f06e7548f.tar.gz spike-2cb19ac699b51d38fba57f4acb1ce02f06e7548f.tar.bz2 |
Add bootargs command-line option to Spike
We add bootargs command-line option to Spike which allows us to
provide custom kernel parameters to Linux and Xvisor.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'riscv/sim.h')
-rw-r--r-- | riscv/sim.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/riscv/sim.h b/riscv/sim.h index 7cf83d6..c6e5582 100644 --- a/riscv/sim.h +++ b/riscv/sim.h @@ -25,7 +25,7 @@ class sim_t : public htif_t, public simif_t public: sim_t(const char* isa, const char* priv, const char* varch, size_t _nprocs, bool halted, bool real_time_clint, - reg_t initrd_start, reg_t initrd_end, + reg_t initrd_start, reg_t initrd_end, const char* bootargs, reg_t start_pc, std::vector<std::pair<reg_t, mem_t*>> mems, std::vector<std::pair<reg_t, abstract_device_t*>> plugin_devices, const std::vector<std::string>& args, const std::vector<int> hartids, @@ -64,6 +64,7 @@ private: std::vector<processor_t*> procs; reg_t initrd_start; reg_t initrd_end; + const char* bootargs; reg_t start_pc; std::string dts; std::string dtb; |