Datasheet

ARMulator Reference
4-10 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D
4.2.12 ARMulif_CPRead
This function calls the
read
method for a coprocessor.
Syntax
int ARMulif_CPRead(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 read
ARMul_CANT
, if the register cannot be read.