aboutsummaryrefslogtreecommitdiffstats
path: root/main/qemu/kqemu.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-21 14:35:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-21 14:35:04 +0000
commit6450177f2f95119cb3e8332b1863d92cef0ae90a (patch)
tree71274ab0e6c904bb56137debe3e064686a751bc5 /main/qemu/kqemu.patch
parentb324d6e706466a723e1735e8f789f6e8351557b6 (diff)
downloadaports-6450177f2f95119cb3e8332b1863d92cef0ae90a.tar.bz2
aports-6450177f2f95119cb3e8332b1863d92cef0ae90a.tar.xz
main/qemu: moved from testing
Diffstat (limited to 'main/qemu/kqemu.patch')
-rw-r--r--main/qemu/kqemu.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/qemu/kqemu.patch b/main/qemu/kqemu.patch
new file mode 100644
index 0000000000..337a356ce1
--- /dev/null
+++ b/main/qemu/kqemu.patch
@@ -0,0 +1,32 @@
+--- a/kqemu.c 2009-07-17 00:56:23.000000000 +0000
++++ b/kqemu.c 2009-08-22 13:20:00.000000000 +0000
+@@ -93,9 +93,9 @@
+ int qpi_io_memory;
+ uint32_t kqemu_comm_base; /* physical address of the QPI communication page */
+
+-#define cpuid(index, eax, ebx, ecx, edx) \
++#define cpuid(index, eax, ecx, edx) \
+ asm volatile ("cpuid" \
+- : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) \
++ : "=a" (eax), "=c" (ecx), "=d" (edx) \
+ : "0" (index))
+
+ #ifdef __x86_64__
+@@ -125,7 +125,7 @@
+ static void kqemu_update_cpuid(CPUState *env)
+ {
+ int critical_features_mask, features, ext_features, ext_features_mask;
+- uint32_t eax, ebx, ecx, edx;
++ uint32_t eax, ecx, edx;
+
+ /* the following features are kept identical on the host and
+ target cpus because they are important for user code. Strictly
+@@ -140,7 +140,7 @@
+ features = 0;
+ ext_features = 0;
+ } else {
+- cpuid(1, eax, ebx, ecx, edx);
++ cpuid(1, eax, ecx, edx);
+ features = edx;
+ ext_features = ecx;
+ }