mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
ppc/ppc405: Add update of bi_procfreq field
Adapt the fields offset in the board information for Linux. Since Linux relies on the CPU frequency value, I wonder how it ever worked. Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20211206103712.1866296-15-clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
e0caa8e64d
commit
6518c0ede9
1 changed files with 5 additions and 4 deletions
|
@ -102,12 +102,13 @@ static ram_addr_t __ppc405_set_bootinfo(CPUPPCState *env, ppc4xx_bd_info_t *bd)
|
||||||
for (i = 0; i < 32; i++) {
|
for (i = 0; i < 32; i++) {
|
||||||
stb_phys(cs->as, bdloc + 0x3C + i, bd->bi_r_version[i]);
|
stb_phys(cs->as, bdloc + 0x3C + i, bd->bi_r_version[i]);
|
||||||
}
|
}
|
||||||
stl_be_phys(cs->as, bdloc + 0x5C, bd->bi_plb_busfreq);
|
stl_be_phys(cs->as, bdloc + 0x5C, bd->bi_procfreq);
|
||||||
stl_be_phys(cs->as, bdloc + 0x60, bd->bi_pci_busfreq);
|
stl_be_phys(cs->as, bdloc + 0x60, bd->bi_plb_busfreq);
|
||||||
|
stl_be_phys(cs->as, bdloc + 0x64, bd->bi_pci_busfreq);
|
||||||
for (i = 0; i < 6; i++) {
|
for (i = 0; i < 6; i++) {
|
||||||
stb_phys(cs->as, bdloc + 0x64 + i, bd->bi_pci_enetaddr[i]);
|
stb_phys(cs->as, bdloc + 0x68 + i, bd->bi_pci_enetaddr[i]);
|
||||||
}
|
}
|
||||||
n = 0x6A;
|
n = 0x70; /* includes 2 bytes hole */
|
||||||
for (i = 0; i < 6; i++) {
|
for (i = 0; i < 6; i++) {
|
||||||
stb_phys(cs->as, bdloc + n++, bd->bi_pci_enetaddr2[i]);
|
stb_phys(cs->as, bdloc + n++, bd->bi_pci_enetaddr2[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue