Home | History | Annotate | Download | only in mips64

Lines Matching refs:sim_

71   explicit MipsDebugger(Simulator* sim) : sim_(sim) { }
85 Simulator* sim_;
125 reinterpret_cast<char**>(sim_->get_pc() + Instr::kInstrSize);
144 sim_->set_pc(sim_->get_pc() + 3 * Instruction::kInstructionSize);
159 char* msg = *reinterpret_cast<char**>(sim_->get_pc() +
162 if (!sim_->watched_stops_[code].desc) {
163 sim_->watched_stops_[code].desc = msg;
167 sim_->set_pc(sim_->get_pc() + 3 * Instruction::kInstrSize);
175 return sim_->get_pc();
177 return sim_->get_register(regnum);
184 return sim_->get_pc();
186 return sim_->get_fpu_register(regnum);
193 return sim_->get_pc();
195 return sim_->get_fpu_register_float(regnum);
202 return sim_->get_pc();
204 return sim_->get_fpu_register_double(regnum);
231 if (sim_->break_pc_ != NULL) {
236 sim_->break_pc_ = breakpc;
237 sim_->break_instr_ = breakpc->InstructionBits();
245 if (sim_->break_pc_ != NULL) {
246 sim_->break_pc_->SetInstructionBits(sim_->break_instr_);
249 sim_->break_pc_ = NULL;
250 sim_->break_instr_ = 0;
256 if (sim_->break_pc_ != NULL) {
257 sim_->break_pc_->SetInstructionBits(sim_->break_instr_);
263 if (sim_->break_pc_ != NULL) {
264 sim_->break_pc_->SetInstructionBits(kBreakpointInstr);
380 while (!done && (sim_->get_pc() != Simulator::end_sim_pc)) {
381 if (last_pc != sim_->get_pc()) {
387 reinterpret_cast<byte*>(sim_->get_pc()));
388 PrintF(" 0x%016lx %s\n", sim_->get_pc(), buffer.start());
389 last_pc = sim_->get_pc();
395 char* last_input = sim_->last_debugger_input();
399 // Ownership is transferred to sim_;
400 sim_->set_last_debugger_input(line);
410 Instruction* instr = reinterpret_cast<Instruction*>(sim_->get_pc());
413 sim_->InstructionDecode(
414 reinterpret_cast<Instruction*>(sim_->get_pc()));
418 sim_->set_pc(sim_->get_pc() + Instruction::kInstrSize);
422 sim_->InstructionDecode(reinterpret_cast<Instruction*>(sim_->get_pc()));
497 cur = reinterpret_cast<int64_t*>(sim_->get_register(Simulator::sp));
549 cur = reinterpret_cast<byte*>(sim_->get_pc());
565 cur = reinterpret_cast<byte*>(sim_->get_pc());
610 intptr_t stop_pc = sim_->get_pc() -
618 if (sim_->IsStopInstruction(stop_instr)) {
632 sim_->PrintStopInfo(i);
635 sim_->PrintStopInfo(value);
645 sim_->EnableStop(i);
648 sim_->EnableStop(value);
658 sim_->DisableStop(i);
661 sim_->DisableStop(value);
683 cur = reinterpret_cast<byte*>(sim_->get_pc());