2021-03-23 19:47:51 +01:00
|
|
|
|
|
|
|
#ifndef GPSP_CONFIG_H
|
|
|
|
#define GPSP_CONFIG_H
|
|
|
|
|
2021-07-21 00:10:30 +02:00
|
|
|
/* Default ROM buffer size in megabytes (this is a maximum value!) */
|
|
|
|
#ifndef ROM_BUFFER_SIZE
|
2021-07-14 01:17:55 +02:00
|
|
|
#define ROM_BUFFER_SIZE 32
|
2021-07-21 00:10:30 +02:00
|
|
|
#endif
|
2021-07-14 01:17:55 +02:00
|
|
|
|
2021-03-23 19:47:51 +01:00
|
|
|
/* Cache sizes and their config knobs */
|
2021-07-23 18:50:44 +02:00
|
|
|
#if defined(SMALL_TRANSLATION_CACHE)
|
2021-07-08 21:29:48 +02:00
|
|
|
#define ROM_TRANSLATION_CACHE_SIZE (1024 * 1024 * 2)
|
2021-03-23 19:47:51 +01:00
|
|
|
#define RAM_TRANSLATION_CACHE_SIZE (1024 * 384)
|
2021-07-08 21:29:48 +02:00
|
|
|
#define TRANSLATION_CACHE_LIMIT_THRESHOLD (1024 * 2)
|
2021-03-23 19:47:51 +01:00
|
|
|
#else
|
2021-07-08 21:29:48 +02:00
|
|
|
#define ROM_TRANSLATION_CACHE_SIZE (1024 * 1024 * 10)
|
|
|
|
#define RAM_TRANSLATION_CACHE_SIZE (1024 * 512)
|
|
|
|
#define TRANSLATION_CACHE_LIMIT_THRESHOLD (1024 * 8)
|
2021-03-23 19:47:51 +01:00
|
|
|
#endif
|
|
|
|
|
2021-07-08 21:29:48 +02:00
|
|
|
/* Please note that RAM_TRANSLATION_CACHE_SIZE is limited to 512KB
|
|
|
|
Check cpu_threaded.c for "memory tagging" for more info. */
|
|
|
|
|
2021-03-23 19:47:51 +01:00
|
|
|
/* This is MIPS specific for now */
|
|
|
|
#define STUB_ARENA_SIZE (16*1024)
|
|
|
|
|
|
|
|
/* Hash table size for ROM trans cache lookups */
|
|
|
|
#define ROM_BRANCH_HASH_SIZE (1024 * 64)
|
|
|
|
|
|
|
|
#endif
|