diff options
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r-- | arch/powerpc/kvm/emulate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c index 4337f99fa0fa..b6df56dd93ba 100644 --- a/arch/powerpc/kvm/emulate.c +++ b/arch/powerpc/kvm/emulate.c | |||
@@ -77,7 +77,8 @@ static int kvmppc_dec_enabled(struct kvm_vcpu *vcpu) | |||
77 | #else | 77 | #else |
78 | static int kvmppc_dec_enabled(struct kvm_vcpu *vcpu) | 78 | static int kvmppc_dec_enabled(struct kvm_vcpu *vcpu) |
79 | { | 79 | { |
80 | return vcpu->arch.tcr & TCR_DIE; | 80 | /* On BOOKE, DEC = 0 is as good as decrementer not enabled */ |
81 | return (vcpu->arch.tcr & TCR_DIE) && vcpu->arch.dec; | ||
81 | } | 82 | } |
82 | #endif | 83 | #endif |
83 | 84 | ||