Skip to content

Conversation

rivos-eblot
Copy link

@rivos-eblot rivos-eblot commented Oct 13, 2025

Image file loaded with -device loader,file=... are copied back to their destination device when the generic QEMU reset feature is invoked.

As OpenTitan device use a specialized reset scheme, we may need to copy the so-called "ROM" images (as QEMU non-modifiable image, not related to OT ROM controller images) at will.

Add a public API to trigger this image-to-device copy since the default API is private.

@rivos-eblot
Copy link
Author

Note: I think it could also apply to EarlGrey since it has recently adopted the new reset sequence from Darjeeling, but I'm not sure how to test it.

RomGap rom_find_largest_gap_between(hwaddr base, size_t size);

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably this comment should be before the signature (and maybe also in the same style as above functions)?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very true.

Image file loaded with "-device loader,file=..." are copied back to their
destination device when the generic QEMU reset feature is invoked.

As OpenTitan device use a specialized reset scheme, we may need to copy the so-called
"ROM" images (as QEMU non-modifiable image, not related to OT ROM controller images)
at will.

Add a public API to trigger this image-to-device copy since the default API is private.

Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
@rivos-eblot rivos-eblot merged commit 4fad21e into lowRISC:ot-9.2.0 Oct 14, 2025
9 checks passed
@rivos-eblot rivos-eblot deleted the dev/ebl/loadable_img branch October 14, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants