Browse Source

Don't send reset from HTIF, if no binary is given

This applies when the binary is set to "none".
This is useful when implementing a binary loading
mechanism outside of the HTIF, and the bootloader
is supposed to boot from that.
pull/1923/head
Friedrich Hunstock 1 year ago
parent
commit
79718ed879
  1. 3
      fesvr/htif.cc

3
fesvr/htif.cc

@ -92,13 +92,12 @@ void htif_t::start()
fprintf(stderr, "Error: cannot execute %d-bit program on RV%d hart\n", err.actual_xlen, err.expected_xlen); fprintf(stderr, "Error: cannot execute %d-bit program on RV%d hart\n", err.actual_xlen, err.expected_xlen);
exit(1); exit(1);
} }
reset();
} else { } else {
auto empty_symbols = std::map<std::string, uint64_t>(); auto empty_symbols = std::map<std::string, uint64_t>();
load_symbols(empty_symbols); load_symbols(empty_symbols);
} }
} }
reset();
} }
static void bad_address(const std::string& situation, reg_t addr) static void bad_address(const std::string& situation, reg_t addr)

Loading…
Cancel
Save