Datasheet
ARMulator Reference
ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-13
4.3.1 Declaration of a private state data structure
Each model must store its state in a private data structure. Initialization and finalization
macros are provided by
ARMulif
. These macros require the use of certain fields in this
data structure.
To declare a state data structure, use the
BEGIN_STATE_DECL
and
END_STATE_DECL
macros
as follows:
/*
* Create a YourModelState data structure
*/
BEGIN_STATE_DECL(YourModel)
/*
* Your private data here
*/
END_STATE_DECL(YourModel)
This declares a structure:
typedef struct YourModelState
This structure contains:
• predefined data fields:
—
toolconf config
—
const struct RDI_HostosInterface *hostif
—
RDI_ModuleDesc coredesc;
—
RDI_ModuleDesc agentdesc
• the private data you put between the macros.