GPR reading

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPR reading

450 Views
abdelrhman
Contributor III

Hi all,
I just followed that link to access core registers and it works fine.
https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-read-the-Machine-State-Register-... 
But now I need to read R1 general purpose register, what is the instruction that can be used to read that register instead of  "mfmsr %0" : "=r" (mfmsrValue ) which is used to access the MSR register.
Thank you

0 Kudos
Reply
1 Reply

439 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I have moved your post to MDBT community. They can give you accurate answer.

You can also find instruction set in core reference manual for your core to see which instructions are desired to move from GPRx registers.

Best regards,

Peter

0 Kudos
Reply