kuznia-rdzeni / coreblocks

RISC-V out-of-order core for education and research purposes
https://kuznia-rdzeni.github.io/coreblocks/
BSD 3-Clause "New" or "Revised" License
36 stars 14 forks source link

Remove instruction injection from TestCoreInterrupt #718

Closed xThaid closed 2 months ago

xThaid commented 3 months ago

Injecting instructions into the core will become problematic with the incoming changes of the frontend. Right now, TestCoreInterrupt is the only place where we are using this hack to set the initial values of the registers.

This PR replaces the instruction injection in that test with loading the initial values from the memory.

I can imagine that some day in the future we may need to inject instructions (debugging interface?), but this is a far future, so for now, I am removing it altogether.