/freebsd/sys/cddl/dev/kinst/aarch64/ |
H A D | kinst_isa.c | 61 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 D | vm_machdep.c | 140 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 D | exec_machdep.c | 86 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 D | undefined.c | 175 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 D | machdep_kdb.c | 99 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 D | trap-v6.c | 405 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 D | machdep_ptrace.c | 133 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 D | gdb_machdep.c | 64 return (&kdb_frame->tf_spsr); in gdb_cpu_getreg()
|
H A D | syscall.c | 161 if (__predict_true(frame->tf_spsr & PSR_I) == 0) in swi_handler()
|
/freebsd/sys/arm64/arm64/ |
H A D | exec_machdep.c | 78 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 D | freebsd32_machdep.c | 198 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 D | elf32_machdep.c | 251 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 D | debug_monitor.c | 215 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 D | ptrace_machdep.c | 172 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 D | trap.c | 312 (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 D | undefined.c | 135 spsr = frame->tf_spsr; in arm_cond_match() 216 (frame->tf_spsr & PSR_T) != 0) in swp_emulate()
|
H A D | gdb_machdep.c | 57 case GDB_REG_CSPR: return (&kdb_frame->tf_spsr); in gdb_cpu_getreg()
|
H A D | genassym.c | 85 ASSYM(TF_SPSR, offsetof(struct trapframe, tf_spsr));
|
H A D | db_interface.c | 65 { "spsr", DB_OFFSET(tf_spsr), db_frame },
|
/freebsd/sys/arm64/vmm/ |
H A D | vmm_arm64.c | 623 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 D | vmm_reset.c | 181 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 D | frame.h | 50 uint64_t tf_spsr; member
|
/freebsd/sys/arm/include/ |
H A D | pmc_mdep.h | 67 (TF)->tf_spsr = PSR_SVC32_MODE; \
|
H A D | frame.h | 62 register_t tf_spsr; member
|
/freebsd/sys/arm64/linux/ |
H A D | linux_sysvec.c | 277 (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()
|