• Alexander Graf's avatar
    KVM: PPC: Add helpers to call FPU instructions · 963cf3dc
    Alexander Graf authored
    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: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    963cf3dc
kvm_fpu.h 2.8 KB