Skip to content

Commit

Permalink
misc: introduce new mos6522 VIA device and enable it for ppc builds
Browse files Browse the repository at this point in the history
The MOS6522 VIA forms the bridge part of several Mac devices, including the
Mac via-cuda and via-pmu devices. Introduce a standard mos6522 device that
can be shared amongst multiple implementations.

This is effectively taking the 6522 parts out of cuda.c and turning them
into a separate device whilst also applying some style tidy-ups and including
a conversion to trace-events.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
  • Loading branch information
mcayland authored and dgibson committed Feb 10, 2018
1 parent ce19480 commit 51f233e
Show file tree
Hide file tree
Showing 5 changed files with 668 additions and 0 deletions.
1 change: 1 addition & 0 deletions default-configs/ppc-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ CONFIG_MAC=y
CONFIG_ESCC=y
CONFIG_MACIO=y
CONFIG_SUNGEM=y
CONFIG_MOS6522=y
CONFIG_CUDA=y
CONFIG_ADB=y
CONFIG_MAC_NVRAM=y
Expand Down
3 changes: 3 additions & 0 deletions hw/misc/Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ common-obj-$(CONFIG_INTEGRATOR_DEBUG) += arm_integrator_debug.o
common-obj-$(CONFIG_A9SCU) += a9scu.o
common-obj-$(CONFIG_ARM11SCU) += arm11scu.o

# Mac devices
common-obj-$(CONFIG_MOS6522) += mos6522.o

# PKUnity SoC devices
common-obj-$(CONFIG_PUV3) += puv3_pm.o

Expand Down
Loading

0 comments on commit 51f233e

Please sign in to comment.