aboutsummaryrefslogtreecommitdiff
path: root/hw/hppa
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-05-04 10:25:30 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-05-08 18:52:36 +0100
commit2fb11c7cac7f6074f42d821cfbff4d7b80b3ab6f (patch)
tree8fbe6de3860a325f30bd497437499c1949171971 /hw/hppa
parent0d068996310c33c2f40dd347746304054fdfa16d (diff)
downloadqemu-2fb11c7cac7f6074f42d821cfbff4d7b80b3ab6f.zip
qemu-2fb11c7cac7f6074f42d821cfbff4d7b80b3ab6f.tar.gz
qemu-2fb11c7cac7f6074f42d821cfbff4d7b80b3ab6f.tar.bz2
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>
Diffstat (limited to 'hw/hppa')
-rw-r--r--hw/hppa/dino.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c
index 6d12c38..aa7f812 100644
--- a/hw/hppa/dino.c
+++ b/hw/hppa/dino.c
@@ -403,7 +403,7 @@ static void dino_pcihost_reset(DeviceState *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 */
}