trunk/src/emu/memory.c
r241413 | r241414 | |
3435 | 3435 | for (int i=0; i<size; i++) |
3436 | 3436 | subptr[i] = subentry; |
3437 | 3437 | m_table[l1index] = newentry; |
3438 | | m_subtable[newentry - SUBTABLE_BASE].m_checksum = (subentry + (subentry << 8) + (subentry << 16) + (subentry << 24)) * ((1 << level2_bits())/4); |
| 3438 | UINT32 subkey = subentry + (subentry << 8) + (subentry << 16) + (subentry << 24); |
| 3439 | m_subtable[newentry - SUBTABLE_BASE].m_checksum = subkey * (((1 << level2_bits())/4)); |
3439 | 3440 | subentry = newentry; |
3440 | 3441 | } |
3441 | 3442 | |