mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-24 02:21:52 -06:00
dino: use numerical constant for iar0 and iar1 reset values
This is to allow us to decouple the DINO device from the board logic. The choice of using a hard-coded constant (along with a comment) is to match how this is already done for toc_addr. If it is decided later that these values need to be configurable then they can easily be converted to qdev properties. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220504092600.10048-21-mark.cave-ayland@ilande.co.uk> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
0d06899631
commit
2fb11c7cac
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ static void dino_pcihost_reset(DeviceState *dev)
|
||||||
{
|
{
|
||||||
DinoState *s = DINO_PCI_HOST_BRIDGE(dev);
|
DinoState *s = DINO_PCI_HOST_BRIDGE(dev);
|
||||||
|
|
||||||
s->iar0 = s->iar1 = CPU_HPA + 3;
|
s->iar0 = s->iar1 = 0xFFFB0000 + 3; /* CPU_HPA + 3 */
|
||||||
s->toc_addr = 0xFFFA0030; /* IO_COMMAND of CPU */
|
s->toc_addr = 0xFFFA0030; /* IO_COMMAND of CPU */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue