sim-card
/
qemu
Archived
10
0
Fork 0

Sparc32: fix escc devices broken by ee6847d19b

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

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2009-07-17 11:01:49 +00:00
parent e81337624e
commit e2106fe69d
1 changed files with 4 additions and 4 deletions

View File

@ -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 */}
}