aboutsummaryrefslogtreecommitdiff
path: root/hw/i2c
diff options
context:
space:
mode:
authorPeng Liang <liangpeng10@huawei.com>2020-10-19 17:34:01 +0800
committerPeter Maydell <peter.maydell@linaro.org>2020-10-20 16:12:00 +0100
commit3cd27b58dd2045580689bdece677fa14e12c324d (patch)
tree03825c639c083bbe621e1f8ecd86ab515cb9509d /hw/i2c
parent4301acd7d7d455792ea873ced75c0b5d653618b1 (diff)
downloadqemu-3cd27b58dd2045580689bdece677fa14e12c324d.zip
qemu-3cd27b58dd2045580689bdece677fa14e12c324d.tar.gz
qemu-3cd27b58dd2045580689bdece677fa14e12c324d.tar.bz2
microbit_i2c: Fix coredump when dump-vmstate
VMStateDescription.fields should be end with VMSTATE_END_OF_LIST(). However, microbit_i2c_vmstate doesn't follow it. Let's change it. Fixes: 9d68bf564e ("arm: Stub out NRF51 TWI magnetometer/accelerometer detection") Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: Peng Liang <liangpeng10@huawei.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20201019093401.2993833-1-liangpeng10@huawei.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/i2c')
-rw-r--r--hw/i2c/microbit_i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i2c/microbit_i2c.c b/hw/i2c/microbit_i2c.c
index 8024739..e92f9f8 100644
--- a/hw/i2c/microbit_i2c.c
+++ b/hw/i2c/microbit_i2c.c
@@ -83,6 +83,7 @@ static const VMStateDescription microbit_i2c_vmstate = {
.fields = (VMStateField[]) {
VMSTATE_UINT32_ARRAY(regs, MicrobitI2CState, MICROBIT_I2C_NREGS),
VMSTATE_UINT32(read_idx, MicrobitI2CState),
+ VMSTATE_END_OF_LIST()
},
};