4 #include "../../new_dynarec.h"
5 #include "../../../r3000a.h"
7 extern char invalid_code[0x100000];
16 /* same as psxRegs.GPR.n.* */
19 /* same as psxRegs.CP0.n.* */
20 extern int reg_cop0[];
21 #define Status psxRegs.CP0.n.Status
22 #define Cause psxRegs.CP0.n.Cause
23 #define EPC psxRegs.CP0.n.EPC
24 #define BadVAddr psxRegs.CP0.n.BadVAddr
25 #define Context psxRegs.CP0.n.Context
26 #define EntryHi psxRegs.CP0.n.EntryHi
27 #define Count psxRegs.cycle // psxRegs.CP0.n.Count
55 extern int reg_cop2d[], reg_cop2c[];
56 extern void *gte_handlers[64];
57 extern void *gte_handlers_nf[64];
58 extern const char *gte_regnames[64];
59 extern const char gte_cycletab[64];
60 extern const uint64_t gte_reg_reads[64];
61 extern const uint64_t gte_reg_writes[64];
64 extern int FCR0, FCR31;
67 extern void *mem_rtab;
68 extern void *mem_wtab;
70 void jump_handler_read8(u32 addr, u32 *table, u32 cycles);
71 void jump_handler_read16(u32 addr, u32 *table, u32 cycles);
72 void jump_handler_read32(u32 addr, u32 *table, u32 cycles);
73 void jump_handler_write8(u32 addr, u32 data, u32 cycles, u32 *table);
74 void jump_handler_write16(u32 addr, u32 data, u32 cycles, u32 *table);
75 void jump_handler_write32(u32 addr, u32 data, u32 cycles, u32 *table);
76 void jump_handler_write_h(u32 addr, u32 data, u32 cycles, void *handler);
77 void jump_handle_swl(u32 addr, u32 data, u32 cycles);
78 void jump_handle_swr(u32 addr, u32 data, u32 cycles);
79 void rcnt0_read_count_m0(u32 addr, u32, u32 cycles);
80 void rcnt0_read_count_m1(u32 addr, u32, u32 cycles);
81 void rcnt1_read_count_m0(u32 addr, u32, u32 cycles);
82 void rcnt1_read_count_m1(u32 addr, u32, u32 cycles);
83 void rcnt2_read_count_m0(u32 addr, u32, u32 cycles);
84 void rcnt2_read_count_m1(u32 addr, u32, u32 cycles);
86 extern unsigned int address;
87 extern void *psxH_ptr;
88 extern void *zeromem_ptr;
89 extern void *scratch_buf_ptr;
91 // same as invalid_code, just a region for ram write checks (inclusive)
92 extern u32 inv_code_start, inv_code_end;
95 extern u32 next_interupt;
96 extern int pending_exception;
99 void pcsx_mtc0(u32 reg, u32 val);
100 void pcsx_mtc0_ds(u32 reg, u32 val);
103 extern void (*psxHLEt[])();
105 extern void SysPrintf(const char *fmt, ...);
108 #define rdram ((u_int)0x80000000)
110 #define rdram ((u_int)psxM)
113 #endif /* __EMU_IF_H__ */