Add overridable memory config knob for low-mem platforms

This commit is contained in:
David Guillen Fandos 2021-07-21 00:10:30 +02:00
parent 3009504613
commit a77c1c9171
1 changed files with 4 additions and 2 deletions

View File

@ -2,11 +2,13 @@
#ifndef GPSP_CONFIG_H
#define GPSP_CONFIG_H
/* ROM buffer size in megabytes (this is a maximum value!) */
/* 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(PSP)
#if defined(PSP) || defined(PS2)
#define ROM_TRANSLATION_CACHE_SIZE (1024 * 1024 * 2)
#define RAM_TRANSLATION_CACHE_SIZE (1024 * 384)
#define TRANSLATION_CACHE_LIMIT_THRESHOLD (1024 * 2)