mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
ppc/pnv: Add support for "hostboot" mode
When the "hb-mode" option is activated on the powernv machine, the firmware is mapped at 0x8000000 and the HRMOR of the HW threads are set to the same address. The PNOR mapping on the FW address space of the LPC bus is left enabled to let the firmware load any other images required to boot the host. Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20200127144154.10170-4-clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
59942f0ebb
commit
08c3f3a734
5 changed files with 37 additions and 2 deletions
|
@ -217,6 +217,8 @@ struct PnvMachineState {
|
|||
Notifier powerdown_notifier;
|
||||
|
||||
PnvPnor *pnor;
|
||||
|
||||
hwaddr fw_load_addr;
|
||||
};
|
||||
|
||||
#define PNV_FDT_ADDR 0x01000000
|
||||
|
|
|
@ -40,6 +40,7 @@ typedef struct PnvCore {
|
|||
/*< public >*/
|
||||
PowerPCCPU **threads;
|
||||
uint32_t pir;
|
||||
uint64_t hrmor;
|
||||
PnvChip *chip;
|
||||
|
||||
MemoryRegion xscom_regs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue