summaryrefslogtreecommitdiff
path: root/3ds/3ds_utils.h
diff options
context:
space:
mode:
authoraliaspider2015-11-04 15:46:27 +0100
committeraliaspider2015-11-04 15:46:27 +0100
commitf1d14fbe7ce749b613ee2f7071cdfff1de013152 (patch)
tree9b7e838c4c0c879d7a65e4dd65ae0647dc31f068 /3ds/3ds_utils.h
parent6b8417143a395674d7ab0b771060ac36f1e72df5 (diff)
downloadpicogpsp-f1d14fbe7ce749b613ee2f7071cdfff1de013152.tar.gz
picogpsp-f1d14fbe7ce749b613ee2f7071cdfff1de013152.tar.bz2
picogpsp-f1d14fbe7ce749b613ee2f7071cdfff1de013152.zip
(3ds) dynarec: map the translation caches to specific addresses at
runtime, increases compatibility with loaders that can reloacate each program section seperately. move the svc enabling functions to the frontend.
Diffstat (limited to '3ds/3ds_utils.h')
-rw-r--r--3ds/3ds_utils.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/3ds/3ds_utils.h b/3ds/3ds_utils.h
index 150c56e..b16f2dc 100644
--- a/3ds/3ds_utils.h
+++ b/3ds/3ds_utils.h
@@ -3,10 +3,13 @@
void ctr_invalidate_ICache(void);
void ctr_flush_DCache(void);
-
void ctr_flush_invalidate_cache(void);
-int ctr_svchack_init(void);
-void ctr_svchack_exit(void);
+extern __attribute((weak)) unsigned int __ctr_svchax;
+
+void wait_for_input();
+#define DEBUG_HOLD() do{printf("%s@%s:%d.\n",__FUNCTION__, __FILE__, __LINE__);fflush(stdout);wait_for_input();}while(0)
+#define DEBUG_VAR(X) printf( "%-20s: 0x%08X\n", #X, (u32)(X))
+#define DEBUG_VAR64(X) printf( #X"\r\t\t\t\t : 0x%016llX\n", (u64)(X))
#endif // _3DS_UTILS_H