Rearrange files for new_dynarec
authortwinaphex <libretro@gmail.com>
Tue, 27 Sep 2016 00:56:42 +0000 (02:56 +0200)
committertwinaphex <libretro@gmail.com>
Tue, 27 Sep 2016 00:56:42 +0000 (02:56 +0200)
13 files changed:
Makefile
jni/Android.mk
libpcsxcore/gte_neon.S
libpcsxcore/new_dynarec/arm/assem_arm.c [moved from libpcsxcore/new_dynarec/assem_arm.c with 99% similarity]
libpcsxcore/new_dynarec/arm/assem_arm.h [moved from libpcsxcore/new_dynarec/assem_arm.h with 100% similarity]
libpcsxcore/new_dynarec/arm/linkage_arm.S [moved from libpcsxcore/new_dynarec/linkage_arm.S with 99% similarity]
libpcsxcore/new_dynarec/arm/linkage_offsets.h [moved from libpcsxcore/new_dynarec/linkage_offsets.h with 100% similarity]
libpcsxcore/new_dynarec/backends/psx/emu_if.c [moved from libpcsxcore/new_dynarec/emu_if.c with 98% similarity]
libpcsxcore/new_dynarec/backends/psx/emu_if.h [moved from libpcsxcore/new_dynarec/emu_if.h with 97% similarity]
libpcsxcore/new_dynarec/backends/psx/pcsxmem.c [moved from libpcsxcore/new_dynarec/pcsxmem.c with 99% similarity]
libpcsxcore/new_dynarec/backends/psx/pcsxmem.h [moved from libpcsxcore/new_dynarec/pcsxmem.h with 100% similarity]
libpcsxcore/new_dynarec/backends/psx/pcsxmem_inline.c [moved from libpcsxcore/new_dynarec/pcsxmem_inline.c with 100% similarity]
libpcsxcore/new_dynarec/new_dynarec.c

index 600a1d3..46539c5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -65,18 +65,20 @@ ifeq "$(USE_DYNAREC)" "1"
 OBJS += libpcsxcore/new_dynarec/new_dynarec.o libpcsxcore/new_dynarec/linkage_arm.o
 OBJS += libpcsxcore/new_dynarec/pcsxmem.o
 else
-libpcsxcore/new_dynarec/emu_if.o: CFLAGS += -DDRC_DISABLE
+libpcsxcore/new_dynarec/backends/psx/emu_if.o: CFLAGS += -DDRC_DISABLE
 frontend/libretro.o: CFLAGS += -DDRC_DISABLE
 endif
-OBJS += libpcsxcore/new_dynarec/emu_if.o
-libpcsxcore/new_dynarec/new_dynarec.o: libpcsxcore/new_dynarec/assem_arm.c \
-       libpcsxcore/new_dynarec/pcsxmem_inline.c
+OBJS += libpcsxcore/new_dynarec/backends/psx/emu_if.o
+libpcsxcore/new_dynarec/new_dynarec.o: libpcsxcore/new_dynarec/arm/assem_arm.c \
+       libpcsxcore/new_dynarec/backends/psx/pcsxmem_inline.c
 ifdef DRC_DBG
-libpcsxcore/new_dynarec/emu_if.o: CFLAGS += -D_FILE_OFFSET_BITS=64
+libpcsxcore/new_dynarec/backends/psx/emu_if.o: CFLAGS += -D_FILE_OFFSET_BITS=64
 CFLAGS += -DDRC_DBG
 endif
 ifeq "$(DRC_CACHE_BASE)" "1"
 libpcsxcore/new_dynarec/%.o: CFLAGS += -DBASE_ADDR_FIXED=1
+libpcsxcore/new_dynarec/backends/psx/%.o: CFLAGS += -DBASE_ADDR_FIXED=1
+libpcsxcore/new_dynarec/arm/%.o: CFLAGS += -DBASE_ADDR_FIXED=1
 endif
 
 # spu
index 36b0c93..a0dbec3 100644 (file)
@@ -27,7 +27,7 @@ ifeq ($(TARGET_ARCH),arm)
    LOCAL_SRC_FILES += ../libpcsxcore/gte_arm.S
 
    # dynarec
-   LOCAL_SRC_FILES += ../libpcsxcore/new_dynarec/new_dynarec.c ../libpcsxcore/new_dynarec/linkage_arm.S ../libpcsxcore/new_dynarec/emu_if.c ../libpcsxcore/new_dynarec/pcsxmem.c
+   LOCAL_SRC_FILES += ../libpcsxcore/new_dynarec/new_dynarec.c ../libpcsxcore/new_dynarec/arm/linkage_arm.S ../libpcsxcore/new_dynarec/backends/psx/emu_if.c ../libpcsxcore/new_dynarec/backends/psx/pcsxmem.c
 
    # spu
    LOCAL_SRC_FILES += ../plugins/dfsound/arm_utils.S
