From 582c7c762a53fd13d48faf4083b116de1e77f3ed Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 1 Oct 2023 15:03:44 +0200 Subject: [DYNAREC] Introduce a config that should save a bit of mmemory at runtime (ON for PIs and RK3399 only for now) --- src/include/custommem.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/include') diff --git a/src/include/custommem.h b/src/include/custommem.h index d3536ae3..ac715b52 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -36,6 +36,23 @@ uintptr_t getJumpTable64(void); uintptr_t getJumpTableAddress64(uintptr_t addr); uintptr_t getJumpAddress64(uintptr_t addr); +#ifdef SAVE_MEM +#define JMPTABL_SHIFT4 16 +#define JMPTABL_SHIFT3 14 +#define JMPTABL_SHIFT2 12 +#define JMPTABL_SHIFT1 12 +#define JMPTABL_SHIFT0 10 +#define JMPTABL_START4 (JMPTABL_START3+JMPTABL_SHIFT3) +#define JMPTABL_START3 (JMPTABL_START2+JMPTABL_SHIFT2) +#define JMPTABL_START2 (JMPTABL_START1+JMPTABL_SHIFT1) +#define JMPTABL_START1 (JMPTABL_START0+JMPTABL_SHIFT0) +#define JMPTABL_START0 0 +#define JMPTABLE_MASK4 ((1<