]> git.proxmox.com Git - qemu.git/commit
mac-io: Add escc-legacy memory alias region
authorAlexander Graf <agraf@suse.de>
Wed, 26 Jun 2013 11:58:31 +0000 (13:58 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 30 Jun 2013 23:11:17 +0000 (01:11 +0200)
commit0d54a5024f846ce7d53db25012fb4c7481e971ff
tree7c76456acdce1a81e34431b3e83ed4705028cdc9
parent593c18116090237db96af6e50b902d790265ebc5
mac-io: Add escc-legacy memory alias region

Mac OS X's debugging serial driver accesses the ESCC through a different
register layout, called "escc-legacy". This layout differs from the normal
escc register layout purely by the location of the respective registers.

This patch adds a memory alias region that takes normal escc registers and
maps them into the escc-legacy register space.

With this patch applied, a Mac OS X guest successfully emits debug output
on the serial port when run with debug parameters set, for example by running:

  $ qemu-system-ppc -prom-env -'boot-args=-v debug=0x8 io=0xff serial=0x3' \
                    -cdrom 10.4.iso -boot d

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/misc/macio/macio.c