aboutsummaryrefslogtreecommitdiff
path: root/hw/i2c.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-29 13:57:48 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-29 13:57:48 +0000
commitd0c22f49ba84016e4d06012af2176a851825814f (patch)
tree208d5aff71194a61b9e51629a2af22655d760f67 /hw/i2c.c
parentSimplify -usbdevice net: syntax, allow VLANs with no NICs. (diff)
downloadqemu-kvm-d0c22f49ba84016e4d06012af2176a851825814f.tar.gz
qemu-kvm-d0c22f49ba84016e4d06012af2176a851825814f.tar.bz2
qemu-kvm-d0c22f49ba84016e4d06012af2176a851825814f.zip
Fix load width for slave address in i2c_bus_load (Chris Lalancette).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4966 c046a42c-6fe2-441c-8c8c-71466251a162
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 5d283fb4c..2d0dd7197 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;