On Mon, 5 Oct 2026 at 11:18, Bernhard Beschow <[email protected]> wrote: > > Since WDT and WDE are write one once bits, their values always > correspond with their respective locked attributes. Thus, the attributes > are redundant. Take advantage of this observation to simplify the code. > > Note that removing the attributes changes the vmstate structure which > constitutes a migration break. This is allowed since QEMU does not > guarantee migration compatibility for i.MX devices between feature > releases. > > Signed-off-by: Bernhard Beschow <[email protected]> > --- > include/hw/watchdog/wdt_imx2.h | 2 -- > hw/watchdog/wdt_imx2.c | 21 ++++----------------- > 2 files changed, 4 insertions(+), 19 deletions(-)
Reviewed-by: Peter Maydell <[email protected]> thanks -- PMM
