Home
last modified time | relevance | path

Searched refs:cpu_env (Results 1 – 25 of 90) sorted by relevance

1234

/openbmc/qemu/linux-user/s390x/
H A Dtarget_proc.h47 static void show_cpu_summary(CPUArchState *cpu_env, int fd) in show_cpu_summary() argument
49 S390CPUModel *model = env_archcpu(cpu_env)->model; in show_cpu_summary()
81 static void show_cpu_ids(CPUArchState *cpu_env, int fd, unsigned long n) in show_cpu_ids() argument
83 S390CPUModel *model = env_archcpu(cpu_env)->model; in show_cpu_ids()
90 static void show_cpuinfo(CPUArchState *cpu_env, int fd, unsigned long n) in show_cpuinfo() argument
93 show_cpu_ids(cpu_env, fd, n); in show_cpuinfo()
96 static int open_cpuinfo(CPUArchState *cpu_env, int fd) in open_cpuinfo() argument
101 show_cpu_summary(cpu_env, fd); in open_cpuinfo()
103 show_cpuinfo(cpu_env, fd, i); in open_cpuinfo()
/openbmc/qemu/bsd-user/freebsd/
H A Dos-proc.h84 static inline abi_long do_freebsd_wait6(void *cpu_env, abi_long idtype, in do_freebsd_wait6() argument
95 if (regpairs_aligned(cpu_env) != 0) { in do_freebsd_wait6()
189 static inline abi_long do_freebsd_fork(void *cpu_env) in do_freebsd_fork() argument
199 target_cpu_clone_regs(cpu_env, 0); in do_freebsd_fork()
209 set_second_rval(cpu_env, child_flag); in do_freebsd_fork()
217 static inline abi_long do_freebsd_vfork(void *cpu_env) in do_freebsd_vfork() argument
219 return do_freebsd_fork(cpu_env); in do_freebsd_vfork()
244 target_cpu_clone_regs(cpu_env, 0); in do_freebsd_rfork()
254 set_second_rval(cpu_env, child_flag); in do_freebsd_rfork()
274 target_cpu_clone_regs(cpu_env, 0); in do_freebsd_pdfork()
[all …]
H A Dos-syscall.c229 ret = do_freebsd_fork(cpu_env); in freebsd_syscall()
233 ret = do_freebsd_vfork(cpu_env); in freebsd_syscall()
237 ret = do_freebsd_rfork(cpu_env, arg1); in freebsd_syscall()
241 ret = do_freebsd_pdfork(cpu_env, arg1, arg2); in freebsd_syscall()
257 ret = do_freebsd_wait6(cpu_env, arg1, arg2, arg3, in freebsd_syscall()
262 ret = do_bsd_exit(cpu_env, arg1); in freebsd_syscall()
561 ret = do_bsd_truncate(cpu_env, arg1, arg2, arg3, arg4); in freebsd_syscall()
565 ret = do_bsd_ftruncate(cpu_env, arg1, arg2, arg3, arg4); in freebsd_syscall()
597 ret = do_bsd_readlink(cpu_env, arg1, arg2, arg3); in freebsd_syscall()
913 ret = do_freebsd_sysarch(cpu_env, arg1, arg2); in freebsd_syscall()
[all …]
/openbmc/qemu/linux-user/
H A Duser-internals.h63 abi_long do_syscall(CPUArchState *cpu_env, int num, abi_long arg1,
137 static inline int regpairs_aligned(CPUArchState *cpu_env, int num) in regpairs_aligned() argument
139 return cpu_env->eabi; in regpairs_aligned()
142 static inline int regpairs_aligned(CPUArchState *cpu_env, int num) { return 1; } in regpairs_aligned() argument
149 static inline int regpairs_aligned(CPUArchState *cpu_env, int num) { return 1; } in regpairs_aligned() argument
152 static inline int regpairs_aligned(CPUArchState *cpu_env, int num) in regpairs_aligned() argument
164 static inline int regpairs_aligned(CPUArchState *cpu_env, int num) { return 1; } in regpairs_aligned() argument
166 static inline int regpairs_aligned(CPUArchState *cpu_env, int num) { return 1; } in regpairs_aligned() argument
168 static inline int regpairs_aligned(CPUArchState *cpu_env, int num) { return 0; } in regpairs_aligned() argument
H A Dstrace.c675 print_ipc(CPUArchState *cpu_env, const struct syscallname *name, in print_ipc() argument
1875 print_acct(CPUArchState *cpu_env, const struct syscallname *name, in print_acct() argument
1887 print_brk(CPUArchState *cpu_env, const struct syscallname *name, in print_brk() argument
2470 print_link(CPUArchState *cpu_env, const struct syscallname *name, in print_link() argument
2572 if (regpairs_aligned(cpu_env, TARGET_NR_truncate64)) { in print_truncate64()
2589 if (regpairs_aligned(cpu_env, TARGET_NR_ftruncate64)) { in print_ftruncate64()
3985 print_syscall_ret_prlimit64(CPUArchState *cpu_env, in print_syscall_ret_prlimit64() argument
4049 if (regpairs_aligned(cpu_env, TARGET_NR_pread64)) { in print_pread64()
4165 print_syscall(CPUArchState *cpu_env, int num, in print_syscall() argument
4205 print_syscall_ret(CPUArchState *cpu_env, int num, abi_long ret, in print_syscall_ret() argument
[all …]
H A Duname.c31 const char *cpu_to_uname_machine(CPUArchState *cpu_env) in cpu_to_uname_machine() argument
48 if (arm_feature(cpu_env, ARM_FEATURE_V7)) in cpu_to_uname_machine()
50 if (arm_feature(cpu_env, ARM_FEATURE_V6)) in cpu_to_uname_machine()
57 CPUState *cpu = env_cpu(cpu_env); in cpu_to_uname_machine()
H A Dstrace.h21 void print_syscall(CPUArchState *cpu_env, int num,
24 void print_syscall_ret(CPUArchState *cpu_env, int num, abi_long ret,
H A Dsignal.c626 CPUArchState *env = cpu_env(cpu); in force_sig()
644 CPUArchState *env = cpu_env(cpu); in force_sig_fault()
956 CPUArchState *env = cpu_env(cpu); in host_signal_handler()
1172 CPUState *cpu = env_cpu(cpu_env); in handle_pending_signal()
1179 trace_user_handle_signal(cpu_env, sig); in handle_pending_signal()
1204 dump_core_and_abort(cpu_env, sig); in handle_pending_signal()
1209 dump_core_and_abort(cpu_env, sig); in handle_pending_signal()
1233 CPUX86State *env = cpu_env; in handle_pending_signal()
1243 setup_frame(sig, sa, &target_old_set, cpu_env); in handle_pending_signal()
1255 void process_pending_signals(CPUArchState *cpu_env) in process_pending_signals() argument
[all …]
H A Duname.h7 const char *cpu_to_uname_machine(CPUArchState *cpu_env);
/openbmc/qemu/target/hexagon/
H A Dgenptr.h28 void gen_store1(TCGv_env cpu_env, TCGv vaddr, TCGv src, uint32_t slot);
29 void gen_store2(TCGv_env cpu_env, TCGv vaddr, TCGv src, uint32_t slot);
30 void gen_store4(TCGv_env cpu_env, TCGv vaddr, TCGv src, uint32_t slot);
31 void gen_store8(TCGv_env cpu_env, TCGv vaddr, TCGv_i64 src, uint32_t slot);
32 void gen_store1i(TCGv_env cpu_env, TCGv vaddr, int32_t src, uint32_t slot);
33 void gen_store2i(TCGv_env cpu_env, TCGv vaddr, int32_t src, uint32_t slot);
34 void gen_store4i(TCGv_env cpu_env, TCGv vaddr, int32_t src, uint32_t slot);
35 void gen_store8i(TCGv_env cpu_env, TCGv vaddr, int64_t src, uint32_t slot);
/openbmc/qemu/linux-user/riscv/
H A Dtarget_proc.h9 static int open_cpuinfo(CPUArchState *cpu_env, int fd) in open_cpuinfo() argument
13 RISCVCPU *cpu = env_archcpu(cpu_env); in open_cpuinfo()
14 const RISCVCPUConfig *cfg = riscv_cpu_cfg((CPURISCVState *) cpu_env); in open_cpuinfo()
19 mmu = (cpu_env->xl == MXL_RV32) ? "sv32" : "sv48"; in open_cpuinfo()
/openbmc/openbmc/poky/meta/recipes-devtools/qemu/qemu/
H A D0003-linux-user-Add-strace-for-shmat.patch19 @@ -670,6 +670,25 @@ print_semctl(CPUArchState *cpu_env, const struct syscallname *name,
24 +print_shmat(CPUArchState *cpu_env, const struct syscallname *name,
44 print_ipc(CPUArchState *cpu_env, const struct syscallname *name,
45 @@ -683,6 +702,10 @@ print_ipc(CPUArchState *cpu_env, const struct syscallname *name,
50 + print_shmat(cpu_env, &(const struct syscallname){ .name = "shmat" },
H A D0004-linux-user-Rewrite-target_shmat.patch23 @@ -1062,69 +1062,161 @@ static inline abi_ulong target_shmlba(CPUArchState *cpu_env)
33 abi_ulong target_shmat(CPUArchState *cpu_env, int shmid,
36 CPUState *cpu = env_cpu(cpu_env);
53 + t_shmlba = target_shmlba(cpu_env);
104 - shmlba = target_shmlba(cpu_env);
217 @@ -1138,7 +1230,15 @@ abi_ulong target_shmat(CPUArchState *cpu_env, int shmid,
/openbmc/qemu/linux-user/alpha/
H A Dtarget_proc.h9 static int open_cpuinfo(CPUArchState *cpu_env, int fd) in open_cpuinfo() argument
18 p = object_class_get_name(OBJECT_CLASS(CPU_GET_CLASS(env_cpu(cpu_env)))); in open_cpuinfo()
/openbmc/qemu/semihosting/
H A Dsyscalls.c27 CPUArchState *env G_GNUC_UNUSED = cpu_env(cs); in validate_strlen()
57 CPUArchState *env G_GNUC_UNUSED = cpu_env(cs); in validate_lock_user_string()
77 CPUArchState *env G_GNUC_UNUSED = cpu_env(cs); in copy_stat_to_user()
261 CPUArchState *env G_GNUC_UNUSED = cpu_env(cs); in host_open()
319 CPUArchState *env G_GNUC_UNUSED = cpu_env(cs); in host_read()
340 CPUArchState *env G_GNUC_UNUSED = cpu_env(cs); in host_write()
414 CPUArchState *env G_GNUC_UNUSED = cpu_env(cs); in host_stat()
443 CPUArchState *env G_GNUC_UNUSED = cpu_env(cs); in host_remove()
462 CPUArchState *env G_GNUC_UNUSED = cpu_env(cs); in host_rename()
487 CPUArchState *env G_GNUC_UNUSED = cpu_env(cs); in host_system()
[all …]
/openbmc/qemu/bsd-user/
H A Dbsd-file.h87 static abi_long do_bsd_pread(void *cpu_env, abi_long arg1, in do_bsd_pread() argument
97 if (regpairs_aligned(cpu_env) != 0) { in do_bsd_pread()
124 static abi_long do_bsd_preadv(void *cpu_env, abi_long arg1, in do_bsd_preadv() argument
131 if (regpairs_aligned(cpu_env) != 0) { in do_bsd_preadv()
166 static abi_long do_bsd_pwrite(void *cpu_env, abi_long arg1, in do_bsd_pwrite() argument
176 if (regpairs_aligned(cpu_env) != 0) { in do_bsd_pwrite()
203 static abi_long do_bsd_pwritev(void *cpu_env, abi_long arg1, in do_bsd_pwritev() argument
210 if (regpairs_aligned(cpu_env) != 0) { in do_bsd_pwritev()
506 if (regpairs_aligned(cpu_env) != 0) { in do_bsd_truncate()
520 if (regpairs_aligned(cpu_env) != 0) { in do_bsd_ftruncate()
[all …]
H A Dqemu.h167 abi_long do_freebsd_syscall(void *cpu_env, int num, abi_long arg1,
171 abi_long do_netbsd_syscall(void *cpu_env, int num, abi_long arg1,
174 abi_long do_openbsd_syscall(void *cpu_env, int num, abi_long arg1,
257 abi_long do_freebsd_procctl(void *cpu_env, int idtype, abi_ulong arg2,
266 abi_long do_freebsd_sysarch(void *cpu_env, abi_long arg1, abi_long arg2);
/openbmc/qemu/linux-user/arm/
H A Dtarget_proc.h9 static int open_cpuinfo(CPUArchState *cpu_env, int fd) in open_cpuinfo() argument
11 ARMCPU *cpu = env_archcpu(cpu_env); in open_cpuinfo()
/openbmc/qemu/hw/intc/
H A Driscv_aclint.c134 CPURISCVState *env = cpu ? cpu_env(cpu) : NULL; in riscv_aclint_mtimer_read()
177 CPURISCVState *env = cpu ? cpu_env(cpu) : NULL; in riscv_aclint_mtimer_write()
236 CPURISCVState *env = cpu ? cpu_env(cpu) : NULL; in riscv_aclint_mtimer_write()
378 CPURISCVState *env = cpu ? cpu_env(cpu) : NULL; in riscv_aclint_mtimer_create()
412 CPURISCVState *env = cpu ? cpu_env(cpu) : NULL; in riscv_aclint_swi_read()
435 CPURISCVState *env = cpu ? cpu_env(cpu) : NULL; in riscv_aclint_swi_write()
/openbmc/qemu/bsd-user/i386/
H A Dtarget.h15 static inline bool regpairs_aligned(void *cpu_env) in regpairs_aligned() argument
/openbmc/qemu/bsd-user/x86_64/
H A Dtarget.h15 static inline bool regpairs_aligned(void *cpu_env) in regpairs_aligned() argument
/openbmc/qemu/bsd-user/arm/
H A Dtarget.h15 static inline bool regpairs_aligned(void *cpu_env) in regpairs_aligned() argument
/openbmc/qemu/linux-user/sparc/
H A Dtarget_proc.h9 static int open_cpuinfo(CPUArchState *cpu_env, int fd) in open_cpuinfo() argument
/openbmc/qemu/linux-user/m68k/
H A Dtarget_proc.h9 static int open_hardware(CPUArchState *cpu_env, int fd) in open_hardware() argument
/openbmc/qemu/linux-user/hppa/
H A Dtarget_proc.h9 static int open_cpuinfo(CPUArchState *cpu_env, int fd) in open_cpuinfo() argument

1234