diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2017-03-22 13:02:08 +0300 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2017-04-20 03:39:50 +0300 |
commit | 307d927967007acef98cfd3f0639c7a4bf234ede (patch) | |
tree | 1e79c7a93f74499beb5d848c8ea2af529522ad18 /arch/powerpc/kvm/booke.c | |
parent | f7b1a77d3bfbdc7e91a1e48e0a3dc10e7d890e04 (diff) | |
download | linux-307d927967007acef98cfd3f0639c7a4bf234ede.tar.xz |
KVM: PPC: Provide functions for queueing up FP/VEC/VSX unavailable interrupts
This provides functions that can be used for generating interrupts
indicating that a given functional unit (floating point, vector, or
VSX) is unavailable. These functions will be used in instruction
emulation code.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/kvm/booke.c')
-rw-r--r-- | arch/powerpc/kvm/booke.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 0514cbd4e533..3c296c2eacf8 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c @@ -300,6 +300,11 @@ void kvmppc_core_queue_program(struct kvm_vcpu *vcpu, ulong esr_flags) kvmppc_booke_queue_irqprio(vcpu, BOOKE_IRQPRIO_PROGRAM); } +void kvmppc_core_queue_fpunavail(struct kvm_vcpu *vcpu) +{ + kvmppc_booke_queue_irqprio(vcpu, BOOKE_IRQPRIO_FP_UNAVAIL); +} + void kvmppc_core_queue_dec(struct kvm_vcpu *vcpu) { kvmppc_booke_queue_irqprio(vcpu, BOOKE_IRQPRIO_DECREMENTER); |