Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions hw/core/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,11 @@ int rom_check_and_register_reset(void)
return 0;
}

void rom_load(void)
{
rom_reset(NULL);
}

void rom_set_fw(FWCfgState *f)
{
fw_cfg = f;
Expand Down
3 changes: 3 additions & 0 deletions hw/riscv/ot_darjeeling.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "hw/intc/sifive_plic.h"
#include "hw/jtag/tap_ctrl.h"
#include "hw/jtag/tap_ctrl_rbb.h"
#include "hw/loader.h"
#include "hw/misc/pulp_rv_dm.h"
#include "hw/misc/unimp.h"
#include "hw/opentitan/ot_address_space.h"
Expand Down Expand Up @@ -1695,6 +1696,8 @@ static void ot_dj_soc_reset_exit(Object *obj, ResetType type)
c->parent_phases.exit(obj, type);
}

rom_load();

/* Kick off ROM checks and boot */
object_property_set_bool(OBJECT(s->devices[OT_DJ_SOC_DEV_ROM_CTRL0]),
"load", true, &error_fatal);
Expand Down
5 changes: 5 additions & 0 deletions include/hw/loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,4 +389,9 @@ typedef struct RomGap {
*/
RomGap rom_find_largest_gap_between(hwaddr base, size_t size);

/**
* rom_load: Load all registered ROMs
*/
void rom_load(void);

#endif
Loading