Commit d0c22f49ba84016e4d06012af2176a851825814f
1 parent
9ad97e65
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
Showing
1 changed file
with
1 additions
and
1 deletions
hw/i2c.c
... | ... | @@ -33,7 +33,7 @@ static int i2c_bus_load(QEMUFile *f, void *opaque, int version_id) |
33 | 33 | |
34 | 34 | /* The bus is loaded before attached devices, so load and save the |
35 | 35 | current device id. Devices will check themselves as loaded. */ |
36 | - bus->saved_address = qemu_get_be32(f); | |
36 | + bus->saved_address = (int8_t) qemu_get_byte(f); | |
37 | 37 | bus->current_dev = NULL; |
38 | 38 | |
39 | 39 | return 0; | ... | ... |