Lines Matching defs:processor
42 /* system structure, actual size of processor array determined at
176 printf_filtered("\t-m <model> Specify the processor to model (604)\n");
178 printf_filtered("\t Selects the processor to use when\n");
186 printf_filtered("\t to be modeled in a symetric multi-processor (SMP)\n");
514 (ihandle) for the only executing processor. By converting that
725 cpu *processor = system->processors[cpu_nr];
726 cpu_synchronize_context(processor, cpu_get_program_counter(processor));
727 cpu_page_tlb_invalidate_all(processor);
808 cpu *processor;
810 /* find our processor */
820 processor = system->processors[which_cpu];
831 cooked_buf.gpreg = cpu_registers(processor)->gpr[description.index];
835 cooked_buf.spreg = cpu_registers(processor)->spr[description.index];
839 cooked_buf.sreg = cpu_registers(processor)->sr[description.index];
843 cooked_buf.fpreg = cpu_registers(processor)->fpr[description.index];
847 cooked_buf.unsigned_word = cpu_get_program_counter(processor);
851 cooked_buf.creg = cpu_registers(processor)->cr;
855 cooked_buf.msreg = cpu_registers(processor)->msr;
859 cooked_buf.fpscreg = cpu_registers(processor)->fpscr;
868 if (cpu_model(processor) == NULL)
869 error("$stalls only valid if processor unit model enabled (-I)\n");
870 cooked_buf.unsigned_word = model_get_number_of_stalls(cpu_model(processor));
874 if (cpu_model(processor) == NULL)
875 error("$cycles only valid if processor unit model enabled (-I)\n");
876 cooked_buf.unsigned_word = model_get_number_of_cycles(cpu_model(processor));
881 cooked_buf.vreg = cpu_registers(processor)->altivec.vr[description.index];
885 cooked_buf.vscreg = cpu_registers(processor)->altivec.vscr;
891 cooked_buf.gpreg = cpu_registers(processor)->e500.gprh[description.index];
899 cooked_buf.accreg = cpu_registers(processor)->e500.acc;
904 printf_filtered("psim_read_register(processor=%p,buf=%p,reg=%s) %s\n",
905 processor, buf, reg, "read of this register unimplemented");
951 cpu *processor;
970 /* find our processor */
992 processor = system->processors[which_cpu];
1023 cpu_registers(processor)->gpr[description.index] = cooked_buf.gpreg;
1027 cpu_registers(processor)->fpr[description.index] = cooked_buf.fpreg;
1031 cpu_set_program_counter(processor, cooked_buf.unsigned_word);
1035 cpu_registers(processor)->spr[description.index] = cooked_buf.spreg;
1039 cpu_registers(processor)->sr[description.index] = cooked_buf.sreg;
1043 cpu_registers(processor)->cr = cooked_buf.creg;
1047 cpu_registers(processor)->msr = cooked_buf.msreg;
1051 cpu_registers(processor)->fpscr = cooked_buf.fpscreg;
1056 cpu_registers(processor)->e500.gprh[description.index] = cooked_buf.gpreg;
1063 cpu_registers(processor)->e500.gprh[description.index] = v >> 32;
1064 cpu_registers(processor)->gpr[description.index] = v;
1069 cpu_registers(processor)->e500.acc = cooked_buf.accreg;
1075 cpu_registers(processor)->altivec.vr[description.index] = cooked_buf.vreg;
1079 cpu_registers(processor)->altivec.vscr = cooked_buf.vscreg;
1084 printf_filtered("psim_write_register(processor=%p,buf=%p,reg=%s) %s\n",
1085 processor, buf, reg, "read of this register unimplemented");
1102 cpu *processor;
1110 processor = system->processors[which_cpu];
1111 return vm_data_map_read_buffer(cpu_data_map(processor),
1126 cpu *processor;
1135 processor = system->processors[which_cpu];
1136 return vm_data_map_write_buffer(cpu_data_map(processor),