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>
This commit is contained in:
parent
ca7b468be8
commit
8e81ffe320
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user