fix compatibility with ancient gas
authorkub <derkub@gmail.com>
Sun, 16 Feb 2020 07:32:29 +0000 (08:32 +0100)
committerkub <derkub@gmail.com>
Sun, 16 Feb 2020 07:32:29 +0000 (08:32 +0100)
README.md
cpu/cyclone
cyclone_gp2x.patch [deleted file]

index 67f60c2..a5d0ad3 100644 (file)
--- a/README.md
+++ b/README.md
@@ -35,10 +35,7 @@ opendingux|opendingux|CROSS_COMPILE=mipsel-linux- CFLAGS="-I$TC/usr/include -I$T
 opendingux|opendingux with ubuntu mips gcc 5.4|CROSS_COMPILE=mipsel-linux-gnu- CFLAGS="-I$TC/usr/include -I$TC/usr/include/SDL" LDFLAGS="-B$TC/usr/lib -B$TC/lib -Wl,-rpath-link=$TC/usr/lib -Wl,-rpath-link=$TC/lib" ./configure --platform=opendingux
 gcw0|gcw0|CROSS_COMPILE=mipsel-gcw0-linux-uclibc- CFLAGS="-I$TC/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include -I$TC/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL" LDFLAGS="--sysroot $TC/usr/mipsel-gcw0-linux-uclibc/sysroot" ./configure --platform=gcw0
 
-For gp2x, wiz, and caanoo you may need to compile libpng first, and additionally
-cyclone_gp2x.patch may need to be applied to the cpu/cyclone submodule:
-
-> patch -d cpu/cyclone -p1 <cyclone_gp2x.patch
+For gp2x, wiz, and caanoo you may need to compile libpng first.
 
 After configure, compile with
 
index 5fc93bd..94a9d9a 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 5fc93bddb71461abb7619cf506d6f15ba8a675f3
+Subproject commit 94a9d9a888e72cbfa4db12113cd113cf5e154f7f
diff --git a/cyclone_gp2x.patch b/cyclone_gp2x.patch
deleted file mode 100644 (file)
index 8c96271..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-diff --git a/OpArith.cpp b/OpArith.cpp
-index 96c7e0d..09517b8 100644
---- a/OpArith.cpp
-+++ b/OpArith.cpp
-@@ -425,7 +425,7 @@ int OpAbcd(int op)
-     ot("  add r1,r1,r0\n");\r
-     ot("  add r1,r1,r6\n");\r
-     ot("  mov r12,r1\n");\r
--    ot("  addhi r12,#6 ;@ Decimal adjust units\n");\r
-+    ot("  addhi r12,r12,#6 ;@ Decimal adjust units\n");\r
-     ot("  tst r1,#0x80\n");\r
-     ot("  orreq r10,r10,#0x10000000 ;@ Undefined V behavior\n");\r
-     ot("  cmp r12,#0x9f\n");\r
-@@ -452,7 +452,7 @@ int OpAbcd(int op)
-     ot("  cmp r1,r12\n");\r
-     ot("  orrlt r10,r10,#0x20000000 ;@ C\n");\r
-     ot("  cmp r1,#0xff\n");\r
--    ot("  addhi r1,#0xa0\n");\r
-+    ot("  addhi r1,r1,#0xa0\n");\r
-     ot("  sub r12,r1,r12\n");\r
-     ot("  movs r0,r12,lsl #24\n");\r
-     ot("  bicmi r10,r10,#0x10000000 ;@ Undefined V behavior part II\n");\r
-diff --git a/OpLogic.cpp b/OpLogic.cpp
-index 012e35a..d40d814 100644
---- a/OpLogic.cpp
-+++ b/OpLogic.cpp
-@@ -74,12 +74,12 @@ const char *TestCond(int m68k_cc, int invert)
-       break;\r
-     case 0x0e: // gt\r
-       ot("  eor r0,r10,r10,lsl #3 ;@ gt: !Z && N == V\n");\r
--      ot("  orrs r0,r10,lsl #1\n");\r
-+      ot("  orrs r0,r0,r10,lsl #1\n");\r
-       cond="pl", icond="mi";\r
-       break;\r
-     case 0x0f: // le\r
-       ot("  eor r0,r10,r10,lsl #3 ;@ le: Z || N != V\n");\r
--      ot("  orrs r0,r10,lsl #1\n");\r
-+      ot("  orrs r0,r0,r10,lsl #1\n");\r
-       cond="mi", icond="pl";\r
-       break;\r
-     default:\r