Services - tools - models - for embedded software development
Embecosm divider strip
Prev  Next

4.3.7.  OpenRISC 1000 Target Functions to Execute Commands

The OpenRISC 1000 target does not really have a way to execute commands. However implementing SPR access as remote commands provides a mechanism for access, which is independent of the target access protocol. In particular the GDB architecture need know nothing about the actual remote protocol used.

SPR access is implemented as though the target were able to run two commands, readspr to get a value from a SPR and writespr to set a value in a SPR. Each takes a first argument, specified in hexadecimal, which is the SPR number. writespr takes a second argument, specified in hexadecimal, which is the value to be written. readspr returns the value read as a number in hexadecimal.

When access is needed to the SPRs it is achieved by passing one of these commands as argument to the to_rcmd function of the target.

Embecosm divider strip