@samitouri / QOSamiQemu / commits / f9f430b701

hw/char: sifive_uart: Remove ip variable

The ip variable is no longer used in the code. Remove it from the codebase. Signed-off-by: Frank Chang <frank.chang@sifive.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <20260312033201.1619554-5-frank.chang@sifive.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

Frank Chang committed Mar 12, 2026 at 11:32 UTC f9f430b701ef302b4c3092d7d51d8bdaade8b6b5
2 files changed +2 -5
hw/char/sifive_uart.c
+2 -4
@@ -285,7 +285,6 @@ static void sifive_uart_reset_enter(Object *obj, ResetType type)
285
286 s->txfifo = 0;
287 s->ie = 0;
288 - s->ip = 0;
288 s->txctrl = 0;
289 s->rxctrl = 0;
290 s->div = 0;
@@ -343,14 +342,13 @@ static void sifive_uart_reset_hold(Object *obj, ResetType type)
342
343 static const VMStateDescription vmstate_sifive_uart = {
344 .name = TYPE_SIFIVE_UART,
346 - .version_id = 2,
347 - .minimum_version_id = 2,
345 + .version_id = 3,
346 + .minimum_version_id = 3,
347 .fields = (const VMStateField[]) {
348 VMSTATE_UINT8_ARRAY(rx_fifo, SiFiveUARTState,
349 SIFIVE_UART_RX_FIFO_SIZE),
350 VMSTATE_UINT8(rx_fifo_len, SiFiveUARTState),
351 VMSTATE_UINT32(ie, SiFiveUARTState),
353 - VMSTATE_UINT32(ip, SiFiveUARTState),
352 VMSTATE_UINT32(txctrl, SiFiveUARTState),
353 VMSTATE_UINT32(rxctrl, SiFiveUARTState),
354 VMSTATE_UINT32(div, SiFiveUARTState),
include/hw/char/sifive_uart.h
-1
@@ -73,7 +73,6 @@ struct SiFiveUARTState {
73
74 uint32_t txfifo;
75 uint32_t ie;
76 - uint32_t ip;
76 uint32_t txctrl;
77 uint32_t rxctrl;
78 uint32_t div;