qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT e2106fe] Sparc32: fix escc devices broken byee684


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT e2106fe] Sparc32: fix escc devices broken byee6847d19be16c789b8bd4e553b7cd6701ba1245
Date: Fri, 17 Jul 2009 11:04:17 -0000

From: Blue Swirl <address@hidden>

The logic of Zilog makes channel B the first device and channel A the
second one.

Signed-off-by: Blue Swirl <address@hidden>

diff --git a/hw/escc.c b/hw/escc.c
index 9abd092..2264f5d 100644
--- a/hw/escc.c
+++ b/hw/escc.c
@@ -970,22 +970,22 @@ static SysBusDeviceInfo escc_info = {
         {
             .name = "chrB",
             .info = &qdev_prop_ptr,
-            .offset = offsetof(SerialState, chn[1].chr),
+            .offset = offsetof(SerialState, chn[0].chr),
         },
         {
             .name = "chrA",
             .info = &qdev_prop_ptr,
-            .offset = offsetof(SerialState, chn[0].chr),
+            .offset = offsetof(SerialState, chn[1].chr),
         },
         {
             .name = "chnBtype",
             .info = &qdev_prop_uint32,
-            .offset = offsetof(SerialState, chn[1].type),
+            .offset = offsetof(SerialState, chn[0].type),
         },
         {
             .name = "chnAtype",
             .info = &qdev_prop_uint32,
-            .offset = offsetof(SerialState, chn[0].type),
+            .offset = offsetof(SerialState, chn[1].type),
         },
         {/* end of list */}
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]