Datasheet

ARMulator Reference
4-36 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D
RDICycles
Models that have declared a statistics counter by trapping
RDIRequestCyclesDesc
must also respond to
RDICycles
by calling
ARMul_AddCounterValue()
(see General purpose functions on page 4-41)
for each counter in turn, in the same order as they were declared.
The above RDI info calls have already been dealt with by ARMulator, and are passed
for information only, or so that models can add information to the reply. Models must
always respond to these messages with
RDIError_UnimplementedMessage
, so that the
message is passed on even if the model has responded.
Install the handler using:
int ARMulif_InstallUnkRDIInfoHandler(RDI_ModuleDesc *mdesc,
RDI_InfoProc *func, void *handle)
Remove the handler using:
int ARMulif_RemoveUnkRDIInfoHandler(RDI_ModuleDesc *mdesc,
RDI_InfoProc *func, void *handle)
Example
The
semihost.c
model supplied with ARMulator uses the
UnkRDIInfoUpcall()
to interact
with the debugger:
RDIErrorP
returns errors raised by the program running under ARMulator to
the debugger.
RDISet_Cmdline
finds the command line set for the program by the debugger.
RDIVector_Catch
intercepts the hardware vectors.