From: Mark Cave-Ayland Date: Wed, 4 May 2022 09:25:50 +0000 (+0100) Subject: lasi: use numerical constant for iar reset value X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8e81ffe32070490b27d8e9ccac48a3f470e19c96;p=qemu.git 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 Acked-by: Helge Deller Message-Id: <20220504092600.10048-41-mark.cave-ayland@ilande.co.uk> Acked-by: Richard Henderson Signed-off-by: Mark Cave-Ayland --- 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);