hw/misc/iotkit-sysctl: Handle CPU_WAIT, NMI_ENABLE for SSE-300
commit92ecf2d5eeaecec2454e95acf2416162538c1225
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 19 Feb 2021 14:45:47 +0000 (19 14:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Mar 2021 17:20:02 +0000 (8 17:20 +0000)
tree52d8db63b2c95f69171fe3b1ee9d9b3b80d8fe50
parent31b0c6b17691b16175cb4bb01068df15d3b3b08c
hw/misc/iotkit-sysctl: Handle CPU_WAIT, NMI_ENABLE for SSE-300

In the SSE-300 the CPU_WAIT and NMI_ENABLE registers have
moved offsets, so they are now where the SSE-200's WICCTRL
and EWCTRL were. The SSE-300 does not have WICCTLR or EWCTRL
at all, and the old offsets are reserved:

 Offset    SSE-200      SSE-300
-----------------------------------
 0x118     CPUWAIT      reserved
 0x118     NMI_ENABLE   reserved
 0x120     WICCTRL      CPUWAIT
 0x124     EWCTRL       NMI_ENABLE

Handle this reshuffle, and the fact that SSE-300 has only
one CPU and so only one active bit in CPUWAIT.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210219144617.4782-15-peter.maydell@linaro.org
hw/misc/iotkit-sysctl.c