Print cycles to failure for getting there with debugger faster..

This commit is contained in:
Florian Nücke
2020-09-18 10:34:32 +02:00
parent e2c6185e32
commit 13d4d7ac1f

View File

@@ -42,7 +42,7 @@ public final class ISATests {
case R5.EXCEPTION_MACHINE_ECALL:
final int testResult = getState().x[10]; // a0
if ((testResult & 1) != 0) {
Assertions.fail("test " + (testResult >> 1) + " failed");
Assertions.fail("test [" + (testResult >> 1) + "] failed after [" + getState().mcycle + "] cycles");
} else {
throw new TestSuccessful();
}