From 8dbbbbc793554f920cf352b0e67da46abe3974cf Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 4 Aug 2014 10:05:16 +0100 Subject: Put call to qstr_init and mp_init_emergency_exc_buf in mp_init. qstr_init is always called exactly before mp_init, so makes sense to just have mp_init call it. Similarly with mp_init_emergency_exception_buf. Doing this makes the ports simpler and less error prone (ie they can no longer forget to call these). --- qemu-arm/main.c | 1 - qemu-arm/test_main.c | 1 - 2 files changed, 2 deletions(-) (limited to 'qemu-arm') diff --git a/qemu-arm/main.c b/qemu-arm/main.c index 91c096289..7ba818f58 100644 --- a/qemu-arm/main.c +++ b/qemu-arm/main.c @@ -53,7 +53,6 @@ void do_str(const char *src) { } int main(int argc, char **argv) { - qstr_init(); mp_init(); do_str("print('hello world!')"); mp_deinit(); diff --git a/qemu-arm/test_main.c b/qemu-arm/test_main.c index 709bcf2f1..63f7e3f0c 100644 --- a/qemu-arm/test_main.c +++ b/qemu-arm/test_main.c @@ -59,7 +59,6 @@ end: int main() { const char a[] = {"sim"}; - qstr_init(); mp_init(); int r = tinytest_main(1, (const char **) a, groups); mp_deinit(); -- cgit v1.2.3