Home | History | Annotate | Download | only in ppc

Lines Matching defs:Simulator

17 #include "src/ppc/simulator-ppc.h"
21 // Only build the simulator if not compiling for real PPC hardware.
31 // The PPCDebugger class is used by the simulator while debugging simulated
35 explicit PPCDebugger(Simulator* sim) : sim_(sim) {}
45 Simulator* sim_;
123 PrintF("Simulator hit stop %u: %s\n", code, msg);
125 PrintF("Simulator hit %s\n", msg);
422 cur = reinterpret_cast<intptr_t*>(sim_->get_register(Simulator::sp));
646 PrintF(" When hitting a stop, the Simulator will\n");
649 Simulator::kNumOfWatchedStops);
650 PrintF(" - They can be enabled / disabled: the Simulator\n");
652 PrintF(" - The Simulator keeps track of how many times they \n");
702 void Simulator::set_last_debugger_input(char* input) {
708 void Simulator::FlushICache(v8::internal::HashMap* i_cache, void* start_addr,
730 CachePage* Simulator::GetCachePage(v8::internal::HashMap* i_cache, void* page) {
742 void Simulator::FlushOnePage(v8::internal::HashMap* i_cache, intptr_t start,
756 void Simulator::CheckICache(v8::internal::HashMap* i_cache,
779 void Simulator::Initialize(Isolate* isolate) {
787 Simulator::Simulator(Isolate* isolate) : isolate_(isolate) {
794 // Set up simulator support first. Some of this information is needed to
835 Simulator::~Simulator() { free(stack_); }
839 // the simulator. The external reference will be a function compiled for the
841 // execute it with the simulator. We do that by redirecting the external
843 // the simulator. We write the original destination of the jump just at a known
844 // offset from the svc instruction so the simulator knows what to call.
854 Simulator::current(isolate)->FlushICache(
909 void Simulator::TearDown(HashMap* i_cache, Redirection* first) {
921 void* Simulator
929 // Get the active Simulator for the current thread.
930 Simulator* Simulator::current(Isolate* isolate) {
935 Simulator* sim = isolate_data->simulator();
937 // TODO(146): delete the simulator object when a thread/isolate goes away.
938 sim = new Simulator(isolate);
946 void Simulator::set_register(int reg, intptr_t value) {
953 intptr_t Simulator::get_register(int reg) const {
963 double Simulator::get_double_from_register_pair(int reg) {
979 void Simulator::set_pc(intptr_t value) {
985 bool Simulator::has_bad_pc() const {
991 intptr_t Simulator::get_pc() const { return special_reg_pc_; }
998 void Simulator::GetFpArgs(double* x, double* y, intptr_t* z) {
1006 void Simulator::SetFpResult(const double& result) {
1011 void Simulator::TrashCallerSaveRegisters() {
1021 uint32_t Simulator::ReadWU(intptr_t addr, Instruction* instr) {
1027 int32_t Simulator::ReadW(intptr_t addr, Instruction* instr) {
1033 void Simulator::WriteW(intptr_t addr, uint32_t value, Instruction* instr) {
1040 void Simulator::WriteW(intptr_t addr, int32_t value, Instruction* instr) {
1047 uint16_t Simulator::ReadHU(intptr_t addr, Instruction* instr) {
1053 int16_t Simulator::ReadH(intptr_t addr, Instruction* instr) {
1059 void Simulator::WriteH(intptr_t addr, uint16_t value, Instruction* instr) {
1066 void Simulator::WriteH(intptr_t addr, int16_t value, Instruction* instr) {
1073 uint8_t Simulator::ReadBU(intptr_t addr) {
1079 int8_t Simulator::ReadB(intptr_t addr) {
1085 void Simulator::WriteB(intptr_t addr, uint8_t value) {
1091 void Simulator::WriteB(intptr_t addr, int8_t value) {
1097 intptr_t* Simulator::ReadDW(intptr_t addr) {
1103 void Simulator::WriteDW(intptr_t addr, int64_t value) {
1111 uintptr_t Simulator::StackLimit(uintptr_t c_limit) const {
1112 // The simulator uses a separate JS stack. If we have exhausted the C stack,
1125 void Simulator::Format(Instruction* instr, const char* format) {
1126 PrintF("Simulator found unsupported instruction:\n 0x%08" V8PRIxPTR ": %s\n",
1133 bool Simulator::CarryFrom(int32_t left, int32_t right, int32_t carry) {
1144 bool Simulator::BorrowFrom(int32_t left, int32_t right) {
1153 bool Simulator::OverflowFrom(int32_t alu_out, int32_t left, int32_t right,
1226 // Software interrupt instructions are used by the simulator to call into the
1228 void Simulator::SoftwareInterrupt(Instruction* instr) {
1481 bool Simulator::isStopInstruction(Instruction* instr) {
1486 bool Simulator::isWatchedStop(uint32_t code) {
1492 bool Simulator::isEnabledStop(uint32_t code) {
1500 void Simulator::EnableStop(uint32_t code) {
1508 void Simulator::DisableStop(uint32_t code) {
1516 void Simulator::IncreaseStopCounter(uint32_t code) {
1533 void Simulator::PrintStopInfo(uint32_t code) {
1554 void Simulator::SetCR0(intptr_t result, bool setSO) {
1572 void Simulator::ExecuteBranchConditional(Instruction* instr, BCType type) {
1626 void Simulator::ExecuteExt1(Instruction* instr) {
1679 bool Simulator::ExecuteExt2_10bit(Instruction* instr) {
1923 bool Simulator::ExecuteExt2_9bit_part1(Instruction* instr) {
2146 bool Simulator::ExecuteExt2_9bit_part2(Instruction* instr) {
2665 void Simulator::ExecuteExt2_5bit(Instruction* instr) {
2688 void Simulator::ExecuteExt2(Instruction* instr) {
2698 void Simulator::ExecuteExt3(Instruction* instr) {
2724 void Simulator::ExecuteExt4(Instruction* instr) {
3149 void Simulator::ExecuteExt5(Instruction* instr) {
3264 void Simulator::ExecuteGeneric(Instruction* instr) {
3787 void Simulator::Trace(Instruction* instr) {
3799 void Simulator::ExecuteInstruction(Instruction* instr) {
3819 void Simulator::Execute() {
3825 // Fast version of the dispatch loop without checking whether the simulator
3851 void Simulator::CallInternal(byte* entry) {
3867 // Put down marker for end of simulation. The simulator will stop simulation
3967 intptr_t Simulator::Call(byte* entry, int argument_count, ...) {
4009 void Simulator::CallFP(byte* entry, double d0, double d1) {
4016 int32_t Simulator::CallFPReturnsInt(byte* entry, double d0, double d1) {
4023 double Simulator::CallFPReturnsDouble(byte* entry, double d0, double d1) {
4029 uintptr_t Simulator::PushAddress(uintptr_t address) {
4038 uintptr_t Simulator::PopAddress() {