hw/misc/iotkit-sysctl: Remove is_sse200 flag
commit1cbd6fe4b8d5ae77de583b298d7834c8abe6ff46
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 19 Feb 2021 14:45:39 +0000 (19 14:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Mar 2021 17:20:01 +0000 (8 17:20 +0000)
tree31f172b8d2195bbb2293f56cd24e874b648427ff
parent419a7f8075e24734ee22c3ceef6a446ba5306b27
hw/misc/iotkit-sysctl: Remove is_sse200 flag

Remove the is_sse200 flag in favour of just directly testing the new
sse_version field.

Since some of these registers exist in the SSE-300 but some do not or
have different behaviour, we expand out the if() statements in the
read and write functions into switch()es, so we have an easy place to
put SSE-300 specific behaviour.

(Until we do add the SSE-300 behaviour, the thing preventing us
reaching the "unreachable" default cases is that armsse.c doesn't
yet pass us an ARMSSE_SSE300 version.)

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-7-peter.maydell@linaro.org
hw/misc/iotkit-sysctl.c
include/hw/misc/iotkit-sysctl.h