aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-10 07:21:20 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-09-13 20:11:13 +0200
commit41df6c83007c60779f299a08fd584bc8d7d1afe9 (patch)
treeadc07a3b65bcbaf59b3b2298511caa6f96d70806
parentd83234d3478a5b97f394adf4b33e9e29bebf9ffd (diff)
downloadqemu-41df6c83007c60779f299a08fd584bc8d7d1afe9.zip
qemu-41df6c83007c60779f299a08fd584bc8d7d1afe9.tar.gz
qemu-41df6c83007c60779f299a08fd584bc8d7d1afe9.tar.bz2
hw/char/pl011: Remove unused 'readbuff' field
Since its introduction in commit cdbdb648b7 ("ARM Versatile Platform Baseboard emulation.") PL011State::readbuff as never been used. Remove it. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20240719181041.49545-3-philmd@linaro.org>
-rw-r--r--hw/char/pl011.c2
-rw-r--r--include/hw/char/pl011.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/hw/char/pl011.c b/hw/char/pl011.c
index 615fe3a..a7f75ef 100644
--- a/hw/char/pl011.c
+++ b/hw/char/pl011.c
@@ -549,7 +549,7 @@ static const VMStateDescription vmstate_pl011 = {
.minimum_version_id = 2,
.post_load = pl011_post_load,
.fields = (const VMStateField[]) {
- VMSTATE_UINT32(readbuff, PL011State),
+ VMSTATE_UNUSED(sizeof(uint32_t)),
VMSTATE_UINT32(flags, PL011State),
VMSTATE_UINT32(lcr, PL011State),
VMSTATE_UINT32(rsr, PL011State),
diff --git a/include/hw/char/pl011.h b/include/hw/char/pl011.h
index d853802..4fcaf3d 100644
--- a/include/hw/char/pl011.h
+++ b/include/hw/char/pl011.h
@@ -32,7 +32,6 @@ struct PL011State {
SysBusDevice parent_obj;
MemoryRegion iomem;
- uint32_t readbuff;
uint32_t flags;
uint32_t lcr;
uint32_t rsr;