Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f3dc6d7 authored by David Daney's avatar David Daney Committed by Gleb Natapov
Browse files

mips/kvm: Fix ABI for use of FPU.



Define a non-empty struct kvm_fpu.

Signed-off-by: default avatarDavid Daney <david.daney@cavium.com>
Acked-by: default avatarSanjay Lal <sanjayl@kymasys.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 514e250f
Loading
Loading
Loading
Loading
+21 −8
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
 * for more details.
 *
 * Copyright (C) 2012  MIPS Technologies, Inc.  All rights reserved.
 * Copyright (C) 2013 Cavium, Inc.
 * Authors: Sanjay Lal <sanjayl@kymasys.com>
 */

@@ -31,8 +32,20 @@ struct kvm_regs {
struct kvm_sregs {
};

/* for KVM_GET_FPU and KVM_SET_FPU */
/*
 * for KVM_GET_FPU and KVM_SET_FPU
 *
 * If Status[FR] is zero (32-bit FPU), the upper 32-bits of the FPRs
 * are zero filled.
 */
struct kvm_fpu {
	__u64 fpr[32];
	__u32 fir;
	__u32 fccr;
	__u32 fexr;
	__u32 fenr;
	__u32 fcsr;
	__u32 pad;
};

struct kvm_debug_exit_arch {