Datasheet
ARMulator Reference
ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-51
4.10.11 ARMulif_InstallHourglass
Use this function to install an hourglass callback from ARMulator to your model.
Syntax
void *ARMulif_InstallHourglass(RDI_ModuleDesc *mdesc,
armul_Hourglass *newHourglass, void *handle);
where:
mdesc
is the handle for the core.
newHourglass
is a function of type
armul_Hourglass
. You can find the prototype for
armul_Hourglass
in
armul_types.h
, in
install_directory\ARMulate\armulif
.
handle
is a pointer to the data required by your function,
newHourglass
.
Usage
When you install an hourglass, ARMulator gives your model a callback each time an
instruction is executed.
Return
This function returns a handle for your model to use to remove the hourglass callback.
4.10.12 ARMulif_RemoveHourglass
Use this function to remove an hourglass callback.
Syntax
int ARMulif_RemoveHourglass(RDI_ModuleDesc *mdesc, void *node);
where:
mdesc
is the handle for the core.
node
is the handle returned by
ARMulif_InstallHourglass
.