Debian Codegraph @

mednafen/hw_cpu/v810/v810_cpu.h

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////cxx . . $ `<file>/mednafen/hw_cpu/v810/v810_cpu.h`/
2 // Defines for the V810 CPU
3
4 #ifndef V810_CPU_H_
5 #define V810_CPU_H_cxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:5:9`!
6
7 #include <vector>
8
9 #include "fpu-new/softfloat.h"cxx . . $ `<file>/mednafen/hw_cpu/v810/fpu-new/softfloat.h`/
10
11 typedef int32cxx . . $ int32# v810_timestamp_tcxx . . $ v810_timestamp_t#;
12
13 #define V810_FAST_MAP_SHIFTcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:13:9`! 16
14 #define V810_FAST_MAP_PSIZEcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:14:9`! (1 << V810_FAST_MAP_SHIFTcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:13:9`!)
15 #define V810_FAST_MAP_TRAMPOLINE_SIZEcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:15:9`! 1024
16
17 // Exception codes
18 enumcxx . . $ $anonymous_type_cfd22afa7a604d7f_0#
19 {
20 ECODE_TRAP_BASEcxx . . $ ECODE_TRAP_BASE. = 0xFFA0,
21 ECODE_INVALID_OPcxx . . $ ECODE_INVALID_OP. = 0xFF90,
22 ECODE_ZERO_DIVcxx . . $ ECODE_ZERO_DIV. = 0xFF80, // Integer divide by 0
23 ECODE_FIVcxx . . $ ECODE_FIV. = 0xFF70, // Floating point invalid operation
24 ECODE_FZDcxx . . $ ECODE_FZD. = 0xFF68, // Floating point zero division
25 ECODE_FOVcxx . . $ ECODE_FOV. = 0xFF64, // Floating point overflow
26 //#define ECODE_FUD 0xFF62 // Floating point underflow(unused on V810)
27 //#define ECODE_FPR 0xFF61 // Floating point precision degradation(unused on V810)
28 ECODE_FROcxx . . $ ECODE_FRO. = 0xFF60 // Floating point reserved operand
29 };
30
31 enumcxx . . $ $anonymous_type_cfd22afa7a604d7f_1#
32 {
33 INVALID_OP_HANDLER_ADDRcxx . . $ INVALID_OP_HANDLER_ADDR. = 0xFFFFFF90, // Invalid opcode/instruction code!
34 ZERO_DIV_HANDLER_ADDRcxx . . $ ZERO_DIV_HANDLER_ADDR. = 0xFFFFFF80, // Integer divide by 0 exception
35 FPU_HANDLER_ADDRcxx . . $ FPU_HANDLER_ADDR. = 0xFFFFFF60, // FPU exception
36 TRAP_HANDLER_BASEcxx . . $ TRAP_HANDLER_BASE. = 0xFFFFFFA0 // TRAP instruction
37 };
38
39 //System Register Defines (these are the only valid system registers!)
40 #define EIPCcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:40:9`! 0 //Exeption/Interupt PC
41 #define EIPSWcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:41:9`! 1 //Exeption/Interupt PSW
42
43 #define FEPCcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:43:9`! 2 //Fatal Error PC
44 #define FEPSWcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:44:9`! 3 //Fatal Error PSW
45
46 #define ECRcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:46:9`! 4 //Exception Cause Register
47 #define PSWcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:47:9`! 5 //Program Status Word
48 #define PIRcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:48:9`! 6 //Processor ID Register
49 #define TKCWcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:49:9`! 7 //Task Controll Word
50 #define CHCWcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:50:9`! 24 //Cashe Controll Word
51 #define ADDTREcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:51:9`! 25 //ADDTRE
52
53 //PSW Specifics
54 #define PSW_IAcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:54:9`! 0xF0000 // All Interupt bits...
55 #define PSW_I3cxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:55:9`! 0x80000
56 #define PSW_I2cxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:56:9`! 0x40000
57 #define PSW_I1cxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:57:9`! 0x20000
58 #define PSW_I0cxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:58:9`! 0x10000
59
60 #define PSW_NPcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:60:9`! 0x08000
61 #define PSW_EPcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:61:9`! 0x04000
62
63 #define PSW_AEcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:63:9`! 0x02000
64
65 #define PSW_IDcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:65:9`! 0x01000
66
67 #define PSW_FROcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:67:9`! 0x00200 // Floating point reserved operand(set on denormal, NaN, or indefinite)
68 #define PSW_FIVcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:68:9`! 0x00100 // Floating point invalid operation(set when trying to convert a number too large to an (un)signed integer)
69
70 #define PSW_FZDcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:70:9`! 0x00080 // Floating point divide by zero
71 #define PSW_FOVcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:71:9`! 0x00040 // Floating point overflow
72 #define PSW_FUDcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:72:9`! 0x00020 // Floating point underflow
73 #define PSW_FPRcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:73:9`! 0x00010 // Floating point precision degradation
74
75 #define PSW_CYcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:75:9`! 0x00008
76 #define PSW_OVcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:76:9`! 0x00004
77 #define PSW_Scxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:77:9`! 0x00002
78 #define PSW_Zcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:78:9`! 0x00001
79
80 //condition codes
81 #define COND_Vcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:81:9`! 0
82 #define COND_Ccxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:82:9`! 1
83 #define COND_Zcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:83:9`! 2
84 #define COND_NHcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:84:9`! 3
85 #define COND_Scxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:85:9`! 4
86 #define COND_Tcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:86:9`! 5
87 #define COND_LTcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:87:9`! 6
88 #define COND_LEcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:88:9`! 7
89 #define COND_NVcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:89:9`! 8
90 #define COND_NCcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:90:9`! 9
91 #define COND_NZcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:91:9`! 10
92 #define COND_Hcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:92:9`! 11
93 #define COND_NScxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:93:9`! 12
94 #define COND_Fcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:94:9`! 13
95 #define COND_GEcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:95:9`! 14
96 #define COND_GTcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:96:9`! 15
97
98 #define TESTCOND_Vcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:98:9`! (S_REG[PSW]&PSW_OV)
99
100 #define TESTCOND_Lcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:100:9`! (S_REG[PSW]&PSW_CY)
101 #define TESTCOND_Ccxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:101:9`! TESTCOND_L
102
103 #define TESTCOND_Ecxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:103:9`! (S_REG[PSW]&PSW_Z)
104 #define TESTCOND_Zcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:104:9`! TESTCOND_E
105
106 #define TESTCOND_NHcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:106:9`! ( (S_REG[PSW]&PSW_Z) || (S_REG[PSW]&PSW_CY) )
107 #define TESTCOND_Ncxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:107:9`! (S_REG[PSW]&PSW_S)
108 #define TESTCOND_Scxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:108:9`! TESTCOND_N
109
110 #define TESTCOND_LTcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:110:9`! ( (!!(S_REG[PSW]&PSW_S)) ^ (!!(S_REG[PSW]&PSW_OV)) )
111 #define TESTCOND_LEcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:111:9`! ( ((!!(S_REG[PSW]&PSW_S)) ^ (!!(S_REG[PSW]&PSW_OV))) || (S_REG[PSW]&PSW_Z) )
112 #define TESTCOND_NVcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:112:9`! (!(S_REG[PSW]&PSW_OV))
113
114 #define TESTCOND_NLcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:114:9`! (!(S_REG[PSW]&PSW_CY))
115 #define TESTCOND_NCcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:115:9`! TESTCOND_NL
116
117 #define TESTCOND_NEcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:117:9`! (!(S_REG[PSW]&PSW_Z))
118 #define TESTCOND_NZcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:118:9`! TESTCOND_NE
119
120 #define TESTCOND_Hcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:120:9`! ( !((S_REG[PSW]&PSW_Z) || (S_REG[PSW]&PSW_CY)) )
121 #define TESTCOND_Pcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:121:9`! (!(S_REG[PSW] & PSW_S))
122 #define TESTCOND_NScxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:122:9`! TESTCOND_P
123
124 #define TESTCOND_GEcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:124:9`! (!((!!(S_REG[PSW]&PSW_S))^(!!(S_REG[PSW]&PSW_OV))))
125 #define TESTCOND_GTcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:125:9`! (! (((!!(S_REG[PSW]&PSW_S))^(!!(S_REG[PSW]&PSW_OV))) || (S_REG[PSW]&PSW_Z)) )
126
127 // Tag layout
128 // Bit 0-21: TAG31-TAG10
129 // Bit 22-23: Validity bits(one for each 4-byte subblock)
130 // Bit 24-27: NECRV("Reserved")
131 // Bit 28-31: 0
132
133 typedef enumcxx . . $ $anonymous_type_cfd22afa7a604d7f_2#
134 {
135 V810_EMU_MODE_FASTcxx . . $ V810_EMU_MODE_FAST. = 0,
136 V810_EMU_MODE_ACCURATEcxx . . $ V810_EMU_MODE_ACCURATE. = 1,
137 _V810_EMU_MODE_COUNTcxx . . $ _V810_EMU_MODE_COUNT.
138 } V810_Emu_Modecxx . . $ V810_Emu_Mode#;
139
140 //
141 // WARNING: Do NOT instantiate this class in multiple threads in such a way that both threads can be inside a method of this class at the same time.
142 // To fix this, you'll need to put locks or something(re-engineer it to use state passed in through pointers) around the SoftFloat code.
143 //
144
145
146 class V810cxx . . $ V810#
147 {
148 public:
149
150 V810cxx . . $ V810#V810(49f6e7a06ebc5aa8).();
151 ~cxx . . $ V810#`~V810`(ced63f7c635d850d).V810cxx . . $ V810#();
152
153 // Pass TRUE for vb_mode if we're emulating a VB-specific enhanced V810 CPU core
154 bool Initcxx . . $ V810#Init(6f292f52d6600187).(V810_Emu_Modecxx . . $ V810_Emu_Mode# mode, bool vb_mode);
155 void Killcxx . . $ V810#Kill(49f6e7a06ebc5aa8).(void);
156
157 void SetIntcxx . . $ V810#SetInt(d4f767463ce0a6b3).(int level);
158
159 void SetMemWriteBus32cxx . . $ V810#SetMemWriteBus32(f2ac3508b56cd10).(uint8cxx . . $ uint8# A, bool value);
160 void SetMemReadBus32cxx . . $ V810#SetMemReadBus32(f2ac3508b56cd10).(uint8cxx . . $ uint8# A, bool value);
161
162 void SetMemReadHandlerscxx . . $ V810#SetMemReadHandlers(9cb6d09b7e005094).(uint8cxx . . $ uint8# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*read8)(v810_timestamp_tcxx . . $ v810_timestamp_t# &, uint32cxx . . $ uint32#), uint16cxx . . $ uint16# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*read16)(v810_timestamp_tcxx . . $ v810_timestamp_t# &, uint32cxx . . $ uint32#), uint32cxx . . $ uint32# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*read32)(v810_timestamp_tcxx . . $ v810_timestamp_t# &, uint32cxx . . $ uint32#));
163 void SetMemWriteHandlerscxx . . $ V810#SetMemWriteHandlers(14e671c2544e4d03).(void MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*write8)(v810_timestamp_tcxx . . $ v810_timestamp_t# &, uint32cxx . . $ uint32#, uint8cxx . . $ uint8#), void MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*write16)(v810_timestamp_tcxx . . $ v810_timestamp_t# &, uint32cxx . . $ uint32#, uint16cxx . . $ uint16#), void MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*write32)(v810_timestamp_tcxx . . $ v810_timestamp_t# &, uint32cxx . . $ uint32#, uint32cxx . . $ uint32#));
164
165 void SetIOReadHandlerscxx . . $ V810#SetIOReadHandlers(9cb6d09b7e005094).(uint8cxx . . $ uint8# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*read8)(v810_timestamp_tcxx . . $ v810_timestamp_t# &, uint32cxx . . $ uint32#), uint16cxx . . $ uint16# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*read16)(v810_timestamp_tcxx . . $ v810_timestamp_t# &, uint32cxx . . $ uint32#), uint32cxx . . $ uint32# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*read32)(v810_timestamp_tcxx . . $ v810_timestamp_t# &, uint32cxx . . $ uint32#));
166 void SetIOWriteHandlerscxx . . $ V810#SetIOWriteHandlers(14e671c2544e4d03).(void MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*write8)(v810_timestamp_tcxx . . $ v810_timestamp_t# &, uint32cxx . . $ uint32#, uint8cxx . . $ uint8#), void MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*write16)(v810_timestamp_tcxx . . $ v810_timestamp_t# &, uint32cxx . . $ uint32#, uint16cxx . . $ uint16#), void MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*write32)(v810_timestamp_tcxx . . $ v810_timestamp_t# &, uint32cxx . . $ uint32#, uint32cxx . . $ uint32#));
167
168 // Length specifies the number of bytes to map in, at each location specified by addresses[] (for mirroring)
169 uint8cxx . . $ uint8# *SetFastMapcxx . . $ V810#SetFastMap(4852f981d5b5a637).(uint32cxx . . $ uint32# addresses[], uint32cxx . . $ uint32# length, unsigned int num_addresses, const char *name);
170
171 INLINEcxx . . $ `mednafen/mednafen-types.h:21:11`! void ResetTScxx . . $ V810#ResetTS(d4f767463ce0a6b3).(v810_timestamp_tcxx . . $ v810_timestamp_t# new_base_timestamp)
172 {
173 assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(next_event_ts > v810_timestamp);
174
175 next_event_tscxx . . $ V810#next_event_ts. -= (v810_timestampcxx . . $ V810#v810_timestamp. - new_base_timestamp);
176 v810_timestampcxx . . $ V810#v810_timestamp. = new_base_timestamp;
177 }
178
179 INLINEcxx . . $ `mednafen/mednafen-types.h:21:11`! void SetEventNTcxx . . $ V810#SetEventNT(d4f767463ce0a6b3).(const v810_timestamp_tcxx . . $ v810_timestamp_t# timestamp)
180 {
181 next_event_tscxx . . $ V810#next_event_ts. = timestamp;
182 }
183
184 INLINEcxx . . $ `mednafen/mednafen-types.h:21:11`! v810_timestamp_tcxx . . $ v810_timestamp_t# GetEventNTcxx . . $ V810#GetEventNT(b126dc7c1de90089).(void)
185 {
186 return(next_event_tscxx . . $ V810#next_event_ts.);
187 }
188
189 v810_timestamp_tcxx . . $ v810_timestamp_t# Runcxx . . $ V810#Run(4d2abde9c7a0c9b3).(int32cxx . . $ int32# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*event_handler)(const v810_timestamp_tcxx . . $ v810_timestamp_t# timestamp));
190 void Exitcxx . . $ V810#Exit(49f6e7a06ebc5aa8).(void);
191
192 void Resetcxx . . $ V810#Reset(49f6e7a06ebc5aa8).(void);
193
194 int StateActioncxx . . $ V810#StateAction(a45b884b8cf568d5).(StateMemcxx . . $ StateMem# *sm, int load, int data_only);
195
196 #ifdef WANT_DEBUGGER
197 void CheckBreakpoints(void (*callback)(int type, uint32 address, uint32 value, unsigned int len), uint16 MDFN_FASTCALL (*peek16)(const v810_timestamp_t, uint32), uint32 MDFN_FASTCALL (*peek32)(const v810_timestamp_t, uint32));
198 void SetCPUHook(void (*newhook)(const v810_timestamp_t timestamp, uint32 PC), void (*new_ADDBT)(uint32, uint32, uint32));
199 #endif
200 uint32cxx . . $ uint32# GetPCcxx . . $ V810#GetPC(db52760e79bf9054).(void);
201 void SetPCcxx . . $ V810#SetPC(cb2f890c2fdad230).(uint32cxx . . $ uint32#);
202
203 uint32cxx . . $ uint32# GetPRcxx . . $ V810#GetPR(2141b656ce2cc063).(const unsigned int which);
204 void SetPRcxx . . $ V810#SetPR(b4d55b1286ff73e8).(const unsigned int which, uint32cxx . . $ uint32# value);
205
206 uint32cxx . . $ uint32# GetSRcxx . . $ V810#GetSR(2141b656ce2cc063).(const unsigned int which);
207 void SetSRcxx . . $ V810#SetSR(b4d55b1286ff73e8).(const unsigned int which, uint32cxx . . $ uint32# value);
208
209
210 private:
211
212 // Make sure P_REG[] is the first variable/array in this class, so non-zerfo offset encoding(at assembly level) isn't necessary to access it.
213 uint32cxx . . $ uint32# P_REGcxx . . $ V810#P_REG.[32]; // Program registers pr0-pr31
214 uint32cxx . . $ uint32# S_REGcxx . . $ V810#S_REG.[32]; // System registers sr0-sr31
215 uint32cxx . . $ uint32# PCcxx . . $ V810#PC.;
216 uint8cxx . . $ uint8# *PC_ptrcxx . . $ V810#PC_ptr.;
217 uint8cxx . . $ uint8# *PC_basecxx . . $ V810#PC_base.;
218
219 uint32cxx . . $ uint32# IPendingCachecxx . . $ V810#IPendingCache.;
220 void RecalcIPendingCachecxx . . $ V810#RecalcIPendingCache(49f6e7a06ebc5aa8).(void);
221
222 public:
223 v810_timestamp_tcxx . . $ v810_timestamp_t# v810_timestampcxx . . $ V810#v810_timestamp.; // Will never be less than 0.
224
225 private:
226 v810_timestamp_tcxx . . $ v810_timestamp_t# next_event_tscxx . . $ V810#next_event_ts.;
227
228 enumcxx . . $ V810#$anonymous_type_3#
229 {
230 LASTOP_NORMALcxx . . $ V810#LASTOP_NORMAL. = 0,
231 LASTOP_LOADcxx . . $ V810#LASTOP_LOAD. = 1,
232 LASTOP_STOREcxx . . $ V810#LASTOP_STORE. = 2,
233 LASTOP_INcxx . . $ V810#LASTOP_IN. = 3,
234 LASTOP_OUTcxx . . $ V810#LASTOP_OUT. = 4,
235 LASTOP_HEAVY_MATHcxx . . $ V810#LASTOP_HEAVY_MATH. = 5
236 };
237
238 V810_Emu_Modecxx . . $ V810_Emu_Mode# EmuModecxx . . $ V810#EmuMode.;
239 bool VBModecxx . . $ V810#VBMode.;
240
241 void Run_Fastcxx . . $ V810#Run_Fast(ff6bf48c415fb7b4).(int32cxx . . $ int32# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*event_handler)(const v810_timestamp_tcxx . . $ v810_timestamp_t# timestamp)) NO_INLINEcxx . . $ `mednafen/mednafen-types.h:22:11`!;
242 void Run_Accuratecxx . . $ V810#Run_Accurate(ff6bf48c415fb7b4).(int32cxx . . $ int32# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*event_handler)(const v810_timestamp_tcxx . . $ v810_timestamp_t# timestamp)) NO_INLINEcxx . . $ `mednafen/mednafen-types.h:22:11`!;
243
244 #ifdef WANT_DEBUGGER
245 void Run_Fast_Debug(int32 MDFN_FASTCALL (*event_handler)(const v810_timestamp_t timestamp)) NO_INLINE;
246 void Run_Accurate_Debug(int32 MDFN_FASTCALL (*event_handler)(const v810_timestamp_t timestamp)) NO_INLINE;
247 #endif
248
249 uint8cxx . . $ uint8# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*MemRead8cxx . . $ V810#MemRead8.)(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A);
250 uint16cxx . . $ uint16# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*MemRead16cxx . . $ V810#MemRead16.)(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A);
251 uint32cxx . . $ uint32# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*MemRead32cxx . . $ V810#MemRead32.)(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A);
252
253 void MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*MemWrite8cxx . . $ V810#MemWrite8.)(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A, uint8cxx . . $ uint8# V);
254 void MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*MemWrite16cxx . . $ V810#MemWrite16.)(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A, uint16cxx . . $ uint16# V);
255 void MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*MemWrite32cxx . . $ V810#MemWrite32.)(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A, uint32cxx . . $ uint32# V);
256
257 uint8cxx . . $ uint8# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*IORead8cxx . . $ V810#IORead8.)(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A);
258 uint16cxx . . $ uint16# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*IORead16cxx . . $ V810#IORead16.)(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A);
259 uint32cxx . . $ uint32# MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*IORead32cxx . . $ V810#IORead32.)(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A);
260
261 void MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*IOWrite8cxx . . $ V810#IOWrite8.)(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A, uint8cxx . . $ uint8# V);
262 void MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*IOWrite16cxx . . $ V810#IOWrite16.)(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A, uint16cxx . . $ uint16# V);
263 void MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`! (*IOWrite32cxx . . $ V810#IOWrite32.)(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A, uint32cxx . . $ uint32# V);
264
265 bool MemReadBus32cxx . . $ V810#MemReadBus32.[256]; // Corresponding to the upper 8 bits of the memory address map.
266 bool MemWriteBus32cxx . . $ V810#MemWriteBus32.[256];
267
268 int32cxx . . $ int32# lastopcxx . . $ V810#lastop.; // Set to -1 on FP/MUL/DIV, 0x100 on LD, 0x200 on ST, 0x400 on in, 0x800 on out, and the actual opcode * 2(or >= 0) on everything else.
269
270 #define LASTOP_LDcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:270:10`! 0x100
271 #define LASTOP_STcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:271:10`! 0x200
272 #define LASTOP_INcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:272:10`! 0x400
273 #define LASTOP_OUTcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:273:10`! 0x800
274
275 enumcxx . . $ V810#$anonymous_type_4#
276 {
277 HALT_NONEcxx . . $ V810#HALT_NONE. = 0,
278 HALT_HALTcxx . . $ V810#HALT_HALT. = 1,
279 HALT_FATAL_EXCEPTIONcxx . . $ V810#HALT_FATAL_EXCEPTION. = 2
280 };
281
282 uint8cxx . . $ uint8# Haltedcxx . . $ V810#Halted.;
283
284 bool Runningcxx . . $ V810#Running.;
285
286 int ilevelcxx . . $ V810#ilevel.;
287
288 bool in_bstrcxx . . $ V810#in_bstr.;
289 uint16cxx . . $ uint16# in_bstr_tocxx . . $ V810#in_bstr_to.;
290
291 bool bstr_subopcxx . . $ V810#bstr_subop(b52c1fabab6edf50).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, int sub_op, int arg1);
292 void fpu_subopcxx . . $ V810#fpu_subop(987d23217e21f876).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, int sub_op, int arg1, int arg2);
293
294 void Exceptioncxx . . $ V810#Exception(272d193675e92631).(uint32cxx . . $ uint32# handler, uint16cxx . . $ uint16# eCode);
295
296 // Caching-related:
297 typedef structcxx . . $ V810#$anonymous_type_5#
298 {
299 uint32cxx . . $ uint32# tagcxx . . $ V810#$anonymous_type_5#tag.;
300 uint32cxx . . $ uint32# datacxx . . $ V810#$anonymous_type_5#data.[2];
301 bool data_validcxx . . $ V810#$anonymous_type_5#data_valid.[2];
302 } V810_CacheEntry_tcxx . . $ V810#V810_CacheEntry_t#;
303
304 V810_CacheEntry_tcxx . . $ V810#V810_CacheEntry_t# Cachecxx . . $ V810#Cache.[128];
305
306 // Bitstring variables.
307 uint32cxx . . $ uint32# src_cachecxx . . $ V810#src_cache.;
308 uint32cxx . . $ uint32# dst_cachecxx . . $ V810#dst_cache.;
309 bool have_src_cachecxx . . $ V810#have_src_cache., have_dst_cachecxx . . $ V810#have_dst_cache.;
310
311 uint8cxx . . $ uint8# *FastMapcxx . . $ V810#FastMap.[(1ULL << 32) / V810_FAST_MAP_PSIZEcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:14:9`!];
312 stdcxx . . $ std/::vectorcxx . . $ std/vector#<void *> FastMapAllocListcxx . . $ V810#FastMapAllocList.;
313
314
315 #ifdef WANT_DEBUGGER
316 void (*CPUHook)(const v810_timestamp_t timestamp, uint32 PC);
317 void (*ADDBT)(uint32 old_PC, uint32 new_PC, uint32);
318 #endif
319
320
321 // For CacheDump and CacheRestore
322 void CacheOpMemStorecxx . . $ V810#CacheOpMemStore(89f8e5bd0b04bfaa).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A, uint32cxx . . $ uint32# V);
323 uint32cxx . . $ uint32# CacheOpMemLoadcxx . . $ V810#CacheOpMemLoad(82a8994e9c9c69b7).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A);
324
325 void CacheClearcxx . . $ V810#CacheClear(89f8e5bd0b04bfaa).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# start, uint32cxx . . $ uint32# count);
326 void CacheDumpcxx . . $ V810#CacheDump(6700383502b9ef47).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, const uint32cxx . . $ uint32# SA);
327 void CacheRestorecxx . . $ V810#CacheRestore(6700383502b9ef47).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, const uint32cxx . . $ uint32# SA);
328
329 uint32cxx . . $ uint32# RDCACHEcxx . . $ V810#RDCACHE(82a8994e9c9c69b7).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# addr);
330 //
331 // End caching related
332 //
333
334 uint16cxx . . $ uint16# RDOPcxx . . $ V810#RDOP(8e177301105cc1fb).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# addr, uint32cxx . . $ uint32# meow = 2);
335 void SetFlagcxx . . $ V810#SetFlag(ee2069353d7cc01f).(uint32cxx . . $ uint32# n, bool condition);
336 void SetSZcxx . . $ V810#SetSZ(cb2f890c2fdad230).(uint32cxx . . $ uint32# value);
337
338 void SetSREGcxx . . $ V810#SetSREG(89f8e5bd0b04bfaa).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, unsigned int which, uint32cxx . . $ uint32# value);
339 uint32cxx . . $ uint32# GetSREGcxx . . $ V810#GetSREG(2141b656ce2cc063).(unsigned int which);
340
341
342 bool IsSubnormalcxx . . $ V810#IsSubnormal(dfa6e707f7696010).(uint32cxx . . $ uint32# fpval);
343 void FPU_Math_Templatecxx . . $ V810#FPU_Math_Template(1534797a8d4dd0af).(float32 (*func)(float32, float32), uint32cxx . . $ uint32# arg1, uint32cxx . . $ uint32# arg2);
344 void FPU_DoExceptioncxx . . $ V810#FPU_DoException(49f6e7a06ebc5aa8).(void);
345 bool CheckFPInputExceptioncxx . . $ V810#CheckFPInputException(dfa6e707f7696010).(uint32cxx . . $ uint32# fpval);
346 bool FPU_DoesExceptionKillResultcxx . . $ V810#FPU_DoesExceptionKillResult(c9857a73d68e59ba).(void);
347 void SetFPUOPNonFPUFlagscxx . . $ V810#SetFPUOPNonFPUFlags(cb2f890c2fdad230).(uint32cxx . . $ uint32# result);
348
349
350 uint32cxx . . $ uint32# BSTR_RWORDcxx . . $ V810#BSTR_RWORD(82a8994e9c9c69b7).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A);
351 void BSTR_WWORDcxx . . $ V810#BSTR_WWORD(89f8e5bd0b04bfaa).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, uint32cxx . . $ uint32# A, uint32cxx . . $ uint32# V);
352 bool Do_BSTR_Searchcxx . . $ V810#Do_BSTR_Search(9000eba7d97a8080).(v810_timestamp_tcxx . . $ v810_timestamp_t# &timestamp, const int inc_mul, unsigned int bit_test);
353
354
355 uint8cxx . . $ uint8# DummyRegioncxx . . $ V810#DummyRegion.[V810_FAST_MAP_PSIZEcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:14:9`! + V810_FAST_MAP_TRAMPOLINE_SIZEcxx . . $ `mednafen/hw_cpu/v810/v810_cpu.h:15:9`!];
356 };
357
358 #endif
359