Return to interactive mode after a trap
authorAndrew Waterman <waterman@cs.berkeley.edu>
Fri, 12 Feb 2016 18:59:46 +0000 (10:59 -0800)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Wed, 2 Mar 2016 20:15:25 +0000 (12:15 -0800)
riscv/execute.cc

index 014055ba3ecc9f138d54deb959eaf55e4e1de689..5c3fdf7991552d1bff8a9c42425dff52d16f5eb4 100644 (file)
@@ -120,6 +120,7 @@ miss:
     catch(trap_t& t)
     {
       take_trap(t, pc);
+      n = instret;
     }
 
     state.minstret += instret;