summaryrefslogtreecommitdiffstats
path: root/hw/hppa/lasi.c
diff options
context:
space:
mode:
authorMark Cave-Ayland2022-05-04 11:25:50 +0200
committerMark Cave-Ayland2022-05-08 19:52:37 +0200
commit8e81ffe32070490b27d8e9ccac48a3f470e19c96 (patch)
treee3586321258419e3423422dcffd019ec8d1a61eb /hw/hppa/lasi.c
parentlasi: use constants for device register offsets (diff)
downloadqemu-8e81ffe32070490b27d8e9ccac48a3f470e19c96.tar.gz
qemu-8e81ffe32070490b27d8e9ccac48a3f470e19c96.tar.xz
qemu-8e81ffe32070490b27d8e9ccac48a3f470e19c96.zip
lasi: use numerical constant for iar reset value
This is to allow us to decouple the LASI device from the board logic. If it is decided later that this value needs to be configurable then it can easily be converted to a qdev property. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220504092600.10048-41-mark.cave-ayland@ilande.co.uk> Acked-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/hppa/lasi.c')
-rw-r--r--hw/hppa/lasi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c
index 11ca33fba3..5ef36f3f58 100644
--- a/hw/hppa/lasi.c
+++ b/hw/hppa/lasi.c
@@ -231,7 +231,7 @@ static void lasi_reset(DeviceState *dev)
{
LasiState *s = LASI_CHIP(dev);
- s->iar = CPU_HPA + 3;
+ s->iar = 0xFFFB0000 + 3; /* CPU_HPA + 3 */
/* Real time clock (RTC), it's only one 32-bit counter @9000 */
s->rtc = time(NULL);