diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ide/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/ide/core.c b/hw/ide/core.c index 1ca7cdf..58a454f 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -1935,16 +1935,16 @@ int ide_init_drive(IDEState *s, BlockDriverState *bs, IDEDriveKind kind, s->drive_kind = kind; bdrv_get_geometry(bs, &nb_sectors); - if (cylinders < 1 || cylinders > 16383) { - error_report("cyls must be between 1 and 16383"); + if (cylinders < 1 || cylinders > 65535) { + error_report("cyls must be between 1 and 65535"); return -1; } if (heads < 1 || heads > 16) { error_report("heads must be between 1 and 16"); return -1; } - if (secs < 1 || secs > 63) { - error_report("secs must be between 1 and 63"); + if (secs < 1 || secs > 255) { + error_report("secs must be between 1 and 255"); return -1; } s->cylinders = cylinders; |