mirror of https://github.com/xemu-project/xemu.git
mac99: replace debug printf with trace points
Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
2635531f20
commit
5283c27fc5
|
@ -72,6 +72,7 @@
|
||||||
#include "exec/address-spaces.h"
|
#include "exec/address-spaces.h"
|
||||||
#include "hw/sysbus.h"
|
#include "hw/sysbus.h"
|
||||||
#include "qemu/cutils.h"
|
#include "qemu/cutils.h"
|
||||||
|
#include "trace.h"
|
||||||
|
|
||||||
#define MAX_IDE_BUS 2
|
#define MAX_IDE_BUS 2
|
||||||
#define CFG_ADDR 0xf0000510
|
#define CFG_ADDR 0xf0000510
|
||||||
|
@ -79,21 +80,11 @@
|
||||||
#define CLOCKFREQ (266UL * 1000UL * 1000UL)
|
#define CLOCKFREQ (266UL * 1000UL * 1000UL)
|
||||||
#define BUSFREQ (100UL * 1000UL * 1000UL)
|
#define BUSFREQ (100UL * 1000UL * 1000UL)
|
||||||
|
|
||||||
/* debug UniNorth */
|
|
||||||
//#define DEBUG_UNIN
|
|
||||||
|
|
||||||
#ifdef DEBUG_UNIN
|
|
||||||
#define UNIN_DPRINTF(fmt, ...) \
|
|
||||||
do { printf("UNIN: " fmt , ## __VA_ARGS__); } while (0)
|
|
||||||
#else
|
|
||||||
#define UNIN_DPRINTF(fmt, ...)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* UniN device */
|
/* UniN device */
|
||||||
static void unin_write(void *opaque, hwaddr addr, uint64_t value,
|
static void unin_write(void *opaque, hwaddr addr, uint64_t value,
|
||||||
unsigned size)
|
unsigned size)
|
||||||
{
|
{
|
||||||
UNIN_DPRINTF("write addr " TARGET_FMT_plx " val %"PRIx64"\n", addr, value);
|
trace_mac99_uninorth_write(addr, value);
|
||||||
if (addr == 0x0) {
|
if (addr == 0x0) {
|
||||||
*(int*)opaque = value;
|
*(int*)opaque = value;
|
||||||
}
|
}
|
||||||
|
@ -109,7 +100,7 @@ static uint64_t unin_read(void *opaque, hwaddr addr, unsigned size)
|
||||||
value = *(int*)opaque;
|
value = *(int*)opaque;
|
||||||
}
|
}
|
||||||
|
|
||||||
UNIN_DPRINTF("readl addr " TARGET_FMT_plx " val %x\n", addr, value);
|
trace_mac99_uninorth_read(addr, value);
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,3 +85,7 @@ rs6000mc_presence_read(uint32_t addr, uint32_t val) "read addr=%x val=%x"
|
||||||
rs6000mc_size_read(uint32_t addr, uint32_t val) "read addr=%x val=%x"
|
rs6000mc_size_read(uint32_t addr, uint32_t val) "read addr=%x val=%x"
|
||||||
rs6000mc_size_write(uint32_t addr, uint32_t val) "write addr=%x val=%x"
|
rs6000mc_size_write(uint32_t addr, uint32_t val) "write addr=%x val=%x"
|
||||||
rs6000mc_parity_read(uint32_t addr, uint32_t val) "read addr=%x val=%x"
|
rs6000mc_parity_read(uint32_t addr, uint32_t val) "read addr=%x val=%x"
|
||||||
|
|
||||||
|
# hw/ppc/mac_newworld.c
|
||||||
|
mac99_uninorth_write(uint64_t addr, uint64_t value) "addr=0x%" PRIx64 " val=0x%"PRIx64
|
||||||
|
mac99_uninorth_read(uint64_t addr, uint64_t value) "addr=0x%" PRIx64 " val=0x%"PRIx64
|
||||||
|
|
Loading…
Reference in New Issue