Gutting direct-access gdb.
[riscv-isa-sim.git] / riscv / execute.cc
index c36cb4ff4aab7542417fa3624de3f2aeaea6eaa3..8b8c902b6603c26069b62657b826fe8e535579f9 100644 (file)
@@ -53,14 +53,7 @@ static reg_t execute_insn(processor_t* p, reg_t pc, insn_fetch_t fetch)
 // fetch/decode/execute loop
 void processor_t::step(size_t n)
 {
-  // TODO: We should really not call this function at all when halted, to avoid
-  // burning CPU.
-  if (single_step) {
-    set_halted(false, HR_NONE);
-    n = 1;
-  }
-
-  while (run && !halted && n > 0) {
+  while (n > 0) {
     size_t instret = 0;
     reg_t pc = state.pc;
     mmu_t* _mmu = mmu;
@@ -133,9 +126,4 @@ miss:
     state.minstret += instret;
     n -= instret;
   }
-
-  if (single_step) {
-    single_step = false;
-    set_halted(true, HR_STEPPED);
-  }
 }