25.11.2014 Views

RealView ARMulator ISS User Guide - ARM Information Center

RealView ARMulator ISS User Guide - ARM Information Center

RealView ARMulator ISS User Guide - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong><strong>ARM</strong>ulator</strong> 参 考<br />

4.3.1 <br />

每 个 模 型 均 必 须 将 其 状 态 保 存 在 私 有 数 据 结 构 中<br />

提 供 这 些 宏 需 要 使 用 此 数 据 结 构 中 的 某 些 字 段<br />

初 始 化 和 最 终 化 宏 可 由 <strong>ARM</strong>ulif<br />

要 声 明 状 态 数 据 结 构<br />

请 按 照 以 下 说 明 使 用 BEGIN_STATE_DECL 和 END_STATE_DECL 宏<br />

/*<br />

* Create a YourModelState data structure<br />

*/<br />

BEGIN_STATE_DECL(YourModel)<br />

/*<br />

* Your private data here<br />

*/<br />

END_STATE_DECL(YourModel)<br />

这 可 声 明 以 下 结 构<br />

typedef struct YourModelState<br />

此 结 构 包 含<br />

• 预 定 义 的 数 据 字 段<br />

— toolconf config<br />

— const struct RDI_HostosInterface *hostif<br />

— RDI_ModuleDesc coredesc;<br />

— RDI_ModuleDesc agentdesc<br />

• 您 输 入 的 私 有 数 据 位 于 宏 之 间<br />

<strong>ARM</strong> DUI 0207ASC-00 Copyright © 2002, 2003 <strong>ARM</strong> Limited 版 权 所 有 4-13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!