summaryrefslogtreecommitdiff
path: root/gpsp_config.h
diff options
context:
space:
mode:
authorneonloop2021-03-31 16:26:36 +0000
committerneonloop2021-03-31 16:26:36 +0000
commit295b35c2f32887a1b73b1509668bf278c52929e1 (patch)
treefb6e5905f2daa864cc6cd1c61b7b32610ed94eae /gpsp_config.h
parent3ef78ae250b5460bf1b69c4d1f05e27985fa9d1b (diff)
parentfd2079354572372f4516fcc13c51992ef4b4c715 (diff)
downloadpicogpsp-295b35c2f32887a1b73b1509668bf278c52929e1.tar.gz
picogpsp-295b35c2f32887a1b73b1509668bf278c52929e1.tar.bz2
picogpsp-295b35c2f32887a1b73b1509668bf278c52929e1.zip
Merge remote-tracking branch 'libretro/master' into pico-fe
Diffstat (limited to 'gpsp_config.h')
-rw-r--r--gpsp_config.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/gpsp_config.h b/gpsp_config.h
new file mode 100644
index 0000000..ea8db95
--- /dev/null
+++ b/gpsp_config.h
@@ -0,0 +1,22 @@
+
+#ifndef GPSP_CONFIG_H
+#define GPSP_CONFIG_H
+
+/* Cache sizes and their config knobs */
+#if defined(PSP)
+ #define ROM_TRANSLATION_CACHE_SIZE (1024 * 512 * 4)
+ #define RAM_TRANSLATION_CACHE_SIZE (1024 * 384)
+ #define TRANSLATION_CACHE_LIMIT_THRESHOLD (1024)
+#else
+ #define ROM_TRANSLATION_CACHE_SIZE (1024 * 512 * 4 * 5)
+ #define RAM_TRANSLATION_CACHE_SIZE (1024 * 384 * 2)
+ #define TRANSLATION_CACHE_LIMIT_THRESHOLD (1024 * 32)
+#endif
+
+/* 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