Commit e2106fe69d19f492813b7b189321da0be7a30afb

Authored by Blue Swirl
1 parent e8133762

Sparc32: fix escc devices broken by ee6847d1

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

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Showing 1 changed file with 4 additions and 4 deletions
hw/escc.c
@@ -970,22 +970,22 @@ static SysBusDeviceInfo escc_info = { @@ -970,22 +970,22 @@ static SysBusDeviceInfo escc_info = {
970 { 970 {
971 .name = "chrB", 971 .name = "chrB",
972 .info = &qdev_prop_ptr, 972 .info = &qdev_prop_ptr,
973 - .offset = offsetof(SerialState, chn[1].chr), 973 + .offset = offsetof(SerialState, chn[0].chr),
974 }, 974 },
975 { 975 {
976 .name = "chrA", 976 .name = "chrA",
977 .info = &qdev_prop_ptr, 977 .info = &qdev_prop_ptr,
978 - .offset = offsetof(SerialState, chn[0].chr), 978 + .offset = offsetof(SerialState, chn[1].chr),
979 }, 979 },
980 { 980 {
981 .name = "chnBtype", 981 .name = "chnBtype",
982 .info = &qdev_prop_uint32, 982 .info = &qdev_prop_uint32,
983 - .offset = offsetof(SerialState, chn[1].type), 983 + .offset = offsetof(SerialState, chn[0].type),
984 }, 984 },
985 { 985 {
986 .name = "chnAtype", 986 .name = "chnAtype",
987 .info = &qdev_prop_uint32, 987 .info = &qdev_prop_uint32,
988 - .offset = offsetof(SerialState, chn[0].type), 988 + .offset = offsetof(SerialState, chn[1].type),
989 }, 989 },
990 {/* end of list */} 990 {/* end of list */}
991 } 991 }