Isla: integrating full-scale ISA semantics and axiomatic concurrency models (extended version)
Open Access
- 12 May 2023
- journal article
- research article
- Published by Springer Nature in Formal Methods in System Design
- Vol. 63 (1-3) , 110-133
Abstract
Architecture specifications such as Armv8-A and RISC-V are the ultimate foundation for software verification and the correctness criteria for hardware verification. They should define the allowed sequential and relaxed-memory concurrency behaviour of programs, but hitherto there has been no integration of full-scale instruction-set architecture (ISA) semantics with axiomatic concurrency models, either in mathematics or in tools. These ISA semantics can be surprisingly large and intricate, e.g. 100k $$+$$ lines for Armv8-A. In this paper we present a tool, Isla, for computing the allowed behaviours of concurrent litmus tests with respect to full-scale ISA definitions, in the Sail language, and arbitrary axiomatic relaxed-memory concurrency models, in the Cat language. It is based on a generic symbolic engine for Sail ISA specifications. We equip the tool with a web interface to make it widely accessible, and illustrate and evaluate it for Armv8-A and RISC-V. The symbolic execution engine is valuable also for other verification tasks: it has been used in automated ISA test generation for the Arm Morello prototype architecture, extending Armv8-A with CHERI capabilities, and for Iris program-logic reasoning about binary code above the Armv8-A and RISC-V ISA specifications. By using full-scale and authoritative ISA semantics, Isla lets one evaluate litmus tests using arbitrary user instructions with high confidence. Moreover, because these ISA specifications give detailed and validated definitions of the sequential aspects of systems functionality, as used by hypervisors and operating systems, e.g. instruction fetch, exceptions, and address translation, our tool provides a basis for developing concurrency semantics for these. We demonstrate this for the Armv8-A instruction-fetch and virtual-memory models and examples of Simner et al.
Keywords
Funding Information
- UK Government Industrial Strategy Challenge Fund (105694)
- Engineering and Physical Sciences Research Council (EP/K008528/1)
- Defense Advanced Research Projects Agency (FA8650-18-C-7809)
- ARM Ltd (Arm iCASE award)
- European Research Council (AdG 789108 ELVER)
This publication has 24 references indexed in Scilit:
- Synthesizing memory models from framework sketches and Litmus tests2017
- Automatically comparing memory consistency models2017
- Modelling the ARMv8 architecture, operationally: concurrency and ISA2016
- Herding CatsACM Transactions on Programming Languages and Systems, 2014
- Partial Orders for Efficient Bounded Model Checking of Concurrent Software2013
- An Axiomatic Memory Model for POWER Multiprocessors2012
- Litmus: Running Tests against Hardware2011
- A Better x86 Memory Model: x86-TSO2009
- Analyzing the Intel Itanium Memory Ordering Rules Using Logic Programming and SATLecture Notes in Computer Science, 2003
- An executable specification and verifier for relaxed memory orderIEEE Transactions on Computers, 1999