首页> 外文会议>Theorem proving in higher order logics >A Better x86 Memory Model: x86-TSO
【24h】

A Better x86 Memory Model: x86-TSO

机译:更好的x86内存模型:x86-TSO

获取原文
获取原文并翻译 | 示例

摘要

Real multiprocessors do not provide the sequentially consistent memory that is assumed by most work on semantics and verification. Instead, they have relaxed memory models, typically described in ambiguous prose, which lead to widespread confusion. These are prime targets for mechanized formalization. In previous work we produced a rigorous x86-CC model, formalizing the Intel and AMD architecture specifications of the time, but those turned out to be unsound with respect to actual hardware, as well as arguably too weak to program above. We discuss these issues and present a new x86-TSO model that suffers from neither problem, formalized in HOL4. We believe it is sound with respect to real processors, reflects better the vendor's intentions, and is also better suited for programming. We give two equivalent definitions of x86-TSO: an intuitive operational model based on local write buffers, and an axiomatic total store ordering model, similar to that of the SPARCv8. Both are adapted to handle x86-specific features. We have implemented the axiomatic model in our memevents tool, which calculates the set of all valid executions of test programs, and, for greater confidence, verify the witnesses of such executions directly, with code extracted from a third, more algorithmic, equivalent version of the definition.
机译:真正的多处理器不提供大多数语义和验证工作所假定的顺序一致的内存。取而代之的是,他们有了轻松的记忆模型,通常以模棱两可的散文来描述,从而导致广泛的混乱。这些是机械化形式化的主要目标。在以前的工作中,我们制作了严格的x86-CC模型,正式确定了当时的Intel和AMD架构规范,但事实证明这些规范对于实际硬件而言并不完善,并且可以说太弱而无法在上面进行编程。我们讨论这些问题,并提出一种新的x86-TSO模型,该模型在HOL4中都没有遇到任何问题。我们认为,对于真实处理器而言,这是合理的,它可以更好地反映供应商的意图,并且也更适合编程。我们给出了x86-TSO的两个等效定义:一个基于本地写缓冲区的直观操作模型,一个与SPARCv8相似的公理的总商店订购模型。两者都适合处理x86特定的功能。我们已经在memevents工具中实现了公理化模型,该模型计算测试程序的所有有效执行的集合,并出于更大的信心,直接从第三种,算法更高的等效版本中提取代码来直接验证此类执行的见证人。定义。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号