From 7a2b11cc54b15c12cb8d441ff3817f10cbe70912 Mon Sep 17 00:00:00 2001 From: abdul124 Date: Fri, 23 Aug 2024 16:55:44 +0800 Subject: [PATCH] firmware: add UnwrapNoneError 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 d513530d8..92806d7b2 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); 21] = [ +static EXCEPTION_ID_LOOKUP: [(&str, u32); 22] = [ ("RTIOUnderflow", 0), ("RTIOOverflow", 1), ("RTIODestinationUnreachable", 2), @@ -351,6 +351,7 @@ static EXCEPTION_ID_LOOKUP: [(&str, u32); 21] = [ ("ValueError", 18), ("ZeroDivisionError", 19), ("LinAlgError", 20), + ("UnwrapNoneError", 21), ]; pub fn get_exception_id(name: &str) -> u32 {