MPC5675K equivalent of "mftb" instruction

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

MPC5675K equivalent of "mftb" instruction

ソリューションへジャンプ
1,669件の閲覧回数
matthewclark
Contributor III

I'm trying to port some benchmark code from a 440 core processor to the MPC5675K.  On the 440, I can access the time base register with the "mftb" and "mftbu" inline assembly commands, but Code Warrior will cry on the 5675K:

 

Instruction "MFTB" can not be translated from Classic PPC to VLE PPC.

 

Can anyone point me the right direction?  I tried looking at the VLEPIM, but didn't see anything that looked helpful.

 

Thanks,

 

Matt

ラベル(1)
0 件の賞賛
1 解決策
1,151件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Use syntax

mfspr rD,268 (instead of tbl)

mfspr rD,269 (instead of tbu)

There are different SPR numbers for read and write:

For read - 268/269

For write - 284/285

元の投稿で解決策を見る

0 件の賞賛
1 返信
1,152件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Use syntax

mfspr rD,268 (instead of tbl)

mfspr rD,269 (instead of tbu)

There are different SPR numbers for read and write:

For read - 268/269

For write - 284/285

0 件の賞賛