KVM: PPC: Add helpers to call FPU instructions

To emulate paired single instructions, we need to be able to call FPU
operations from within the kernel. Since we don't want gcc to spill
arbitrary FPU code everywhere, we tell it to use a soft fpu.

Since we know we can really call the FPU in safe areas, let's also add
some calls that we can later use to actually execute real world FPU
operations on the host's FPU.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
Dieser Commit ist enthalten in:
Alexander Graf
2010-02-19 11:00:40 +01:00
committet von Avi Kivity
Ursprung aba3bd7ffe
Commit 963cf3dc63
4 geänderte Dateien mit 361 neuen und 0 gelöschten Zeilen

Datei anzeigen

@@ -40,6 +40,7 @@ kvm-objs-$(CONFIG_KVM_E500) := $(kvm-e500-objs)
kvm-book3s_64-objs := \
$(common-objs-y) \
fpu.o \
book3s.o \
book3s_64_emulate.o \
book3s_64_interrupts.o \