From cbe137c4b8b6402be95ebe173653f0ea1e9dab66 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 26 Sep 2025 00:51:58 +1000 Subject: [PATCH] qemu/main: Replace mp_stack calls with mp_cstack_init_with_sp_here. Signed-off-by: Damien George --- ports/qemu/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ports/qemu/main.c b/ports/qemu/main.c index 75c6fe4cdc..8d3097fbf1 100644 --- a/ports/qemu/main.c +++ b/ports/qemu/main.c @@ -28,7 +28,6 @@ #include "py/compile.h" #include "py/runtime.h" -#include "py/stackctrl.h" #include "py/gc.h" #include "py/mperrno.h" #include "shared/runtime/gchelper.h" @@ -41,8 +40,7 @@ static uint32_t gc_heap[MICROPY_HEAP_SIZE / sizeof(uint32_t)]; int main(int argc, char **argv) { - mp_stack_ctrl_init(); - mp_stack_set_limit(10240); + mp_cstack_init_with_sp_here(10240); gc_init(gc_heap, (char *)gc_heap + MICROPY_HEAP_SIZE); for (;;) {