From 730d627aea9ea31237bb590aeb701d59748dbc29 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Wed, 14 Oct 2015 20:10:34 +0300 Subject: [PATCH] Configurable LBA48 support when drive is smaller than 128G. --- ide.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ide.cpp b/ide.cpp index 3e82be80..9f4e4f63 100644 --- 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; -- 2.47.3