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

4.5.2.  The spr Command

This new top level command is added, classified as a support command (class_support), using the add_com command.

The functionality is provided in or1k_spr_command. This also uses or1k_parse_spr_params to parse the arguments, although there is now one more (the value to set). The new value is written into the relevant SPR and the change recorded using ui_out_field_fmt.

The SPR is written using the convenience function or1k_write_spr. This converts the access to a call of the command writespr, which can be passed to the target usings its to_rcmd target operation (see Section 4.3.7). This will allow the SPR to be accessed in the way most appropriate to the current target access method.

Embecosm divider strip