aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc405_uc.c
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-26 23:55:31 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-26 23:55:31 +0000
commitb8d3f5d1264260db42e1d64c9d7c537df0aa31ce (patch)
treeb6fb0befe472e2026f5645cad057296142cb1c1c /hw/ppc405_uc.c
parenta750fc0b9184a520d00d9e949160a0c6d3232ecd (diff)
downloadqemu-b8d3f5d1264260db42e1d64c9d7c537df0aa31ce.zip
qemu-b8d3f5d1264260db42e1d64c9d7c537df0aa31ce.tar.gz
qemu-b8d3f5d1264260db42e1d64c9d7c537df0aa31ce.tar.bz2
Add flags to support PowerPC 405 bootinfos variations.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3245 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ppc405_uc.c')
-rw-r--r--hw/ppc405_uc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/ppc405_uc.c b/hw/ppc405_uc.c
index e3cbb09..aa5963a 100644
--- a/hw/ppc405_uc.c
+++ b/hw/ppc405_uc.c
@@ -69,7 +69,8 @@ CPUState *ppc405_init (const unsigned char *cpu_model,
return env;
}
-ram_addr_t ppc405_set_bootinfo (CPUState *env, ppc4xx_bd_info_t *bd)
+ram_addr_t ppc405_set_bootinfo (CPUState *env, ppc4xx_bd_info_t *bd,
+ uint32_t flags)
{
ram_addr_t bdloc;
int i, n;
@@ -103,7 +104,7 @@ ram_addr_t ppc405_set_bootinfo (CPUState *env, ppc4xx_bd_info_t *bd)
for (i = 0; i < 6; i++)
stb_raw(phys_ram_base + bdloc + 0x64 + i, bd->bi_pci_enetaddr[i]);
n = 0x6A;
- if (env->spr[SPR_PVR] == CPU_PPC_405EP) {
+ if (flags & 0x00000001) {
for (i = 0; i < 6; i++)
stb_raw(phys_ram_base + bdloc + n++, bd->bi_pci_enetaddr2[i]);
}