hw/ssi/pl022: Set up reset function in class init
commit66d9aa790fa9d5c251dcbd5b8ff1db79e04dc06d
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Aug 2018 12:17:45 +0000 (24 13:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Aug 2018 12:17:45 +0000 (24 13:17 +0100)
tree0ad143f2cd9201b56e6ccd65ab5732a8a5dace4d
parent1d52866f5a53feef036c2e8f9b3a6a30209d48a7
hw/ssi/pl022: Set up reset function in class init

Currently the PL022 calls pl022_reset() from its class init
function. Make it register a DeviceState reset method instead,
so that we reset the device on system reset.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180820141116.9118-17-peter.maydell@linaro.org
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
hw/ssi/pl022.c