aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc_chrp.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-05 20:22:07 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-05 20:22:07 +0000
commitf39023833e4520f411f074a891708591c9ce1e68 (patch)
tree38911041ec032ebc6261d2001ea7acec4841f780 /hw/ppc_chrp.c
parent864c136a933f18bbf78609e3e43e75fde0923bba (diff)
downloadqemu-f39023833e4520f411f074a891708591c9ce1e68.zip
qemu-f39023833e4520f411f074a891708591c9ce1e68.tar.gz
qemu-f39023833e4520f411f074a891708591c9ce1e68.tar.bz2
Add debug, savevm and reset support for UniNorth
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6521 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ppc_chrp.c')
-rw-r--r--hw/ppc_chrp.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/hw/ppc_chrp.c b/hw/ppc_chrp.c
index 89019a8..4860eba 100644
--- a/hw/ppc_chrp.c
+++ b/hw/ppc_chrp.c
@@ -37,14 +37,30 @@
#define MAX_IDE_BUS 2
#define VGA_BIOS_SIZE 65536
+/* debug UniNorth */
+//#define DEBUG_UNIN
+
+#ifdef DEBUG_UNIN
+#define UNIN_DPRINTF(fmt, args...) \
+do { printf("UNIN: " fmt , ##args); } while (0)
+#else
+#define UNIN_DPRINTF(fmt, args...)
+#endif
+
/* UniN device */
static void unin_writel (void *opaque, target_phys_addr_t addr, uint32_t value)
{
+ UNIN_DPRINTF("writel addr " TARGET_FMT_plx " val %x\n", addr, value);
}
static uint32_t unin_readl (void *opaque, target_phys_addr_t addr)
{
- return 0;
+ uint32_t value;
+
+ value = 0;
+ UNIN_DPRINTF("readl addr " TARGET_FMT_plx " val %x\n", addr, value);
+
+ return value;
}
static CPUWriteMemoryFunc *unin_write[] = {