From 330165a2cc9a0d4d5d00f13f851412c25d5f4ed2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 22 Apr 2016 22:44:56 +0000 Subject: py: Add MP_STATE_THREAD to hold state specific to a given thread. --- qemu-arm/test_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qemu-arm/test_main.c') diff --git a/qemu-arm/test_main.c b/qemu-arm/test_main.c index 6b935bbab0..ae2beabcd0 100644 --- a/qemu-arm/test_main.c +++ b/qemu-arm/test_main.c @@ -73,7 +73,7 @@ void gc_collect(void) { void *sp = (void*)&dummy; // trace the stack, including the registers (since they live on the stack in this function) - gc_collect_root((void**)sp, ((uint32_t)MP_STATE_VM(stack_top) - (uint32_t)sp) / sizeof(uint32_t)); + gc_collect_root((void**)sp, ((uint32_t)MP_STATE_THREAD(stack_top) - (uint32_t)sp) / sizeof(uint32_t)); gc_collect_end(); } -- cgit v1.2.3