From 3d125e76b3b9b983942e2cb5f10f9400a77c25ba Mon Sep 17 00:00:00 2001 From: abdul124 Date: Thu, 22 Aug 2024 10:39:14 +0800 Subject: [PATCH] firmware: add LinAlgError exception --- artiq/firmware/ksupport/eh_artiq.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/firmware/ksupport/eh_artiq.rs b/artiq/firmware/ksupport/eh_artiq.rs index 5fbd079aa..d513530d8 100644 --- a/artiq/firmware/ksupport/eh_artiq.rs +++ b/artiq/firmware/ksupport/eh_artiq.rs @@ -329,7 +329,7 @@ extern fn stop_fn(_version: c_int, } // Must be kept in sync with `artiq.compiler.embedding` -static EXCEPTION_ID_LOOKUP: [(&str, u32); 20] = [ +static EXCEPTION_ID_LOOKUP: [(&str, u32); 21] = [ ("RTIOUnderflow", 0), ("RTIOOverflow", 1), ("RTIODestinationUnreachable", 2), @@ -350,6 +350,7 @@ static EXCEPTION_ID_LOOKUP: [(&str, u32); 20] = [ ("TypeError", 17), ("ValueError", 18), ("ZeroDivisionError", 19), + ("LinAlgError", 20), ]; pub fn get_exception_id(name: &str) -> u32 {