Skip to contentSkip to conversation

[4966] Fix load width for slave address in i2c_bus_load (Chris Lalancette).

Qemu-devel Andrzej Zaborowski 1 participant 1 message Jul 29, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4966

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4966
Author:   balrog
Date:     2008-07-29 13:57:48 +0000 (Tue, 29 Jul 2008)

Log Message:
-----------
Fix load width for slave address in i2c_bus_load (Chris Lalancette).

Modified Paths:
--------------

    trunk/hw/i2c.c

Modified: trunk/hw/i2c.c
===================================================================

hw/i2c.c +1 -1
@@ -33,7 +33,7 @@
 
     /* 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;