From 1c7d6584a7811b7785ae5c1e378f14b5ba0971cf Mon Sep 17 00:00:00 2001 From: takeshi_hoshina Date: Mon, 2 Nov 2020 11:07:33 +0900 Subject: basesystem-jj recipes --- ...error-messages-when-qemi_cpu_kick_thread-.patch | 26 ++++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'external/poky/meta/recipes-devtools/qemu/qemu/0013-cpus.c-Add-error-messages-when-qemi_cpu_kick_thread-.patch') diff --git a/external/poky/meta/recipes-devtools/qemu/qemu/0013-cpus.c-Add-error-messages-when-qemi_cpu_kick_thread-.patch b/external/poky/meta/recipes-devtools/qemu/qemu/0013-cpus.c-Add-error-messages-when-qemi_cpu_kick_thread-.patch index 03ec2c90..e5ebfc12 100644 --- a/external/poky/meta/recipes-devtools/qemu/qemu/0013-cpus.c-Add-error-messages-when-qemi_cpu_kick_thread-.patch +++ b/external/poky/meta/recipes-devtools/qemu/qemu/0013-cpus.c-Add-error-messages-when-qemi_cpu_kick_thread-.patch @@ -1,4 +1,4 @@ -From edc8dba74c7a4a2121d76c982be0074183bf080a Mon Sep 17 00:00:00 2001 +From 0a53e906510cce1f32bc04a11e81ea40f834dac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Wed, 12 Aug 2015 15:11:30 -0500 Subject: [PATCH] cpus.c: Add error messages when qemi_cpu_kick_thread fails. @@ -12,17 +12,18 @@ current cpu information. Upstream-Status: Inappropriate Signed-off-by: Aníbal Limón + --- cpus.c | 5 +++++ custom_debug.h | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 custom_debug.h -Index: qemu-3.0.0/cpus.c -=================================================================== ---- qemu-3.0.0.orig/cpus.c -+++ qemu-3.0.0/cpus.c -@@ -1693,6 +1693,8 @@ static void *qemu_tcg_cpu_thread_fn(void +diff --git a/cpus.c b/cpus.c +index e83f72b4..e6e2576e 100644 +--- a/cpus.c ++++ b/cpus.c +@@ -1769,6 +1769,8 @@ static void *qemu_tcg_cpu_thread_fn(void *arg) return NULL; } @@ -31,20 +32,21 @@ Index: qemu-3.0.0/cpus.c static void qemu_cpu_kick_thread(CPUState *cpu) { #ifndef _WIN32 -@@ -1705,6 +1707,9 @@ static void qemu_cpu_kick_thread(CPUStat +@@ -1781,6 +1783,9 @@ static void qemu_cpu_kick_thread(CPUState *cpu) err = pthread_kill(cpu->thread->thread, SIG_IPI); - if (err) { + if (err && err != ESRCH) { fprintf(stderr, "qemu:%s: %s", __func__, strerror(err)); + fprintf(stderr, "CPU #%d:\n", cpu->cpu_index); -+ cpu_dump_state(cpu, stderr, fprintf, 0); ++ cpu_dump_state(cpu, stderr, 0); + backtrace_print(); exit(1); } #else /* _WIN32 */ -Index: qemu-3.0.0/custom_debug.h -=================================================================== +diff --git a/custom_debug.h b/custom_debug.h +new file mode 100644 +index 00000000..f029e455 --- /dev/null -+++ qemu-3.0.0/custom_debug.h ++++ b/custom_debug.h @@ -0,0 +1,24 @@ +#include +#include -- cgit 1.2.3-korg