Re: [hatari-devel] WinUAE CPU core cycles issue |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Hi,
On torstai 07 maaliskuu 2013, Eero Tamminen wrote:
> if (currprefs.cpu_cycle_exact)
> tbl = op_smalltbl_23_ff; <=== *****
> if (currprefs.mmu_model)
> tbl = op_smalltbl_32_ff;
> break;
> ...
> ---- build/src/cpu/cpustbl.c ----
> ...
> const struct cputbl CPUFUNC(op_smalltbl_23)[] = { <=== *****
Btw. the "_ff" postfix comes from here:
$ grep -n CPUFUNC build/src/*/*.c | grep define
....
src/cpu/cpuemu_21.c:10:#define CPUFUNC(x) x##_ff
....
src/cpu/cpustbl.c:10:#define CPUFUNC(x) x##_ff
I have no clue why it's added to the names (to confuse people?),
but it's used liberally:
----------------
$ for i in build/src/cpu/cpu*.c; do
echo "$i:"; fgrep CPUFUNC $i | wc -l; done
src/cpu/cpudefs.c:
0
src/cpu/cpuemu_0.c:
2174
src/cpu/cpuemu_11.c:
1556
src/cpu/cpuemu_12.c:
1556
src/cpu/cpuemu_20.c:
1841
src/cpu/cpuemu_21.c:
1894
src/cpu/cpuemu_31.c:
1879
src/cpu/cpuemu_32.c:
1848
src/cpu/cpustbl.c:
24862
- Eero