forked from tonioni/WinUAE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cputest_support.cpp
122 lines (102 loc) · 2 KB
/
cputest_support.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#include "sysconfig.h"
#include "sysdeps.h"
#include "options.h"
#include "memory.h"
#include "newcpu.h"
#include "fpp.h"
#include "mmu_common.h"
#include "cpummu030.h"
cpuop_func *loop_mode_table[65536];
void my_trim(TCHAR *s)
{
int len;
while (_tcslen(s) > 0 && _tcscspn(s, _T("\t \r\n")) == 0)
memmove(s, s + 1, (_tcslen(s + 1) + 1) * sizeof(TCHAR));
len = _tcslen(s);
while (len > 0 && _tcscspn(s + len - 1, _T("\t \r\n")) == 0)
s[--len] = '\0';
}
void write_log(const TCHAR *format, ...)
{
}
void f_out(void *f, const TCHAR *format, ...)
{
}
TCHAR *buf_out(TCHAR *buffer, int *bufsize, const TCHAR *format, ...)
{
int count;
va_list parms;
va_start(parms, format);
if (buffer == NULL)
return 0;
count = _vsntprintf(buffer, (*bufsize) - 1, format, parms);
va_end(parms);
*bufsize -= _tcslen(buffer);
return buffer + _tcslen(buffer);
}
void fpux_restore(int *v)
{
}
void fp_init_native(void)
{
wprintf(_T("fp_init_native called!"));
exit(0);
}
void fp_init_native_80(void)
{
wprintf(_T("fp_init_native_80 called!"));
exit(0);
}
void init_fpucw_x87(void)
{
}
void init_fpucw_x87_80(void)
{
}
int debugmem_get_segment(uaecptr addr, bool *exact, bool *ext, TCHAR *out, TCHAR *name)
{
return 0;
}
int debugmem_get_symbol(uaecptr addr, TCHAR *out, int maxsize)
{
return 0;
}
int debugmem_get_sourceline(uaecptr addr, TCHAR *out, int maxsize)
{
return -1;
}
bool debugger_get_library_symbol(uaecptr base, uaecptr addr, TCHAR *out)
{
return false;
}
int debug_safe_addr(uaecptr addr, int size)
{
return 1;
}
void set_cpu_caches(bool flush)
{
}
void flush_icache(int v)
{
}
void flush_cpu_caches_040(uae_u16 opcode)
{
}
void mmu_tt_modified(void)
{
}
uae_u16 REGPARAM2 mmu_set_tc(uae_u16 tc)
{
return 0;
}
void mmu_op(uae_u32 opcode, uae_u32 extra)
{
}
uae_u16 mmu030_state[3];
int mmu030_opcode;
int mmu030_idx, mmu030_idx_done;
uae_u32 mmu030_disp_store[2];
uae_u32 mmu030_fmovem_store[2];
uae_u32 mm030_stageb_address;
struct mmu030_access mmu030_ad[MAX_MMU030_ACCESS + 1];
uae_u32 mmu040_move16[4];