ARM VERSION 1.2 Datový list Strana 73

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 176
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 72
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.
Zobrazit stránku 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 175 176

Komentáře k této Příručce

Žádné komentáře