microblaze: factored out common boot code

factored out the copy-pasted common boot code from the two microblaze platforms
into a dedicated microblaze bootloader (microblaze_boot.o).

Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
Peter A. G. Crosthwaite 2012-03-04 21:03:51 +10:00 committed by Edgar E. Iglesias
parent 27a9476cf7
commit d94e743476
5 changed files with 211 additions and 254 deletions

10
hw/microblaze_boot.h Normal file
View file

@ -0,0 +1,10 @@
#ifndef __MICROBLAZE_BOOT__
#define __MICROBLAZE_BOOT__
#include "hw.h"
void microblaze_load_kernel(CPUState *env, target_phys_addr_t ddr_base,
uint32_t ramsize, const char *dtb_filename,
void (*machine_cpu_reset)(CPUState *));
#endif /* __MICROBLAZE_BOOT __ */