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
spu: remove some strange rounding
[pcsx_rearmed.git]
/
libpcsxcore
/
r3000a.h
diff --git
a/libpcsxcore/r3000a.h
b/libpcsxcore/r3000a.h
index
5435915
..
ea6f0e7
100644
(file)
--- a/
libpcsxcore/r3000a.h
+++ b/
libpcsxcore/r3000a.h
@@
-29,14
+29,11
@@
extern "C" {
#include "psxcounters.h"
#include "psxbios.h"
#include "psxcounters.h"
#include "psxbios.h"
-#ifdef ICACHE_EMULATION
enum {
R3000ACPU_NOTIFY_CACHE_ISOLATED = 0,
R3000ACPU_NOTIFY_CACHE_UNISOLATED = 1,
R3000ACPU_NOTIFY_DMA3_EXE_LOAD = 2
};
enum {
R3000ACPU_NOTIFY_CACHE_ISOLATED = 0,
R3000ACPU_NOTIFY_CACHE_UNISOLATED = 1,
R3000ACPU_NOTIFY_DMA3_EXE_LOAD = 2
};
-extern uint32_t *Read_ICache(uint32_t pc);
-#endif
typedef struct {
int (*Init)();
typedef struct {
int (*Init)();
@@
-44,9
+41,8
@@
typedef struct {
void (*Execute)(); /* executes up to a break */
void (*ExecuteBlock)(); /* executes up to a jump */
void (*Clear)(u32 Addr, u32 Size);
void (*Execute)(); /* executes up to a break */
void (*ExecuteBlock)(); /* executes up to a jump */
void (*Clear)(u32 Addr, u32 Size);
-#ifdef ICACHE_EMULATION
void (*Notify)(int note, void *data);
void (*Notify)(int note, void *data);
-#endif
+ void (*ApplyConfig)();
void (*Shutdown)();
} R3000Acpu;
void (*Shutdown)();
} R3000Acpu;
@@
-55,7
+51,7
@@
extern R3000Acpu psxInt;
extern R3000Acpu psxRec;
typedef union {
extern R3000Acpu psxRec;
typedef union {
-#if
defined(__BIGENDIAN__)
+#if
__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
struct { u8 h3, h2, h, l; } b;
struct { s8 h3, h2, h, l; } sb;
struct { u16 h, l; } w;
struct { u8 h3, h2, h, l; } b;
struct { s8 h3, h2, h, l; } sb;
struct { u16 h, l; } w;
@@
-168,7
+164,7
@@
enum {
PSXINT_NEWDRC_CHECK,
PSXINT_RCNT,
PSXINT_CDRLID,
PSXINT_NEWDRC_CHECK,
PSXINT_RCNT,
PSXINT_CDRLID,
- PSXINT_CDRPLAY
,
+ PSXINT_CDRPLAY
_OLD, /* unused */
PSXINT_SPU_UPDATE,
PSXINT_COUNT
};
PSXINT_SPU_UPDATE,
PSXINT_COUNT
};
@@
-194,9
+190,10
@@
typedef struct {
u32 interrupt;
struct { u32 sCycle, cycle; } intCycle[32];
u32 gteBusyCycle;
u32 interrupt;
struct { u32 sCycle, cycle; } intCycle[32];
u32 gteBusyCycle;
+ u32 muldivBusyCycle;
// warning: changing anything in psxRegisters requires update of all
// asm in libpcsxcore/new_dynarec/, but this member can be replaced
// warning: changing anything in psxRegisters requires update of all
// asm in libpcsxcore/new_dynarec/, but this member can be replaced
- u32 reserved[
3
];
+ u32 reserved[
2
];
} psxRegisters;
extern psxRegisters psxRegs;
} psxRegisters;
extern psxRegisters psxRegs;
@@
-220,7
+217,7
@@
void new_dyna_freeze(void *f, int mode);
} \
}
} \
}
-#if
defined(__BIGENDIAN__)
+#if
__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define _i32(x) *(s32 *)&x
#define _u32(x) x
#define _i32(x) *(s32 *)&x
#define _u32(x) x