Home
last modified time | relevance | path

Searched refs:fpc (Results 1 – 17 of 17) sorted by relevance

/arch/s390/kernel/
Dtraps.c128 static inline void do_fp_trap(struct pt_regs *regs, __u32 fpc) in do_fp_trap() argument
132 if ((fpc & 0x00000300) == 0) { in do_fp_trap()
134 if (fpc & 0x8000) /* invalid fp operation */ in do_fp_trap()
136 else if (fpc & 0x4000) /* div by 0 */ in do_fp_trap()
138 else if (fpc & 0x2000) /* overflow */ in do_fp_trap()
140 else if (fpc & 0x1000) /* underflow */ in do_fp_trap()
142 else if (fpc & 0x0800) /* inexact */ in do_fp_trap()
207 vic = (current->thread.fpu.fpc & 0xf00) >> 8; in vector_exception()
233 if (current->thread.fpu.fpc & FPC_DXC_MASK) in data_exception()
234 do_fp_trap(regs, current->thread.fpu.fpc); in data_exception()
Dfpu.c26 asm volatile("stfpc %0" : "=Q" (state->fpc)); in __kernel_fpu_begin()
108 asm volatile("lfpc %0" : : "Q" (state->fpc)); in __kernel_fpu_end()
Dprocess.c157 current->thread.fpu.fpc = 0; in execve_tail()
167 fpregs->fpc = current->thread.fpu.fpc; in dump_fpu()
Dcrash_dump.c45 u32 fpc; member
95 memcpy(&sa->fpc, &lc->fpt_creg_save_area, sizeof(sa->fpc)); in save_area_add_regs()
371 memcpy(&nt_fpregset.fpc, &sa->fpc, sizeof(sa->fpc)); in fill_cpu_elf_notes()
Dptrace.c245 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __peek_user()
249 tmp = child->thread.fpu.fpc; in __peek_user()
387 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __poke_user()
394 child->thread.fpu.fpc = data >> (BITS_PER_LONG - 32); in __poke_user()
622 } else if (addr == (addr_t) &dummy32->regs.fp_regs.fpc) { in __peek_user_compat()
626 tmp = child->thread.fpu.fpc; in __peek_user_compat()
745 } else if (addr == (addr_t) &dummy32->regs.fp_regs.fpc) { in __poke_user_compat()
751 child->thread.fpu.fpc = data; in __poke_user_compat()
964 fp_regs.fpc = target->thread.fpu.fpc; in s390_fpregs_get()
989 u32 ufpc[2] = { target->thread.fpu.fpc, 0 }; in s390_fpregs_set()
[all …]
Dcompat_linux.h30 unsigned int fpc; member
Dasm-offsets.c32 OFFSET(__THREAD_FPU_fpc, thread_struct, fpu.fpc); in main()
Dsignal.c152 if (test_fp_ctl(user_sregs.fpregs.fpc)) in restore_sigregs()
Dcompat_signal.c101 if (test_fp_ctl(user_sregs.fpregs.fpc)) in restore_sigregs32()
/arch/s390/include/asm/fpu/
Dinternal.h44 fpregs->fpc = fpu->fpc; in fpregs_store()
54 fpu->fpc = fpregs->fpc; in fpregs_load()
Dtypes.h15 __u32 fpc; /* Floating-point control */ member
31 u32 fpc; member
Dapi.h51 static inline int test_fp_ctl(u32 fpc) in test_fp_ctl() argument
64 : "d" (fpc), "0" (-EINVAL)); in test_fp_ctl()
/arch/s390/include/uapi/asm/
Dsigcontext.h56 unsigned int fpc; member
Dkvm.h188 __u32 fpc; member
262 __u32 fpc; /* valid on KVM_SYNC_VRS or KVM_SYNC_FPRS */ member
Dptrace.h200 __u32 fpc; member
/arch/s390/kvm/
Dkvm-s390.c2868 current->thread.fpu.fpc = 0; in kvm_s390_vcpu_initial_reset()
3345 if (test_fp_ctl(fpu->fpc)) { in kvm_arch_vcpu_ioctl_set_fpu()
3349 vcpu->run->s.regs.fpc = fpu->fpc; in kvm_arch_vcpu_ioctl_set_fpu()
3372 fpu->fpc = vcpu->run->s.regs.fpc; in kvm_arch_vcpu_ioctl_get_fpu()
3929 vcpu->arch.host_fpregs.fpc = current->thread.fpu.fpc; in sync_regs()
3935 current->thread.fpu.fpc = vcpu->run->s.regs.fpc; in sync_regs()
3936 if (test_fp_ctl(current->thread.fpu.fpc)) in sync_regs()
3938 current->thread.fpu.fpc = 0; in sync_regs()
3977 vcpu->run->s.regs.fpc = current->thread.fpu.fpc; in store_regs()
3979 current->thread.fpu.fpc = vcpu->arch.host_fpregs.fpc; in store_regs()
[all …]
Dinterrupt.c622 rc |= put_guest_lc(vcpu, current->thread.fpu.fpc, in __write_machine_check()