summaryrefslogtreecommitdiff
path: root/emulators/gxemul/files/patch-aa
blob: 752e7f318aae4619562ed741e3f7f610320e79c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- src/devices/dev_wdc.cc.orig	2013-06-27 18:10:50.000000000 -0700
+++ src/devices/dev_wdc.cc	2013-06-27 18:11:13.000000000 -0700
@@ -274,12 +274,12 @@
 	    + (int64_t)d->head * d->sectors_per_track[d->drive] +
 	    (int64_t)d->heads[d->drive] * d->sectors_per_track[d->drive] * cyl);
 
-#if 0
+#if 1
 	/*  LBA:  */
 	if (d->lba)
 		offset = 512 * (((d->head & 0xf) << 24) + (cyl << 8)
 		    + d->sector);
-	printf("WDC read from offset %lli\n", (long long)offset);
+	debug("WDC read from offset %lli\n", (long long)offset);
 #endif
 
 	while (count > 0) {
@@ -320,12 +320,12 @@
 	uint64_t offset = 512 * (d->sector - 1
 	    + (int64_t)d->head * d->sectors_per_track[d->drive] +
 	    (int64_t)d->heads[d->drive] * d->sectors_per_track[d->drive] * cyl);
-#if 0
+#if 1
 	/*  LBA:  */
 	if (d->lba)
 		offset = 512 * (((d->head & 0xf) << 24) +
 		    (cyl << 8) + d->sector);
-	printf("WDC write to offset %lli\n", (long long)offset);
+	debug("WDC write to offset %lli\n", (long long)offset);
 #endif
 
 	d->write_in_progress = d->cur_command;