Revert "Revert "added assert for e.g. n64 -cart waveracej crash in rsp_device::generate_checksum_block() (nw)""

This reverts commit 36218e2220.
This commit is contained in:
Oliver Stöneberg 2014-11-09 08:58:44 +01:00
parent 36218e2220
commit 605b473f71

View File

@ -7419,6 +7419,7 @@ void rsp_device::generate_checksum_block(drcuml_block *block, compiler_state *co
if (seqhead->delay.first() != NULL && seqhead->physpc != seqhead->delay.first()->physpc)
{
base = m_direct->read_decrypted_ptr(seqhead->delay.first()->physpc | 0x1000);
assert(base != NULL);
UML_LOAD(block, I1, base, 0, SIZE_DWORD, SCALE_x4); // load i1,base,dword
UML_ADD(block, I0, I0, I1); // add i0,i0,i1
@ -7441,6 +7442,7 @@ void rsp_device::generate_checksum_block(drcuml_block *block, compiler_state *co
if (!(curdesc->flags & OPFLAG_VIRTUAL_NOOP))
{
base = m_direct->read_decrypted_ptr(curdesc->physpc | 0x1000);
assert(base != NULL);
UML_LOAD(block, I1, base, 0, SIZE_DWORD, SCALE_x4); // load i1,base,dword
UML_ADD(block, I0, I0, I1); // add i0,i0,i1
sum += curdesc->opptr.l[0];
@ -7448,6 +7450,7 @@ void rsp_device::generate_checksum_block(drcuml_block *block, compiler_state *co
if (curdesc->delay.first() != NULL && (curdesc == seqlast || (curdesc->next() != NULL && curdesc->next()->physpc != curdesc->delay.first()->physpc)))
{
base = m_direct->read_decrypted_ptr(curdesc->delay.first()->physpc | 0x1000);
assert(base != NULL);
UML_LOAD(block, I1, base, 0, SIZE_DWORD, SCALE_x4); // load i1,base,dword
UML_ADD(block, I0, I0, I1); // add i0,i0,i1