mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
hw/timer/bcm2835: Introduce BCM2835_SYSTIMER_COUNT definition
Use the BCM2835_SYSTIMER_COUNT definition instead of the magic '4' value. Reviewed-by: Luc Michel <luc.michel@greensocs.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20201010203709.3116542-2-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
b77a52a0c1
commit
f3f69362fd
2 changed files with 5 additions and 2 deletions
|
@ -134,7 +134,8 @@ static const VMStateDescription bcm2835_systmr_vmstate = {
|
|||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
VMSTATE_UINT32(reg.status, BCM2835SystemTimerState),
|
||||
VMSTATE_UINT32_ARRAY(reg.compare, BCM2835SystemTimerState, 4),
|
||||
VMSTATE_UINT32_ARRAY(reg.compare, BCM2835SystemTimerState,
|
||||
BCM2835_SYSTIMER_COUNT),
|
||||
VMSTATE_END_OF_LIST()
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue