dromajo
dromajo copied to clipboard
Multicore configuration should dump single boot ROM
The method of booting the system from multiple boot ROM files, as implemented in PR #76, is not the most elegant solution.
For instance, when the system only has a single boot memory, which is usually the case, it becomes challenging to place multiple generated files into that single memory space without resorting to messy workarounds.
The proposed solution is to create a single boot code file that will be divided into N sections, where N is the number of cores. Each core will generate its own recovery code and write it to its designated section. In addition to the recovery code, each core will initiate with a preamble code that reads the hart_id and calculates the PC based on that ID.
I started implementing this, please let me know if you have any suggestions or concerns.