diff options
author | Rupert Swarbrick <rswarbrick@gmail.com> | 2022-03-16 12:03:49 +0000 |
---|---|---|
committer | Rupert Swarbrick <rswarbrick@gmail.com> | 2022-03-18 15:30:56 +0000 |
commit | 2da3ce5d4cc04b96d3de128d904820bba6d962d1 (patch) | |
tree | 2b02124901417d7af89240138cc161c17d640524 /riscv/cfg.h | |
parent | b742ddc66fd4ccb6cec98cbd8ebb705fe93ca735 (diff) | |
download | spike-2da3ce5d4cc04b96d3de128d904820bba6d962d1.zip spike-2da3ce5d4cc04b96d3de128d904820bba6d962d1.tar.gz spike-2da3ce5d4cc04b96d3de128d904820bba6d962d1.tar.bz2 |
Fold bootargs parameter in the new cfg_t type
Diffstat (limited to 'riscv/cfg.h')
-rw-r--r-- | riscv/cfg.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/riscv/cfg.h b/riscv/cfg.h index bee5051..b2f8a94 100644 --- a/riscv/cfg.h +++ b/riscv/cfg.h @@ -28,11 +28,14 @@ private: class cfg_t { public: - cfg_t(std::pair<reg_t, reg_t> default_initrd_bounds) - : initrd_bounds(default_initrd_bounds) + cfg_t(std::pair<reg_t, reg_t> default_initrd_bounds, + const char *default_bootargs) + : initrd_bounds(default_initrd_bounds), + bootargs(default_bootargs) {} cfg_arg_t<std::pair<reg_t, reg_t>> initrd_bounds; + cfg_arg_t<const char *> bootargs; }; #endif |