Another SCAT fix from Greatpsycho.

This commit is contained in:
OBattler
2017-08-24 17:14:48 +02:00
parent b259f18a44
commit 274cdbc2f0

View File

@@ -151,7 +151,7 @@ uint32_t get_scat_addr(uint32_t addr, scat_t *p)
else if((scat_regs[SCAT_DRAM_CONFIGURATION] & 0x0F) < 8 && (scat_regs[SCAT_EXTENDED_BOUNDARY] & 0x40) == 0)
{
addr &= ~0x600000;
if(mem_size >= 2048)
if(mem_size > 2048 || (mem_size == 2048 && (scat_regs[SCAT_DRAM_CONFIGURATION] & 0x0F) < 6))
addr |= (addr & 0x180000) << 2;
}