Hello again,
I'm still trying to return a value from "arm946e cp15" command to the
calling script.
I was not able to identify code patterns of return values
fromCOMMAND_HANDLER()
to the script engine.
The only method I found is to use .jim_handler instead of .handler
I'm ready to upload a patch to gerrit.
Is there anyone else who is interested in ARM9E architecture?
I guess to change the behavior of existing command, the other way
is to add new "arm946e_cp15" for example, command.
Which will be preferrable?
Regards,
Alex.
2012/5/28 Alexander Osipenko <[email protected]>
> I need to enable script access to the registers in the CP15 of my arm946e
> core.
>
> I've tried to add
>
> COMMAND_HANDLER(arm946e_handle_cp15_command)
> ....
> Jim_SetResult(CMD_CTX->interp,Jim_NewIntObj(CMD_CTX->interp, value));
>
> But the result of
>
> set a [arm946e cp15 0]
>
> still appears to be empty.
>
> It's quite strange to have commands, that only prints their results,
> in the system with powerful scripting engine.
>
> In particular
> arm mrc
> arm946e cp15
> seems very useful to return their results.
>
> Since these commands expect to return single integer,
> there should be no problems with output formatting.
>
> Regards,
> Alex.
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel