Skip to main navigation Skip to search Skip to main content

Precise exceptions in relaxed architectures

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

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.
Original languageEnglish
Title of host publicationISCA '25
Subtitle of host publicationProceedings of the 52nd Annual International Symposium on Computer Architecture
Place of PublicationNew York, NY, USA
PublisherAssociation for Computing Machinery (ACM)
Pages211-224
Number of pages14
ISBN (Electronic)9798400712616
DOIs
Publication statusPublished - 20 Jun 2025
EventThe 52nd Annual International Symposium on Computer Architecture - Waseda University, Tokyo, Japan
Duration: 21 Jun 202525 Jun 2025
Conference number: 52
https://www.iscaconf.org/isca2025/

Publication series

NameProceedings of the International Symposium on Computer Architecture
PublisherACM
ISSN (Print)1063-6897
ISSN (Electronic)2575-713X

Symposium

SymposiumThe 52nd Annual International Symposium on Computer Architecture
Abbreviated titleISCA 2025
Country/TerritoryJapan
CityTokyo
Period21/06/2525/06/25
Internet address

Keywords / Materials (for Non-textual outputs)

  • computer architecture
  • relaxed memory
  • exceptions and interrupts
  • exception handling
  • semantics
  • Computer architecture

Fingerprint

Dive into the research topics of 'Precise exceptions in relaxed architectures'. Together they form a unique fingerprint.

Cite this