]> git.pld-linux.org Git - packages/dynamips.git/commitdiff
- fix building on x32 master auto/th/dynamips-0.2.8-0.RC2.4
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 10 May 2015 09:19:24 +0000 (11:19 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 10 May 2015 09:19:24 +0000 (11:19 +0200)
- rel 4

dynamips.spec
x32.patch [new file with mode: 0644]

index ad12498a5039f8eefa56b48155728c5043f9d613..5b826f8b7cd930e2196550653a0ce4aea13b9ef1 100644 (file)
@@ -1,5 +1,5 @@
 %define                subver  RC2
-%define                rel             3
+%define                rel     4
 Summary:       Cisco 7200 Simulator
 Summary(pl.UTF-8):     Symulator Cisco 7200
 Name:          dynamips
@@ -11,6 +11,7 @@ Source0:      http://www.ipflow.utc.fr/dynamips/%{name}-%{version}-%{subver}.tar.gz
 # Source0-md5: 8d12d28684d164fe3312a3fe43c84d2e
 Patch0:                %{name}-Makefile.patch
 Patch1:                %{name}-debian.patch
+Patch2:                x32.patch
 URL:           http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator
 BuildRequires: elfutils-devel
 BuildRequires: flex
@@ -27,12 +28,15 @@ Symulator Cisco 7200.
 %setup -q -n %{name}-%{version}-%{subver}
 %patch0 -p1
 %patch1 -p1
+%ifarch x32
+%patch2 -p1
+%endif
 
 %build
 %ifarch %{x8664}
 ARCH=amd64
 %else
-%ifarch %{ix86}
+%ifarch %{ix86} x32
 ARCH=x86
 %else
 ARCH=nojit
diff --git a/x32.patch b/x32.patch
new file mode 100644 (file)
index 0000000..3f6b4a6
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,11 @@
+--- dynamips-0.2.8-RC2/mips64_amd64_trans.h~   2007-10-14 10:43:08.000000000 +0200
++++ dynamips-0.2.8-RC2/mips64_amd64_trans.h    2015-05-10 11:14:19.522295847 +0200
+@@ -53,7 +53,7 @@
+       return;
+    }
+-   asm volatile ("movq %0,%%r15"::"r"(cpu):
++   asm volatile ("mov %0,%%r15"::"r"(cpu):
+                  "r14","r15","rax","rbx","rcx","rdx","rdi","rsi");
+    jit_code();
+ }
This page took 0.071205 seconds and 4 git commands to generate.