Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.powerpc.tech > #7

Re: using iabr on powerpc (e300)

From Rob Windgassen <rwindgas@xs4all.nl>
Subject Re: using iabr on powerpc (e300)
Newsgroups comp.sys.powerpc.tech
References <c40bcae8-70da-419b-9fcb-2f3bda340f79@k10g2000pbk.googlegroups.com>
Message-ID <pan.2012.04.13.22.33.06@xs4all.nl> (permalink)
Date 2012-04-13 22:33 +0000

Show all headers | View raw


On Thu, 12 Apr 2012 21:41:10 -0700, sid_itsme wrote:

> im trying to use the inst breakpoint register (iabr) but there doesn
> seem to be any activity when that address is reached
> 
> the code im using is
> 
>     asm ("msync; isync");
>     asm volatile ("mtspr 1010,%0;" :  : "r"(val)); asm ("isync");
>     asm ("isync");
> 
> Is this right?
> is there someother way to achieve this?

I've no experience with this, but did you set the breakpoint enable bit?
i.e.

#define IABR_BE 0x2

val = inst_address | IABR_BE;
asm volatile ("mtspr 1010,%0;" :  : "r"(val));
asm volatile ("isync");
<etc>

and are you sure that the proper address is used?

Rob

Back to comp.sys.powerpc.tech | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

using iabr on powerpc (e300) sid_itsme <siddhartha.v.bajaj@gmail.com> - 2012-04-12 21:41 -0700
  Re: using iabr on powerpc (e300) Rob Windgassen <rwindgas@xs4all.nl> - 2012-04-13 22:33 +0000
  Re: using iabr on powerpc (e300) Sakthi <karthikeyan24.shan@gmail.com> - 2012-12-21 03:50 -0800

csiph-web