Datasheet
ARMulator Reference
ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-45
4.10.3 Hostif_RaiseError
Several initialization and installation functions can return errors of type
ARMul_Error
.
These errors must be passed through
Hostif_RaiseError()
. This is a printf-like function
that formats the error message associated with an
ARMul_Error
error code.
Hostif_RaiseError
only prints the error message. After calling this function, the model
must return with an appropriate error, such as
RDIError_UnableToInitialise
.
Hostif_RaiseError
must only be used during initialization.
Syntax
void Hostif_RaiseError(const struct RDI_HostosInterface *hostif,
const char *format, ...)
where:
hostif
is the handle for the host interface.
format
is the error code for the error message to be formatted.
...
are printf-style format specifiers of variadic type.
4.10.4 ARMulif_Time
This function returns the number of memory cycles executed since system reset.
Syntax
ARMTime ARMulif_Time(RDI_ModuleDesc *mdesc)
where:
mdesc
is the handle for the core.
Return
The function returns the total number of cycles executed since system reset.