From 929954e713f6fe2486344a072fe2a3a9117ebba3 Mon Sep 17 00:00:00 2001 From: Lucas Eriksson Date: Fri, 25 Jan 2019 22:07:33 +0100 Subject: [PATCH] smbus: Fix wordwrite bug --- hw/xbox/amd_smbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xbox/amd_smbus.c b/hw/xbox/amd_smbus.c index 66b3a19b42..ff349db969 100644 --- a/hw/xbox/amd_smbus.c +++ b/hw/xbox/amd_smbus.c @@ -112,7 +112,7 @@ static void amd756_smb_transaction(AMD756SMBus *s) s->smb_data0 = val; s->smb_data1 = val >> 8; } else { - smbus_write_word(bus, addr, cmd, s->smb_data0); + smbus_write_word(bus, addr, cmd, (s->smb_data1 << 8) | s->smb_data0); } break; case AMD756_BLOCK_DATA: