notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
timers implemented for new z80 mode
[picodrive.git]
/
Pico
/
carthw
/
svp
/
svp.c
diff --git
a/Pico/carthw/svp/svp.c
b/Pico/carthw/svp/svp.c
index
cbddd9c
..
0c7585a
100644
(file)
--- a/
Pico/carthw/svp/svp.c
+++ b/
Pico/carthw/svp/svp.c
@@
-38,16
+38,21
@@
static void PicoSVPReset(void)
memcpy(svp->iram_rom + 0x800, Pico.rom + 0x800, 0x20000 - 0x800);
ssp1601_reset(&svp->ssp1601);
memcpy(svp->iram_rom + 0x800, Pico.rom + 0x800, 0x20000 - 0x800);
ssp1601_reset(&svp->ssp1601);
- if ((PicoOpt&0x20000) && svp_dyn_ready)
+#ifndef PSP
+ if ((PicoOpt&POPT_EN_SVP_DRC) && svp_dyn_ready)
ssp1601_dyn_reset(&svp->ssp1601);
ssp1601_dyn_reset(&svp->ssp1601);
+#endif
}
static void PicoSVPLine(int count)
{
}
static void PicoSVPLine(int count)
{
- if ((PicoOpt&0x20000) && svp_dyn_ready)
+#ifndef PSP
+ if ((PicoOpt&POPT_EN_SVP_DRC) && svp_dyn_ready)
ssp1601_dyn_run(PicoSVPCycles * count);
ssp1601_dyn_run(PicoSVPCycles * count);
- else {
+ else
+#endif
+ {
ssp1601_run(PicoSVPCycles * count);
svp_dyn_ready = 0; // just in case
}
ssp1601_run(PicoSVPCycles * count);
svp_dyn_ready = 0; // just in case
}
@@
-126,10
+131,12
@@
void PicoSVPStartup(void)
// init SVP compiler
svp_dyn_ready = 0;
// init SVP compiler
svp_dyn_ready = 0;
- if (PicoOpt&0x20000) {
+#ifndef PSP
+ if (PicoOpt&POPT_EN_SVP_DRC) {
if (ssp1601_dyn_startup()) return;
svp_dyn_ready = 1;
}
if (ssp1601_dyn_startup()) return;
svp_dyn_ready = 1;
}
+#endif
// init ok, setup hooks..
PicoRead16Hook = PicoSVPRead16;
// init ok, setup hooks..
PicoRead16Hook = PicoSVPRead16;
@@
-145,6
+152,7
@@
void PicoSVPStartup(void)
svp_states[1].ptr = svp->dram;
svp_states[2].ptr = &svp->ssp1601;
carthw_chunks = svp_states;
svp_states[1].ptr = svp->dram;
svp_states[2].ptr = &svp->ssp1601;
carthw_chunks = svp_states;
+ PicoAHW |= PAHW_SVP;
}
}