diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-02-14 11:31:38 +0530 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-02-19 18:52:32 -0800 |
commit | 08cf745aaab48d67fafc995663ec96757ff6b816 (patch) | |
tree | 186884928fdc24b1b0ead7e32bb8c464d0717fdd /riscv/dts.h | |
parent | dceafddd8b9ab3cf5fd1f7526ea53ca8bc0e13dc (diff) | |
download | spike-08cf745aaab48d67fafc995663ec96757ff6b816.zip spike-08cf745aaab48d67fafc995663ec96757ff6b816.tar.gz spike-08cf745aaab48d67fafc995663ec96757ff6b816.tar.bz2 |
Make spike capable of booting Linux
Latest Linux does not boot Spike mainly because:
1. Spike does not set bootargs in DTS
2. Spike does not provide mechanism to load initrd for Linux
This patch addresses both above issues and we can now
get latest Linux to prompt on Spike.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/dts.h')
-rw-r--r-- | riscv/dts.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/dts.h b/riscv/dts.h index ec0aa61..b9ddb8e 100644 --- a/riscv/dts.h +++ b/riscv/dts.h @@ -7,6 +7,7 @@ #include <string> std::string make_dts(size_t insns_per_rtc_tick, size_t cpu_hz, + reg_t initrd_start, reg_t initrd_end, std::vector<processor_t*> procs, std::vector<std::pair<reg_t, mem_t*>> mems); |