Home
last modified time | relevance | path

Searched refs:tf_spsr (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/sys/cddl/dev/kinst/aarch64/
H A Dkinst_isa.c61 res = (frame->tf_spsr & PSR_Z) != 0; in kinst_emulate()
64 res = (frame->tf_spsr & PSR_C) != 0; in kinst_emulate()
67 res = (frame->tf_spsr & PSR_N) != 0; in kinst_emulate()
70 res = (frame->tf_spsr & PSR_V) != 0; in kinst_emulate()
73 res = ((frame->tf_spsr & PSR_C) != 0) && in kinst_emulate()
74 ((frame->tf_spsr & PSR_Z) == 0); in kinst_emulate()
77 res = ((frame->tf_spsr & PSR_N) != 0) == in kinst_emulate()
78 ((frame->tf_spsr & PSR_V) != 0); in kinst_emulate()
81 res = ((frame->tf_spsr & PSR_Z) == 0) && in kinst_emulate()
82 (((frame->tf_spsr & PSR_N) != 0) == in kinst_emulate()
[all …]
/freebsd/sys/arm/arm/
H A Dvm_machdep.c140 tf->tf_spsr &= ~PSR_C; in cpu_fork()
159 frame->tf_spsr &= ~PSR_C; /* carry bit */ in cpu_set_syscall_retval()
165 if ((frame->tf_spsr & PSR_T) != 0) in cpu_set_syscall_retval()
175 frame->tf_spsr |= PSR_C; /* carry bit */ in cpu_set_syscall_retval()
199 td->td_frame->tf_spsr &= ~PSR_C; in cpu_copy_thread()
224 tf->tf_spsr = PSR_USR32_MODE; in cpu_set_upcall()
226 tf->tf_spsr |= PSR_T; in cpu_set_upcall()
H A Dexec_machdep.c86 tf->tf_spsr = PSR_USR32_MODE; in exec_setregs()
88 tf->tf_spsr |= PSR_T; in exec_setregs()
171 gr[_REG_CPSR] = tf->tf_spsr & ~PSR_C; in get_mcontext()
174 gr[_REG_CPSR] = tf->tf_spsr; in get_mcontext()
267 tf->tf_spsr = gr[_REG_CPSR]; in set_mcontext()
357 tf->tf_spsr |= PSR_T; in sendsig()
359 tf->tf_spsr &= ~PSR_T; in sendsig()
H A Dundefined.c175 if ((frame->tf_spsr & PSR_T) == 0 && in gdb_trapper()
227 if (__predict_true(frame->tf_spsr & PSR_I) == 0) in undefinedinstruction()
241 if ((frame->tf_spsr & PSR_T) == 0) { in undefinedinstruction()
298 if ((frame->tf_spsr & PSR_MODE) == PSR_USR32_MODE) { in undefinedinstruction()
H A Dmachdep_kdb.c99 regs->r_cpsr = tf->tf_spsr; in fill_regs()
138 tf->tf_spsr &= ~PSR_FLAGS; in set_regs()
139 tf->tf_spsr |= regs->r_cpsr & PSR_FLAGS; in set_regs()
H A Dtrap-v6.c405 if (__predict_true(tf->tf_spsr & PSR_I) == 0) in abort_handler()
572 printf("spsr=%08x\n", tf->tf_spsr); in abort_fatal()
576 printf("trapframe: %p, spsr=%08x\n", tf, tf->tf_spsr); in abort_fatal()
H A Dmachdep_ptrace.c133 if ((td->td_frame->tf_spsr & PSR_T) != 0) in ptrace_single_step()
188 if ((td->td_frame->tf_spsr & PSR_T) != 0) in ptrace_clear_single_step()
H A Dgdb_machdep.c64 return (&kdb_frame->tf_spsr); in gdb_cpu_getreg()
H A Dsyscall.c161 if (__predict_true(frame->tf_spsr & PSR_I) == 0) in swi_handler()
/freebsd/sys/arm64/arm64/
H A Dexec_machdep.c78 regs->spsr = frame->tf_spsr; in fill_regs()
89 regs->x[16] = frame->tf_spsr; in fill_regs()
114 frame->tf_spsr &= ~PSR_SETTABLE_32; in set_regs()
115 frame->tf_spsr |= regs->x[16] & PSR_SETTABLE_32; in set_regs()
132 frame->tf_spsr &= ~PSR_SETTABLE_64; in set_regs()
133 frame->tf_spsr |= regs->spsr & PSR_SETTABLE_64; in set_regs()
135 if ((frame->tf_spsr & PSR_SS) != 0) { in set_regs()
343 regs->r_cpsr = tf->tf_spsr; in fill_regs32()
361 tf->tf_spsr &= ~PSR_SETTABLE_32; in set_regs32()
362 tf->tf_spsr |= regs->r_cpsr & PSR_SETTABLE_32; in set_regs32()
[all …]
H A Dfreebsd32_machdep.c198 mcp->mc_gregset[16] = tf->tf_spsr & ~PSR_C; in get_mcontext32()
201 mcp->mc_gregset[16] = tf->tf_spsr; in get_mcontext32()
229 (tf->tf_spsr & ~(PSR_SETTABLE_32 | PSR_SS))) in set_mcontext32()
233 spsr |= tf->tf_spsr & ~PSR_SETTABLE_32; in set_mcontext32()
245 tf->tf_spsr = spsr; in set_mcontext32()
440 tf->tf_spsr |= PSR_T; in freebsd32_sendsig()
442 tf->tf_spsr &= ~PSR_T; in freebsd32_sendsig()
H A Delf32_machdep.c251 frame->tf_spsr &= ~PSR_C; in freebsd32_set_syscall_retval()
257 if ((frame->tf_spsr & PSR_T) != 0) in freebsd32_set_syscall_retval()
267 frame->tf_spsr |= PSR_C; in freebsd32_set_syscall_retval()
292 tf->tf_spsr = PSR_M_32; in freebsd32_setregs()
294 tf->tf_spsr |= PSR_T; in freebsd32_setregs()
H A Ddebug_monitor.c215 kdb_frame->tf_spsr |= PSR_SS; in kdb_cpu_set_singlestep()
222 kernel_monitor.dbg_flags |= kdb_frame->tf_spsr & PSR_DAIF; in kdb_cpu_clear_singlestep()
223 kdb_frame->tf_spsr |= (PSR_A | PSR_I | PSR_F); in kdb_cpu_clear_singlestep()
246 kdb_frame->tf_spsr &= ~PSR_DAIF; in kdb_cpu_set_watchpoint()
247 kdb_frame->tf_spsr |= kernel_monitor.dbg_flags & PSR_DAIF; in kdb_cpu_set_watchpoint()
703 frame->tf_spsr |= PSR_D;
707 frame->tf_spsr &= ~PSR_D;
H A Dptrace_machdep.c172 if ((td->td_frame->tf_spsr & PSR_SS) == 0) { in ptrace_single_step()
173 td->td_frame->tf_spsr |= PSR_SS; in ptrace_single_step()
184 td->td_frame->tf_spsr &= ~PSR_SS; in ptrace_clear_single_step()
H A Dtrap.c312 (frame->tf_spsr & PSR_DAIF_INTR) != PSR_DAIF_INTR) { in data_abort()
313 MPASS((frame->tf_spsr & PSR_DAIF_INTR) == 0); in data_abort()
319 (frame->tf_spsr & PSR_DAIF_INTR) != PSR_DAIF_INTR) { in data_abort()
320 MPASS((frame->tf_spsr & PSR_DAIF_INTR) == 0); in data_abort()
453 printf("spsr: 0x%.16lx\n", frame->tf_spsr); in print_registers()
725 td->td_frame->tf_spsr &= ~PSR_SS; in do_el0_sync()
H A Dundefined.c135 spsr = frame->tf_spsr; in arm_cond_match()
216 (frame->tf_spsr & PSR_T) != 0) in swp_emulate()
H A Dgdb_machdep.c57 case GDB_REG_CSPR: return (&kdb_frame->tf_spsr); in gdb_cpu_getreg()
H A Dgenassym.c85 ASSYM(TF_SPSR, offsetof(struct trapframe, tf_spsr));
H A Ddb_interface.c65 { "spsr", DB_OFFSET(tf_spsr), db_frame },
/freebsd/sys/arm64/vmm/
H A Dvmm_arm64.c623 paging->flags = hypctx->tf.tf_spsr & (PSR_M_MASK | PSR_M_32); in arm64_gen_inst_emul_data()
649 if ((hypctx->tf.tf_spsr & PSR_M_MASK) == PSR_M_EL0t) in raise_data_insn_abort()
1079 mode = hypctx->tf.tf_spsr & (PSR_M_MASK | PSR_M_32); in vmmops_run()
1094 hypctx->spsr_el1 = hypctx->tf.tf_spsr; in vmmops_run()
1097 hypctx->tf.tf_spsr = hypctx->spsr_el1 & PSR_FLAGS; in vmmops_run()
1098 hypctx->tf.tf_spsr |= PSR_DAIF | PSR_M_EL1h; in vmmops_run()
1105 hypctx->tf.tf_spsr |= PSR_PAN; in vmmops_run()
1107 hypctx->tf.tf_spsr &= ~PSR_SSBS; in vmmops_run()
1109 hypctx->tf.tf_spsr |= PSR_SSBS; in vmmops_run()
1235 return (&hypctx->tf.tf_spsr); in hypctx_regptr()
[all …]
H A Dvmm_reset.c181 el2ctx->tf.tf_spsr = PSR_D | PSR_A | PSR_I | PSR_F; in reset_vm_el2_regs()
183 el2ctx->tf.tf_spsr |= PSR_M_EL1h; in reset_vm_el2_regs()
/freebsd/sys/arm64/include/
H A Dframe.h50 uint64_t tf_spsr; member
/freebsd/sys/arm/include/
H A Dpmc_mdep.h67 (TF)->tf_spsr = PSR_SVC32_MODE; \
H A Dframe.h62 register_t tf_spsr; member
/freebsd/sys/arm64/linux/
H A Dlinux_sysvec.c277 (td->td_frame->tf_spsr & PSR_DAIF)) in linux_rt_sigreturn()
279 tf->tf_spsr = sf->sf_uc.uc_sc.pstate; in linux_rt_sigreturn()
358 frame->sf.sf_uc.uc_sc.pstate = tf->tf_spsr; in linux_rt_sendsig()

12