Don't force load trigger timing to After
authorAndrew Waterman <waterman@cs.berkeley.edu>
Mon, 10 Oct 2016 20:32:25 +0000 (13:32 -0700)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Mon, 10 Oct 2016 20:32:25 +0000 (13:32 -0700)
Allow the CSR writer to make the choice.

@timsifive @colinschmidt this fixes the failing rv64mi-p-breakpoint test.

riscv/processor.cc

index 47a3a668fafe80a2bcebfaa4a60ecb1b59058781..f3764ae1e276265a30298dbd83a627d914b2bf13 100644 (file)
@@ -437,8 +437,6 @@ void processor_t::set_csr(int which, reg_t val)
         // Assume we're here because of csrw.
         if (mc->execute)
           mc->timing = 0;
-        if (mc->load)
-          mc->timing = 1;
         trigger_updated();
       }
       break;