]> git.proxmox.com Git - mirror_qemu.git/commit - hw/mips/mips_malta.c
mips_malta: correct reading MIPS revision at 0x1fc00010
authorPaul Burton <paul.burton@imgtec.com>
Fri, 14 Jun 2013 07:30:44 +0000 (08:30 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 28 Jul 2013 17:53:35 +0000 (19:53 +0200)
commita427338b222b43197c2776cbc996936df0302f51
tree40454bc020295673d3e23a9a8a59c2485ed54030
parenta2b8813d62fa5a35adc1a7bf58de5b2ffb754f5d
mips_malta: correct reading MIPS revision at 0x1fc00010

Rather than modifying the BIOS code at its original location, copy it
for the 0x1fc00000 region & modify the copy. This means the original
ROM code is correctly readable at 0x1e000010 whilst the MIPS revision
is readable at 0x1fc00010.

Additionally the code previously operated on target memory which would
later be overwritten by the BIOS image upon CPU reset if the -bios
argument was used to specify the BIOS image. This led to the written
MIPS revision being lost. Copying using rom_copy when -bios is used
fixes this issue.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/mips/mips_malta.c