Exception Handling
ConceptException handling is a cross-cutting concept that spans hardware-level CPU behavior, programming-language error-handling constructs, RISC-V assembly program generation, and RISC-V hardware extensions for control-transfer tracing. Evidence covers: (i) CPU emulator testing methodology and documented exception-handling defects; (ii) software-engineering studies of exception flows and anti-patterns in Java and C#; (iii) the CHIPS Alliance `riscv-dv` assembly generator's emission of exception-handler sections; and (iv) the RISC-V Control Transfer Records (CTR) extension, which provides hardware CSRs that explicitly classify control transfers by type, including `EXCEPTION` and `INTERRUPT` as first-class record categories.
WIKI
Overview
Exception handling is a concept that spans multiple layers of computing, from hardware CPU behavior to high-level programming-language constructs. The provided evidence touches on exception handling in four distinct contexts: (i) CPU emulator testing, where exceptions are modeled as part of the abstract machine state and used to detect emulation defects; (ii) programming-language practices, where studies have examined exception flows and anti-patterns in Java and C# codebases; (iii) RISC-V assembly program generation, where the riscv-dv random instruction generator emits a dedicated exception-handling section; and (iv) RISC-V hardware extensions, where the Control Transfer Records (CTR) extension defines CSRs that classify recorded control transfers by type, treating exceptions and interrupts as distinct record categories alongside branches, calls, jumps, and returns.
Exception Handling in CPU Emulators
NEIGHBORHOOD
No graph connections found for this entity yet. It may appear in future ingestion runs.
explore full graph →