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 *mdescunsigned 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.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI0058D
Non-Confidential