提交 d0c22f49 编写于 作者: B balrog

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
上级 9ad97e65
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册