mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
mac99: Added FW_CFG_PPC_BUSFREQ to match CLOCKFREQ and TBFREQ already there
While there, also moved the hard coded value for CLOCKFREQ to a #define. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
569be9f055
commit
9d1c128341
3 changed files with 10 additions and 2 deletions
|
@ -46,6 +46,8 @@
|
|||
#define MAX_IDE_BUS 2
|
||||
#define CFG_ADDR 0xf0000510
|
||||
#define TBFREQ 16600000UL
|
||||
#define CLOCKFREQ 266000000UL
|
||||
#define BUSFREQ 66000000UL
|
||||
|
||||
static int fw_cfg_boot_set(void *opaque, const char *boot_device)
|
||||
{
|
||||
|
@ -337,7 +339,8 @@ static void ppc_heathrow_init(MachineState *machine)
|
|||
fw_cfg_add_i32(fw_cfg, FW_CFG_PPC_TBFREQ, TBFREQ);
|
||||
}
|
||||
/* Mac OS X requires a "known good" clock-frequency value; pass it one. */
|
||||
fw_cfg_add_i32(fw_cfg, FW_CFG_PPC_CLOCKFREQ, 266000000);
|
||||
fw_cfg_add_i32(fw_cfg, FW_CFG_PPC_CLOCKFREQ, CLOCKFREQ);
|
||||
fw_cfg_add_i32(fw_cfg, FW_CFG_PPC_BUSFREQ, BUSFREQ);
|
||||
|
||||
qemu_register_boot_set(fw_cfg_boot_set, fw_cfg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue