Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using iabr on powerpc (e300)

49 views
Skip to first unread message

sid_itsme

unread,
Apr 13, 2012, 12:41:10 AM4/13/12
to
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?

Rob Windgassen

unread,
Apr 13, 2012, 6:33:06 PM4/13/12
to
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

Sakthi

unread,
Dec 21, 2012, 6:50:53 AM12/21/12
to
I'm not sure whether you're asking about the other way of approch to achieve the instruction breakpoint, if that is the case then you can place one trap instruction before the address where you need to break and get the control of the code.
0 new messages