VLE 16bit Trap instruction for SW breakpoint

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

VLE 16bit Trap instruction for SW breakpoint

846件の閲覧回数
christopheple
Contributor II

Hi All,

For an internal Software debugger on a MPC5777M e200zx core, i would like to implement software breakpoint for the code running in RAM.

With non-VLE PPC, the TRAP instruction is used to modify the instruction where i want to break and when this TRAP is executed, the debug exception is taken (if necessary enable bit are set on the PPC).

But on VLE PPC, the instruction to be modify by a TRAP can be a 16bit length instruction and unfortunately the TRAP instruction is 32bit. In this case the 32bit TRAP will corrupt the 16bit word following the instruction to break.

This corruption can lead to a crash of the debugged software if this corrupted 16bit word is a constant data.

I think that a 16bit TRAP instruction is missing in the VLE PEM documentation.

What is your feeling about this ?

And do you have any idea, hint to solve my problem ?

Regards.

タグ(4)
0 件の賞賛
返信
1 返信

773件の閲覧回数
igor1
Contributor II

I think you can use e_dnh and se_dnh instead of traps, they will either cause illegal instruction exception or enter debug mode if enabled which is probably what you want anyway.

0 件の賞賛
返信