Make SST flash not fatal on size mismatch, fixes Shuttle HOT-433A with old Intel flash files

This commit is contained in:
RichardG867
2022-02-17 11:29:35 -03:00
parent 68d557188a
commit 29b37d9f97

View File

@@ -442,7 +442,7 @@ sst_init(const device_t *info)
f = nvr_fopen(flash_path, "rb");
if (f) {
if (fread(&(dev->array[0x00000]), 1, dev->size, f) != dev->size)
fatal("Less than %i bytes read from the SST Flash ROM file\n", dev->size);
pclog("Less than %i bytes read from the SST Flash ROM file\n", dev->size);
fclose(f);
} else
dev->dirty = 1; /* It is by definition dirty on creation. */