ns32000: fix check instruction undefined behavior
This commit is contained in:
parent
8a01776853
commit
9e036c84b2
@ -2820,6 +2820,10 @@ template <int Width> void ns32000_device<Width>::execute_run()
|
|||||||
{
|
{
|
||||||
m_psr |= PSR_F;
|
m_psr |= PSR_F;
|
||||||
|
|
||||||
|
// updating the destination when out of bounds
|
||||||
|
// is undefined, but required by DB32016
|
||||||
|
m_r[reg] = src - lower;
|
||||||
|
|
||||||
tex = mode[0].tea + mode[1].tea + top(size, bounds) * 2 + ((src >= lower) ? 7 : 10);
|
tex = mode[0].tea + mode[1].tea + top(size, bounds) * 2 + ((src >= lower) ? 7 : 10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user