Home
last modified time | relevance | path

Searched refs:cpsr (Results 1 – 25 of 29) sorted by relevance

12

/Linux-v4.19/arch/arm/probes/
Ddecode.c87 static unsigned long __kprobes __check_eq(unsigned long cpsr) in __check_eq() argument
89 return cpsr & PSR_Z_BIT; in __check_eq()
92 static unsigned long __kprobes __check_ne(unsigned long cpsr) in __check_ne() argument
94 return (~cpsr) & PSR_Z_BIT; in __check_ne()
97 static unsigned long __kprobes __check_cs(unsigned long cpsr) in __check_cs() argument
99 return cpsr & PSR_C_BIT; in __check_cs()
102 static unsigned long __kprobes __check_cc(unsigned long cpsr) in __check_cc() argument
104 return (~cpsr) & PSR_C_BIT; in __check_cc()
107 static unsigned long __kprobes __check_mi(unsigned long cpsr) in __check_mi() argument
109 return cpsr & PSR_N_BIT; in __check_mi()
[all …]
Ddecode.h53 static inline unsigned long it_advance(unsigned long cpsr) in it_advance() argument
55 if ((cpsr & 0x06000400) == 0) { in it_advance()
57 cpsr &= ~PSR_IT_MASK; in it_advance()
61 unsigned long it = cpsr & mask; in it_advance()
65 cpsr &= ~mask; in it_advance()
66 cpsr |= it; in it_advance()
68 return cpsr; in it_advance()
73 long cpsr = regs->ARM_cpsr; in bx_write_pc() local
75 cpsr |= PSR_T_BIT; in bx_write_pc()
78 cpsr &= ~PSR_T_BIT; in bx_write_pc()
[all …]
Ddecode-thumb.h23 #define in_it_block(cpsr) ((cpsr & 0x06000c00) != 0x00000000) argument
30 #define current_cond(cpsr) ((cpsr >> 12) & 0xf) argument
Ddecode-thumb.c839 static unsigned long __kprobes thumb_check_cc(unsigned long cpsr) in thumb_check_cc() argument
841 if (unlikely(in_it_block(cpsr))) in thumb_check_cc()
842 return probes_condition_checks[current_cond(cpsr)](cpsr); in thumb_check_cc()
/Linux-v4.19/virt/kvm/arm/
Daarch32.c60 unsigned long cpsr; in kvm_condition_valid32() local
73 cpsr = *vcpu_cpsr(vcpu); in kvm_condition_valid32()
79 it = ((cpsr >> 8) & 0xFC) | ((cpsr >> 25) & 0x3); in kvm_condition_valid32()
89 cpsr_cond = cpsr >> 28; in kvm_condition_valid32()
110 unsigned long cpsr = *vcpu_cpsr(vcpu); in kvm_adjust_itstate() local
111 bool is_arm = !(cpsr & PSR_AA32_T_BIT); in kvm_adjust_itstate()
113 if (is_arm || !(cpsr & PSR_AA32_IT_MASK)) in kvm_adjust_itstate()
116 cond = (cpsr & 0xe000) >> 13; in kvm_adjust_itstate()
117 itbits = (cpsr & 0x1c00) >> (10 - 2); in kvm_adjust_itstate()
118 itbits |= (cpsr & (0x3 << 25)) >> 25; in kvm_adjust_itstate()
[all …]
Dtrace.h118 unsigned long cpsr),
119 TP_ARGS(vcpu_pc, instr, cpsr),
124 __field( unsigned long, cpsr )
130 __entry->cpsr = cpsr;
134 __entry->vcpu_pc, __entry->instr, __entry->cpsr)
/Linux-v4.19/arch/arm/probes/kprobes/
Dactions-arm.c178 unsigned long cpsr = regs->ARM_cpsr; in emulate_rd12rn16rm0rs8_rwflags() local
184 : "=r" (rdv), [cpsr] "=r" (cpsr) in emulate_rd12rn16rm0rs8_rwflags()
186 "1" (cpsr), [fn] "r" (asi->insn_fn) in emulate_rd12rn16rm0rs8_rwflags()
194 regs->ARM_cpsr = (regs->ARM_cpsr & ~APSR_MASK) | (cpsr & APSR_MASK); in emulate_rd12rn16rm0rs8_rwflags()
208 unsigned long cpsr = regs->ARM_cpsr; in emulate_rd12rn16rm0_rwflags_nopc() local
214 : "=r" (rdv), [cpsr] "=r" (cpsr) in emulate_rd12rn16rm0_rwflags_nopc()
216 "1" (cpsr), [fn] "r" (asi->insn_fn) in emulate_rd12rn16rm0_rwflags_nopc()
221 regs->ARM_cpsr = (regs->ARM_cpsr & ~APSR_MASK) | (cpsr & APSR_MASK); in emulate_rd12rn16rm0_rwflags_nopc()
238 unsigned long cpsr = regs->ARM_cpsr; in emulate_rd16rn12rm0rs8_rwflags_nopc() local
244 : "=r" (rdv), [cpsr] "=r" (cpsr) in emulate_rd16rn12rm0rs8_rwflags_nopc()
[all …]
Dactions-thumb.c224 unsigned long cpsr = regs->ARM_cpsr; in t32_emulate_rd8rn16rm0_rwflags() local
230 : "=r" (rdv), [cpsr] "=r" (cpsr) in t32_emulate_rd8rn16rm0_rwflags()
232 "1" (cpsr), [fn] "r" (asi->insn_fn) in t32_emulate_rd8rn16rm0_rwflags()
237 regs->ARM_cpsr = (regs->ARM_cpsr & ~APSR_MASK) | (cpsr & APSR_MASK); in t32_emulate_rd8rn16rm0_rwflags()
391 unsigned long cpsr = regs->ARM_cpsr; in t16_simulate_it() local
392 cpsr &= ~PSR_IT_MASK; in t16_simulate_it()
393 cpsr |= (insn & 0xfc) << 8; in t16_simulate_it()
394 cpsr |= (insn & 0x03) << 25; in t16_simulate_it()
395 regs->ARM_cpsr = cpsr; in t16_simulate_it()
478 unsigned long cpsr = t16_emulate_loregs(insn, asi, regs); in t16_emulate_loregs_noitrwflags() local
[all …]
Dtest-core.c1013 static unsigned long test_check_cc(int cc, unsigned long cpsr) in test_check_cc() argument
1015 int ret = arm_check_condition(cc << 28, cpsr); in test_check_cc()
1026 unsigned long cpsr; in test_context_cpsr() local
1031 cpsr = (scenario & 0xf) << 28; /* N,Z,C,V flags */ in test_context_cpsr()
1032 cpsr |= (scenario & 0xf) << 16; /* GE flags */ in test_context_cpsr()
1033 cpsr |= (scenario & 0x1) << 27; /* Toggle Q flag */ in test_context_cpsr()
1039 probe_should_run = test_check_cc(cc, cpsr) != 0; in test_context_cpsr()
1047 probe_should_run = test_check_cc(cc, cpsr) != 0; in test_context_cpsr()
1067 cpsr |= cond_base << 13; /* ITSTATE<7:5> */ in test_context_cpsr()
1068 cpsr |= (mask & 0x1) << 12; /* ITSTATE<4> */ in test_context_cpsr()
[all …]
/Linux-v4.19/arch/arm64/kvm/
Dinject_fault.c66 unsigned long cpsr = *vcpu_cpsr(vcpu); in inject_abt64() local
74 vcpu_write_spsr(vcpu, cpsr); in inject_abt64()
89 if (is_aarch32 || (cpsr & PSR_MODE_MASK) == PSR_MODE_EL0t) in inject_abt64()
102 unsigned long cpsr = *vcpu_cpsr(vcpu); in inject_undef64() local
109 vcpu_write_spsr(vcpu, cpsr); in inject_undef64()
/Linux-v4.19/arch/arm/kernel/
Dsignal.c364 unsigned long cpsr = regs->ARM_cpsr & ~(PSR_f | PSR_E_BIT); in setup_return() local
376 cpsr |= PSR_ENDSTATE; in setup_return()
382 cpsr = (cpsr & ~MODE_MASK) | USR_MODE; in setup_return()
403 cpsr &= ~PSR_IT_MASK; in setup_return()
406 cpsr |= PSR_T_BIT; in setup_return()
408 cpsr &= ~PSR_T_BIT; in setup_return()
447 if (cpsr & MODE32_BIT) { in setup_return()
477 regs->ARM_cpsr = cpsr; in setup_return()
Dfiqasm.S27 mrs r1, cpsr
40 mrs r1, cpsr
Dhyp-stub.S43 mrs \reg1, cpsr
96 mrs r4, cpsr
Dentry-header.S177 mrs \rtemp, cpsr
189 mrs \rtemp, cpsr
332 ldr r1, [sp, #\offset + S_PSR] @ get calling cpsr
348 movs pc, lr @ return & move spsr_svc into cpsr
Diwmmxt.S199 mrs ip, cpsr
251 mrs ip, cpsr
289 mrs ip, cpsr
356 mrs r2, cpsr
Dentry-armv.S295 ldr r5, [sp, #S_PSR] @ Get SVC cpsr
1052 mrs r0, cpsr
/Linux-v4.19/drivers/spi/
Dspi-ep93xx.c120 int cpsr, scr; in ep93xx_spi_calc_divisors() local
136 for (cpsr = 2; cpsr <= 254; cpsr += 2) { in ep93xx_spi_calc_divisors()
138 if ((spi_clk_rate / (cpsr * (scr + 1))) <= rate) { in ep93xx_spi_calc_divisors()
140 *div_cpsr = (u8)cpsr; in ep93xx_spi_calc_divisors()
Dspi-pl022.c429 u16 cpsr; member
576 writew(chip->cpsr, SSP_CPSR(pl022->virtbase)); in restore_state()
1959 chip->cpsr = 0; in pl022_setup()
1977 chip->cpsr = clk_freq.cpsdvsr; in pl022_setup()
/Linux-v4.19/arch/arm/lib/
Decard.S17 mrs rt, cpsr; \
/Linux-v4.19/arch/arm/mach-ep93xx/
Dcrunch-bits.S212 mrs ip, cpsr
258 mrs ip, cpsr
291 mrs ip, cpsr
/Linux-v4.19/arch/arm/include/asm/
Dassembler.h158 mrs \oldcpsr, cpsr
167 mrs \oldcpsr, cpsr
346 mrs \reg , cpsr
/Linux-v4.19/arch/arm/mm/
Dproc-feroceon.S261 mrs r2, cpsr
302 mrs r2, cpsr
338 mrs r2, cpsr
369 mrs r2, cpsr
Dcache-v6.S41 mrs r1, cpsr
/Linux-v4.19/arch/arm/kvm/hyp/
Dhyp-entry.S172 mrs lr, cpsr
/Linux-v4.19/arch/arm/kvm/
Dinit.S129 mrs r0, cpsr

12