Home | History | Annotate | Download | only in mips

Lines Matching refs:sim_

53   explicit MipsDebugger(Simulator* sim) : sim_(sim) { }
67 Simulator* sim_;
109 reinterpret_cast<char**>(sim_->get_pc() + Instr::kInstrSize);
127 sim_->set_pc(sim_->get_pc() + 2 * Instruction::kInstructionSize);
142 char* msg = *reinterpret_cast<char**>(sim_->get_pc() +
145 if (!sim_->watched_stops_[code].desc) {
146 sim_->watched_stops_[code].desc = msg;
149 sim_->set_pc(sim_->get_pc() + 2 * Instruction::kInstrSize);
157 return sim_->get_pc();
159 return sim_->get_register(regnum);
166 return sim_->get_pc();
168 return sim_->get_fpu_register_word(regnum);
175 return sim_->get_pc();
177 return sim_->get_fpu_register(regnum);
184 return sim_->get_pc();
186 return sim_->get_fpu_register_float(regnum);
193 return sim_->get_pc();
195 return sim_->get_fpu_register_double(regnum);
241 if (sim_->break_pc_ != NULL) {
246 sim_->break_pc_ = breakpc;
247 sim_->break_instr_ = breakpc->InstructionBits();
255 if (sim_->break_pc_ != NULL) {
256 sim_->break_pc_->SetInstructionBits(sim_->break_instr_);
259 sim_->break_pc_ = NULL;
260 sim_->break_instr_ = 0;
266 if (sim_->break_pc_ != NULL) {
267 sim_->break_pc_->SetInstructionBits(sim_->break_instr_);
273 if (sim_->break_pc_ != NULL) {
274 sim_->break_pc_->SetInstructionBits(kBreakpointInstr);
416 while (!done && (sim_->get_pc() != Simulator::end_sim_pc)) {
417 if (last_pc != sim_->get_pc()) {
423 reinterpret_cast<byte*>(sim_->get_pc()));
424 PrintF(" 0x%08x %s\n", sim_->get_pc(), buffer.start());
425 last_pc = sim_->get_pc();
431 char* last_input = sim_->last_debugger_input();
435 // Ownership is transferred to sim_;
436 sim_->set_last_debugger_input(line);
446 Instruction* instr = reinterpret_cast<Instruction*>(sim_->get_pc());
449 sim_->InstructionDecode(
450 reinterpret_cast<Instruction*>(sim_->get_pc()));
454 sim_->set_pc(sim_->get_pc() + Instruction::kInstrSize);
458 sim_->InstructionDecode(reinterpret_cast<Instruction*>(sim_->get_pc()));
554 cur = reinterpret_cast<int32_t*>(sim_->get_register(Simulator::sp));
619 cur = reinterpret_cast<byte*>(sim_->get_pc());
635 cur = reinterpret_cast<byte*>(sim_->get_pc());
680 intptr_t stop_pc = sim_->get_pc() -
688 if (sim_->IsStopInstruction(stop_instr)) {
702 sim_->PrintStopInfo(i);
705 sim_->PrintStopInfo(value);
715 sim_->EnableStop(i);
718 sim_->EnableStop(value);
728 sim_->DisableStop(i);
731 sim_->DisableStop(value);
753 cur = reinterpret_cast<byte*>(sim_->get_pc());