[PATCH v2 40/50] lasi: use numerical constant for iar reset value

Mark Cave-Ayland posted 50 patches 3 years, 9 months ago
[PATCH v2 40/50] lasi: use numerical constant for iar reset value
Posted by Mark Cave-Ayland 3 years, 9 months ago
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>
---
 hw/hppa/lasi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.20.1
Re: [PATCH v2 40/50] lasi: use numerical constant for iar reset value
Posted by Richard Henderson 3 years, 9 months ago
On 5/4/22 04:25, Mark Cave-Ayland wrote:
> 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>
> ---
>   hw/hppa/lasi.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Richard Henderson <richard.henderson@linaro.org>

r~