| /openbmc/qemu/linux-user/sh4/ |
| H A D | signal.c | 99 if (regs->gregs[15] >= -128u && regs->pc < regs->gregs[0]) { in unwind_gusa() 103 regs->pc = regs->gregs[0] + regs->gregs[15] - 2; in unwind_gusa() 106 regs->gregs[15] = regs->gregs[1]; in unwind_gusa() 107 } else if (regs->gregs[15] >= -128u && regs->pc == regs->gregs[0]) { in unwind_gusa() 111 regs->gregs[15] = regs->gregs[1]; in unwind_gusa() 124 COPY(gregs[0]); COPY(gregs[1]); in setup_sigcontext() 125 COPY(gregs[2]); COPY(gregs[3]); in setup_sigcontext() 126 COPY(gregs[4]); COPY(gregs[5]); in setup_sigcontext() 127 COPY(gregs[6]); COPY(gregs[7]); in setup_sigcontext() 128 COPY(gregs[8]); COPY(gregs[9]); in setup_sigcontext() [all …]
|
| H A D | cpu_loop.c | 43 env->gregs[3], in cpu_loop() 44 env->gregs[4], in cpu_loop() 45 env->gregs[5], in cpu_loop() 46 env->gregs[6], in cpu_loop() 47 env->gregs[7], in cpu_loop() 48 env->gregs[0], in cpu_loop() 49 env->gregs[1], in cpu_loop() 54 env->gregs[0] = ret; in cpu_loop() 89 env->gregs[15] = info->start_stack; in target_cpu_copy_regs()
|
| H A D | target_cpu.h | 26 env->gregs[15] = newsp; in cpu_clone_regs_child() 28 env->gregs[0] = 0; in cpu_clone_regs_child() 42 return state->gregs[15]; in get_sp_from_cpustate()
|
| /openbmc/qemu/linux-user/m68k/ |
| H A D | signal.c | 57 target_gregset_t gregs; member 185 target_greg_t *gregs = uc->tuc_mcontext.gregs; in target_rt_setup_ucontext() local 189 __put_user(env->dregs[0], &gregs[0]); in target_rt_setup_ucontext() 190 __put_user(env->dregs[1], &gregs[1]); in target_rt_setup_ucontext() 191 __put_user(env->dregs[2], &gregs[2]); in target_rt_setup_ucontext() 192 __put_user(env->dregs[3], &gregs[3]); in target_rt_setup_ucontext() 193 __put_user(env->dregs[4], &gregs[4]); in target_rt_setup_ucontext() 194 __put_user(env->dregs[5], &gregs[5]); in target_rt_setup_ucontext() 195 __put_user(env->dregs[6], &gregs[6]); in target_rt_setup_ucontext() 196 __put_user(env->dregs[7], &gregs[7]); in target_rt_setup_ucontext() [all …]
|
| /openbmc/qemu/target/sh4/ |
| H A D | gdbstub.c | 34 return gdb_get_regl(mem_buf, env->gregs[n + 16]); in superh_cpu_gdb_read_register() 36 return gdb_get_regl(mem_buf, env->gregs[n]); in superh_cpu_gdb_read_register() 39 return gdb_get_regl(mem_buf, env->gregs[n]); in superh_cpu_gdb_read_register() 68 return gdb_get_regl(mem_buf, env->gregs[n - 43]); in superh_cpu_gdb_read_register() 70 return gdb_get_regl(mem_buf, env->gregs[n - (51 - 16)]); in superh_cpu_gdb_read_register() 83 env->gregs[n + 16] = ldl_p(mem_buf); in superh_cpu_gdb_write_register() 85 env->gregs[n] = ldl_p(mem_buf); in superh_cpu_gdb_write_register() 89 env->gregs[n] = ldl_p(mem_buf); in superh_cpu_gdb_write_register() 132 env->gregs[n - 43] = ldl_p(mem_buf); in superh_cpu_gdb_write_register() 135 env->gregs[n - (51 - 16)] = ldl_p(mem_buf); in superh_cpu_gdb_write_register()
|
| /openbmc/qemu/linux-user/include/host/i386/ |
| H A D | host-signal.h | 19 return uc->uc_mcontext.gregs[REG_EIP]; in host_signal_pc() 24 uc->uc_mcontext.gregs[REG_EIP] = pc; in host_signal_set_pc() 34 return uc->uc_mcontext.gregs[REG_TRAPNO] == 0xe in host_signal_write() 35 && (uc->uc_mcontext.gregs[REG_ERR] & 0x2); in host_signal_write()
|
| /openbmc/qemu/linux-user/include/host/x86_64/ |
| H A D | host-signal.h | 18 return uc->uc_mcontext.gregs[REG_RIP]; in host_signal_pc() 23 uc->uc_mcontext.gregs[REG_RIP] = pc; in host_signal_set_pc() 33 return uc->uc_mcontext.gregs[REG_TRAPNO] == 0xe in host_signal_write() 34 && (uc->uc_mcontext.gregs[REG_ERR] & 0x2); in host_signal_write()
|
| /openbmc/qemu/target/sparc/ |
| H A D | monitor.c | 60 { "g0", offsetof(CPUSPARCState, gregs[0]) }, 61 { "g1", offsetof(CPUSPARCState, gregs[1]) }, 62 { "g2", offsetof(CPUSPARCState, gregs[2]) }, 63 { "g3", offsetof(CPUSPARCState, gregs[3]) }, 64 { "g4", offsetof(CPUSPARCState, gregs[4]) }, 65 { "g5", offsetof(CPUSPARCState, gregs[5]) }, 66 { "g6", offsetof(CPUSPARCState, gregs[6]) }, 67 { "g7", offsetof(CPUSPARCState, gregs[7]) },
|
| H A D | win_helper.c | 31 sizeof(env->gregs)); in cpu_set_cwp() 38 sizeof(env->gregs)); in cpu_set_cwp() 353 memcpy(dst, env->gregs, sizeof(env->gregs)); in cpu_gl_switch_gregs() 354 memcpy(env->gregs, src, sizeof(env->gregs)); in cpu_gl_switch_gregs() 385 memcpy(dst, env->gregs, sizeof(env->gregs)); in cpu_change_pstate() 386 memcpy(env->gregs, src, sizeof(env->gregs)); in cpu_change_pstate()
|
| /openbmc/openbmc/poky/meta/recipes-support/libunwind/libunwind/ |
| H A D | 0005-Handle-musl-on-PPC32.patch | 45 - addr = &uc->uc_mcontext.uc_regs->gregs[reg - UNW_PPC32_R0]; 46 + addr = &_UCONTEXT_UC_REGS(uc)->gregs[reg - UNW_PPC32_R0]; 63 - addr = &uc->uc_mcontext.uc_regs->gregs[gregs_idx]; 64 + addr = &_UCONTEXT_UC_REGS(uc)->gregs[gregs_idx]; 77 …#define _UC_MCONTEXT_GPR(x) ( ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[x] - (void *)&dmy_ctxt… 80 +#define _UC_MCONTEXT_GPR(x) ( ((void *)&dmy_ctxt.uc_regs->gregs[x] - (void *)&dmy_ctxt) )
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/gperftools/gperftools/ |
| H A D | ppc-musl.patch | 46 - result[n] = (void*) sigframe->mctx.gregs[PT_NIP]; 47 + result[n] = (void*) sigframe->mctx.gregs[32]; 56 result[n] = (void*) sigframe->uc.uc_mcontext.uc_regs->gregs[PT_NIP]; 58 + result[n] = (void*) sigframe->uc.uc_mcontext.gregs[32];
|
| /openbmc/qemu/linux-user/sparc/ |
| H A D | signal.c | 144 __put_user(env->gregs[i], ®s->u_regs[i]); in save_pt_regs() 177 __get_user(env->gregs[i], ®s->u_regs[i]); in restore_pt_regs() 631 __get_user(env->gregs[1], (&(*grp)[SPARC_MC_G1])); in sparc64_set_context() 632 __get_user(env->gregs[2], (&(*grp)[SPARC_MC_G2])); in sparc64_set_context() 633 __get_user(env->gregs[3], (&(*grp)[SPARC_MC_G3])); in sparc64_set_context() 634 __get_user(env->gregs[4], (&(*grp)[SPARC_MC_G4])); in sparc64_set_context() 635 __get_user(env->gregs[5], (&(*grp)[SPARC_MC_G5])); in sparc64_set_context() 636 __get_user(env->gregs[6], (&(*grp)[SPARC_MC_G6])); in sparc64_set_context() 753 __put_user(env->gregs[1], &((*grp)[SPARC_MC_G1])); in sparc64_get_context() 754 __put_user(env->gregs[ in sparc64_get_context() [all...] |
| H A D | cpu_loop.c | 227 ret = do_syscall (env, env->gregs[1], in cpu_loop() 263 env->gregs[1] = do_getcc(env); in cpu_loop() 267 do_setcc(env, env->gregs[1]); in cpu_loop() 271 env->gregs[1] = do_getpsr(env); in cpu_loop()
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-multimedia/jack/a2jmidid/ |
| H A D | ppc_musl_ucontext.patch | 2 correct gregs and context structure definitions 15 + ucontext->uc_regs->gregs[i]
|
| H A D | riscv_ucontext.patch | 1 Add riscv specific checks to choose correct gregs and context structure definitions 17 ucontext->uc_mcontext.gregs[i]
|
| /openbmc/qemu/tests/tcg/x86_64/ |
| H A D | noexec.c | 5 return (void *)ctx->gregs[REG_RIP]; in arch_mcontext_pc() 10 return ctx->gregs[REG_RDI]; in arch_mcontext_arg()
|
| /openbmc/u-boot/arch/mips/mach-ath79/ |
| H A D | reset.c | 79 void __iomem *gregs = map_physmem(AR933X_GMAC_BASE, AR933X_GMAC_SIZE, in eth_init_ar933x() local 101 clrsetbits_be32(gregs + AR933X_GMAC_REG_ETH_CFG, in eth_init_ar933x() 114 void __iomem *gregs = map_physmem(AR934X_GMAC_BASE, AR934X_GMAC_SIZE, in eth_init_ar934x() local 134 writel(AR934X_ETH_CFG_RGMII_GMAC0, gregs + AR934X_GMAC_REG_ETH_CFG); in eth_init_ar934x()
|
| /openbmc/u-boot/drivers/mtd/nand/raw/ |
| H A D | fsl_ifc_nand.c | 773 ifc_ctrl->regs.gregs = IFC_FCM_BASE_ADDR; in fsl_ifc_ctrl_init() 775 ver = ifc_in32(&ifc_ctrl->regs.gregs->ifc_rev); in fsl_ifc_ctrl_init() 829 csor = ifc_in32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor); in fsl_ifc_sram_init() 830 csor_ext = ifc_in32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext); in fsl_ifc_sram_init() 834 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor, csor_8k); in fsl_ifc_sram_init() 835 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext, 0x0000400); in fsl_ifc_sram_init() 875 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor, csor); in fsl_ifc_sram_init() 876 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext, csor_ext); in fsl_ifc_sram_init() 887 struct fsl_ifc_fcm *gregs = NULL; in fsl_ifc_chip_init() local 903 gregs = ifc_ctrl->regs.gregs; in fsl_ifc_chip_init() [all …]
|
| H A D | fsl_ifc_spl.c | 58 ver = ifc_in32(®s.gregs->ifc_rev); in runtime_regs_address() 109 struct fsl_ifc_fcm *gregs = (void *)CONFIG_SYS_IFC_ADDR; in nand_spl_load_image() local 152 ver = ifc_in32(&gregs->ifc_rev); in nand_spl_load_image()
|
| /openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
| H A D | cpu_init_early.c | 72 ifc_out32(&(ifc_regs.gregs->cspr_cs[0].cspr), CONFIG_SYS_CSPR0); in setup_ifc() 73 ifc_out32(&(ifc_regs.gregs->csor_cs[0].csor), CONFIG_SYS_CSOR0); in setup_ifc() 74 ifc_out32(&(ifc_regs.gregs->amask_cs[0].amask), CONFIG_SYS_AMASK0); in setup_ifc()
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/redis/redis/ |
| H A D | 0006-Define-correct-gregs-for-RISCV32.patch | 4 Subject: [PATCH] Define correct gregs for RISCV32 28 GET_SET_RETURN(uc->uc_mcontext.gregs[14], eip); 30 GET_SET_RETURN(uc->uc_mcontext.gregs[16], eip);
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/redis/redis-7.2.8/ |
| H A D | 0006-Define-correct-gregs-for-RISCV32.patch | 4 Subject: [PATCH] Define correct gregs for RISCV32 28 GET_SET_RETURN(uc->uc_mcontext.gregs[14], eip); 30 GET_SET_RETURN(uc->uc_mcontext.gregs[16], eip);
|
| /openbmc/qemu/hw/net/ |
| H A D | sungem.c | 221 uint32_t gregs[SUNGEM_MMIO_GREG_SIZE >> 2]; member 243 mask = s->gregs[GREG_IMASK >> 2]; in sungem_eval_irq() 244 stat = s->gregs[GREG_STAT >> 2] & ~GREG_STAT_TXNR; in sungem_eval_irq() 256 stat = s->gregs[GREG_STAT >> 2]; in sungem_update_status() 262 s->gregs[GREG_STAT >> 2] = stat; in sungem_update_status() 740 s->gregs[GREG_IMASK >> 2] = 0xFFFFFFF; in sungem_reset_all() 741 s->gregs[GREG_STAT >> 2] = 0; in sungem_reset_all() 745 s->gregs[GREG_SWRST >> 2] = 0; in sungem_reset_all() 750 s->gregs[GREG_SWRST >> 2] &= GREG_SWRST_RSTOUT; in sungem_reset_all() 855 s->gregs[GREG_STAT >> 2] &= ~val; in sungem_mmio_greg_write() [all …]
|
| /openbmc/qemu/tests/tcg/i386/ |
| H A D | test-flags.c | 13 flags = uc->uc_mcontext.gregs[REG_EFL]; in sigsegv()
|
| /openbmc/qemu/hw/sparc64/ |
| H A D | sparc64.c | 121 env->gregs[1] = 0; /* Memory start */ in main_cpu_reset() 122 env->gregs[2] = current_machine->ram_size; /* Memory size */ in main_cpu_reset() 123 env->gregs[3] = 0; /* Machine description XXX */ in main_cpu_reset()
|