]> www.infradead.org Git - qemu-nvme.git/commit
hw/isa/piix3: Modernize reset handling
authorBernhard Beschow <shentey@gmail.com>
Sat, 22 Oct 2022 15:04:30 +0000 (17:04 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 31 Oct 2022 10:32:07 +0000 (11:32 +0100)
commita1b05751faf7769cec3b1751da0239d2ced27b35
treedf886884307b3438eb793163e5582521e1fdd620
parent3ee15e807407defcd774586549a00674d58be970
hw/isa/piix3: Modernize reset handling

Rather than registering the reset handler via a function which
appends the handler to a global list, prefer to implement it as
a virtual method - PIIX4 does the same already.

Note that this means that piix3_reset can now also be called writing to
the relevant configuration space register on a PCI bridge.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20221022150508.26830-6-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/isa/piix3.c