summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-08-07 07:49:02 +0000
committerMike Frysinger <vapier@gentoo.org>2005-08-07 07:49:02 +0000
commit551bd3e60b48711ad850dc12c50bb44a789917c5 (patch)
tree5c60ec6e0f96b2a6c2eba5d87b95f20a9cddcbb2 /games-emulation/pcsx2/files
parentfix versions (diff)
downloadhistorical-551bd3e60b48711ad850dc12c50bb44a789917c5.tar.gz
historical-551bd3e60b48711ad850dc12c50bb44a789917c5.tar.bz2
historical-551bd3e60b48711ad850dc12c50bb44a789917c5.zip
Add support for amd64 #65374.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'games-emulation/pcsx2/files')
-rw-r--r--games-emulation/pcsx2/files/pcsx2-0.8.1-amd64.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/games-emulation/pcsx2/files/pcsx2-0.8.1-amd64.patch b/games-emulation/pcsx2/files/pcsx2-0.8.1-amd64.patch
new file mode 100644
index 000000000000..49ab0d803ebf
--- /dev/null
+++ b/games-emulation/pcsx2/files/pcsx2-0.8.1-amd64.patch
@@ -0,0 +1,25 @@
+--- x86/ix86/ix86_cpudetect.c.orig 2005-08-07 03:43:45.000000000 -0400
++++ x86/ix86/ix86_cpudetect.c 2005-08-07 03:44:23.000000000 -0400
+@@ -94,16 +94,19 @@
+
+ __asm__ __volatile__ (
+ #ifdef __x86_64__
++#define AX "%%rax"
+ "sub $0x18, %%rsp\n"
++#else
++#define AX "%%eax"
+ #endif
+ "pushf\n"
+- "pop %%eax\n"
++ "pop "AX"\n"
+ "mov %%eax, %%edx\n"
+ "xor $0x200000, %%eax\n"
+- "push %%eax\n"
++ "push "AX"\n"
+ "popf\n"
+ "pushf\n"
+- "pop %%eax\n"
++ "pop "AX"\n"
+ "xor %%edx, %%eax\n"
+ "mov %%eax, %0\n"
+ #ifdef __x86_64__