Lines Matching defs:processor
206 cpu *processor,
209 int status = (int)cpu_registers(processor)->gpr[arg0];
213 cpu_halt(processor, cia, was_exited, status);
221 cpu *processor,
225 int d = (int)cpu_registers(processor)->gpr[arg0];
226 unsigned_word buf = cpu_registers(processor)->gpr[arg0+1];
227 int nbytes = cpu_registers(processor)->gpr[arg0+2];
237 emul_read_buffer(scratch_buffer, buf, nbytes, processor, cia);
244 emul_write_status(processor, status, errno);
246 emul_write_buffer(scratch_buffer, buf, status, processor, cia);
256 cpu *processor,
260 int d = (int)cpu_registers(processor)->gpr[arg0];
261 unsigned_word buf = cpu_registers(processor)->gpr[arg0+1];
262 int nbytes = cpu_registers(processor)->gpr[arg0+2];
273 processor, cia);
279 emul_write_status(processor, status, errno);
290 cpu *processor,
293 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
295 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
296 int flags = (int)cpu_registers(processor)->gpr[arg0+1];
297 int mode = (int)cpu_registers(processor)->gpr[arg0+2];
304 emul_write_status(processor, status, errno);
312 cpu *processor,
315 int d = (int)cpu_registers(processor)->gpr[arg0];
335 emul_write_status(processor, status, errno);
343 cpu *processor,
347 unsigned_word new_break = cpu_registers(processor)->gpr[arg0];
351 printf_filtered ("0x%lx", (long)cpu_registers(processor)->gpr[arg0]);
354 processor,
359 emul_write_status(processor, 0, status);
369 cpu *processor,
372 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
374 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
375 int mode = (int)cpu_registers(processor)->gpr[arg0+1];
382 emul_write_status(processor, status, errno);
393 cpu *processor,
397 emul_write_status(processor, (int)status, errno);
408 cpu *processor,
412 emul_write_status(processor, (int)status, errno);
423 cpu *processor,
428 emul_write2_status(processor, pid, ppid, errno);
439 cpu *processor,
444 emul_write2_status(processor, (int)uid, (int)euid, errno);
455 cpu *processor,
459 emul_write_status(processor, (int)status, errno);
470 cpu *processor,
474 emul_write_status(processor, (int)status, errno);
486 cpu *processor,
489 pid_t pid = cpu_registers(processor)->gpr[arg0];
490 int sig = cpu_registers(processor)->gpr[arg0+1];
498 cpu_halt(processor, cia, was_signalled, sig);
510 cpu *processor,
513 int oldd = cpu_registers(processor)->gpr[arg0];
520 emul_write_status(processor, status, err);
531 cpu *processor,
534 int oldd = cpu_registers(processor)->gpr[arg0];
535 int newd = cpu_registers(processor)->gpr[arg0+1];
542 emul_write_status(processor, status, err);
553 cpu *processor,
556 int fildes = (int)cpu_registers(processor)->gpr[arg0];
557 off_t offset = (off_t)cpu_registers(processor)->gpr[arg0+1];
558 int whence = (int)cpu_registers(processor)->gpr[arg0+2];
567 emul_write_status(processor, (int)status, errno);
579 cpu *processor,
584 emul_write2_status(processor, (int)gid, (int)egid, errno);
595 cpu *processor,
599 emul_write_status(processor, (int)status, errno);
610 cpu *processor,
614 emul_write_status(processor, (int)status, errno);
625 cpu *processor,
628 mode_t mask = (mode_t)cpu_registers(processor)->gpr[arg0];
634 emul_write_status(processor, status, errno);
645 cpu *processor,
648 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
650 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
657 emul_write_status(processor, status, errno);
668 cpu *processor,
671 unsigned_word path1_addr = cpu_registers(processor)->gpr[arg0];
673 char *path1 = emul_read_string(path1_buf, path1_addr, PATH_MAX, processor, cia);
674 unsigned_word path2_addr = cpu_registers(processor)->gpr[arg0+1];
676 char *path2 = emul_read_string(path2_buf, path2_addr, PATH_MAX, processor, cia);
683 emul_write_status(processor, status, errno);
694 cpu *processor,
697 unsigned_word path1_addr = cpu_registers(processor)->gpr[arg0];
699 char *path1 = emul_read_string(path1_buf, path1_addr, PATH_MAX, processor, cia);
700 unsigned_word path2_addr = cpu_registers(processor)->gpr[arg0+1];
702 char *path2 = emul_read_string(path2_buf, path2_addr, PATH_MAX, processor, cia);
709 emul_write_status(processor, status, errno);
720 cpu *processor,
723 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
725 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
732 emul_write_status(processor, status, errno);
743 cpu *processor,
746 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
748 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
749 int mode = (int)cpu_registers(processor)->gpr[arg0+1];
756 emul_write_status(processor, status, errno);
767 cpu *processor,
770 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
772 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
779 emul_write_status(processor, status, errno);
790 cpu *processor,
793 unsigned_word tp = cpu_registers(processor)->gpr[arg0];
800 emul_write_status(processor, (int)status, errno);
803 emul_write_buffer(&status, tp, sizeof(status), processor, cia);
814 cpu *processor,
817 unsigned_word tv = cpu_registers(processor)->gpr[arg0];
818 unsigned_word tz = cpu_registers(processor)->gpr[arg0+1];
837 emul_write_buffer((void *) &target_timeval, tv, sizeof(target_timeval), processor, cia);
843 emul_write_buffer((void *) &target_timezone, tv, sizeof(target_timezone), processor, cia);
847 emul_write_status(processor, (int)status, errno);
859 cpu *processor,
862 signed_word who = (signed_word)cpu_registers(processor)->gpr[arg0];
863 unsigned_word usage = cpu_registers(processor)->gpr[arg0+1];
931 emul_write_buffer((void *) &target_rusage, usage, sizeof(target_rusage), processor, cia);
934 emul_write_status(processor, status, errno);
943 cpu *processor,
948 (long)cpu_registers(processor)->gpr[arg0],
949 (long)cpu_registers(processor)->gpr[arg0+1],
950 (long)cpu_registers(processor)->gpr[arg0+2],
951 (long)cpu_registers(processor)->gpr[arg0+3],
952 (long)cpu_registers(processor)->gpr[arg0+4],
953 (long)cpu_registers(processor)->gpr[arg0+5]);
955 emul_write_status(processor, 0, errno);
1086 cpu *processor,
1141 emul_write_buffer(&target, addr, sizeof(target), processor, cia);
1151 cpu *processor,
1154 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
1155 unsigned_word stat_pkt = cpu_registers(processor)->gpr[arg0+1];
1158 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
1166 convert_to_solaris_stat (stat_pkt, &buf, processor, cia);
1168 emul_write_status(processor, status, errno);
1179 cpu *processor,
1182 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
1183 unsigned_word stat_pkt = cpu_registers(processor)->gpr[arg0+1];
1186 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
1194 convert_to_solaris_stat (stat_pkt, &buf, processor, cia);
1196 emul_write_status(processor, status, errno);
1207 cpu *processor,
1210 int fildes = (int)cpu_registers(processor)->gpr[arg0];
1211 unsigned_word stat_pkt = cpu_registers(processor)->gpr[arg0+1];
1222 convert_to_solaris_stat (stat_pkt, &buf, processor, cia);
1224 emul_write_status(processor, status, errno);
1266 cpu *processor,
1323 emul_write_buffer(&target, addr, sizeof(target), processor, cia);
1345 cpu *processor,
1428 emul_write_buffer(&target, addr, sizeof(target), processor, cia);
1439 cpu *processor,
1442 int fildes = cpu_registers(processor)->gpr[arg0];
1443 unsigned request = cpu_registers(processor)->gpr[arg0+1];
1444 unsigned_word argp_addr = cpu_registers(processor)->gpr[arg0+2];
1481 convert_to_solaris_termio (argp_addr, &host_termio, processor, cia);
1496 convert_to_solaris_termios (argp_addr, &host_termio, processor, cia);
1503 emul_write_status(processor, status, errno);
1960 emul_solaris_system_call(cpu *processor,
1966 cpu_registers(processor)->gpr[0],
1968 processor,
2037 cpu *processor,
2077 emul_write_buffer(&target, addr, sizeof(target), processor, cia);
2087 cpu *processor,
2090 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
2091 unsigned_word stat_pkt = cpu_registers(processor)->gpr[arg0+1];
2094 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
2102 convert_to_linux_stat (stat_pkt, &buf, processor, cia);
2104 emul_write_status(processor, status, errno);
2115 cpu *processor,
2118 unsigned_word path_addr = cpu_registers(processor)->gpr[arg0];
2119 unsigned_word stat_pkt = cpu_registers(processor)->gpr[arg0+1];
2122 char *path = emul_read_string(path_buf, path_addr, PATH_MAX, processor, cia);
2130 convert_to_linux_stat (stat_pkt, &buf, processor, cia);
2132 emul_write_status(processor, status, errno);
2143 cpu *processor,
2146 int fildes = (int)cpu_registers(processor)->gpr[arg0];
2147 unsigned_word stat_pkt = cpu_registers(processor)->gpr[arg0+1];
2158 convert_to_linux_stat (stat_pkt, &buf, processor, cia);
2160 emul_write_status(processor, status, errno);
2238 cpu *processor,
2302 emul_write_buffer(&target, addr, sizeof(target), processor, cia);
2327 cpu *processor,
2391 emul_write_buffer(&target, addr, sizeof(target), processor, cia);
2402 cpu *processor,
2405 int fildes = cpu_registers(processor)->gpr[arg0];
2406 unsigned request = cpu_registers(processor)->gpr[arg0+1];
2407 unsigned_word argp_addr = cpu_registers(processor)->gpr[arg0+2];
2444 convert_to_linux_termio (argp_addr, &host_termio, processor, cia);
2459 convert_to_linux_termios (argp_addr, &host_termio, processor, cia);
2466 emul_write_status(processor, status, errno);
2838 emul_linux_system_call(cpu *processor,
2844 cpu_registers(processor)->gpr[0],
2846 processor,