Datasheet

ARMulator Reference
ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-41
4.10 General purpose functions
The following are general purpose ARMulator functions. They include functions to
access processor properties, add counter descriptions and values, stop ARMulator and
execute code:
ARMul_BusRegisterPeripFunc
ARMulif_ReadBusRange on page 4-44
Hostif_RaiseError on page 4-45
ARMulif_Time on page 4-45
ARMul_AddCounterDesc on page 4-46
ARMul_AddCounterValue on page 4-47
ARMulif_StopExecution on page 4-49
ARMulif_EndCondition on page 4-49
ARMulif_GetCoreClockFreq on page 4-50.
4.10.1 ARMul_BusRegisterPeripFunc
A peripheral model must call this function to register the peripheral with the
ARMulator. This enables ARMulator to call the model whenever it makes accesses to
memory locations belonging to the peripheral.
Syntax
int ARMul_BusRegisterPeripFunc(enum BusRegAct act,
ARMul_BusPeripAccessRegistration *breg);
where:
act
is the action you want.
act
must have one of the following values:
insert
or
remove
.
breg
is a structure containing information for the ARMulator. You can obtain
this structure by calling
ARMulif_ReadBusRange
(see
ARMulif_ReadBusRange on page 4-44).
breg
is a structure of type
ARMul_BusPeripAccessRegistration
(see
ARMul_BusPeripAccessRegistration on page 4-42 for details).