Home
last modified time | relevance | path

Searched refs:npc (Results 1 – 25 of 62) sorted by relevance

123

/openbmc/linux/arch/sparc/kernel/
H A Dtraps_32.c107 void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_illegal_instruction() argument
120 void do_priv_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_priv_instruction() argument
130 void do_memaccess_unaligned(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_memaccess_unaligned() argument
134 printk("KERNEL MNA at pc %08lx npc %08lx called by %08lx\n", pc, npc, in do_memaccess_unaligned()
156 void do_fpd_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_fpd_trap() argument
198 void do_fpe_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, argument
269 regs->pc = regs->npc;
270 regs->npc += 4;
301 void handle_tag_overflow(struct pt_regs *regs, unsigned long pc, unsigned long npc, argument
309 void handle_watchpoint(struct pt_regs *regs, unsigned long pc, unsigned long npc, argument
[all …]
H A Dentry.h16 unsigned long npc, unsigned long psr);
19 unsigned long npc, unsigned long psr);
21 unsigned long npc, unsigned long psr);
23 unsigned long npc, unsigned long psr);
25 unsigned long npc, unsigned long psr);
27 unsigned long npc, unsigned long psr);
29 unsigned long npc, unsigned long psr);
31 unsigned long npc, unsigned long psr);
33 unsigned long npc, unsigned long psr);
35 unsigned long npc, unsigned long psr);
H A Dsignal_32.c76 unsigned long up_psr, pc, npc, ufp; in do_sigreturn() local
101 err |= __get_user(npc, &sf->info.si_regs.npc); in do_sigreturn()
103 if ((pc | npc) & 3) in do_sigreturn()
144 unsigned int psr, pc, npc, ufp; in do_rt_sigreturn() local
162 err |= __get_user(npc, &sf->regs.npc); in do_rt_sigreturn()
163 err |= ((pc | npc) & 0x03); in do_rt_sigreturn()
186 regs->npc = npc; in do_rt_sigreturn()
298 regs->npc = (regs->pc + 4); in setup_frame()
345 err |= __put_user(regs->npc, &sf->regs.npc); in setup_rt_frame()
396 regs->npc = (regs->pc + 4); in setup_rt_frame()
[all …]
H A Dkgdb_32.c42 gdb_regs[GDB_NPC] = regs->npc; in pt_regs_to_gdb_regs()
100 regs->npc = gdb_regs[GDB_NPC]; in gdb_regs_to_pt_regs()
123 linux_regs->npc = addr + 4; in kgdb_arch_handle_exception()
130 linux_regs->pc = linux_regs->npc; in kgdb_arch_handle_exception()
131 linux_regs->npc += 4; in kgdb_arch_handle_exception()
166 regs->npc = regs->pc + 4; in kgdb_arch_set_pc()
H A Dsignal32.c89 unsigned int pc, npc; in do_sigreturn32() local
113 __get_user(npc, &sf->info.si_regs.npc)) in do_sigreturn32()
116 if ((pc | npc) & 3) in do_sigreturn32()
121 npc &= 0xffffffff; in do_sigreturn32()
124 regs->tnpc = npc; in do_sigreturn32()
177 unsigned int psr, pc, npc, ufp; in do_rt_sigreturn32() local
201 __get_user(npc, &sf->regs.npc)) in do_rt_sigreturn32()
204 if ((pc | npc) & 3) in do_rt_sigreturn32()
209 npc &= 0xffffffff; in do_rt_sigreturn32()
212 regs->tnpc = npc; in do_rt_sigreturn32()
[all …]
H A Dunaligned_32.c201 regs->pc = regs->npc; in advance()
202 regs->npc += 4; in advance()
237 regs->npc = regs->pc + 4; in kernel_mna_trap_fault()
H A Dptrace_32.c101 membuf_store(&to, regs->npc); in genregs32_get()
152 &regs->npc, in genregs32_set()
255 membuf_store(&to, regs->npc); in getregs_get()
280 regs->npc = v[2]; in setregs_set()
H A Dsyscalls.S268 ldx [%sp + PTREGS_OFF + PT_V9_TNPC], %l1 ! pc = npc
276 add %l1, 0x4, %l2 ! npc = npc+4
287 ldx [%sp + PTREGS_OFF + PT_V9_TNPC], %l1 ! pc = npc
H A Dsys_sparc_32.c152 printk ("TRAP: Entering kernel PC=%x, nPC=%x\n", regs->pc, regs->npc); in sparc_breakpoint()
157 printk ("TRAP: Returning to space: PC=%x nPC=%x\n", regs->pc, regs->npc); in sparc_breakpoint()
/openbmc/linux/arch/powerpc/platforms/cell/spufs/
H A Drun.c176 static int spu_run_init(struct spu_context *ctx, u32 *npc) in spu_run_init() argument
222 ctx->ops->npc_write(ctx, *npc); in spu_run_init()
244 static int spu_run_fini(struct spu_context *ctx, u32 *npc, in spu_run_fini() argument
252 *npc = ctx->ops->npc_read(ctx); in spu_run_fini()
274 unsigned int *npc) in spu_handle_restartsys() argument
286 *npc -= 8; in spu_handle_restartsys()
312 u32 ls_pointer, npc; in spu_process_callback() local
318 npc = ctx->ops->npc_read(ctx) & ~3; in spu_process_callback()
320 ls_pointer = in_be32(ls + npc); in spu_process_callback()
328 npc += 4; in spu_process_callback()
[all …]
H A Dsyscalls.c40 u32 npc, status; in do_spu_run() local
43 if (get_user(npc, unpc)) in do_spu_run()
52 ret = spufs_run_spu(i->i_ctx, &npc, &status); in do_spu_run()
54 if (put_user(npc, unpc)) in do_spu_run()
/openbmc/linux/drivers/usb/misc/
H A Donboard_usb_hub_pdevs.c70 struct device_node *np, *npc; in onboard_hub_create_pdevs() local
88 npc = of_parse_phandle(np, "peer-hub", 0); in onboard_hub_create_pdevs()
89 if (npc) { in onboard_hub_create_pdevs()
91 of_node_put(npc); in onboard_hub_create_pdevs()
95 pdev = of_find_device_by_node(npc); in onboard_hub_create_pdevs()
96 of_node_put(npc); in onboard_hub_create_pdevs()
/openbmc/qemu/linux-user/sparc/
H A Dsignal.c138 __put_user(env->npc, &regs->npc); in save_pt_regs()
296 env->npc = env->pc + 4; in setup_frame()
358 env->npc = env->pc + 4; in setup_rt_frame()
381 abi_ulong pc, npc, ptr; in do_sigreturn() local
402 __get_user(npc, &sf->regs.npc); in do_sigreturn()
403 if ((pc | npc) & 3) { in do_sigreturn()
410 env->npc = npc; in do_sigreturn()
469 __get_user(tnpc, &sf->regs.npc); in do_rt_sigreturn()
497 env->npc = tnpc; in do_rt_sigreturn()
591 target_ulong pc, npc, tstate; in sparc64_set_context() local
[all …]
H A Dcpu_loop.c154 env->pc = env->npc; in next_instruction()
155 env->npc = env->npc + 4; in next_instruction()
243 env->pc = env->npc; in cpu_loop()
244 env->npc = env->npc + 4; in cpu_loop()
364 env->npc = regs->npc; in target_cpu_copy_regs()
H A Dtarget_cpu.h73 env->pc = env->npc; in cpu_clone_regs_child()
74 env->npc = env->npc + 4; in cpu_clone_regs_child()
H A Dtarget_syscall.h9 abi_ulong npc; member
17 abi_ulong npc; member
/openbmc/linux/arch/parisc/kernel/
H A Dunwind.c277 unsigned long npc; in unwind_frame_regs() local
330 for (npc = e->region_start; in unwind_frame_regs()
333 npc < info->ip; in unwind_frame_regs()
334 npc += 4) { in unwind_frame_regs()
336 insn = *(unsigned int *)npc; in unwind_frame_regs()
344 insn, npc, frame_size); in unwind_frame_regs()
350 insn, npc, frame_size); in unwind_frame_regs()
356 "-20(sp) @ %lx\n", info->ip, npc); in unwind_frame_regs()
362 "-16(sp) @ %lx\n", info->ip, npc); in unwind_frame_regs()
381 info->prev_ip, npc); in unwind_frame_regs()
/openbmc/qemu/target/sparc/
H A Dint32_helper.c153 env->pc = env->npc; in sparc_cpu_do_interrupt()
154 env->npc = env->npc + 4; in sparc_cpu_do_interrupt()
161 env->regwptr[10] = env->npc; in sparc_cpu_do_interrupt()
166 env->npc = env->pc + 4; in sparc_cpu_do_interrupt()
H A Dgdbstub.c64 return gdb_get_rega(mem_buf, env->npc); in sparc_cpu_gdb_read_register()
94 return gdb_get_regl(mem_buf, env->npc); in sparc_cpu_gdb_read_register()
160 env->npc = tmp; in sparc_cpu_gdb_write_register()
194 env->npc = tmp; in sparc_cpu_gdb_write_register()
H A Dtranslate.c168 target_ulong npc; member
174 target_ulong npc; /* next PC: integer or DYNAMIC_PC or JUMP_PC */ member
365 static bool use_goto_tb(DisasContext *s, target_ulong pc, target_ulong npc) in use_goto_tb() argument
368 translator_use_goto_tb(&s->base, npc); in use_goto_tb()
372 target_ulong pc, target_ulong npc) in gen_goto_tb() argument
374 if (use_goto_tb(s, pc, npc)) { in gen_goto_tb()
378 tcg_gen_movi_tl(cpu_npc, npc); in gen_goto_tb()
383 tcg_gen_movi_tl(cpu_npc, npc); in gen_goto_tb()
1022 if (dc->npc == JUMP_PC) { in flush_cond()
1024 dc->npc = DYNAMIC_PC_LOOKUP; in flush_cond()
[all …]
H A Dhelper.c211 env->pc = env->npc; in helper_power_down()
212 env->npc = env->pc + 4; in helper_power_down()
/openbmc/linux/Documentation/filesystems/spufs/
H A Dspu_run.rst20 int spu_run(int fd, unsigned int *npc, unsigned int *event);
29 passed in npc.
38 is written back to npc, so you can call spu_run again without updating
97 EFAULT npc is not a valid pointer or status is neither NULL nor a valid
100 EINTR A signal occurred while spu_run was in progress. The npc value
/openbmc/qemu/target/avr/
H A Dtranslate.c89 target_long npc; member
175 return translator_lduw(ctx->env, &ctx->base, ctx->npc++ * 2); in next_word()
1003 int dst = ctx->npc + a->imm; in trans_RJMP()
1071 int ret = ctx->npc; in trans_RCALL()
1072 int dst = ctx->npc + a->imm; in trans_RCALL()
1093 int ret = ctx->npc; in trans_ICALL()
1115 int ret = ctx->npc; in trans_EICALL()
1136 int ret = ctx->npc; in trans_CALL()
1366 gen_goto_tb(ctx, 0, ctx->npc + a->imm); in trans_BRBC()
1415 gen_goto_tb(ctx, 0, ctx->npc + a->imm); in trans_BRBS()
[all …]
/openbmc/linux/arch/sparc/include/uapi/asm/
H A Dptrace.h46 unsigned int npc; member
107 unsigned long npc; member
/openbmc/qemu/contrib/plugins/
H A Dcflow.c236 uint64_t npc = qemu_plugin_u64_get(pc_after_block, cpu_index); in vcpu_tb_branched_exec() local
250 g_assert(pc != npc); in vcpu_tb_branched_exec()
257 __func__, pc, ebpc, npc, lpc); in vcpu_tb_branched_exec()

123