mirror of
https://github.com/qemu/qemu.git
synced 2026-09-21 22:14:32 +00:00
The TI TMP75/TMP175 and the NXP LM75B share the TMP105 register map and control semantics, differing only in a few details. Model them as variants of the TMP105, parameterised by a small per-type class descriptor covering the fault-queue depths, the writable config bits, the converter resolution, the set-point masks and the TMP75's alert-clear on thermostat-mode change. The variant is class data, not migrated state, so the wire format is unchanged and all variants share the existing vmstate. While here, align the shared shutdown handling with the hardware: entering shutdown now clears the ALERT/OS output in interrupt mode, correcting the base TMP105 as well. Signed-off-by: Emmanuel Blot <emmanuel.blot@free.fr> Reviewed-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/qemu-devel/20260731-sanmiguel-bmc-locator-v2-7-1266926ba769@free.fr Signed-off-by: Cédric Le Goater <clg@redhat.com>