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
已解决! 转到解答。
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