From 7d3e18d989f67b718895577c9b5ff78cf7966485 Mon Sep 17 00:00:00 2001 From: Luke Craig Date: Mon, 11 Mar 2024 19:45:38 -0400 Subject: [PATCH] fix sbe nondeterminism --- panda/src/cb-support.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/cb-support.c b/panda/src/cb-support.c index 0f72386ed18..eb048f8c8e3 100644 --- a/panda/src/cb-support.c +++ b/panda/src/cb-support.c @@ -83,6 +83,9 @@ MAKE_CALLBACK(void, END_BLOCK_EXEC, end_block_exec, // Non-macroized version for SBE - if panda_please_retranslate is set, we'll break void PCB(start_block_exec)(CPUState *cpu, TranslationBlock *tb) { + if (unlikely(panda_exit_loop)){ + return; + } panda_cb_list *plist; for (plist = panda_cbs[PANDA_CB_START_BLOCK_EXEC]; plist != NULL; plist = panda_cb_list_next(plist)) { if (plist->enabled)