]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: PPC: Add emulation for dcba
authorAlexander Graf <agraf@suse.de>
Wed, 24 Mar 2010 20:48:33 +0000 (21:48 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:15 +0000 (12:17 +0300)
Mac OS X uses the dcba instruction. According to the specification it doesn't
guarantee any functionality, so let's just emulate it as nop.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/book3s_64_emulate.c

index bbd15906900d1791c9137a4b0860ed0e6d65a780..8f50776a9a1de4338839510e8e3b6bb1882bad43 100644 (file)
@@ -37,6 +37,7 @@
 #define OP_31_XOP_SLBIA                498
 #define OP_31_XOP_MFSR         595
 #define OP_31_XOP_MFSRIN       659
+#define OP_31_XOP_DCBA         758
 #define OP_31_XOP_SLBMFEV      851
 #define OP_31_XOP_EIOIO                854
 #define OP_31_XOP_SLBMFEE      915
@@ -183,6 +184,9 @@ int kvmppc_core_emulate_op(struct kvm_run *run, struct kvm_vcpu *vcpu,
                                kvmppc_set_gpr(vcpu, get_rt(inst), t);
                        }
                        break;
+               case OP_31_XOP_DCBA:
+                       /* Gets treated as NOP */
+                       break;
                case OP_31_XOP_DCBZ:
                {
                        ulong rb = kvmppc_get_gpr(vcpu, get_rb(inst));