I need memory to be setup in a given way immediately when simulation starts before any instructions are executed.
I understand that this is essentially what the ELF loader does to load the main executable, but trying to pass fs.py --kernel
multiple times appears to have no effect.
I could try to hack that data into my mail ELF executable with the linker script, but it would be much more convenient if I could avoid this and just provide either raw bytes on the CLI, or give a raw binary file to be loaded at a given address.
QEMU for example exposes this type of functionality with -device loader
.