Chromium Code Reviews| Index: runtime/vm/simulator_mips.cc |
| =================================================================== |
| --- runtime/vm/simulator_mips.cc (revision 24474) |
| +++ runtime/vm/simulator_mips.cc (working copy) |
| @@ -2028,7 +2028,7 @@ |
| delay_slot_ = true; |
| icount_++; |
| Instr* instr = Instr::At(pc_ + Instr::kInstrSize); |
| - if (icount_ == FLAG_stop_sim_at) { |
| + if ((FLAG_stop_sim_at != 0) && (icount_ == FLAG_stop_sim_at)) { |
| SimulatorDebugger dbg(this); |
| dbg.Stop(instr, "Instruction count reached"); |
| } |