notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lightrec: try to clean up intergarion, fix -O0
[pcsx_rearmed.git]
/
libpcsxcore
/
psxinterpreter.c
diff --git
a/libpcsxcore/psxinterpreter.c
b/libpcsxcore/psxinterpreter.c
index
5d931a9
..
e6f1587
100644
(file)
--- a/
libpcsxcore/psxinterpreter.c
+++ b/
libpcsxcore/psxinterpreter.c
@@
-60,7
+60,7
@@
void (*psxCP2BSC[32])();
static u32 fetchNoCache(u32 pc)
{
u32 *code = (u32 *)PSXM(pc);
static u32 fetchNoCache(u32 pc)
{
u32 *code = (u32 *)PSXM(pc);
- return ((code ==
NULL
) ? 0 : SWAP32(*code));
+ return ((code ==
INVALID_PTR
) ? 0 : SWAP32(*code));
}
/*
}
/*
@@
-83,7
+83,7
@@
static u32 fetchICache(u32 pc)
if (((entry->tag ^ pc) & 0xfffffff0) != 0 || pc < entry->tag)
{
u32 *code = (u32 *)PSXM(pc & ~0x0f);
if (((entry->tag ^ pc) & 0xfffffff0) != 0 || pc < entry->tag)
{
u32 *code = (u32 *)PSXM(pc & ~0x0f);
- if (
!code
)
+ if (
code == INVALID_PTR
)
return 0;
entry->tag = pc;
return 0;
entry->tag = pc;
@@
-318,7
+318,7
@@
int psxTestLoadDelay(int reg, u32 tmp) {
}
void psxDelayTest(int reg, u32 bpc) {
}
void psxDelayTest(int reg, u32 bpc) {
- u32 tmp = fetch(
psxRegs.
pc);
+ u32 tmp = fetch(
b
pc);
branch = 1;
switch (psxTestLoadDelay(reg, tmp)) {
branch = 1;
switch (psxTestLoadDelay(reg, tmp)) {