rx: move BIOS load from MCU to board
commitac6dd9b9f3dd6f0914a9c822fdeb43149bc9c9ff
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Oct 2020 15:12:46 +0000 (22 11:12 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Dec 2020 17:15:06 +0000 (10 12:15 -0500)
tree988a774f175f3557c7de66a3d9e9cbcdf14628b1
parentcd7b94989a468bbdca40f663f35ce954c44a8c3f
rx: move BIOS load from MCU to board

The ROM loader state is global and not part of the MCU, and the
BIOS is in machine->firmware.  So just like the kernel case,
load it in the board.

Due to the ordering between CPU reset and ROM reset, the ROM
has to be registered before the CPU is realized, otherwise
the reset vector is loaded before the ROM is there.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/rx/rx-gdbsim.c
hw/rx/rx62n.c