mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
f6e097e71e
commit
e81337624e
3
hw/fdc.c
3
hw/fdc.c
|
@ -33,6 +33,7 @@
|
||||||
#include "qemu-timer.h"
|
#include "qemu-timer.h"
|
||||||
#include "isa.h"
|
#include "isa.h"
|
||||||
#include "sysbus.h"
|
#include "sysbus.h"
|
||||||
|
#include "qdev-addr.h"
|
||||||
|
|
||||||
/********************************************************/
|
/********************************************************/
|
||||||
/* debug Floppy devices */
|
/* debug Floppy devices */
|
||||||
|
@ -1972,7 +1973,7 @@ static SysBusDeviceInfo fdc_info = {
|
||||||
.qdev.props = (Property[]) {
|
.qdev.props = (Property[]) {
|
||||||
{
|
{
|
||||||
.name = "io_base",
|
.name = "io_base",
|
||||||
.info = &qdev_prop_uint32,
|
.info = &qdev_prop_taddr,
|
||||||
.offset = offsetof(fdctrl_t, io_base),
|
.offset = offsetof(fdctrl_t, io_base),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue