Skip to content

Commit

Permalink
Only generate a dts/dtb if dtb_enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Feb 5, 2023
1 parent 6e1169b commit f1a4367
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion riscv/sim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ sim_t::sim_t(const cfg_t *cfg, bool halted,
log_file.get(), sout_);
}

make_dtb(dtb_file);
// create dts, dtb, and bootrom device
if (dtb_enabled) {
make_dtb(dtb_file);
}

void *fdt = (void *)dtb.c_str();

Expand Down

0 comments on commit f1a4367

Please sign in to comment.