mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-08 14:25:05 +00:00
Avoid infinite loop.
This commit is contained in:
@@ -162,6 +162,11 @@ struct Chipset {
|
|||||||
|
|
||||||
// Loop until another [comparable] bus transaction appears, and test.
|
// Loop until another [comparable] bus transaction appears, and test.
|
||||||
while(true) {
|
while(true) {
|
||||||
|
if(!(blitter.get_status() & 0x4000)) {
|
||||||
|
XCTAssert(false, @"Blitter terminated early at index %lu", (unsigned long)index);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
blitter.advance_dma();
|
blitter.advance_dma();
|
||||||
|
|
||||||
const auto transactions = blitter.get_and_reset_transactions();
|
const auto transactions = blitter.get_and_reset_transactions();
|
||||||
|
Reference in New Issue
Block a user