From: "Peter A. G. Crosthwaite" <peter.crosthwa...@petalogix.com>
Overhauled the microblaze bootloader process. Factored out the common boot code between petalogix_ml605 and petalogix_s3adsp1800 machine models into a dedicated microblaze bootloader (Patch 1). It now organised in much the same way as its handled in arm machine models (arm_boot.c) where the machine model calls load_kernel() after machine initialisation. Did some general cleanup of s2adsp1800, moved some cpu reset behaviour out of the machine model initialisation (patch 2) and #defined some magic numbers (patch 3). Hooked up Peter Maydells -dtb argument to the bootloader for dtb loading (patches 4+5). Peter A. G. Crosthwaite (5): microblaze: factored out common boot code petalogix_s2adsp1800: moved rst logic to rst fn petalogix_s2adsp1800: macro'd magic numbers qemu-options.hx: allow -dtb argument for all archs microblaze_boot: enabled -dtb argument Makefile.target | 1 + hw/microblaze_boot.c | 177 +++++++++++++++++++++++++++++++++++++++++ hw/microblaze_boot.h | 10 +++ hw/petalogix_ml605_mmu.c | 144 +++------------------------------ hw/petalogix_s3adsp1800_mmu.c | 147 +++++----------------------------- qemu-options.hx | 2 +- 6 files changed, 221 insertions(+), 260 deletions(-) create mode 100644 hw/microblaze_boot.c create mode 100644 hw/microblaze_boot.h -- 1.7.5.4