From: notaz Date: Thu, 8 Oct 2009 19:47:31 +0000 (+0000) Subject: 32x: split sh2 code, compiler stub X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2040c69fcdb15e6149405a743c0fb6e7e3813479;p=libpicofe.git 32x: split sh2 code, compiler stub git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@810 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/gp2x/Makefile b/gp2x/Makefile index 42f6fcb..6de8dd9 100644 --- a/gp2x/Makefile +++ b/gp2x/Makefile @@ -112,10 +112,13 @@ else DEFINC += -D_USE_DRZ80 OBJS += cpu/DrZ80/drz80.o endif +OBJS += cpu/sh2/sh2.o ifeq "$(use_sh2mame)" "1" -OBJS += cpu/sh2mame/sh2pico.o +OBJS += cpu/sh2/mame/sh2pico.o else endif +OBJS += cpu/drc/cmn.o +OBJS += cpu/drc/cmn_arm.o vpath %.c = ../.. vpath %.s = ../.. @@ -123,7 +126,7 @@ vpath %.S = ../.. DIRS = platform platform/gp2x platform/linux platform/common pico pico/cd pico/pico pico/32x \ pico/sound pico/carthw/svp zlib unzip cpu cpu/musashi cpu/Cyclone/proj cpu/Cyclone/tools \ - cpu/mz80 cpu/DrZ80 cpu/sh2mame + cpu/mz80 cpu/DrZ80 cpu/sh2/mame cpu/drc all: mkdirs PicoDrive diff --git a/linux/Makefile b/linux/Makefile index 965b52b..8743a13 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -2,6 +2,7 @@ use_musashi = 1 #use_fame = 1 #use_mz80 = 1 +#use_sh2drc = 1 #profile = 1 #fake_in_gp2x = 1 @@ -72,7 +73,12 @@ DEFINES += _USE_CZ80 OBJS += cpu/cz80/cz80.o endif # sh2 -OBJS += cpu/sh2mame/sh2pico.o +OBJS += cpu/sh2/sh2.o +ifeq "$(use_sh2drc)" "1" +else +OBJS += cpu/sh2/mame/sh2pico.o +endif +OBJS += cpu/drc/cmn.o # misc ifeq "$(use_fame)" "1" ifeq "$(use_musashi)" "1" @@ -85,7 +91,7 @@ CFLAGS += $(addprefix -D,$(DEFINES)) vpath %.c = ../.. DIRS = platform platform/gp2x platform/common pico pico/cd pico/pico pico/sound pico/carthw/svp \ - pico/32x zlib unzip cpu cpu/musashi cpu/fame cpu/mz80 cpu/cz80 cpu/sh2mame + pico/32x zlib unzip cpu cpu/musashi cpu/fame cpu/mz80 cpu/cz80 cpu/sh2/mame cpu/drc all: mkdirs PicoDrive clean: tidy