From nobody Thu Apr 25 20:25:58 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 153120397993851.53570527347824; Mon, 9 Jul 2018 23:26:19 -0700 (PDT) Received: from localhost ([::1]:46004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcm6B-0007np-Lu for importer@patchew.org; Tue, 10 Jul 2018 02:26:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcm4V-0006ZP-HR for qemu-devel@nongnu.org; Tue, 10 Jul 2018 02:24:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcm4R-0005ji-7O for qemu-devel@nongnu.org; Tue, 10 Jul 2018 02:24:23 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:49310) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcm4Q-0005hz-TD for qemu-devel@nongnu.org; Tue, 10 Jul 2018 02:24:19 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MGbDM-1fpzUe2utE-00DIlJ; Tue, 10 Jul 2018 08:24:08 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 10 Jul 2018 08:23:50 +0200 Message-Id: <20180710062352.9843-2-laurent@vivier.eu> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180710062352.9843-1-laurent@vivier.eu> References: <20180710062352.9843-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:I/zJUkTStmKxykwlYIj2FhzAF4MCr/lVrjPoNb/benQWo0f4PmC 3rArc/30tN8HFWiyh5G4oJtAMgOkL4CdlwIhPchhap1F02wjnReBw/re6e6MuWQ0gjlk9wv bCsolKgDa8q0JRrWWChNEmGwSL416FxruKtXyMEIDHLRL++m/LM4vn5IJFzxTbjKkSpUOE6 +OCr1kwkJt+kKPS0DW/jQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:9YkD4NKrslw=:01cbiYWUzDZxaVmQxfvD/w MdQmO2r+TxLbOkQJcbL7ahtnbJv/96LwhUJ4x0K1jTCNdcjSAjSVCDnUzUwOSbnEi/qKeXX9t MFu7mbJpbvU+ZG76j99kPCm2RG8lANP2T3f9ShkVuHEntGDnP4V3jlJUEgiLfaVF+aexYuLQ2 c30lbDyUPP2h0O8j8a60Xzv0UZ8y1F8MIQ3OvoYzPuVpJw3rAKgMpk426oKd9GK98ohrN/lA2 X4NjD7bulOMkbccY5pcur+EJ0SMOZLHkZoTQWlKHHFCDqEOU4eNClQA3YwnA6+xAqi8JiZYXS 5frmfoENHu4TvXMAYe5Sv4Xh0+qDmv+9uSIBTnUusUcmuThmC8CMMm+noB6Z+48g2wW16EQDh mFtcLhV0H4kGRyVP8nXui8Bm4VGRg3uPRkASNW4IGVpMYUOVyTkDSMo+wccmJt/WuccuuleTe ng1bd3D7STc9OpxcsaRyKXjY+ZpIu56f0uohnXNXEsaiTN2K2RN8cTjQ8wkBKbZoKe98yaDJZ UQXmVdg/qMoHKzEolOf7KQJHNEmGtA8+LZce1BRAuftYMDZUXSj6q1gSp/MdDR2EilIDv7YoM DXoWR9M8CNCLNf5s6UO1BOaP7WqjqMnBRPRW3tm+2ejaeulykmIm7H9xnrtzyp3L691glwFWe LscOCgW6psfa8Wqxi45zySTC7dp6BXwqEEd+1w/lqkxySlC/Kwn/81QX4YAVlSxkxHd/2hGAM qpupjZsm0LsDMBLu X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.130 Subject: [Qemu-devel] [PULL 1/3] linux-user: Do not report "Unsupported syscall" by default X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 From: Philippe Mathieu-Daud=C3=A9 This can still be reported using the "-d unimp" command line option. Fixes: https://bugs.launchpad.net/qemu/+bug/1777226 Reported-by: John Paul Adrian Glaubitz Suggested-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Peter Maydell Message-Id: <20180706155127.7483-2-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5822e03e28..e4b1b7d7da 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -12757,7 +12757,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_lon= g arg1, =20 default: unimplemented: - gemu_log("qemu: Unsupported syscall: %d\n", num); + qemu_log_mask(LOG_UNIMP, "Unsupported syscall: %d\n", num); #if defined(TARGET_NR_setxattr) || defined(TARGET_NR_get_thread_area) || d= efined(TARGET_NR_getdomainname) || defined(TARGET_NR_set_robust_list) unimplemented_nowarn: #endif --=20 2.17.1 From nobody Thu Apr 25 20:25:58 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1531204060296596.3446877168625; Mon, 9 Jul 2018 23:27:40 -0700 (PDT) Received: from localhost ([::1]:46012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcm7f-0000Y9-A3 for importer@patchew.org; Tue, 10 Jul 2018 02:27:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcm4W-0006ZX-WC for qemu-devel@nongnu.org; Tue, 10 Jul 2018 02:24:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcm4S-0005ll-Iv for qemu-devel@nongnu.org; Tue, 10 Jul 2018 02:24:25 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:53170) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcm4S-0005k5-6y for qemu-devel@nongnu.org; Tue, 10 Jul 2018 02:24:20 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LeUyk-1gQzXL0rnC-00qVCN; Tue, 10 Jul 2018 08:24:09 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 10 Jul 2018 08:23:51 +0200 Message-Id: <20180710062352.9843-3-laurent@vivier.eu> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180710062352.9843-1-laurent@vivier.eu> References: <20180710062352.9843-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:OBfHqqKdu6ZcrFVuCuWGgI4C01l/EbIDfjxMgpIQyHfZ0vAThE0 UWVG+TV2drTvmfyoNh8Ug5LRLywx7o8JqqNwpQvAf1kOWvDa98TkrFZvVSVslvMZwZ5BX1/ xn91yt4kTnPx3ZwCrRLQBqPrxgFOb738D8Mxc49Z8virs6EzR1aOG1oXCmF9pjNS4UsO/5w AlGPkN82Y/Huue08oAS3g== X-UI-Out-Filterresults: notjunk:1;V01:K0:90E+geHcE2U=:cHmEVLucCRTxIG5Newe9GX 6edCDQJnqGtM5ENiOM5CqTfwXgx5QKiFfeiGclXiqcwfXK5Fb9czuA9GRztsrjesOy47DhZdX 66XTRcT6DU381sqGtuJAw1wv0bo6icbp/KICueuh21ziGYpNWhh1noxJ9jz4DMgmtGkBxDtnE /HBi19HVUw3+IJYvJSFqSG+sKSCQ4GXFyL0hznpakwmDHZeWcEgTVoJkoHMLP1Ohxz4HPb90R NdGfkvY98M1a9j/fzqlCMa6sT/1O2C0YwGfhPXs9bvEtFmzJJZ52cg6Oo4qKZFoJqJeK1fPuN gAqbmhRCE/KPWgnq2B0S4oK+Z5RnJVaUFT1FBeJV5BweCLJt6ifcUhbZ1BOpUJtZmHwTUXTSp EeGyZVOU2RdoxiFSh86VjXgVhqYD6BmFlCK5gusWVCBiy35iAyidgcW104BCuIGZyxzXdLsBl uZuJpjhyHolhh6zVU6DNNnIFOeja/wpiep1eoPfesdU0r1sRgnnWiX/zMC9QPr61L9vhjQaFC rtw2Rf0DMF/8MyESEZ9cYunbPFQf849xrRgXiDw/+/mCDgI6H1eozc9QVXXqG6mlpAb+HeZah pPLWxQs8DlciNu3RqRfNGH++1g2X08wA7ZiwcGxGOuE+Gm2f9w7qLkKGjgwaEyxqcOwiBBVDB 8Ap1oespFhI83tb50Wzw/eUUNYtBB6x/lwYxZiG+/fW/IfDJ/ZTm8k+fJhjMQ/4SEuoZnm5/7 UItgC9U3ZJ86DFuZ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.131 Subject: [Qemu-devel] [PULL 2/3] linux-user: Do not report "syscall not implemented" by default X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 From: Philippe Mathieu-Daud=C3=A9 This can still be reported using the "-d unimp" command line option. Code change produced with: git ls-files linux-user | \ xargs sed -i -E 's/fprintf\(stderr,\s?(".*not implemented\\n")\);/qemu_lo= g_mask(LOG_UNIMP, \1);/g' Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20180706155127.7483-3-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- linux-user/cris/signal.c | 4 ++-- linux-user/microblaze/signal.c | 4 ++-- linux-user/nios2/signal.c | 2 +- linux-user/sparc/signal.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/linux-user/cris/signal.c b/linux-user/cris/signal.c index 0b405247cf..1e02194377 100644 --- a/linux-user/cris/signal.c +++ b/linux-user/cris/signal.c @@ -146,7 +146,7 @@ void setup_rt_frame(int sig, struct target_sigaction *k= a, target_siginfo_t *info, target_sigset_t *set, CPUCRISState *env) { - fprintf(stderr, "CRIS setup_rt_frame: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "setup_rt_frame: not implemented\n"); } =20 long do_sigreturn(CPUCRISState *env) @@ -183,6 +183,6 @@ badframe: long do_rt_sigreturn(CPUCRISState *env) { trace_user_do_rt_sigreturn(env, 0); - fprintf(stderr, "CRIS do_rt_sigreturn: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "do_rt_sigreturn: not implemented\n"); return -TARGET_ENOSYS; } diff --git a/linux-user/microblaze/signal.c b/linux-user/microblaze/signal.c index 712ee522b2..80950c2181 100644 --- a/linux-user/microblaze/signal.c +++ b/linux-user/microblaze/signal.c @@ -200,7 +200,7 @@ void setup_rt_frame(int sig, struct target_sigaction *k= a, target_siginfo_t *info, target_sigset_t *set, CPUMBState *env) { - fprintf(stderr, "Microblaze setup_rt_frame: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "setup_rt_frame: not implemented\n"); } =20 long do_sigreturn(CPUMBState *env) @@ -240,6 +240,6 @@ badframe: long do_rt_sigreturn(CPUMBState *env) { trace_user_do_rt_sigreturn(env, 0); - fprintf(stderr, "Microblaze do_rt_sigreturn: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "do_rt_sigreturn: not implemented\n"); return -TARGET_ENOSYS; } diff --git a/linux-user/nios2/signal.c b/linux-user/nios2/signal.c index 4985dc2212..7d535065ed 100644 --- a/linux-user/nios2/signal.c +++ b/linux-user/nios2/signal.c @@ -203,7 +203,7 @@ give_sigsegv: long do_sigreturn(CPUNios2State *env) { trace_user_do_sigreturn(env, 0); - fprintf(stderr, "do_sigreturn: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "do_sigreturn: not implemented\n"); return -TARGET_ENOSYS; } =20 diff --git a/linux-user/sparc/signal.c b/linux-user/sparc/signal.c index 55e9d6f9b2..b4c60aa446 100644 --- a/linux-user/sparc/signal.c +++ b/linux-user/sparc/signal.c @@ -278,7 +278,7 @@ void setup_rt_frame(int sig, struct target_sigaction *k= a, target_siginfo_t *info, target_sigset_t *set, CPUSPARCState *env) { - fprintf(stderr, "setup_rt_frame: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "setup_rt_frame: not implemented\n"); } =20 long do_sigreturn(CPUSPARCState *env) @@ -357,7 +357,7 @@ segv_and_exit: long do_rt_sigreturn(CPUSPARCState *env) { trace_user_do_rt_sigreturn(env, 0); - fprintf(stderr, "do_rt_sigreturn: not implemented\n"); + qemu_log_mask(LOG_UNIMP, "do_rt_sigreturn: not implemented\n"); return -TARGET_ENOSYS; } =20 --=20 2.17.1 From nobody Thu Apr 25 20:25:58 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1531203982497887.5521001870866; Mon, 9 Jul 2018 23:26:22 -0700 (PDT) Received: from localhost ([::1]:46005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcm6F-0007pA-JP for importer@patchew.org; Tue, 10 Jul 2018 02:26:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcm4V-0006ZR-QW for qemu-devel@nongnu.org; Tue, 10 Jul 2018 02:24:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcm4R-0005jp-8b for qemu-devel@nongnu.org; Tue, 10 Jul 2018 02:24:23 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:51731) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcm4Q-0005hy-TI for qemu-devel@nongnu.org; Tue, 10 Jul 2018 02:24:19 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MRfyq-1fW9Jp30pc-00Seon; Tue, 10 Jul 2018 08:24:09 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 10 Jul 2018 08:23:52 +0200 Message-Id: <20180710062352.9843-4-laurent@vivier.eu> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180710062352.9843-1-laurent@vivier.eu> References: <20180710062352.9843-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:suHo//xEezCXPrbHc/FzJxKs5pW2IImUY5HSuH0ZP07w8bczww/ ljnALaSWwgeWeLeJofuRPOQUp4nx78kKpyqK48PUwz3nHqJOI9TE2j4jiWTTS8LkAFSk1+V pULPzcFlMBPL9S94NrrQ+GlJ+fIhwc9vAjIjuC01hiGyQobrKrAzEEl/WyaEcsZusUHnxlt hio7hAAzlc3f92qRWoPvQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:MiaV4Npj4Zs=:TBTjXWRxi/l4l9PQEhmTEn fZiET0fzcf0rTkDKYEyfocR1wTgyqaRAK8vdrKLOMXmBcqbKUhYmtyVfDFhVdXrkHrWrUtpup R2Mrv0rXbODrCSiqB8AhZm3ggavCJpl2naTW/c6vt5rvOYdEB/vFQKRuo/SL6rnucA9b9+OSE 5r5QVC5i91rqNrBtcv64InMV7U9YIZfboG3wI3rqsxUS5s6glI5Fs+CXbUnhOKYXOVDw9rrg7 u9AbXPI/Qm7g2fWABkvYZyfqWxkoSOW7kkH2lDd6vtOGmg2nlDCT5p6f4dowiAnBkNiI5Vg8W YtbnM1To9T1M4OirOB/5dmzl28j4X/i2O/hoNOrz0qdIOf8l4VXobd8nMhVg3X8OOoREY2/jb Tcjbkd9q/LLm/zW0PI9esEdCuVGqSW1ijOMOhBl9Yb3FUeb7OpSzdgkC80XpX8U/tek6f8WOf Wb8fFuJFfZm/WyViiNDflFDcTNjRbnIeC23Yu9nhxAHbZEFhxlbiDQCt37jZYUwDaKLSoTB8y 3gqgMA6wrbSz050w2jr9Lz+TdyeP+uQ8s6Wr3XCHzjYeoPU7ab67xNGbxDHSraJ1HdIYh2UV0 NY9iK756RwFkobRL+tn+P9W9T7HAumtiBtrRaSivkxLuJHcKRugZ86V3yB0112V/cw5WU0OIk OyZuyZgOhaiGw/Hue9iK+q/dS0/KH9YLAuPq1sriY4cNu2dGkIZ0lAHkZHqwkxE8M/VxoLbF1 yJ+ZP/DpaI1d71pR X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.130 Subject: [Qemu-devel] [PULL 3/3] linux-user: Report error message on stderr, rather than stdout X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 From: Philippe Mathieu-Daud=C3=A9 Code change produced with: git ls-files linux-user | \ xargs sed -i -E 's/(\s+)printf\s*\(("Unhandled.*)\);/\1fprintf(stderr, \2= );/g' Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Peter Maydell Message-Id: <20180706155127.7483-4-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- linux-user/alpha/cpu_loop.c | 2 +- linux-user/cris/cpu_loop.c | 2 +- linux-user/microblaze/cpu_loop.c | 6 +++--- linux-user/sh4/cpu_loop.c | 2 +- linux-user/sparc/cpu_loop.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/linux-user/alpha/cpu_loop.c b/linux-user/alpha/cpu_loop.c index b87fcaea87..c1a98c8cbf 100644 --- a/linux-user/alpha/cpu_loop.c +++ b/linux-user/alpha/cpu_loop.c @@ -196,7 +196,7 @@ void cpu_loop(CPUAlphaState *env) arch_interrupt =3D false; break; default: - printf ("Unhandled trap: 0x%x\n", trapnr); + fprintf(stderr, "Unhandled trap: 0x%x\n", trapnr); cpu_dump_state(cs, stderr, fprintf, 0); exit(EXIT_FAILURE); } diff --git a/linux-user/cris/cpu_loop.c b/linux-user/cris/cpu_loop.c index 1c5eca9f83..37bdcfa8cc 100644 --- a/linux-user/cris/cpu_loop.c +++ b/linux-user/cris/cpu_loop.c @@ -81,7 +81,7 @@ void cpu_loop(CPUCRISState *env) cpu_exec_step_atomic(cs); break; default: - printf ("Unhandled trap: 0x%x\n", trapnr); + fprintf(stderr, "Unhandled trap: 0x%x\n", trapnr); cpu_dump_state(cs, stderr, fprintf, 0); exit(EXIT_FAILURE); } diff --git a/linux-user/microblaze/cpu_loop.c b/linux-user/microblaze/cpu_l= oop.c index 5af12d5b21..2af93eb39a 100644 --- a/linux-user/microblaze/cpu_loop.c +++ b/linux-user/microblaze/cpu_loop.c @@ -105,8 +105,8 @@ void cpu_loop(CPUMBState *env) queue_signal(env, info.si_signo, QEMU_SI_FAULT, &info); break; default: - printf("Unhandled hw-exception: 0x%" PRIx64 "\n", - env->sregs[SR_ESR] & ESR_EC_MASK); + fprintf(stderr, "Unhandled hw-exception: 0x%" PRIx64 "= \n", + env->sregs[SR_ESR] & ESR_EC_MASK); cpu_dump_state(cs, stderr, fprintf, 0); exit(EXIT_FAILURE); break; @@ -130,7 +130,7 @@ void cpu_loop(CPUMBState *env) cpu_exec_step_atomic(cs); break; default: - printf ("Unhandled trap: 0x%x\n", trapnr); + fprintf(stderr, "Unhandled trap: 0x%x\n", trapnr); cpu_dump_state(cs, stderr, fprintf, 0); exit(EXIT_FAILURE); } diff --git a/linux-user/sh4/cpu_loop.c b/linux-user/sh4/cpu_loop.c index 418833ea25..fdd348170b 100644 --- a/linux-user/sh4/cpu_loop.c +++ b/linux-user/sh4/cpu_loop.c @@ -84,7 +84,7 @@ void cpu_loop(CPUSH4State *env) arch_interrupt =3D false; break; default: - printf ("Unhandled trap: 0x%x\n", trapnr); + fprintf(stderr, "Unhandled trap: 0x%x\n", trapnr); cpu_dump_state(cs, stderr, fprintf, 0); exit(EXIT_FAILURE); } diff --git a/linux-user/sparc/cpu_loop.c b/linux-user/sparc/cpu_loop.c index 7c4796ca23..91f714afc6 100644 --- a/linux-user/sparc/cpu_loop.c +++ b/linux-user/sparc/cpu_loop.c @@ -285,7 +285,7 @@ void cpu_loop (CPUSPARCState *env) cpu_exec_step_atomic(cs); break; default: - printf ("Unhandled trap: 0x%x\n", trapnr); + fprintf(stderr, "Unhandled trap: 0x%x\n", trapnr); cpu_dump_state(cs, stderr, fprintf, 0); exit(EXIT_FAILURE); } --=20 2.17.1