Commit 548a3672 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

Test for stuff that has broken in the past.

parent 788faf2a
......@@ -108,8 +108,11 @@ void LM32DROM::recv(RecvQueue::const_iterator i, RecvQueue::const_iterator end)
case LOAD_REGS: {
int pulled = (RW_regs + R_regs)*4;
old[0] = old[1] = old[2] = old[3] = 0; /* R0 */
for (int j = 4; j < pulled; ++i, ++j) /* Skip R0 */
for (int j = 4; j < pulled; ++i, ++j) /* Skip R0 */ {
assert (i != end);
assert (i->slave == &uart_read);
old[j] = static_cast<uint8_t>(i->bits);
}
--i;
memcpy(now, old, pulled);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment