diff options
author | Autechre | 2021-03-23 20:13:44 +0100 |
---|---|---|
committer | GitHub | 2021-03-23 20:13:44 +0100 |
commit | e5c685583ed8808580ca33c5a59d554bfbb989ad (patch) | |
tree | 11399685ea3766006b09d33f983cfae5b98c4f20 /gpsp_config.h | |
parent | f31fa6a57be67619ce10279152d7c9dbf6c2307b (diff) | |
parent | ff510e7f7a0c04c7862e598e8bfc75747f3bf7d1 (diff) | |
download | picogpsp-e5c685583ed8808580ca33c5a59d554bfbb989ad.tar.gz picogpsp-e5c685583ed8808580ca33c5a59d554bfbb989ad.tar.bz2 picogpsp-e5c685583ed8808580ca33c5a59d554bfbb989ad.zip |
Merge pull request #118 from davidgfnet/master
Diffstat (limited to 'gpsp_config.h')
-rw-r--r-- | gpsp_config.h | 22 |
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 |