Datasheet

ARMulator Reference
4-16 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D
4.4.1 ARMulif_InstallCoprocessorV5
Use this function to register a coprocessor handler.
This function is prototyped in
armul_copro.h
.
Syntax
unsigned ARMulif_InstallCoprocessorV5(RDI_ModuleDesc *mdesc, unsigned number,
struct ARMul_CoprocessorV5 *cpv5, void *handle)
where:
mdesc
is the handle for the core.
number
is the coprocessor number.
cpv5
is a pointer to the coprocessor interface structure.
handle
is a pointer to private data to pass to each coprocessor function.
Return
This function returns either:
ARMulErr_NoError
, if there is no error
an
ARMul_Error
value.
See
armerrs.h
and
errors.h
for a full list of error codes. The error must be passed
through
Hostif_RaiseError()
for formatting (see Hostif_RaiseError on page 4-45).