These are a group of functions to access the registers and memory of the target.
or1k_fetch_registers
. This function
populates the register cache from the actual target
registers. The interface to the OpenRISC 1000 only provides
for reading of memory or SPRs. However the GPRs are
mapped into the SPR space, so can be read in this way.
or1k_store_registers
. This is the inverse
of or1k_fetch_registers
. It writes the
contents of the register cache back to the physical registers
on the target.
or1k_prepare_to_store
. GDB allows for
targets which need some preparatory work before storing, so
provides this function. It is not needed for the OpenRISC 1000, so just
returns.
or1k_xfer_partial
. This is the
generic function for reading and writing objects from and to
the target. However the only class of object which needs be
supported is read and write from memory. This is achieved
through the low-level interface routines
or1k_jtag_read_mem
and
or1k_jtag_write_mem
.
generic_load
. This generic function is used
as the to_load
function of the target
operations. There is nothing special about loading OpenRISC 1000
images. This function will call the
or1k_xfer_partial
function to transfer the
bytes for each section of the image.