diff options
author | Bharat Bhushan <Bharat.Bhushan@freescale.com> | 2014-08-06 12:08:55 +0530 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-09-22 10:11:30 +0200 |
commit | 348ba71081cd8444178d24d3ed13d34fc1b61dae (patch) | |
tree | 30c0568f78086809c2fe433b5ea610b73da46f73 /arch/powerpc/kvm/booke_emulate.c | |
parent | 2190991e7caa2e2a2b976e9ed16e55f8c51623be (diff) | |
download | talos-obmc-linux-348ba71081cd8444178d24d3ed13d34fc1b61dae.tar.gz talos-obmc-linux-348ba71081cd8444178d24d3ed13d34fc1b61dae.zip |
KVM: PPC: BOOKE: Guest and hardware visible debug registers are same
Guest visible debug register and hardware visible debug registers are
same, so ther is no need to have arch->shadow_dbg_reg, instead use
arch->dbg_reg.
Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/booke_emulate.c')
-rw-r--r-- | arch/powerpc/kvm/booke_emulate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/booke_emulate.c b/arch/powerpc/kvm/booke_emulate.c index 4b9a07992753..92bc668d3e08 100644 --- a/arch/powerpc/kvm/booke_emulate.c +++ b/arch/powerpc/kvm/booke_emulate.c @@ -293,6 +293,8 @@ int kvmppc_booke_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val) break; case SPRN_DBCR0: *spr_val = vcpu->arch.dbg_reg.dbcr0; + if (vcpu->guest_debug) + *spr_val = *spr_val | DBCR0_EDM; break; case SPRN_DBCR1: *spr_val = vcpu->arch.dbg_reg.dbcr1; |