diff --git a/py/mpconfig.h b/py/mpconfig.h
index 43c931cd6682301547d8da356c7009a108a8d2b0..4c3e0706a7b41ada66556bee774f821053a6dcfb 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -166,8 +166,8 @@ typedef double mp_float_t;
 
 // Whether to use computed gotos in the VM, or a switch
 // Computed gotos are roughly 10% faster, and increase VM code size by a little
-#ifndef MICROPY_USE_COMPUTED_GOTOS
-#define MICROPY_USE_COMPUTED_GOTOS (0)
+#ifndef MICROPY_USE_COMPUTED_GOTO
+#define MICROPY_USE_COMPUTED_GOTO (0)
 #endif
 
 // Additional builtin function definitions - see builtintables.c:builtin_object_table for format.
diff --git a/py/vm.c b/py/vm.c
index f14899ab41969bd44d5253a99bcba5b24e9159d7..c8e4ba9f48487b77b20af1d980a3fc634efc95b0 100644
--- a/py/vm.c
+++ b/py/vm.c
@@ -165,7 +165,7 @@ mp_vm_return_kind_t mp_execute_byte_code_2(const byte *code_info, const byte **i
                                            mp_obj_t *fastn, mp_obj_t **sp_in_out,
                                            mp_exc_stack_t *exc_stack, mp_exc_stack_t **exc_sp_in_out,
                                            volatile mp_obj_t inject_exc) {
-#if MICROPY_USE_COMPUTED_GOTOS
+#if MICROPY_USE_COMPUTED_GOTO
     #include "vmentrytable.h"
     #define DISPATCH() do { \
         save_ip = ip; \
@@ -220,7 +220,7 @@ outer_dispatch_loop:
             // loop to execute byte code
             for (;;) {
 dispatch_loop:
-#if MICROPY_USE_COMPUTED_GOTOS
+#if MICROPY_USE_COMPUTED_GOTO
                 DISPATCH();
 #else
                 save_ip = ip;
@@ -935,7 +935,7 @@ yield:
                     fastn[0] = obj1;
                     return MP_VM_RETURN_EXCEPTION;
 
-#if !MICROPY_USE_COMPUTED_GOTOS
+#if !MICROPY_USE_COMPUTED_GOTO
                 } // switch
 #endif
             } // for loop
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h
index d7045c42f77d8174a5318506c82c1f996688fc6b..24ab20b16b8262ebba5ac37054a52693fa1ab536 100644
--- a/stmhal/mpconfigport.h
+++ b/stmhal/mpconfigport.h
@@ -11,6 +11,7 @@
 #define MICROPY_LONGINT_IMPL        (MICROPY_LONGINT_IMPL_MPZ)
 #define MICROPY_FLOAT_IMPL          (MICROPY_FLOAT_IMPL_FLOAT)
 #define MICROPY_PATH_MAX            (128)
+#define MICROPY_USE_COMPUTED_GOTO   (1)
 /* Enable FatFS LFNs
     0: Disable LFN feature.
     1: Enable LFN with static working buffer on the BSS. Always NOT reentrant.
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 5abfe2d9d38b11ed8025ba5d8d59f1e8ddc6354e..2d252427f08fd6c498a0ac8cf74e0a90fe354d5d 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -13,7 +13,7 @@
 #define MICROPY_FLOAT_IMPL          (MICROPY_FLOAT_IMPL_DOUBLE)
 #define MICROPY_LONGINT_IMPL        (MICROPY_LONGINT_IMPL_MPZ)
 #define MICROPY_PATH_MAX            (PATH_MAX)
-#define MICROPY_USE_COMPUTED_GOTOS  (1)
+#define MICROPY_USE_COMPUTED_GOTO   (1)
 #define MICROPY_MOD_SYS_STDFILES    (1)
 #define MICROPY_ENABLE_MOD_CMATH    (1)