From 85e8a3fc44e081e68e4a00ab4f6c8e2a24642b29 Mon Sep 17 00:00:00 2001 From: abdul124 Date: Thu, 22 Aug 2024 10:42:28 +0800 Subject: [PATCH] firmware: add LinAlgError exception --- src/libksupport/src/eh_artiq.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libksupport/src/eh_artiq.rs b/src/libksupport/src/eh_artiq.rs index a0f0519..f8f86ef 100644 --- a/src/libksupport/src/eh_artiq.rs +++ b/src/libksupport/src/eh_artiq.rs @@ -476,7 +476,7 @@ extern "C" fn stop_fn( } // Must be kept in sync with preallocate_runtime_exception_names() in `artiq.compiler.embedding` -static EXCEPTION_ID_LOOKUP: [(&str, u32); 20] = [ +static EXCEPTION_ID_LOOKUP: [(&str, u32); 21] = [ ("RTIOUnderflow", 0), ("RTIOOverflow", 1), ("RTIODestinationUnreachable", 2), @@ -497,6 +497,7 @@ static EXCEPTION_ID_LOOKUP: [(&str, u32); 20] = [ ("TypeError", 17), ("ValueError", 18), ("ZeroDivisionError", 19), + ("LinAlgError", 20), ]; pub fn get_exception_id(name: &str) -> u32 {