projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e507d7
)
applesmc: fix port i/o access width
author
Gabriel L. Somlo
<gsomlo@gmail.com>
Fri, 16 Jun 2017 18:55:16 +0000
(14:55 -0400)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 23 Jun 2017 11:35:01 +0000
(13:35 +0200)
Set access width of all AppleSMC i/o regions to 1 byte, since they
all represent 8-bit-wide ports.
Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Message-id:
1497639316
-22202-4-git-send-email-gsomlo@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/misc/applesmc.c
patch
|
blob
|
history
diff --git
a/hw/misc/applesmc.c
b/hw/misc/applesmc.c
index 0d882e8f4240907fcf0cc888168b104617fb120f..7896812304d9f047731c4cfddab5907070c9afb7 100644
(file)
--- a/
hw/misc/applesmc.c
+++ b/
hw/misc/applesmc.c
@@
-316,12
+316,12
@@
static void applesmc_isa_realize(DeviceState *dev, Error **errp)
AppleSMCState *s = APPLE_SMC(dev);
memory_region_init_io(&s->io_data, OBJECT(s), &applesmc_data_io_ops, s,
- "applesmc-data",
4
);
+ "applesmc-data",
1
);
isa_register_ioport(&s->parent_obj, &s->io_data,
s->iobase + APPLESMC_DATA_PORT);
memory_region_init_io(&s->io_cmd, OBJECT(s), &applesmc_cmd_io_ops, s,
- "applesmc-cmd",
4
);
+ "applesmc-cmd",
1
);
isa_register_ioport(&s->parent_obj, &s->io_cmd,
s->iobase + APPLESMC_CMD_PORT);