Datasheet

ARMulator Reference
ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-47
4.10.6 ARMul_AddCounterValue
This function provides the facility for your model to supply statistics for the debugger
to display.
Syntax
int ARMul_AddCounterValue(void *handle, ARMword *arg1, ARMword *arg2, bool is64,
const ARMword *counter)
where:
handle
is no longer used.
arg1/arg2
are the arguments passed to the
UnkRDIInfoUpcall()
.
is64
denotes whether the counter is a pair of 32-bit words making a 64-bit
counter (least significant word first), or a single 32-bit value. This enables
modules to provide a full 64-bit counter.
counter
is a pointer to the current value of the counter.
Return
The function always returns
RDIError_UnimplementedMessage
.
Usage
Your model must call this function, or
ARMul_AddCounterValue64
, from its
UnkRDIInfoUpcall()
handler.
ARMul_AddCounterValue64
is identical to
ARMul_AddCounterValue
except for the word order of the counter.