diff options
author | 2007-12-17 15:19:59 +0000 | |
---|---|---|
committer | 2007-12-17 15:19:59 +0000 | |
commit | 7b77f1218624ea26dbb2efd85a19f795f5d4e02e (patch) | |
tree | 19209304095572b4fd61c2a2d6a5aa75c4e471ad /src/emu/cpu/mips/r3000.h | |
parent | 3da7f476068b3ffef713218ba2fc1bd5030f2c38 (diff) |
Initial checkin of MAME 0.121.mame0121
Diffstat (limited to 'src/emu/cpu/mips/r3000.h')
-rw-r--r-- | src/emu/cpu/mips/r3000.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/emu/cpu/mips/r3000.h b/src/emu/cpu/mips/r3000.h new file mode 100644 index 00000000000..0a897274ffd --- /dev/null +++ b/src/emu/cpu/mips/r3000.h @@ -0,0 +1,65 @@ +/*************************************************************************** + + r3000.h + Interface file for the portable MIPS R3000 emulator. + Written by Aaron Giles + +***************************************************************************/ + +#ifndef _R3000_H +#define _R3000_H + +#include "cpuintrf.h" + + +/*************************************************************************** + COMPILE-TIME DEFINITIONS +***************************************************************************/ + + +/*************************************************************************** + REGISTER ENUMERATION +***************************************************************************/ + +enum +{ + R3000_PC=1,R3000_SR, + R3000_R0,R3000_R1,R3000_R2,R3000_R3,R3000_R4,R3000_R5,R3000_R6,R3000_R7, + R3000_R8,R3000_R9,R3000_R10,R3000_R11,R3000_R12,R3000_R13,R3000_R14,R3000_R15, + R3000_R16,R3000_R17,R3000_R18,R3000_R19,R3000_R20,R3000_R21,R3000_R22,R3000_R23, + R3000_R24,R3000_R25,R3000_R26,R3000_R27,R3000_R28,R3000_R29,R3000_R30,R3000_R31 +}; + + +/*************************************************************************** + INTERRUPT CONSTANTS +***************************************************************************/ + +#define R3000_IRQ0 0 /* IRQ0 */ +#define R3000_IRQ1 1 /* IRQ1 */ +#define R3000_IRQ2 2 /* IRQ2 */ +#define R3000_IRQ3 3 /* IRQ3 */ +#define R3000_IRQ4 4 /* IRQ4 */ +#define R3000_IRQ5 5 /* IRQ5 */ + + +/*************************************************************************** + STRUCTURES +***************************************************************************/ + +struct r3000_config +{ + UINT8 hasfpu; /* 1 if we have an FPU, 0 otherwise */ + size_t icache; /* code cache size */ + size_t dcache; /* data cache size */ +}; + + +/*************************************************************************** + PUBLIC FUNCTIONS +***************************************************************************/ + +extern void r3000be_get_info(UINT32 state, cpuinfo *info); +extern void r3000le_get_info(UINT32 state, cpuinfo *info); + +#endif /* _JAGUAR_H */ |