From c0d79a0ce2fea4028cdc17e24b1f067b5556920d Mon Sep 17 00:00:00 2001 From: David Mak Date: Mon, 30 Oct 2023 14:20:29 +0800 Subject: [PATCH] embedding_map: Update exception list to match NAC3 Signed-off-by: David Mak --- artiq/language/embedding_map.py | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/artiq/language/embedding_map.py b/artiq/language/embedding_map.py index 050925db9..14833b730 100644 --- a/artiq/language/embedding_map.py +++ b/artiq/language/embedding_map.py @@ -11,16 +11,23 @@ class EmbeddingMap: # must be kept in sync with EXCEPTION_ID_LOOKUP in artiq/firmware/ksupport/eh_artiq.rs, # and src/runtime/src/eh_artiq.rs (Zynq) self.preallocate_runtime_exception_names(["RuntimeError", - "RTIOUnderflow", - "RTIOOverflow", - "RTIODestinationUnreachable", - "DMAError", - "I2CError", - "CacheError", - "SPIError", - "0:ZeroDivisionError", - "0:IndexError", - "0:UnwrapNoneError"]) + "RTIOUnderflow", + "RTIOOverflow", + "RTIODestinationUnreachable", + "DMAError", + "I2CError", + "CacheError", + "SPIError", + "0:ZeroDivisionError", + "0:IndexError", + "0:ValueError", + "0:RuntimeError", + "0:AssertionError", + "0:KeyError", + "0:NotImplementedError", + "0:OverflowError", + "0:IOError", + "0:UnwrapNoneError"]) def preallocate_runtime_exception_names(self, names): for i, name in enumerate(names):