Datasheet

ARMulator Reference
ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-25
4.4.10 write
This function enables a debugger to write to a coprocessor register via RDI.
The function writes the value at the location addressed by
value
to the coprocessor
register numbered
reg
.
If the requested coprocessor does not exist or the register cannot be written, the function
must return
ARMul_CP_CANT
.
Syntax
unsigned write(void *handle, int reg, ARMword instr, ARMword *value)
where:
handle
is the handle from
ARMulif_InstallCoprocessorV5
.
reg
is the register number of the coprocessor register that is to be written.
instr
is not used.
value
is a pointer to the location of the data that is to be written to the
coprocessor.
Return
The function must return one of:
ARMul_CP_DONE
, to indicate that the coprocessor operation is complete
ARMul_CP_CANT
, to indicate that the register is not supported.
Usage
This function is called by the debugger via RDI.