]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Configurable LBA48 support when drive is smaller than 128G.
authorToni Wilen <twilen@winuae.net>
Wed, 14 Oct 2015 17:10:34 +0000 (20:10 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 14 Oct 2015 17:10:34 +0000 (20:10 +0300)
ide.cpp

diff --git a/ide.cpp b/ide.cpp
index 3e82be808d8e2f2d5b3d6aee883a4ba4eaccf92a..9f4e4f63d2d619ed7268e65dbd52aa4a415c49da 100644 (file)
--- a/ide.cpp
+++ b/ide.cpp
@@ -1402,7 +1402,7 @@ struct ide_hdf *add_ide_unit (struct ide_hdf **idetable, int max, int ch, struct
                if (!hdf_hd_open (&ide->hdhfd))
                        return NULL;
                ide->blocksize = ide->hdhfd.hfd.ci.blocksize;
-               ide->lba48 = ide->hdhfd.size >= 128 * (uae_u64)0x40000000 ? 1 : 0;
+               ide->lba48 = (ide->hdhfd.hfd.ci.unit_special_flags & 1) || ide->hdhfd.size >= 128 * (uae_u64)0x40000000 ? 1 : 0;
                gui_flicker_led (LED_HD, ch, -1);
                ide->cd_unit_num = -1;
                ide->media_type = ci->controller_media_type;