aboutsummaryrefslogtreecommitdiff
path: root/riscv/dts.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-02-14 11:31:38 +0530
committerChih-Min Chao <chihmin.chao@sifive.com>2020-02-19 18:52:32 -0800
commit08cf745aaab48d67fafc995663ec96757ff6b816 (patch)
tree186884928fdc24b1b0ead7e32bb8c464d0717fdd /riscv/dts.h
parentdceafddd8b9ab3cf5fd1f7526ea53ca8bc0e13dc (diff)
downloadspike-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.h1
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);