On 1 November 2015 at 12:05, Philip Attfield philip.attfield@linaro.org wrote:
Hi Haojian;
The commands are buried in the help output that you provided.
Please try any of: hi6220.cpu arm mcr cpnum op1 CRn CRm op2 value write coprocessor register hi6220.cpu arm mrc cpnum op1 CRn CRm op2 read coprocessor register hi6220.cpu arm mrs op0 op1 CRn CRm op2 read system register hi6220.cpu arm msr op0 op1 CRn CRm op2 value write system register
Those are the mcr/mrc/mrs/msr instruction execution functions. They should route through to the ARMV8 implementation.
Now the ARMv8 implementation of mrs/msr/mcr/mrc is empty. So it has to go through ARMv4 implementation. And it couldn't dump anything at last.
By the way, "hi6220.cpu arm" commands are equal to "arm" commands. There are no difference between these two commands. Could you help me to figure out how the "hi6220.cpu" command is created?
If you need to dump a set of CP registers then this should be possible via a TCL function that you could write as part of the ".cfg" file. If the core-name (hi6220.cpu) is passed as a parameter then the function will work in SMP scenario as well.
best regards, -Phil