hw: register: Run post_write hook on reset
authorAlistair Francis <alistair.francis@xilinx.com>
Thu, 1 Mar 2018 11:05:43 +0000 (11:05 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 1 Mar 2018 11:05:43 +0000 (11:05 +0000)
commit4e5f0fb72ee2a8872cec469fd9fe414711de3908
tree8fe5faca7e089b7d4e9629575ab487160ad41773
parent6697439794f72b3501ee16bb95d16854f9981421
hw: register: Run post_write hook on reset

Ensure that the post write hook is called during reset. This allows us
to rely on the post write functions instead of having to call them from
the reset() function.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: d131e24b911653a945e46ca2d8f90f572469e1dd.1517856214.git.alistair.francis@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/core/register.c
include/hw/register.h