aboutsummaryrefslogtreecommitdiff
path: root/spike_main
diff options
context:
space:
mode:
Diffstat (limited to 'spike_main')
-rw-r--r--spike_main/spike.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/spike_main/spike.cc b/spike_main/spike.cc
index 9056f31..d88f5b8 100644
--- a/spike_main/spike.cc
+++ b/spike_main/spike.cc
@@ -165,6 +165,7 @@ int main(int argc, char** argv)
const char* isa = DEFAULT_ISA;
const char* priv = DEFAULT_PRIV;
const char* varch = DEFAULT_VARCH;
+ const char* dtb_file = NULL;
uint16_t rbb_port = 0;
bool use_rbb = false;
unsigned dmi_rti = 0;
@@ -258,6 +259,7 @@ int main(int argc, char** argv)
parser.option(0, "extension", 1, [&](const char* s){extension = find_extension(s);});
parser.option(0, "dump-dts", 0, [&](const char *s){dump_dts = true;});
parser.option(0, "disable-dtb", 0, [&](const char *s){dtb_enabled = false;});
+ parser.option(0, "dtb", 1, [&](const char *s){dtb_file = s;});
parser.option(0, "initrd", 1, [&](const char* s){initrd = s;});
parser.option(0, "real-time-clint", 0, [&](const char *s){real_time_clint = true;});
parser.option(0, "extlib", 1, [&](const char *s){
@@ -319,6 +321,7 @@ int main(int argc, char** argv)
s.set_remote_bitbang(&(*remote_bitbang));
}
s.set_dtb_enabled(dtb_enabled);
+ s.set_dtb_file(dtb_file);
if (dump_dts) {
printf("%s", s.get_dts());