add configure, revive pnd build, unify/refactor things

This commit is contained in:
notaz 2013-06-25 01:39:21 +03:00
parent 7e7b446f29
commit d4d626658a
22 changed files with 733 additions and 498 deletions

View file

@ -31,7 +31,7 @@ extern ssp1601_t *ssp;
#define SSP_FLAG_Z (1<<0xd)
#define SSP_FLAG_N (1<<0xf)
#ifndef ARM
#ifndef __arm__
//#define DUMP_BLOCK 0x0c9a
void ssp_drc_next(void){}
void ssp_drc_next_patch(void){}
@ -1794,7 +1794,7 @@ void *ssp_translate_block(int pc)
exit(0);
#endif
#ifdef ARM
#ifdef __arm__
cache_flush_d_inval_i(tcache, tcache_ptr);
#endif
@ -1839,7 +1839,7 @@ int ssp1601_dyn_startup(void)
PicoLoadStateHook = ssp1601_state_load;
n_in_ops = 0;
#ifdef ARM
#ifdef __arm__
// hle'd blocks
ssp_block_table[0x800/2] = (void *) ssp_hle_800;
ssp_block_table[0x902/2] = (void *) ssp_hle_902;
@ -1879,7 +1879,7 @@ void ssp1601_dyn_run(int cycles)
#ifdef DUMP_BLOCK
ssp_translate_block(DUMP_BLOCK >> 1);
#endif
#ifdef ARM
#ifdef __arm__
ssp_drc_entry(cycles);
#endif
}

View file

@ -56,7 +56,7 @@ static void PicoSVPReset(void)
memcpy(svp->iram_rom + 0x800, Pico.rom + 0x800, 0x20000 - 0x800);
ssp1601_reset(&svp->ssp1601);
#ifndef PSP
#ifdef __arm__
if ((PicoOpt&POPT_EN_SVP_DRC) && svp_dyn_ready)
ssp1601_dyn_reset(&svp->ssp1601);
#endif
@ -66,7 +66,7 @@ static void PicoSVPReset(void)
static void PicoSVPLine(void)
{
int count = 1;
#if defined(ARM) || defined(PSP)
#if defined(__arm__) || defined(PSP)
// performance hack
static int delay_lines = 0;
delay_lines++;
@ -76,7 +76,7 @@ static void PicoSVPLine(void)
delay_lines = 0;
#endif
#ifndef PSP
#ifdef __arm__
if ((PicoOpt&POPT_EN_SVP_DRC) && svp_dyn_ready)
ssp1601_dyn_run(PicoSVPCycles * count);
else
@ -118,7 +118,7 @@ static int PicoSVPDma(unsigned int source, int len, unsigned short **srcp, unsig
void PicoSVPInit(void)
{
#ifndef PSP
#ifdef __arm__
// this is to unmap tcache and make
// mem available for large ROMs, MCD, etc.
drc_cmn_cleanup();
@ -127,7 +127,7 @@ void PicoSVPInit(void)
static void PicoSVPExit(void)
{
#ifndef PSP
#ifdef __arm__
ssp1601_dyn_exit();
#endif
}
@ -150,7 +150,7 @@ void PicoSVPStartup(void)
// init SVP compiler
svp_dyn_ready = 0;
#ifndef PSP
#ifdef __arm__
if (PicoOpt & POPT_EN_SVP_DRC) {
if (ssp1601_dyn_startup())
return;