--- tme/host/posix/posix-memory.c 2018/04/24 16:44:26 1.1.1.4 +++ tme/host/posix/posix-memory.c 2018/04/24 16:46:14 1.1.1.5 @@ -1,4 +1,4 @@ -/* $Id: posix-memory.c,v 1.1.1.4 2018/04/24 16:44:26 root Exp $ */ +/* $Id: posix-memory.c,v 1.1.1.5 2018/04/24 16:46:14 root Exp $ */ /* host/posix/posix-memory.c - implementation of memory on a POSIX system: */ @@ -34,7 +34,7 @@ */ #include -_TME_RCSID("$Id: posix-memory.c,v 1.1.1.4 2018/04/24 16:44:26 root Exp $"); +_TME_RCSID("$Id: posix-memory.c,v 1.1.1.5 2018/04/24 16:46:14 root Exp $"); /* includes: */ #include @@ -123,6 +123,29 @@ _tme_posix_memory_bus_cycle(void *_memor /* recover our data structure: */ memory = (struct tme_posix_memory *) _memory; +#if 0 + if (cycle->tme_bus_cycle_type == TME_BUS_CYCLE_WRITE) { + printf("posix write @ %x\n", (unsigned int)cycle->tme_bus_cycle_address); + } + if (cycle->tme_bus_cycle_type == TME_BUS_CYCLE_READ) { + printf("posix read @ %x\n", (unsigned int)cycle->tme_bus_cycle_address); + } +#endif + +#if 1 + if (cycle->tme_bus_cycle_type == TME_BUS_CYCLE_WRITE) { + extern int get_sunbw2_copy(void); + extern int get_sunbw2_copy_addr(void); + int printf(const char *format, ...); + + if (get_sunbw2_copy()) { + if ((cycle->tme_bus_cycle_address & 0x007e0000) == get_sunbw2_copy_addr()) { + printf("posix hit! @ %x\n", (unsigned int)cycle->tme_bus_cycle_address); + } + } + } +#endif + /* run the cycle: */ tme_bus_cycle_xfer_memory(cycle, ((cycle->tme_bus_cycle_type == TME_BUS_CYCLE_WRITE