diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-07-17 11:01:49 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-07-17 11:01:49 +0000 |
commit | 60c6c87f75a4bd3fa692910f7a586c9eac760282 (patch) | |
tree | fd04b0af09e9be2d941c661526e264a646b5640c /hw/escc.c | |
parent | d3916a172f9e2b8aa2164351f849a71d7d5f7800 (diff) | |
download | qemu-60c6c87f75a4bd3fa692910f7a586c9eac760282.tar.gz qemu-60c6c87f75a4bd3fa692910f7a586c9eac760282.tar.bz2 qemu-60c6c87f75a4bd3fa692910f7a586c9eac760282.zip |
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>
Diffstat (limited to 'hw/escc.c')
-rw-r--r-- | hw/escc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 */} } |