From: notaz Date: Mon, 26 Oct 2009 11:16:19 +0000 (+0000) Subject: 32x: drc: handlers wip X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=libpicofe.git;a=commitdiff_plain;h=c908877fcdddab2db3e70e674fd54f80d19a9dac 32x: drc: handlers wip git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@826 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/gp2x/Makefile b/gp2x/Makefile index 01e4e3b..934be24 100644 --- a/gp2x/Makefile +++ b/gp2x/Makefile @@ -13,7 +13,7 @@ amalgamate = 0 #profile = 1 #use_musashi = 1 use_sh2drc = 1 -drc_debug = 1 +#drc_debug = 3 -include Makefile.local diff --git a/linux/Makefile b/linux/Makefile index 7ecf4e3..8d37fd4 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -3,7 +3,7 @@ use_musashi = 1 #use_fame = 1 #use_mz80 = 1 use_sh2drc = 1 -drc_debug = 1 +#drc_debug = 3 #profile = 1 #fake_in_gp2x = 1 @@ -140,6 +140,7 @@ mkdirs: include ../common/revision.mak pico/carthw/svp/compiler.o : ../../cpu/drc/emit_arm.c +cpu/sh2/compiler.o : ../../cpu/drc/emit_x86.c pico/pico.o pico/cd/pico.o : ../../pico/pico_cmn.c ../../pico/pico_int.h pico/memory.o pico/cd/memory.o : ../../pico/pico_int.h ../../pico/memory.h diff --git a/linux/host_dasm.c b/linux/host_dasm.c index 91ea4da..3cc9c7b 100644 --- a/linux/host_dasm.c +++ b/linux/host_dasm.c @@ -170,7 +170,7 @@ void host_dasm(void *addr, int len) vma_end = vma + len; while (vma < vma_end) { - printf(" %p ", (void *)(long)vma); + printf(" %p ", (void *)(long)vma); vma += print_insn_func(vma, &di); printf("\n"); } diff --git a/linux/port_config.h b/linux/port_config.h index d2f993a..f576048 100644 --- a/linux/port_config.h +++ b/linux/port_config.h @@ -26,9 +26,8 @@ #define SIMPLE_WRITE_SOUND 0 #define mix_32_to_16l_stereo_lvl mix_32_to_16l_stereo -#define EL_LOGMASK (EL_ANOMALY|EL_STATUS|EL_UIO|EL_IDLE|EL_32X) -// EL_VDPDMA|EL_ASVDP|EL_SR) // |EL_BUSREQ|EL_Z80BNK) -//#define EL_LOGMASK (EL_ANOMALY|EL_STATUS) +#define EL_LOGMASK (EL_STATUS|EL_ANOMALY|EL_UIO|EL_IDLE) +// EL_VDPDMA|EL_ASVDP|EL_SR | EL_BUSREQ|EL_Z80BNK | EL_32X) //#define dprintf(f,...) printf("%05i:%03i: " f "\n",Pico.m.frame_count,Pico.m.scanline,##__VA_ARGS__) #define dprintf(x...)