index fe153e2..fbe0e59 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #include "arm_features.h"
-#include "new_dynarec/linkage_offsets.h"
+#include "new_dynarec/arm/linkage_offsets.h"
 
 .syntax unified
 .text
similarity index 99%
rename from libpcsxcore/new_dynarec/assem_arm.c
rename to libpcsxcore/new_dynarec/arm/assem_arm.c
index 21640f8..db1d2af 100644 (file)
  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
-#include "../gte.h"
+#include "../../gte.h"
 #define FLAGLESS
-#include "../gte.h"
+#include "../../gte.h"
 #undef FLAGLESS
-#include "../gte_arm.h"
-#include "../gte_neon.h"
+#include "../../gte_arm.h"
+#include "../../gte_neon.h"
 #include "pcnt.h"
 #include "arm_features.h"
 
@@ -2518,8 +2518,8 @@ static void mov_loadtype_adj(int type,int rs,int rt)
   }
 }
 
-#include "pcsxmem.h"
-#include "pcsxmem_inline.c"
+#include "../backends/psx/pcsxmem.h"
+#include "../backends/psx/pcsxmem_inline.c"
 
 static void do_readstub(int n)
 {
similarity index 99%
rename from libpcsxcore/new_dynarec/linkage_arm.S
rename to libpcsxcore/new_dynarec/arm/linkage_arm.S
index 147b0df..b630142 100644 (file)
@@ -20,7 +20,7 @@
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
 #include "arm_features.h"
-#include "new_dynarec_config.h"
+#include "../new_dynarec_config.h"
 #include "linkage_offsets.h"
 
 
similarity index 98%
rename from libpcsxcore/new_dynarec/emu_if.c
rename to libpcsxcore/new_dynarec/backends/psx/emu_if.c
index 8aebd64..6dc48e2 100644 (file)
@@ -9,15 +9,15 @@
 
 #include "emu_if.h"
 #include "pcsxmem.h"
-#include "../psxhle.h"
-#include "../r3000a.h"
-#include "../cdrom.h"
-#include "../psxdma.h"
-#include "../mdec.h"
-#include "../gte_arm.h"
-#include "../gte_neon.h"
+#include "../../../psxhle.h"
+#include "../../../r3000a.h"
+#include "../../../cdrom.h"
+#include "../../../psxdma.h"
+#include "../../../mdec.h"
+#include "../../../gte_arm.h"
+#include "../../../gte_neon.h"
 #define FLAGLESS
-#include "../gte.h"
+#include "../../../gte.h"
 
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
 
similarity index 97%
rename from libpcsxcore/new_dynarec/emu_if.h
rename to libpcsxcore/new_dynarec/backends/psx/emu_if.h
index 73f842b..d8c7990 100644 (file)
@@ -1,5 +1,5 @@
-#include "new_dynarec.h"
-#include "../r3000a.h"
+#include "../../new_dynarec.h"
+#include "../../../r3000a.h"
 
 extern char invalid_code[0x100000];
 
similarity index 99%
rename from libpcsxcore/new_dynarec/pcsxmem.c
rename to libpcsxcore/new_dynarec/backends/psx/pcsxmem.c
index 9376ff4..647981e 100644 (file)
@@ -6,11 +6,11 @@
  */
 
 #include <stdio.h>
-#include "../psxhw.h"
-#include "../cdrom.h"
-#include "../mdec.h"
-#include "../gpu.h"
-#include "../psxmem_map.h"
+#include "../../../psxhw.h"
+#include "../../../cdrom.h"
+#include "../../../mdec.h"
+#include "../../../gpu.h"
+#include "../../../psxmem_map.h"
 #include "emu_if.h"
 #include "pcsxmem.h"
 
index d8c2372..02f335c 100644 (file)
@@ -36,7 +36,7 @@ int getVMBlock();
 #endif
 
 #include "new_dynarec_config.h"
-#include "emu_if.h" //emulator interface
+#include "backends/psx/emu_if.h" //emulator interface
 
 //#define DISASM
 //#define assem_debug printf
@@ -51,7 +51,7 @@ int getVMBlock();
 #include "assem_x64.h"
 #endif
 #ifdef __arm__
-#include "assem_arm.h"
+#include "arm/assem_arm.h"
 #endif
 
 #ifdef VITA
@@ -774,7 +774,7 @@ void alloc_all(struct regstat *cur,int i)
 #include "assem_x64.c"
 #endif
 #ifdef __arm__
-#include "assem_arm.c"
+#include "arm/assem_arm.c"
 #endif
 
 // Add virtual address mapping to linked list