| /openbmc/qemu/linux-user/hexagon/ |
| H A D | signal.c | 195 __get_user(env->gpr[HEX_REG_R00], &sc->r0); in restore_sigcontext() 196 __get_user(env->gpr[HEX_REG_R01], &sc->r1); in restore_sigcontext() 197 __get_user(env->gpr[HEX_REG_R02], &sc->r2); in restore_sigcontext() 198 __get_user(env->gpr[HEX_REG_R03], &sc->r3); in restore_sigcontext() 199 __get_user(env->gpr[HEX_REG_R04], &sc->r4); in restore_sigcontext() 200 __get_user(env->gpr[HEX_REG_R05], &sc->r5); in restore_sigcontext() 201 __get_user(env->gpr[HEX_REG_R06], &sc->r6); in restore_sigcontext() 202 __get_user(env->gpr[HEX_REG_R07], &sc->r7); in restore_sigcontext() 203 __get_user(env->gpr[HEX_REG_R08], &sc->r8); in restore_sigcontext() 204 __get_user(env->gpr[HEX_REG_R09], &sc->r9); in restore_sigcontext() [all …]
|
| /openbmc/qemu/linux-user/microblaze/ |
| H A D | signal.c | 90 __get_user(env->regs[0], &sc->regs.r0); in restore_sigcontext() 91 __get_user(env->regs[1], &sc->regs.r1); in restore_sigcontext() 92 __get_user(env->regs[2], &sc->regs.r2); in restore_sigcontext() 93 __get_user(env->regs[3], &sc->regs.r3); in restore_sigcontext() 94 __get_user(env->regs[4], &sc->regs.r4); in restore_sigcontext() 95 __get_user(env->regs[5], &sc->regs.r5); in restore_sigcontext() 96 __get_user(env->regs[6], &sc->regs.r6); in restore_sigcontext() 97 __get_user(env->regs[7], &sc->regs.r7); in restore_sigcontext() 98 __get_user(env->regs[8], &sc->regs.r8); in restore_sigcontext() 99 __get_user(env->regs[9], &sc->regs.r9); in restore_sigcontext() [all …]
|
| /openbmc/qemu/bsd-user/ |
| H A D | bsd-mem.c | 37 __get_user(host_ip->cuid, &target_ip->cuid); in target_to_host_ipc_perm__locked() 38 __get_user(host_ip->cgid, &target_ip->cgid); in target_to_host_ipc_perm__locked() 39 __get_user(host_ip->uid, &target_ip->uid); in target_to_host_ipc_perm__locked() 40 __get_user(host_ip->gid, &target_ip->gid); in target_to_host_ipc_perm__locked() 41 __get_user(host_ip->mode, &target_ip->mode); in target_to_host_ipc_perm__locked() 42 __get_user(host_ip->seq, &target_ip->seq); in target_to_host_ipc_perm__locked() 43 __get_user(host_ip->key, &target_ip->key); in target_to_host_ipc_perm__locked() 58 __get_user(host_sd->shm_segsz, &target_sd->shm_segsz); in target_to_host_shmid_ds() 59 __get_user(host_sd->shm_lpid, &target_sd->shm_lpid); in target_to_host_shmid_ds() 60 __get_user(host_sd->shm_cpid, &target_sd->shm_cpid); in target_to_host_shmid_ds() [all …]
|
| H A D | qemu.h | 336 # define __get_user(x, hptr) __get_user_e(x, hptr, be) macro 339 # define __get_user(x, hptr) __get_user_e(x, hptr, le) macro 370 __get_user((x), __hptr); \
|
| /openbmc/qemu/linux-user/m68k/ |
| H A D | signal.c | 101 __get_user(env->aregs[7], &sc->sc_usp); in restore_sigcontext() 102 __get_user(env->dregs[0], &sc->sc_d0); in restore_sigcontext() 103 __get_user(env->dregs[1], &sc->sc_d1); in restore_sigcontext() 104 __get_user(env->aregs[0], &sc->sc_a0); in restore_sigcontext() 105 __get_user(env->aregs[1], &sc->sc_a1); in restore_sigcontext() 106 __get_user(env->pc, &sc->sc_pc); in restore_sigcontext() 107 __get_user(temp, &sc->sc_sr); in restore_sigcontext() 220 __get_user(fpcr, &fpregs->f_fpcntl[0]); in target_rt_restore_fpu_state() 222 __get_user(env->fpsr, &fpregs->f_fpcntl[1]); in target_rt_restore_fpu_state() 227 __get_user(high, &fpregs->f_fpregs[i * 3]); in target_rt_restore_fpu_state() [all …]
|
| /openbmc/qemu/linux-user/sparc/ |
| H A D | signal.c | 156 __get_user(tstate, ®s->tstate); in restore_pt_regs() 166 __get_user(psr, ®s->psr); in restore_pt_regs() 172 __get_user(env->y, ®s->y); in restore_pt_regs() 175 __get_user(env->gregs[i], ®s->u_regs[i]); in restore_pt_regs() 178 __get_user(env->regwptr[WREG_O0 + i], ®s->u_regs[i + 8]); in restore_pt_regs() 221 __get_user(fprs, &fpu->si_fprs); in restore_fpu() 226 __get_user(env->fpr[i].ll, &fpu->si_double_regs[i]); in restore_fpu() 231 __get_user(env->fpr[i].ll, &fpu->si_double_regs[i]); in restore_fpu() 234 __get_user(env->gsr, &fpu->si_gsr); in restore_fpu() 238 __get_user(env->fpr[i].ll, &fpu->si_double_regs[i]); in restore_fpu() [all …]
|
| /openbmc/qemu/linux-user/arm/ |
| H A D | signal.c | 384 __get_user(env->regs[0], &sc->arm_r0); in restore_sigcontext() 385 __get_user(env->regs[1], &sc->arm_r1); in restore_sigcontext() 386 __get_user(env->regs[2], &sc->arm_r2); in restore_sigcontext() 387 __get_user(env->regs[3], &sc->arm_r3); in restore_sigcontext() 388 __get_user(env->regs[4], &sc->arm_r4); in restore_sigcontext() 389 __get_user(env->regs[5], &sc->arm_r5); in restore_sigcontext() 390 __get_user(env->regs[6], &sc->arm_r6); in restore_sigcontext() 391 __get_user(env->regs[7], &sc->arm_r7); in restore_sigcontext() 392 __get_user(env->regs[8], &sc->arm_r8); in restore_sigcontext() 393 __get_user(env->regs[9], &sc->arm_r9); in restore_sigcontext() [all …]
|
| /openbmc/qemu/linux-user/mips/ |
| H A D | signal.c | 144 __get_user(regs->CP0_EPC, &sc->sc_pc); in restore_sigcontext() 146 __get_user(regs->active_tc.HI[0], &sc->sc_mdhi); in restore_sigcontext() 147 __get_user(regs->active_tc.LO[0], &sc->sc_mdlo); in restore_sigcontext() 150 __get_user(regs->active_tc.gpr[i], &sc->sc_regs[i]); in restore_sigcontext() 153 __get_user(regs->active_tc.HI[1], &sc->sc_hi1); in restore_sigcontext() 154 __get_user(regs->active_tc.HI[2], &sc->sc_hi2); in restore_sigcontext() 155 __get_user(regs->active_tc.HI[3], &sc->sc_hi3); in restore_sigcontext() 156 __get_user(regs->active_tc.LO[1], &sc->sc_lo1); in restore_sigcontext() 157 __get_user(regs->active_tc.LO[2], &sc->sc_lo2); in restore_sigcontext() 158 __get_user(regs->active_tc.LO[3], &sc->sc_lo3); in restore_sigcontext() [all …]
|
| /openbmc/qemu/linux-user/ppc/ |
| H A D | signal.c | 342 __get_user(env->gpr[i], &frame->mc_gregs[i]); in restore_user_regs() 344 __get_user(env->nip, &frame->mc_gregs[TARGET_PT_NIP]); in restore_user_regs() 345 __get_user(env->ctr, &frame->mc_gregs[TARGET_PT_CTR]); in restore_user_regs() 346 __get_user(env->lr, &frame->mc_gregs[TARGET_PT_LNK]); in restore_user_regs() 348 __get_user(xer, &frame->mc_gregs[TARGET_PT_XER]); in restore_user_regs() 351 __get_user(ccr, &frame->mc_gregs[TARGET_PT_CCR]); in restore_user_regs() 357 __get_user(msr, &frame->mc_gregs[TARGET_PT_MSR]); in restore_user_regs() 372 __get_user(v_addr, &frame->v_regs); in restore_user_regs() 381 __get_user(avr->u64[PPC_VEC_HI], &vreg->u64[0]); in restore_user_regs() 382 __get_user(avr->u64[PPC_VEC_LO], &vreg->u64[1]); in restore_user_regs() [all …]
|
| /openbmc/qemu/linux-user/hppa/ |
| H A D | signal.c | 92 __get_user(psw, &sc->sc_gr[0]); in restore_sigcontext() 96 __get_user(env->gr[i], &sc->sc_gr[i]); in restore_sigcontext() 99 __get_user(env->fr[i], &sc->sc_fr[i]); in restore_sigcontext() 103 __get_user(env->iaoq_f, &sc->sc_iaoq[0]); in restore_sigcontext() 105 __get_user(env->iaoq_b, &sc->sc_iaoq[1]); in restore_sigcontext() 107 __get_user(env->cr[CR_SAR], &sc->sc_sar); in restore_sigcontext() 162 __get_user(dest, fdesc); in setup_rt_frame() 163 __get_user(env->gr[19], fdesc + 1); in setup_rt_frame()
|
| /openbmc/qemu/linux-user/loongarch64/ |
| H A D | signal.c | 285 __get_user(env->pc, &sc->sc_pc); in restore_sigframe() 287 __get_user(env->gpr[i], &sc->sc_regs[i]); in restore_sigframe() 295 __get_user(env->fpr[i].vreg.UD(0), &lasx_ctx->regs[4 * i]); in restore_sigframe() 296 __get_user(env->fpr[i].vreg.UD(1), &lasx_ctx->regs[4 * i + 1]); in restore_sigframe() 297 __get_user(env->fpr[i].vreg.UD(2), &lasx_ctx->regs[4 * i + 2]); in restore_sigframe() 298 __get_user(env->fpr[i].vreg.UD(3), &lasx_ctx->regs[4 * i + 3]); in restore_sigframe() 300 __get_user(fcc, &lasx_ctx->fcc); in restore_sigframe() 302 __get_user(env->fcsr0, &lasx_ctx->fcsr); in restore_sigframe() 309 __get_user(env->fpr[i].vreg.UD(0), &lsx_ctx->regs[2 * i]); in restore_sigframe() 310 __get_user(env->fpr[i].vreg.UD(1), &lsx_ctx->regs[2 * i + 1]); in restore_sigframe() [all …]
|
| /openbmc/qemu/linux-user/s390x/ |
| H A D | signal.c | 304 __get_user(env->regs[i], &sc->regs.gprs[i]); in restore_sigregs() 308 __get_user(mask, &sc->regs.psw.mask); in restore_sigregs() 309 __get_user(addr, &sc->regs.psw.addr); in restore_sigregs() 332 __get_user(env->aregs[i], &sc->regs.acrs[i]); in restore_sigregs() 334 __get_user(env->fpc, &sc->fpregs.fpc); in restore_sigregs() 336 __get_user(*get_freg(env, i), &sc->fpregs.fprs[i]); in restore_sigregs() 350 __get_user(env->vregs[i][1], &ext->vxrs_low[i]); in restore_sigregs_ext() 353 __get_user(env->vregs[i + 16][0], &ext->vxrs_high[i][0]); in restore_sigregs_ext() 354 __get_user(env->vregs[i + 16][1], &ext->vxrs_high[i][1]); in restore_sigregs_ext() 373 __get_user(target_set.sig[0], &frame->sc.oldmask[0]); in do_sigreturn()
|
| /openbmc/qemu/linux-user/aarch64/ |
| H A D | signal.c | 321 __get_user(env->xregs[i], &sf->uc.tuc_mcontext.regs[i]); in target_restore_general_frame() 324 __get_user(env->xregs[31], &sf->uc.tuc_mcontext.sp); in target_restore_general_frame() 325 __get_user(env->pc, &sf->uc.tuc_mcontext.pc); in target_restore_general_frame() 326 __get_user(pstate, &sf->uc.tuc_mcontext.pstate); in target_restore_general_frame() 336 __get_user(fpsr, &fpsimd->fpsr); in target_restore_fpsimd_record() 338 __get_user(fpcr, &fpsimd->fpcr); in target_restore_fpsimd_record() 344 __get_user(q[0], &fpsimd->vregs[i * 2 + 1]); in target_restore_fpsimd_record() 345 __get_user(q[1], &fpsimd->vregs[i * 2]); in target_restore_fpsimd_record() 347 __get_user(q[0], &fpsimd->vregs[i * 2]); in target_restore_fpsimd_record() 348 __get_user(q[1], &fpsimd->vregs[i * 2 + 1]); in target_restore_fpsimd_record() [all …]
|
| /openbmc/qemu/bsd-user/freebsd/ |
| H A D | os-proc.c | 206 __get_user(host_rk->rk_sig, &target_rk->rk_sig); in t2h_reaper_kill() 207 __get_user(host_rk->rk_flags, &target_rk->rk_flags); in t2h_reaper_kill() 208 __get_user(host_rk->rk_subtree, &target_rk->rk_subtree); in t2h_reaper_kill() 209 __get_user(host_rk->rk_killed, &target_rk->rk_killed); in t2h_reaper_kill() 210 __get_user(host_rk->rk_fpid, &target_rk->rk_fpid); in t2h_reaper_kill() 312 __get_user(target_rp_count, &target_rp->rp_count); in do_freebsd_procctl() 313 __get_user(target_rp_pids, &target_rp->rp_pids); in do_freebsd_procctl()
|
| H A D | os-stat.h | 581 __get_user(fl.l_type, &target_fl->l_type); in do_freebsd_fcntl() 582 __get_user(fl.l_whence, &target_fl->l_whence); in do_freebsd_fcntl() 583 __get_user(fl.l_start, &target_fl->l_start); in do_freebsd_fcntl() 584 __get_user(fl.l_len, &target_fl->l_len); in do_freebsd_fcntl() 585 __get_user(fl.l_pid, &target_fl->l_pid); in do_freebsd_fcntl() 586 __get_user(fl.l_sysid, &target_fl->l_sysid); in do_freebsd_fcntl() 608 __get_user(fl.l_type, &target_fl->l_type); in do_freebsd_fcntl() 609 __get_user(fl.l_whence, &target_fl->l_whence); in do_freebsd_fcntl() 610 __get_user(fl.l_start, &target_fl->l_start); in do_freebsd_fcntl() 611 __get_user(fl.l_len, &target_fl->l_len); in do_freebsd_fcntl() [all …]
|
| H A D | os-stat.c | 149 __get_user(host_fh->fh_fsid.val[0], &target_fh->fh_fsid.val[0]); in t2h_freebsd_fhandle() 150 __get_user(host_fh->fh_fsid.val[1], &target_fh->fh_fsid.val[0]); in t2h_freebsd_fhandle() 151 __get_user(host_fh->fh_fid.fid_len, &target_fh->fh_fid.fid_len); in t2h_freebsd_fhandle()
|
| /openbmc/qemu/linux-user/riscv/ |
| H A D | signal.c | 151 __get_user(env->pc, &sc->pc); in restore_sigcontext() 154 __get_user(env->gpr[i], &sc->gpr[i - 1]); in restore_sigcontext() 157 __get_user(env->fpr[i], &sc->fpr[i]); in restore_sigcontext() 161 __get_user(fcsr, &sc->fcsr); in restore_sigcontext() 173 __get_user(target_set.sig[i], &(uc->uc_sigmask.sig[i])); in restore_ucontext()
|
| /openbmc/qemu/linux-user/xtensa/ |
| H A D | signal.c | 253 __get_user(env->pc, &sc->sc_pc); in restore_sigcontext() 254 __get_user(ps, &sc->sc_ps); in restore_sigcontext() 255 __get_user(env->sregs[LBEG], &sc->sc_lbeg); in restore_sigcontext() 256 __get_user(env->sregs[LEND], &sc->sc_lend); in restore_sigcontext() 257 __get_user(env->sregs[LCOUNT], &sc->sc_lcount); in restore_sigcontext() 267 __get_user(env->regs[i], sc->sc_a + i); in restore_sigcontext()
|
| /openbmc/qemu/linux-user/sh4/ |
| H A D | signal.c | 151 #define COPY(x) __get_user(regs->x, &sc->sc_##x) in restore_sigcontext() 166 __get_user(regs->fregs[i], &sc->sc_fpregs[i]); in restore_sigcontext() 168 __get_user(regs->fpscr, &sc->sc_fpscr); in restore_sigcontext() 169 __get_user(regs->fpul, &sc->sc_fpul); in restore_sigcontext() 286 __get_user(target_set.sig[0], &frame->sc.oldmask); in do_sigreturn() 288 __get_user(target_set.sig[i], &frame->extramask[i - 1]); in do_sigreturn()
|
| /openbmc/qemu/linux-user/alpha/ |
| H A D | signal.c | 101 __get_user(env->pc, &sc->sc_pc); in restore_sigcontext() 104 __get_user(env->ir[i], &sc->sc_regs[i]); in restore_sigcontext() 107 __get_user(env->fir[i], &sc->sc_fpregs[i]); in restore_sigcontext() 110 __get_user(fpcr, &sc->sc_fpcr); in restore_sigcontext() 221 __get_user(target_set.sig[0], &sc->sc_mask); in do_sigreturn()
|
| /openbmc/qemu/linux-user/openrisc/ |
| H A D | signal.c | 49 __get_user(v, &sc->regs.gpr[i]); in restore_sigcontext() 52 __get_user(env->pc, &sc->regs.pc); in restore_sigcontext() 55 __get_user(v, &sc->regs.sr); in restore_sigcontext()
|
| /openbmc/qemu/linux-user/ |
| H A D | signal.c | 307 __get_user(ss.ss_sp, &uss->ss_sp); in target_restore_altstack() 308 __get_user(ss.ss_size, &uss->ss_size); in target_restore_altstack() 309 __get_user(ss.ss_flags, &uss->ss_flags); in target_restore_altstack() 494 __get_user(info->si_signo, &tinfo->si_signo); in target_to_host_siginfo() 495 __get_user(info->si_errno, &tinfo->si_errno); in target_to_host_siginfo() 496 __get_user(info->si_code, &tinfo->si_code); in target_to_host_siginfo() 497 __get_user(info->si_pid, &tinfo->_sifields._rt._pid); in target_to_host_siginfo() 498 __get_user(info->si_uid, &tinfo->_sifields._rt._uid); in target_to_host_siginfo() 499 __get_user(sival_ptr, &tinfo->_sifields._rt._sigval.sival_ptr); in target_to_host_siginfo() 1198 __get_user(k->_sa_handler, &act->_sa_handler); in do_sigaction() [all …]
|
| H A D | qemu.h | 251 # define __get_user(x, hptr) __get_user_e(x, hptr, be) macro 254 # define __get_user(x, hptr) __get_user_e(x, hptr, le) macro 281 __get_user((x), __hptr); \
|
| H A D | syscall.c | 921 __get_user(b, &target_fds[i]); in copy_from_user_fdset() 1110 __get_user(tv->tv_sec, &target_tv->tv_sec); in copy_from_user_timeval() 1111 __get_user(tv->tv_usec, &target_tv->tv_usec); in copy_from_user_timeval() 1145 __get_user(tv->tv_sec, &target_tv->tv_sec); in copy_from_user_timeval64() 1146 __get_user(tv->tv_usec, &target_tv->tv_usec); in copy_from_user_timeval64() 1188 __get_user(host_ts->tv_sec, &target_ts->tv_sec); in target_to_host_timespec() 1189 __get_user(host_ts->tv_nsec, &target_ts->tv_nsec); in target_to_host_timespec() 1214 __get_user(host_ts->tv_sec, &target_ts->tv_sec); in target_to_host_timespec64() 1215 __get_user(host_ts->tv_nsec, &target_ts->tv_nsec); in target_to_host_timespec64() 1280 __get_user(tz->tz_minuteswest, &target_tz->tz_minuteswest); in copy_from_user_timezone() [all …]
|
| /openbmc/qemu/bsd-user/arm/ |
| H A D | signal.c | 199 __get_user(*aa32_vfp_dreg(env, i), &vfp->mcv_reg[i]); in set_mcontext() 201 __get_user(fpscr, &vfp->mcv_fpscr); in set_mcontext()
|