summaryrefslogtreecommitdiff
path: root/psp/mips_stub.S
diff options
context:
space:
mode:
authorAutechre2021-03-23 20:13:44 +0100
committerGitHub2021-03-23 20:13:44 +0100
commite5c685583ed8808580ca33c5a59d554bfbb989ad (patch)
tree11399685ea3766006b09d33f983cfae5b98c4f20 /psp/mips_stub.S
parentf31fa6a57be67619ce10279152d7c9dbf6c2307b (diff)
parentff510e7f7a0c04c7862e598e8bfc75747f3bf7d1 (diff)
downloadpicogpsp-e5c685583ed8808580ca33c5a59d554bfbb989ad.tar.gz
picogpsp-e5c685583ed8808580ca33c5a59d554bfbb989ad.tar.bz2
picogpsp-e5c685583ed8808580ca33c5a59d554bfbb989ad.zip
Merge pull request #118 from davidgfnet/master
Diffstat (limited to 'psp/mips_stub.S')
-rw-r--r--psp/mips_stub.S21
1 files changed, 21 insertions, 0 deletions
diff --git a/psp/mips_stub.S b/psp/mips_stub.S
index 5e5a479..3d046d8 100644
--- a/psp/mips_stub.S
+++ b/psp/mips_stub.S
@@ -16,6 +16,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+#include "../gpsp_config.h"
+
.set mips32r2
.align 4
@@ -645,3 +647,22 @@ fnptrs:
.long execute_spsr_restore_body # 6
.long execute_store_cpsr_body # 7
+#if !defined(HAVE_MMAP)
+
+# Make this section executable!
+.text
+.section .jit,"awx",%nobits
+.align 2
+.global stub_arena
+.global rom_translation_cache
+.global ram_translation_cache
+
+stub_arena:
+ .space STUB_ARENA_SIZE
+rom_translation_cache:
+ .space ROM_TRANSLATION_CACHE_SIZE
+ram_translation_cache:
+ .space RAM_TRANSLATION_CACHE_SIZE
+
+#endif
+