aboutsummaryrefslogtreecommitdiff
path: root/hw/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/i2c.c')
-rw-r--r--hw/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i2c.c b/hw/i2c.c
index 5d283fb4cb..2d0dd71976 100644
--- a/hw/i2c.c
+++ b/hw/i2c.c
@@ -33,7 +33,7 @@ static int i2c_bus_load(QEMUFile *f, void *opaque, int version_id)
/* The bus is loaded before attached devices, so load and save the
current device id. Devices will check themselves as loaded. */
- bus->saved_address = qemu_get_be32(f);
+ bus->saved_address = (int8_t) qemu_get_byte(f);
bus->current_dev = NULL;
return 0;