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