mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-18 07:56:30 +08:00
firmware: add LinAlgError exception
This commit is contained in:
parent
8e6fe41dc4
commit
3d125e76b3
@ -329,7 +329,7 @@ extern fn stop_fn(_version: c_int,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Must be kept in sync with `artiq.compiler.embedding`
|
// 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),
|
("RTIOUnderflow", 0),
|
||||||
("RTIOOverflow", 1),
|
("RTIOOverflow", 1),
|
||||||
("RTIODestinationUnreachable", 2),
|
("RTIODestinationUnreachable", 2),
|
||||||
@ -350,6 +350,7 @@ static EXCEPTION_ID_LOOKUP: [(&str, u32); 20] = [
|
|||||||
("TypeError", 17),
|
("TypeError", 17),
|
||||||
("ValueError", 18),
|
("ValueError", 18),
|
||||||
("ZeroDivisionError", 19),
|
("ZeroDivisionError", 19),
|
||||||
|
("LinAlgError", 20),
|
||||||
];
|
];
|
||||||
|
|
||||||
pub fn get_exception_id(name: &str) -> u32 {
|
pub fn get_exception_id(name: &str) -> u32 {
|
||||||
|
Loading…
Reference in New Issue
Block a user