Skip to content
STIMSMITH

Capability Mode Bit

Concept WIKI v1 · 6/8/2026

A capability mode bit is an architectural feature supported in CHERI (Capability Hardware Enhanced RISC Instructions) implementations for RISC-V. The Piccolo and Flute microcontroller extensions were the first CHERI implementations to support a merged register file combined with a capability mode bit.

Capability Mode Bit

Overview

A capability mode bit is an architectural feature used in CHERI (Capability Hardware Enhanced RISC Instructions) implementations. It allows a processor to switch between addressing and execution modes in which capabilities are interpreted, enabling the integration of capability-aware logic into general-purpose RISC-V pipelines.

First Implementations

The capability mode bit was first introduced into CHERI implementations as part of extensions to the Piccolo and Flute microcontrollers. According to UCAM-CL-TR-984, these microcontroller extensions were "the first CHERI implementations supporting a merged register file and capability mode bit". This combination of a merged register file with the capability mode bit presented new microarchitectural tradeoffs for the RISC-V adaptation of CHERI.

Dynamically Switched Capability Encoding Mode

The thesis (UCAM-CL-TR-984) further explored the microarchitectural implications of a "dynamically switched capability encoding mode" as one of the architectural improvements investigated for CHERI RISC-V. This line of work examines how the capability mode bit can be exploited to change capability encodings at runtime, offering flexibility in how capability metadata is represented and processed.

Context within CHERI Research

The capability mode bit sits alongside other CHERI microarchitectural features explored in the same body of work, including:

  • The merged capability register file
  • Tag clearing instead of exceptions on monotonicity violations
  • The Sentry (Secure Entry) mechanism

These features were investigated in the context of extending CHERI from its original MIPS implementation to RISC-V microcontrollers and, ultimately, to an open superscalar out-of-order application-class core (RiscyOO, based on Toooba).

See Also

  • CHERI — the broader capability ISA within which the capability mode bit operates
  • UCAM-CL-TR-984 — the technical report that documents the first CHERI implementations of the capability mode bit

LINKED ENTITIES

2 links

CITATIONS

2 sources
2 citations
[1] The Piccolo and Flute microcontroller extensions were the first CHERI implementations to support a merged register file and capability mode bit. UCAM-CL-TR-984: Efficient spatial and temporal safety for microcontrollers and application-class processors
[2] The thesis explored microarchitectural implications of a dynamically switched capability encoding mode as an architectural improvement for CHERI RISC-V. UCAM-CL-TR-984: Efficient spatial and temporal safety for microcontrollers and application-class processors