mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
don't assume svp dynarec on ARM so that it can be disabled
This commit is contained in:
parent
0a91c6e902
commit
7fd5d17b31
2 changed files with 6 additions and 5 deletions
|
@ -56,7 +56,7 @@ static void PicoSVPReset(void)
|
||||||
|
|
||||||
memcpy(svp->iram_rom + 0x800, Pico.rom + 0x800, 0x20000 - 0x800);
|
memcpy(svp->iram_rom + 0x800, Pico.rom + 0x800, 0x20000 - 0x800);
|
||||||
ssp1601_reset(&svp->ssp1601);
|
ssp1601_reset(&svp->ssp1601);
|
||||||
#ifdef __arm__
|
#ifdef _SVP_DRC
|
||||||
if ((PicoOpt&POPT_EN_SVP_DRC) && svp_dyn_ready)
|
if ((PicoOpt&POPT_EN_SVP_DRC) && svp_dyn_ready)
|
||||||
ssp1601_dyn_reset(&svp->ssp1601);
|
ssp1601_dyn_reset(&svp->ssp1601);
|
||||||
#endif
|
#endif
|
||||||
|
@ -76,7 +76,7 @@ static void PicoSVPLine(void)
|
||||||
delay_lines = 0;
|
delay_lines = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __arm__
|
#ifdef _SVP_DRC
|
||||||
if ((PicoOpt&POPT_EN_SVP_DRC) && svp_dyn_ready)
|
if ((PicoOpt&POPT_EN_SVP_DRC) && svp_dyn_ready)
|
||||||
ssp1601_dyn_run(PicoSVPCycles * count);
|
ssp1601_dyn_run(PicoSVPCycles * count);
|
||||||
else
|
else
|
||||||
|
@ -118,7 +118,7 @@ static int PicoSVPDma(unsigned int source, int len, unsigned short **srcp, unsig
|
||||||
|
|
||||||
void PicoSVPInit(void)
|
void PicoSVPInit(void)
|
||||||
{
|
{
|
||||||
#ifdef __arm__
|
#ifdef _SVP_DRC
|
||||||
// this is to unmap tcache and make
|
// this is to unmap tcache and make
|
||||||
// mem available for large ROMs, MCD, etc.
|
// mem available for large ROMs, MCD, etc.
|
||||||
drc_cmn_cleanup();
|
drc_cmn_cleanup();
|
||||||
|
@ -127,7 +127,7 @@ void PicoSVPInit(void)
|
||||||
|
|
||||||
static void PicoSVPExit(void)
|
static void PicoSVPExit(void)
|
||||||
{
|
{
|
||||||
#ifdef __arm__
|
#ifdef _SVP_DRC
|
||||||
ssp1601_dyn_exit();
|
ssp1601_dyn_exit();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -150,7 +150,7 @@ void PicoSVPStartup(void)
|
||||||
|
|
||||||
// init SVP compiler
|
// init SVP compiler
|
||||||
svp_dyn_ready = 0;
|
svp_dyn_ready = 0;
|
||||||
#ifdef __arm__
|
#ifdef _SVP_DRC
|
||||||
if (PicoOpt & POPT_EN_SVP_DRC) {
|
if (PicoOpt & POPT_EN_SVP_DRC) {
|
||||||
if (ssp1601_dyn_startup())
|
if (ssp1601_dyn_startup())
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -89,6 +89,7 @@ SRCS_COMMON += $(R)pico/carthw/carthw.c
|
||||||
SRCS_COMMON += $(R)pico/carthw/svp/svp.c $(R)pico/carthw/svp/memory.c \
|
SRCS_COMMON += $(R)pico/carthw/svp/svp.c $(R)pico/carthw/svp/memory.c \
|
||||||
$(R)pico/carthw/svp/ssp16.c
|
$(R)pico/carthw/svp/ssp16.c
|
||||||
ifeq "$(use_svpdrc)" "1"
|
ifeq "$(use_svpdrc)" "1"
|
||||||
|
DEFINES += _SVP_DRC
|
||||||
SRCS_COMMON += $(R)pico/carthw/svp/stub_arm.S
|
SRCS_COMMON += $(R)pico/carthw/svp/stub_arm.S
|
||||||
SRCS_COMMON += $(R)pico/carthw/svp/compiler.c
|
SRCS_COMMON += $(R)pico/carthw/svp/compiler.c
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue