hw/isa/piix4: Reuse struct PIIXState from PIIX3
commit74bdcfb4b2ba7958efe8e66e06757579d61ebbb3
authorBernhard Beschow <shentey@gmail.com>
Sat, 7 Oct 2023 12:38:26 +0000 (7 14:38 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 22 Oct 2023 09:18:17 +0000 (22 05:18 -0400)
tree89c00c78ca63324ed2ab61dc8501249355d552e0
parent80ec6f5b574e5368007d8076fd32316765bf4ffb
hw/isa/piix4: Reuse struct PIIXState from PIIX3

PIIX4 has its own, private PIIX4State structure. PIIX3 has almost the
same structure, provided in a public header. So reuse it and add a
cpu_intr attribute to it which is only used by PIIX4.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <20231007123843.127151-19-shentey@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/isa/piix4.c
include/hw/southbridge/piix.h