[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/5 v3][RESEND] ppc: Add software breakpoint sup
From: |
address@hidden |
Subject: |
Re: [Qemu-devel] [PATCH 4/5 v3][RESEND] ppc: Add software breakpoint support |
Date: |
Tue, 24 Jun 2014 13:11:47 +0000 |
> -----Original Message-----
> From: Alexander Graf [mailto:address@hidden
> Sent: Tuesday, June 24, 2014 6:35 PM
> To: Bhushan Bharat-R65777
> Cc: address@hidden; address@hidden; address@hidden
> Subject: Re: [PATCH 4/5 v3][RESEND] ppc: Add software breakpoint support
>
>
> On 24.06.14 14:10, Bharat Bhushan wrote:
> > This patch allow insert/remove software breakpoint
> >
> > Signed-off-by: Bharat Bhushan <address@hidden>
> > ---
> > target-ppc/kvm.c | 71
> > +++++++++++++++++++++++++++++++++++++++++++++---------
> --
> > 1 file changed, 57 insertions(+), 14 deletions(-)
> >
> > diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index
> > 5238de7..8e2dbb3 100644
> > --- a/target-ppc/kvm.c
> > +++ b/target-ppc/kvm.c
> > @@ -1317,6 +1317,53 @@ static int kvmppc_handle_dcr_write(CPUPPCState *env,
> uint32_t dcrn, uint32_t dat
> > return 0;
> > }
> >
> > +int kvm_arch_insert_sw_breakpoint(CPUState *cs, struct
> > +kvm_sw_breakpoint *bp) {
> > + /* Mixed endian case is not handled */
> > + uint32_t sc = debug_inst_opcode;
>
> What if debug_inst_opcode has never been set (thus is 0)?
Can "0" be a debug_inst_code ?
> In that case we should fail the insert, no?
Yes, will checking for "0" is sufficient or we need a cap_ also ?
Thanks
-Bharat
>
>
> Alex
- [Qemu-devel] [PATCH 0/5 v3][RESEND] ppc: Add debug stub support, Bharat Bhushan, 2014/06/24
- [Qemu-devel] [PATCH 3/5 v3][RESEND] ppc: Add debug interrupt injection handler, Bharat Bhushan, 2014/06/24
- [Qemu-devel] [PATCH 1/5 v3][RESEND] ppc: debug stub: Get trap instruction opcode from KVM, Bharat Bhushan, 2014/06/24
- [Qemu-devel] [PATCH 2/5 v3][RESEND] ppc: Add interface to inject interrupt to guest, Bharat Bhushan, 2014/06/24
- [Qemu-devel] [PATCH 4/5 v3][RESEND] ppc: Add software breakpoint support, Bharat Bhushan, 2014/06/24
- Re: [Qemu-devel] [PATCH 4/5 v3][RESEND] ppc: Add software breakpoint support, Madhavan Srinivasan, 2014/06/24
[Qemu-devel] [PATCH 5/5 v3][RESEND] ppc: Add hw breakpoint watchpoint support, Bharat Bhushan, 2014/06/24