summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2018-08-25 13:14:58 +0200
committerNoralf Trønnes <noralf@tronnes.org>2018-08-25 13:14:58 +0200
commit2d1fecc80430618ff295498c421064be28796822 (patch)
treeaa6d25a0495d7d96f9efa51b5973184e816272c0 /py
parentd1b588375be0812f6e8d58f1eba1a6c82f91a931 (diff)
Revert "py/vm: Improve performance of opcode dispatch when using switch stmt."
This reverts commit 869024dd6e62905b7e1069b547856a769b3b24ba. Ctrl-C stopped producing KeyboardInterrupt with this change on CircuitPython. The Unix and stm32 ports handles Ctrl-C differently with a handler which is probably why they where not affected. Fixes #1092
Diffstat (limited to 'py')
-rw-r--r--py/vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/vm.c b/py/vm.c
index 72d0d0d60..b5f53ee9a 100644
--- a/py/vm.c
+++ b/py/vm.c
@@ -136,7 +136,7 @@ mp_vm_return_kind_t mp_execute_bytecode(mp_code_state_t *code_state, volatile mp
#define ENTRY(op) entry_##op
#define ENTRY_DEFAULT entry_default
#else
- #define DISPATCH() goto dispatch_loop
+ #define DISPATCH() break
#define DISPATCH_WITH_PEND_EXC_CHECK() goto pending_exception_check
#define ENTRY(op) case op
#define ENTRY_DEFAULT default