Arm-A的宽松异常语义(扩展版)
Relaxed exception semantics for Arm-A (extended version)
AI总结:
本文探讨了在宽松内存设置下Arm-A架构的异常精确性问题,澄清了跨异常边界的宽松行为与外部中止语义,开发了公理模型、执行工具和测试库,并探索了软件生成中断的宽松语义建模。
摘要:
为了管理异常,软件依赖一个关键的架构保证,即精确性:异常看起来像是在指令之间执行的。然而,这个有60多年历史的定义从根本上假设了一个顺序程序员模型。像Arm-A这样具有程序员可观察宽松行为的现代架构使得这种简单的定义变得不充分,并且程序员在异常进入和退出时究竟拥有什么保证尚不明确。在本文中,我们澄清了在宽松内存设置下讨论异常所需的概念——这是精确指定硬件和软件之间架构接口的一个关键方面。我们以Arm-A作为代表性现代架构,探索了跨异常边界的基本宽松行为以及外部中止的语义。我们识别出一个重要问题,即确定在宽松设置下异常精确意味着什么,这是数十年来尚未探索的。我们描述了任何定义都应考虑的关键现象。我们开发了Arm-A精确异常的公理模型、用于公理模型执行的工具以及一个测试库。最后,我们探索了软件生成的中断的宽松语义,如在复杂编程模式中所使用的,并概述了如何对它们进行建模。
英文摘要:
To manage exceptions, software relies on a key architectural guarantee, precision: that exceptions appear to execute between instructions. However, this definition, dating back over 60 years, fundamentally assumes a sequential programmers model. Modern architectures such as Arm-A with programmer-observable relaxed behaviour make such a naive definition inadequate, and it is unclear exactly what guarantees programmers have on exception entry and exit. In this paper, we clarify the concepts needed to discuss exceptions in the relaxed-memory setting -- a key aspect of precisely specifying the architectural interface between hardware and software. We explore the basic relaxed behaviour across exception boundaries, and the semantics of external aborts, using Arm-A as a representative modern architecture. We identify an important problem, present yet unexplored for decades: pinning down what it means for exceptions to be precise in a relaxed setting. We describe key phenomena that any definition should account for. We develop an axiomatic model for Arm-A precise exceptions, tooling for axiomatic model execution, and a library of tests. Finally we explore the relaxed semantics of software-generated interrupts, as used in sophisticated programming patterns, and sketch how they too could be modelled.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。