Add overridable memory config knob for low-mem platforms
This commit is contained in:
parent
3009504613
commit
a77c1c9171
|
@ -2,11 +2,13 @@
|
||||||
#ifndef GPSP_CONFIG_H
|
#ifndef GPSP_CONFIG_H
|
||||||
#define 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
|
#define ROM_BUFFER_SIZE 32
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Cache sizes and their config knobs */
|
/* Cache sizes and their config knobs */
|
||||||
#if defined(PSP)
|
#if defined(PSP) || defined(PS2)
|
||||||
#define ROM_TRANSLATION_CACHE_SIZE (1024 * 1024 * 2)
|
#define ROM_TRANSLATION_CACHE_SIZE (1024 * 1024 * 2)
|
||||||
#define RAM_TRANSLATION_CACHE_SIZE (1024 * 384)
|
#define RAM_TRANSLATION_CACHE_SIZE (1024 * 384)
|
||||||
#define TRANSLATION_CACHE_LIMIT_THRESHOLD (1024 * 2)
|
#define TRANSLATION_CACHE_LIMIT_THRESHOLD (1024 * 2)
|
||||||
|
|
Loading…
Reference in New Issue