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 />

2.1 <strong><strong>ARM</strong>ulator</strong><br />

2.1.1 <br />

<strong><strong>ARM</strong>ulator</strong> 是 一 种 指 令 集 模 拟 器 它 可 以 模 拟 指 令 集 和 各 种 <strong>ARM</strong> 处 理 器 结 构<br />

要 在 <strong><strong>ARM</strong>ulator</strong> 上 运 行 软 件 请 通 过 RDI 1.5.1 兼 容 调 试 器 进 行 访 问<br />

<strong><strong>ARM</strong>ulator</strong> 适 用 于 软 件 开 发 并 可 作 为 以 <strong>ARM</strong> 为 目 标 的 软 件 的 基 准 程 序 它 可<br />

以 模 拟 指 令 集 和 计 数 周 期 请 参 阅 第 2-14 页 <strong><strong>ARM</strong>ulator</strong> 周 期 类 型 作 为 基 准<br />

程 序 的 精 度 和 周 期 计 数 精 度 会 受 到 一 定 限 制 请 参 阅 精 度<br />

<strong><strong>ARM</strong>ulator</strong> 可 提 供 使 全 部 C 或 C++ 程 序 在 模 拟 系 统 上 运 行 所 需 的 全 部 工 具<br />

有 关 <strong><strong>ARM</strong>ulator</strong> 支 持 的 C 库 semihosting SWI 的 信 息 另 请 参 阅 <strong>RealView</strong><br />

Compilation Tools v1.2 Compilers and Libraries <strong>Guide</strong><br />

<strong><strong>ARM</strong>ulator</strong> 不 能 达 到 100% 的 精 度 因 为 它 并 不 是 基 于 真 实 处 理 器 的 一 般 而<br />

言 不 是 很 复 杂 非 高 速 缓 存 的 <strong>ARM</strong> 处 理 器 内 核 模 型 精 度 较 高 而 带 高 速 缓<br />

存 的 那 些 内 核 模 型 可 能 与 实 际 硬 件 的 精 度 不 完 全 相 同<br />

<strong><strong>ARM</strong>ulator</strong> 适 合 用 作 系 统 设 计 的 软 件 开 发 工 具 但 如 果 需 要 100% 的 精 度 则 必<br />

须 使 用 硬 件 模 型<br />

在 以 下 情 况 下 您 可 以 使 用 <strong><strong>ARM</strong>ulator</strong> 作 为 基 准 程 序<br />

• 您 正 在 建 模 的 内 核 没 有 高 速 缓 存<br />

• 您 只 需 要 近 似 比 较<br />

<strong><strong>ARM</strong>ulator</strong> 不 会 在 高 速 缓 存 内 核 上 建 立 Asynchronous Mode 模 型 如 果 您 在<br />

CP15 中 设 置 了 控 制 位 以 便 指 定 Asynchronous Mode <strong><strong>ARM</strong>ulator</strong> 将 会 发 出 警 告<br />

Set to Asynch mode, WARNING this is not supported<br />

您 可 以 继 续 调 试<br />

但 <strong><strong>ARM</strong>ulator</strong> 将 完 全 按 照 Synchronous Mode 的 方 式 运 行<br />

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

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

Saved successfully!

Ooh no, something went wrong!