Fixed DRB DIMM splitting (AMI Apollo now boots with 8 MB RAM), and extended the MB500N workaround to MR BIOS'es as well.

This commit is contained in:
OBattler
2024-05-09 00:47:45 +02:00
parent 4fe7ee9675
commit b0542322bf
2 changed files with 2 additions and 2 deletions

View File

@@ -518,7 +518,7 @@ i4x0_write(int func, int addr, uint8_t val, void *priv)
case INTEL_430FX:
case INTEL_430VX:
case INTEL_430TX:
if (!strcmp(machine_get_internal_name(), "mb500n"))
if (!strcmp(machine_get_internal_name(), "mb500n") || (strstr(machine_get_internal_name(), "mr") != NULL))
regs[0x52] = val;
else
regs[0x52] = (regs[0x52] & 0xf4) | (val & 0x0b);

View File

@@ -136,7 +136,7 @@ spd_populate(uint16_t *rows, uint8_t slot_count, uint16_t total_size, uint16_t m
/* Look for a module to split. */
split = 0;
for (row = 0; row < slot_count; row++) {
if ((rows[row] < (min_module_size << 1)) || (rows[row] != (1 << log2i(rows[row]))))
if ((rows[row] <= (min_module_size << 1)) || (rows[row] != (1 << log2i(rows[row]))))
continue; /* no module here, module is too small to be split, or asymmetric module */
/* Find next empty row. */