forked from notaz/gpsp
-
Notifications
You must be signed in to change notification settings - Fork 53
/
gpsp_config.h
34 lines (26 loc) · 1.05 KB
/
gpsp_config.h
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
#ifndef GPSP_CONFIG_H
#define GPSP_CONFIG_H
#define GPSP_NAME "gpSP"
#define GPSP_VERSION "v1.0.0"
#define GPSP_NETPACKET_VERSION "gpSP v1.0"
/* Default ROM buffer size in megabytes (this is a maximum value!) */
#ifndef ROM_BUFFER_SIZE
#define ROM_BUFFER_SIZE 32
#endif
/* Cache sizes and their config knobs */
#if defined(SMALL_TRANSLATION_CACHE)
#define ROM_TRANSLATION_CACHE_SIZE (1024 * 1024 * 2)
#define RAM_TRANSLATION_CACHE_SIZE (1024 * 384)
#else
#define ROM_TRANSLATION_CACHE_SIZE (1024 * 1024 * 10)
#define RAM_TRANSLATION_CACHE_SIZE (1024 * 512)
#endif
/* Should be an upperbound to the maximum number of bytes a single JIT'ed
instruction can take. STM/LDM are tipically the biggest ones */
#define TRANSLATION_CACHE_LIMIT_THRESHOLD (1024 * 2)
/* Hash table size for ROM trans cache lookups */
#define ROM_BRANCH_HASH_BITS 16
#define ROM_BRANCH_HASH_SIZE (1 << ROM_BRANCH_HASH_BITS)
/* RFU Multiplayer config, do not mess around too much with it */
#define MAX_RFU_NETPLAYERS 32
#endif