ARM VERSION 1.2 Ficha Técnica Página 73

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 176
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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.
Vista de página 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 175 176

Comentários a estes Manuais

Sem comentários