diff --git a/benchmarks/coremark/riscv64-baremetal/crt.S b/benchmarks/coremark/riscv64-baremetal/crt.S index d75e81e06..bf974c847 100644 --- a/benchmarks/coremark/riscv64-baremetal/crt.S +++ b/benchmarks/coremark/riscv64-baremetal/crt.S @@ -134,6 +134,8 @@ _start: add sp, sp, tp j _init +sig_end_canary: + nop .align 2 trap_entry: diff --git a/testbench/testbench.sv b/testbench/testbench.sv index 5b5e905ea..be2df5a59 100644 --- a/testbench/testbench.sv +++ b/testbench/testbench.sv @@ -387,7 +387,15 @@ module testbench; end end end - + + // *** 06 January 2024 RT: may have to uncomment this block for vcs/verilator + integer adrindex; + if (P.UNCORE_RAM_SUPPORTED) + always @(posedge clk) + if (ResetMem) // program memory is sometimes reset + for (adrindex=0; adrindex<(P.UNCORE_RAM_RANGE>>1+(P.XLEN/32)); adrindex = adrindex+1) + dut.uncore.uncore.ram.ram.memory.RAM[adrindex] = '0; + //////////////////////////////////////////////////////////////////////////////// // Actual hardware ////////////////////////////////////////////////////////////////////////////////