mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
32x drc functional on ARM, random adjustments
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@824 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
274f95a9a9
commit
553c3eaa3a
12 changed files with 86 additions and 63 deletions
|
@ -15,14 +15,15 @@ amalgamate = 0
|
|||
use_sh2drc = 1
|
||||
drc_debug = 1
|
||||
|
||||
-include Makefile.local
|
||||
|
||||
ifeq "$(debug_cyclone)" "1"
|
||||
use_cyclone = 1
|
||||
use_musashi = 1
|
||||
endif
|
||||
ifeq "$(use_musashi)" "1"
|
||||
# due to CPU stop flag acces
|
||||
asm_cdpico = 0
|
||||
asm_memory = 0
|
||||
asm_cdmemory = 0
|
||||
else
|
||||
use_cyclone = 1
|
||||
|
@ -119,8 +120,8 @@ DEFINES += DRC_SH2 DRC_TMP
|
|||
OBJS += cpu/sh2/mame/sh2pico.o
|
||||
OBJS += cpu/sh2/compiler.o
|
||||
OBJS += cpu/sh2/stub_arm.o
|
||||
ifeq "$(drc_debug)" "1"
|
||||
DEFINES += DRC_DEBUG=1
|
||||
ifdef drc_debug
|
||||
DEFINES += DRC_DEBUG=$(drc_debug)
|
||||
OBJS += cpu/sh2/mame/sh2dasm.o
|
||||
OBJS += platform/linux/host_dasm.o
|
||||
LDFLAGS += -lbfd -lopcodes -liberty
|
||||
|
|
|
@ -22,13 +22,13 @@ CFLAGS += -ggdb -Wall -falign-functions=2
|
|||
endif
|
||||
DEFINES = _UNZIP_SUPPORT IO_STATS IN_EVDEV
|
||||
CFLAGS += -I../.. -I.
|
||||
LDFLAGS += -lpthread
|
||||
LDFLAGS += -lm -lpng
|
||||
ifeq "$(ARCH)" "arm"
|
||||
CFLAGS += -mcpu=arm920t
|
||||
DEFINES += ARM
|
||||
else
|
||||
LDFLAGS += -lX11
|
||||
endif
|
||||
LDFLAGS += -lpthread
|
||||
LDFLAGS += -lX11
|
||||
|
||||
CC = $(CROSS)gcc
|
||||
|
||||
|
@ -95,8 +95,8 @@ DEFINES += DRC_SH2 DRC_TMP
|
|||
OBJS += cpu/sh2/mame/sh2pico.o
|
||||
OBJS += cpu/sh2/compiler.o
|
||||
OBJS += cpu/sh2/stub_$(ARCH).o
|
||||
ifeq "$(drc_debug)" "1"
|
||||
DEFINES += DRC_DEBUG=1
|
||||
ifdef drc_debug
|
||||
DEFINES += DRC_DEBUG=$(drc_debug)
|
||||
OBJS += cpu/sh2/mame/sh2dasm.o
|
||||
OBJS += host_dasm.o
|
||||
LDFLAGS += -lbfd -lopcodes -liberty
|
||||
|
@ -132,7 +132,7 @@ tidy:
|
|||
|
||||
PicoDrive : $(OBJS)
|
||||
@echo ">>>" $@
|
||||
$(CC) $(CFLAGS) $^ $(LDFLAGS) -lm -lpng -Wl,-Map=PicoDrive.map -o $@
|
||||
$(CC) $(CFLAGS) $^ $(LDFLAGS) -Wl,-Map=PicoDrive.map -o $@
|
||||
|
||||
mkdirs:
|
||||
@mkdir -p $(DIRS)
|
||||
|
|
|
@ -37,7 +37,7 @@ remove_useless_symbols (asymbol **symbols, long count)
|
|||
{
|
||||
asymbol *sym = *in_ptr++;
|
||||
|
||||
if (sym->name == NULL || sym->name[0] == '\0')
|
||||
if (sym->name == NULL || sym->name[0] == '\0' || sym->name[0] == '$')
|
||||
continue;
|
||||
if (sym->flags & (BSF_DEBUGGING | BSF_SECTION_SYM))
|
||||
continue;
|
||||
|
@ -53,6 +53,7 @@ remove_useless_symbols (asymbol **symbols, long count)
|
|||
*/
|
||||
*out_ptr++ = sym;
|
||||
}
|
||||
|
||||
return out_ptr - symbols;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue