From a77c1c9171f55e9d78de8312a1c618aa9640986a Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Wed, 21 Jul 2021 00:10:30 +0200 Subject: [PATCH] Add overridable memory config knob for low-mem platforms --- gpsp_config.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gpsp_config.h b/gpsp_config.h index d0248d2..345afa4 100644 --- a/gpsp_config.h +++ b/gpsp_config.h @@ -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)