ibex icon indicating copy to clipboard operation
ibex copied to clipboard

Debug single step test failure

Open tomeroberts opened this issue 6 years ago • 3 comments

The debug single step test (small config, seed 1) is currently failing with the following message: DPC value [0x8000333e] is not the next instruction after ret_pc [0x8000b23a] As far as I can tell, the test is checking that DPC increments by 2 or 4 for every step taken. In this case, the instruction stepped over is a jump, and so the next PC does not equal the previous value - 2/4. The test is not expecting any jump/branch instructions to be generated, but there is one jump at the end (jump to test done) which it ends up stepping to, which causes the faliure.

tomeroberts avatar Jun 23 '20 12:06 tomeroberts

Hi @tomroberts-lowrisc , thanks for opening this issue. You are correct, the single step test is failing because of a new jump instruction right before the main program that got added in as a result of the modifications to program structure to support PMP. I'm working on expanding this test to support branch and jump instructions, as that will help increase overall coverage.

udinator avatar Jun 23 '20 15:06 udinator

update: currently blocked on #987 - my updates to fix debug_single_step_test relies on the infrastructure introduced in this PR.

udinator avatar Jun 30 '20 21:06 udinator

I think this is now fixed - no longer seeing failures here so closing the issue

tomeroberts avatar Oct 16 '20 13:10 tomeroberts