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);
793 cpu *processor;
795 /* find our processor */
805 processor = system->processors[which_cpu];
817 *(gpreg*)cooked_buf = cpu_registers(processor)->gpr[description.index];
821 *(spreg*)cooked_buf = cpu_registers(processor)->spr[description.index];
825 *(sreg*)cooked_buf = cpu_registers(processor)->sr[description.index];
829 *(fpreg*)cooked_buf = cpu_registers(processor)->fpr[description.index];
833 *(unsigned_word*)cooked_buf = cpu_get_program_counter(processor);
837 *(creg*)cooked_buf = cpu_registers(processor)->cr;
841 *(msreg*)cooked_buf = cpu_registers(processor)->msr;
845 *(fpscreg*)cooked_buf = cpu_registers(processor)->fpscr;
854 if (cpu_model(processor) == NULL)
855 error("$stalls only valid if processor unit model enabled (-I)\n");
856 *(unsigned_word*)cooked_buf = model_get_number_of_stalls(cpu_model(processor));
860 if (cpu_model(processor) == NULL)
861 error("$cycles only valid if processor unit model enabled (-I)\n");
862 *(unsigned_word*)cooked_buf = model_get_number_of_cycles(cpu_model(processor));
867 *(vreg*)cooked_buf = cpu_registers(processor)->altivec.vr[description.index];
871 *(vscreg*)cooked_buf = cpu_registers(processor)->altivec.vscr;
877 *(gpreg*)cooked_buf = cpu_registers(processor)->e500.gprh[description.index];
885 *(accreg*)cooked_buf = cpu_registers(processor)->e500.acc;
890 printf_filtered("psim_read_register(processor=%p,buf=%p,reg=%s) %s\n",
891 processor, buf, reg, "read of this register unimplemented");
947 cpu *processor;
951 /* find our processor */
974 processor = system->processors[which_cpu];
1016 cpu_registers(processor)->gpr[description.index] = *(gpreg*)cooked_buf;
1020 cpu_registers(processor)->fpr[description.index] = *(fpreg*)cooked_buf;
1024 cpu_set_program_counter(processor, *(unsigned_word*)cooked_buf);
1028 cpu_registers(processor)->spr[description.index] = *(spreg*)cooked_buf;
1032 cpu_registers(processor)->sr[description.index] = *(sreg*)cooked_buf;
1036 cpu_registers(processor)->cr = *(creg*)cooked_buf;
1040 cpu_registers(processor)->msr = *(msreg*)cooked_buf;
1044 cpu_registers(processor)->fpscr = *(fpscreg*)cooked_buf;
1049 cpu_registers(processor)->e500.gprh[description.index] = *(gpreg*)cooked_buf;
1056 cpu_registers(processor)->e500.gprh[description.index] = v >> 32;
1057 cpu_registers(processor)->gpr[description.index] = v;
1062 cpu_registers(processor)->e500.acc = *(accreg*)cooked_buf;
1068 cpu_registers(processor)->altivec.vr[description.index] = *(vreg*)cooked_buf;
1072 cpu_registers(processor)->altivec.vscr = *(vscreg*)cooked_buf;
1077 printf_filtered("psim_write_register(processor=%p,cooked_buf=%p,reg=%s) %s\n",
1078 processor, cooked_buf, reg,
1097 cpu *processor;
1105 processor = system->processors[which_cpu];
1106 return vm_data_map_read_buffer(cpu_data_map(processor),
1121 cpu *processor;
1130 processor = system->processors[which_cpu];
1131 return vm_data_map_write_buffer(cpu_data_map(processor),