Datasheet

ARMulator Reference
ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-11
4.2.13 ARMulif_CPWrite
This function calls the
write
method for a coprocessor. It also intercepts calls to write
the FPE emulated registers.
Syntax
int ARMulif_CPWrite(RDI_ModuleDesc *mdesc, unsigned cpnum,
unsigned reg, ARMword *data)
where:
mdesc
is the handle for the core.
cpnum
is the number of the coprocessor.
reg
is the number of the coprocessor register to read from, as indexed by
CRn
in an
LDC
or
STC
instruction.
data
is a pointer for the data read from the coprocessor register. The number
of words transferred, and the order of the words, is coprocessor
dependent.
Return
The function must return:
ARMul_DONE
, if the register can be written
ARMul_CANT
, if the register cannot be written.