From 8f9bbb3679c314ebb24510da78992e35ec767dee Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 4 Oct 2016 18:02:15 +0200 Subject: [PATCH] Fixed two compile-breaking errors. --- src/Makefile.mingw | 1 + src/Makefile.mingw64 | 1 + src/disc_imd.c | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Makefile.mingw b/src/Makefile.mingw index a68238a77..d6a237e0f 100644 --- a/src/Makefile.mingw +++ b/src/Makefile.mingw @@ -3,6 +3,7 @@ CPP = g++.exe CC = gcc.exe WINDRES = windres.exe CFLAGS = -O3 -march=native -mtune=native -fbranch-probabilities -fvpt -funroll-loops -fpeel-loops -ftracer -fomit-frame-pointer -ffast-math -msse -msse2 -msse3 -mssse3 -mfpmath=sse -mstackrealign +DFLAGS = -O3 -march=i686 -fomit-frame-pointer -msse2 -mstackrealign OBJ = 386.o 386_dynarec.o 386_dynarec_ops.o 808x.o acer386sx.o acerm3a.o ali1429.o amstrad.o cdrom-ioctl.o cdrom-iso.o \ cdrom-null.o codegen.o codegen_ops.o codegen_timing_486.o codegen_timing_686.o codegen_timing_pentium.o codegen_timing_winchip.o codegen_x86.o compaq.o config.o cpu.o dac.o \ device.o disc.o disc_86f.o disc_fdi.o disc_imd.o disc_img_86box.o disc_random.o disc_td0.o dma.o fdc.o fdc37c665.o fdc37c932fr.o fdd.o fdi2raw.o gameport.o headland.o i430hx.o i430lx.o i430fx.o \ diff --git a/src/Makefile.mingw64 b/src/Makefile.mingw64 index 9979dd3be..4e4e731d2 100644 --- a/src/Makefile.mingw64 +++ b/src/Makefile.mingw64 @@ -3,6 +3,7 @@ CPP = g++.exe CC = gcc.exe WINDRES = windres.exe CFLAGS = -O3 -march=native -mtune=native -fbranch-probabilities -fvpt -funroll-loops -fpeel-loops -ftracer -fomit-frame-pointer -ffast-math -msse -msse2 -msse3 -mssse3 -mfpmath=sse -mstackrealign +DFLAGS = -O3 -fomit-frame-pointer -msse2 OBJ = 386.o 386_dynarec.o 386_dynarec_ops.o 808x.o acer386sx.o acerm3a.o ali1429.o amstrad.o cdrom-ioctl.o cdrom-iso.o \ cdrom-null.o codegen.o codegen_ops.o codegen_timing_486.o codegen_timing_686.o codegen_timing_pentium.o codegen_timing_winchip.o codegen_x86-64.o compaq.o config.o cpu.o dac.o \ device.o disc.o disc_86f.o disc_fdi.o disc_imd.o disc_img_86box.o disc_random.o disc_td0.o dma.o fdc.o fdc37c665.o fdc37c932fr.o fdd.o fdi2raw.o gameport.o headland.o i430hx.o i430lx.o i430fx.o \ diff --git a/src/disc_imd.c b/src/disc_imd.c index e468d49ea..3aaeee32e 100644 --- a/src/disc_imd.c +++ b/src/disc_imd.c @@ -372,12 +372,12 @@ int imd_track_is_xdf(int drive, int side, int track) } if ((effective_sectors == 3) && (xdf_sectors == 3)) { - td0[drive].current_side_flags[side] = 0x28; + imd[drive].current_side_flags[side] = 0x28; return 1; /* 5.25" 2HD XDF */ } if ((effective_sectors == 4) && (xdf_sectors == 4)) { - td0[drive].current_side_flags[side] = 0x08; + imd[drive].current_side_flags[side] = 0x08; return 2; /* 3.5" 2HD XDF */ } return 0;