summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-ay
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu/patches/patch-ay')
-rw-r--r--emulators/qemu/patches/patch-ay24
1 files changed, 0 insertions, 24 deletions
diff --git a/emulators/qemu/patches/patch-ay b/emulators/qemu/patches/patch-ay
deleted file mode 100644
index d50ab3d4136..00000000000
--- a/emulators/qemu/patches/patch-ay
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD: patch-ay,v 1.1 2005/11/04 21:10:42 dbj Exp $
-
---- target-i386/helper.c.orig 2005-09-04 13:11:31.000000000 -0400
-+++ target-i386/helper.c
-@@ -3261,7 +3261,7 @@ static void imul64(uint64_t *plow, uint6
- static int div64(uint64_t *plow, uint64_t *phigh, uint64_t b)
- {
- uint64_t q, r, a1, a0;
-- int i, qb;
-+ int i, qb, ab;
-
- a0 = *plow;
- a1 = *phigh;
-@@ -3275,8 +3275,9 @@ static int div64(uint64_t *plow, uint64_
- return 1;
- /* XXX: use a better algorithm */
- for(i = 0; i < 64; i++) {
-+ ab = a1 >> 63;
- a1 = (a1 << 1) | (a0 >> 63);
-- if (a1 >= b) {
-+ if (ab || a1 >= b) {
- a1 -= b;
- qb = 1;
- } else {