firmware: add LinAlgError exception

This commit is contained in:
abdul124 2024-08-22 10:42:28 +08:00
parent 04078b3d89
commit 85e8a3fc44
1 changed files with 2 additions and 1 deletions

View File

@ -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 {