Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37841453
en ru br
ALT Linux repos
S:8.1.0-alt1
5.0: 0.12.1-alt0.M50.1
4.1: 0.12.1-alt0.M41.1
4.0: 0.12.1-alt0.M40.1
3.0: 0.7.1-alt1

Group :: Emulators
RPM: qemu

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: qemu-0.6.2-alt-hdtrans.patch
Download


--- qemu-0.6.2/hw/pc.c.orig	2004-11-16 04:45:27 +0300
+++ qemu-0.6.2/hw/pc.c	2004-11-29 15:12:52 +0300
@@ -228,10 +228,13 @@
                 if (cylinders <= 1024 && heads <= 16 && sectors <= 63) {
                     /* No translation. */
                     translation = 0;
-                } else {
-                    /* LBA translation. */
-                    translation = 1;
-                }
+        	} else if (cylinders * heads > 131072) {
+            	    /* LBA translation. */
+            	    translation = 1;
+        	} else {
+            	    /* LARGE translation. */
+            	    translation = 2;
+        	}
             } else {
                 translation--;
             }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin