forked from M-Labs/artiq-zynq
Compare commits
No commits in common. "e042a7868d75b3981de287900088b6bb2e83f130" and "a7dbfe506e53e201e3f3a575fb9fd5b91c1d3810" have entirely different histories.
e042a7868d
...
a7dbfe506e
16
flake.lock
generated
16
flake.lock
generated
@ -11,11 +11,11 @@
|
|||||||
"src-pythonparser": "src-pythonparser"
|
"src-pythonparser": "src-pythonparser"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1724210862,
|
"lastModified": 1717642968,
|
||||||
"narHash": "sha256-D1WN3MkmlQtuk0eM3PWwaq55SegdIxHXNtXlyFcSMoM=",
|
"narHash": "sha256-4t+Z1kbObauE0OiofvM9ZSHghqDvMgqmcrnCEQR1kqc=",
|
||||||
"ref": "release-7",
|
"ref": "release-7",
|
||||||
"rev": "70c2ca58af171dbacad3ffb1f6dd3d6d313c5e8c",
|
"rev": "c81280174c6e6bd11ce4b6043811f7030f0f5b0c",
|
||||||
"revCount": 8205,
|
"revCount": 8193,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/m-labs/artiq.git"
|
"url": "https://github.com/m-labs/artiq.git"
|
||||||
},
|
},
|
||||||
@ -235,11 +235,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1720537402,
|
"lastModified": 1717654016,
|
||||||
"narHash": "sha256-ybvaQ48SVBqYVqgYmGUdefGZkni7PJ90qYQPHnFOwDs=",
|
"narHash": "sha256-y/c0EZNDNlxb/yLy/D23X9PLoiQ8I9mXAA0zsVOy2t8=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "b2b3e5c933cbc4b7cb14adde480d7561a3ae71ee",
|
"rev": "0efbbe39fe643c03f15e29c208bff3247a987766",
|
||||||
"revCount": 648,
|
"revCount": 647,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.m-labs.hk/m-labs/zynq-rs"
|
"url": "https://git.m-labs.hk/m-labs/zynq-rs"
|
||||||
},
|
},
|
||||||
|
@ -404,18 +404,26 @@ extern fn stop_fn(_version: c_int,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Must be kept in sync with preallocate_runtime_exception_names() in `artiq.compiler.embedding`
|
// Must be kept in sync with preallocate_runtime_exception_names() in `artiq.compiler.embedding`
|
||||||
static EXCEPTION_ID_LOOKUP: [(&str, u32); 11] = [
|
static EXCEPTION_ID_LOOKUP: [(&str, u32); 19] = [
|
||||||
("RuntimeError", 0),
|
("RTIOUnderflow", 0),
|
||||||
("RTIOUnderflow", 1),
|
("RTIOOverflow", 1),
|
||||||
("RTIOOverflow", 2),
|
("RTIODestinationUnreachable", 2),
|
||||||
("RTIODestinationUnreachable", 3),
|
("DMAError", 3),
|
||||||
("DMAError", 4),
|
("I2CError", 4),
|
||||||
("I2CError", 5),
|
("CacheError", 5),
|
||||||
("CacheError", 6),
|
("SPIError", 6),
|
||||||
("SPIError", 7),
|
("AssertionError", 7),
|
||||||
("ZeroDivisionError", 8),
|
("AttributeError", 8),
|
||||||
("IndexError", 9),
|
("IndexError", 9),
|
||||||
("UnwrapNoneError", 10),
|
("IOError", 10),
|
||||||
|
("KeyError", 11),
|
||||||
|
("NotImplementedError", 12),
|
||||||
|
("OverflowError", 13),
|
||||||
|
("RuntimeError", 14),
|
||||||
|
("TimeoutError", 15),
|
||||||
|
("TypeError", 16),
|
||||||
|
("ValueError", 17),
|
||||||
|
("ZeroDivisionError", 18),
|
||||||
];
|
];
|
||||||
|
|
||||||
pub fn get_exception_id(name: &str) -> u32 {
|
pub fn get_exception_id(name: &str) -> u32 {
|
||||||
|
Loading…
Reference in New Issue
Block a user