Commit e81337624e00e9115c82c5b98e288a5942319605

Authored by Blue Swirl
1 parent f6e097e7

Sparc32: fix fdc io_base

On some Sparc32 machines, fdc is located above 4G limit, so uint32_t is not
appropriate type for io_base.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Showing 1 changed file with 2 additions and 1 deletions
hw/fdc.c
@@ -33,6 +33,7 @@ @@ -33,6 +33,7 @@
33 #include "qemu-timer.h" 33 #include "qemu-timer.h"
34 #include "isa.h" 34 #include "isa.h"
35 #include "sysbus.h" 35 #include "sysbus.h"
  36 +#include "qdev-addr.h"
36 37
37 /********************************************************/ 38 /********************************************************/
38 /* debug Floppy devices */ 39 /* debug Floppy devices */
@@ -1972,7 +1973,7 @@ static SysBusDeviceInfo fdc_info = { @@ -1972,7 +1973,7 @@ static SysBusDeviceInfo fdc_info = {
1972 .qdev.props = (Property[]) { 1973 .qdev.props = (Property[]) {
1973 { 1974 {
1974 .name = "io_base", 1975 .name = "io_base",
1975 - .info = &qdev_prop_uint32, 1976 + .info = &qdev_prop_taddr,
1976 .offset = offsetof(fdctrl_t, io_base), 1977 .offset = offsetof(fdctrl_t, io_base),
1977 }, 1978 },
1978 { 1979 {