From nobody Tue Feb 10 17:14:54 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=kalray.eu ARC-Seal: i=1; a=rsa-sha256; t=1655817165; cv=none; d=zohomail.com; s=zohoarc; b=ccjQApBT5RZjYJcIHHwo3Fx9z9g/U7PpmPLbZmvRIiG7m4PQ3JXSiyTaNTLz5H9pVcCBaiH4+dZgfhKd+Gz6PUBubu5W8xO1nEXoObFJRs41IdnnYaAzf7aKRNd2sD/P93ivXDj6IzOiX8+26XMcBANp2fx54uelWrcyCl+s9sA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1655817165; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=UFtLVozgBS0dkS8J4BPcVSnxdpIL2DB03Lqlu1GZWG8=; b=UluI8GoNDCUET43VK65ZUAZXfoCT3J2T0jGUuKHccD6YPKTHDScGAAnM7yQfGPnFa2ZG9GX3diUtc3rN/KtyD1Sa0bABOqOddG7Kq4/EUYWpMab58zSAQkxE0HD8jiXOIgI8TeC1j0i6O/r0j2gfOIKR2KWCmOGUkO/WAq4GI5I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1655817165334275.95191506265996; Tue, 21 Jun 2022 06:12:45 -0700 (PDT) Received: from localhost ([::1]:51472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3dgR-0006H8-Qa for importer@patchew.org; Tue, 21 Jun 2022 09:12:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3dTy-0007r8-Ie for qemu-devel@nongnu.org; Tue, 21 Jun 2022 08:59:50 -0400 Received: from smtpout140.security-mail.net ([85.31.212.143]:33380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3dTu-0005Gj-I1 for qemu-devel@nongnu.org; Tue, 21 Jun 2022 08:59:48 -0400 Received: from localhost (localhost [127.0.0.1]) by fx403.security-mail.net (Postfix) with ESMTP id AF26D967274 for ; Tue, 21 Jun 2022 14:59:44 +0200 (CEST) Received: from fx403 (localhost [127.0.0.1]) by fx403.security-mail.net (Postfix) with ESMTP id F31109670FC; Tue, 21 Jun 2022 14:59:35 +0200 (CEST) Received: from zimbra2.kalray.eu (unknown [217.181.231.53]) by fx403.security-mail.net (Postfix) with ESMTPS id 9717A967048; Tue, 21 Jun 2022 14:59:32 +0200 (CEST) Received: from zimbra2.kalray.eu (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTPS id 743B627E04D6; Tue, 21 Jun 2022 14:59:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 5869127E04D7; Tue, 21 Jun 2022 14:59:32 +0200 (CEST) Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id c4KXiAihb4-R; Tue, 21 Jun 2022 14:59:32 +0200 (CEST) Received: from ws2101.lin.mbt.kalray.eu (unknown [192.168.36.68]) by zimbra2.kalray.eu (Postfix) with ESMTPSA id 390CE27E04E7; Tue, 21 Jun 2022 14:59:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kalray.eu; s=sec-sig-email; t=1655816384; bh=GqCxVep9Y9SCs6OZcP2iHKSUNelMjkOtHmZ+WaLY0Ow=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=yNBzm/QSQDfCOiEZcPh4Fi+sT0rtHbZxEnBKkLaRpCsI8t1hFIrzeKXZDbEGe9jZr etHCaUbrLYiI6rh9SVb9SIjtBTBsd0Y2tF6NjodIXeE8ISDcv4Tbob4TKT+FQDcBMb +cakwx99HGOFZIohfJ7I+wQSJH+ZNK0bRwds+2Cc= X-Virus-Scanned: E-securemail Secumail-id: <3f68.62b1c0b4.93eeb.0> DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra2.kalray.eu 5869127E04D7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalray.eu; s=32AE1B44-9502-11E5-BA35-3734643DEF29; t=1655816372; bh=UFtLVozgBS0dkS8J4BPcVSnxdpIL2DB03Lqlu1GZWG8=; h=From:To:Date:Message-Id; b=ZwSeVQpWAz92e7SAb2aW+nfhD1lSAhYnG4clqOT844aGGgFZdOK1Z1Te/ZCrTvdQS HMCih70Z7JO8rg1CEgQiJA8BN+ar0bpB0Rif4mqWy0VJKGc97aYRO+SDSvDiS8xN8V dsFvpfy1/DhFOna1AeOIfszIkpk4jYNfnP5dNfUg= From: Luc Michel To: qemu-devel@nongnu.org Cc: Luc Michel , Richard Henderson , Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Eric Blake , Markus Armbruster , Laurent Vivier , Aurelien Jarno , Jiaxun Yang , Aleksandar Rikalo , Chris Wulff , Marek Vasut , Max Filippov Subject: [PATCH v2 7/7] target/xtensa: use semihosting_exit_request on semihosted exit syscall Date: Tue, 21 Jun 2022 14:59:16 +0200 Message-Id: <20220621125916.25257-8-lmichel@kalray.eu> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220621125916.25257-1-lmichel@kalray.eu> References: <20220621125916.25257-1-lmichel@kalray.eu> X-Virus-Scanned: by Secumail Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=85.31.212.143; envelope-from=lmichel@kalray.eu; helo=smtpout140.security-mail.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @kalray.eu) X-ZM-MESSAGEID: 1655817167741100001 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Use the new semihosting_exit_request instead of a call to exit when handling a semihosted exit syscall. Signed-off-by: Luc Michel Reviewed-by: Laurent Vivier --- target/xtensa/xtensa-semi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/xtensa/xtensa-semi.c b/target/xtensa/xtensa-semi.c index fa21b7e11f..0e9a9edc16 100644 --- a/target/xtensa/xtensa-semi.c +++ b/target/xtensa/xtensa-semi.c @@ -193,11 +193,11 @@ void HELPER(simcall)(CPUXtensaState *env) CPUState *cs =3D env_cpu(env); uint32_t *regs =3D env->regs; =20 switch (regs[2]) { case TARGET_SYS_exit: - exit(regs[3]); + semihosting_exit_request(regs[3]); break; =20 case TARGET_SYS_read: case TARGET_SYS_write: { --=20 2.17.1