Path: blob/main/emulators/gxemul/files/patch-src_devices_dev__wdc.cc
16166 views
--- src/devices/dev_wdc.cc.orig 2014-08-17 08:45:12 UTC1+++ src/devices/dev_wdc.cc2@@ -274,12 +274,12 @@ void wdc__read(struct cpu *cpu, struct w3+ (int64_t)d->head * d->sectors_per_track[d->drive] +4(int64_t)d->heads[d->drive] * d->sectors_per_track[d->drive] * cyl);56-#if 07+#if 18/* LBA: */9if (d->lba)10offset = 512 * (((d->head & 0xf) << 24) + (cyl << 8)11+ d->sector);12- printf("WDC read from offset %lli\n", (long long)offset);13+ debug("WDC read from offset %lli\n", (long long)offset);14#endif1516while (count > 0) {17@@ -320,12 +320,12 @@ void wdc__write(struct cpu *cpu, struct18uint64_t offset = 512 * (d->sector - 119+ (int64_t)d->head * d->sectors_per_track[d->drive] +20(int64_t)d->heads[d->drive] * d->sectors_per_track[d->drive] * cyl);21-#if 022+#if 123/* LBA: */24if (d->lba)25offset = 512 * (((d->head & 0xf) << 24) +26(cyl << 8) + d->sector);27- printf("WDC write to offset %lli\n", (long long)offset);28+ debug("WDC write to offset %lli\n", (long long)offset);29#endif3031d->write_in_progress = d->cur_command;323334