summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-07-17 11:01:49 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-22 15:40:54 -0500
commit462eb7f81e5e4c76c9bfae800322dbd09ddd4771 (patch)
tree6152c6232730cba04bd884b8cc2f7dff69ab49a2
parent8149632ad0e411a8977a650594357a384bfc60ef (diff)
downloadqemu-462eb7f81e5e4c76c9bfae800322dbd09ddd4771.tar.gz
Sparc32: fix escc devices broken by ee6847d19be16c789b8bd4e553b7cd6701ba1245
The logic of Zilog makes channel B the first device and channel A the second one. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--hw/escc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/escc.c b/hw/escc.c
index 9abd092ae3..2264f5d3af 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 */}
}