From patchwork Tue Jun 28 11:16:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 585566 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5036:0:0:0:0 with SMTP id e22csp662445mab; Tue, 28 Jun 2022 04:18:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vni87PZu45BzKN47ZBpZEDAFAi89nznGPCVx3tIdepBtJQ7O7vYqECRZpNjSxAxXF9kE/D X-Received: by 2002:ac8:5fd3:0:b0:305:2d70:e0dc with SMTP id k19-20020ac85fd3000000b003052d70e0dcmr12672501qta.685.1656415089977; Tue, 28 Jun 2022 04:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656415089; cv=none; d=google.com; s=arc-20160816; b=c9QNLy77p3Mo+eixQM2L2GS+QkMcTq9Mr7Q+O3JEE8CW8igyj9LUZXFEPx69XgVT5g RjwoN0xrN0ps3l/PypwNkzCCqWWPKpJHkeN8CR1IdJv6x2CeB9RKopQe4A4LDg9HZ+/3 mNl95U8oZm4xQ2egKfgRro0wbzom3P+FxplyxKNNyKwPZb3a9iMRZqHiZUBDDHd2fAib wLusGZOeY7Ah6092PwI+og1yEj5edYj67GY4xaWDbvp4UHzzgyoCm7UZAtMrkAyHwKWo jzn0HdvQkZX5zpfYHBJmNO+C6J+ZohrFUbb9t1CaC0EPrU0GEK9gDzh88ZIhrvQw2eAz B1lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=k7qtUmJ0IGOTEz/7wI6bQYtLwkQT0MxDjcT9iw1MGnA=; b=vGMWoeURvONFnwQmW0UT6I6482ji+co1ZLtoWIOeHkYyo/77qifY7zx85DOUrDfBms QUdRpBJdPExolDq7/MmnUjbYyf2KsEmtUdJ45HlWwvRkIDMA8YXqeNux/5ThcG1snZuL gFbGeMUcVGJkOHvdpls5O15TUzaNlDF0dVqnMIVVp8GadgR8dJ0FZp5ia+lOu69sYdao Oc8iLkDEcu3+VFhf7ulPSyYvsLi5IvBt4JfmOAw+KEHuPH3YB9bQfMlwqg6iupAGHIAe sVYV2PEop/z7vRTc7YaQTQHA8jJfpKvJWBwi45y2zLNwoM3ugDSRym+d2rdml4GnigB+ l2hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hY+zVMiv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t14-20020a05622a148e00b002f92c911cbfsi7065824qtx.643.2022.06.28.04.18.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Jun 2022 04:18:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hY+zVMiv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:35400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o69EP-0003YK-IP for patch@linaro.org; Tue, 28 Jun 2022 07:18:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o69DT-0003YA-Ku for qemu-devel@nongnu.org; Tue, 28 Jun 2022 07:17:11 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:46700) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o69DS-0003Ak-4z for qemu-devel@nongnu.org; Tue, 28 Jun 2022 07:17:11 -0400 Received: by mail-pj1-x1031.google.com with SMTP id h9-20020a17090a648900b001ecb8596e43so12286038pjj.5 for ; Tue, 28 Jun 2022 04:17:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=k7qtUmJ0IGOTEz/7wI6bQYtLwkQT0MxDjcT9iw1MGnA=; b=hY+zVMivc9TXLR74UexNogtfN36ywjFSTTOqscQ5l3+2kCiMArLKwVDb2kaMmXkroT 7sYhjqbwgKjhF7Kpvm/0PgW4gF07ijZZzQZBjCFhv34Sk9FLw6ttHQkLafgW7Z7GcBSp ih0ZcCdBM0BuTGU55hTuWZTCsLdXy2nQZrc6/oPOl18TELiFaYtudnEzrIVTj21+cz/C QZmIAEw+oBU/5/Tf/MsDw5qFIjXrC2nTFatrmZMfUv36T0EbQ0Y9IRhIYH34K5tW9oMx O9Nqvvm9wV9LyyH489PpXW6jhqOlJThGgPLSsX3JoCmUkDBcW2yWvxMbBlQovOUr19DJ R2vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=k7qtUmJ0IGOTEz/7wI6bQYtLwkQT0MxDjcT9iw1MGnA=; b=bIevVzx6QXaGWHBRq5dXkVbg4ehaGHAIVmAlR0fqtkAATb6TdGEFa2G8V2SLagOLOg 5Nr4ble1RL7N5MmCd1gXFjGrK94kPoA5UB8LY5PNZ0y50/d5VGTdtcl2HtndXeQ7zCcT PhaJA7hhVNZGnSAriHoZ7cuiccBgcEVEeJP7ZGvutml6VwGkjFqqIXHiJf4vql6pdBQg Jiume2C5zlYHDaZkH/DyKxS4sielt2ftGfVX0xL/SrKIw7ZtyaoB9YbJrkugqXwyXqI2 VTrzexzr0RgHmF8Dhg4r0SOjSB74PuHcCEF9uAQn3lTVAWSSV1zuA+bYBGgNGpyC9xZu Ax9A== X-Gm-Message-State: AJIora8CZ/QiEmpfeRIRVcKX5LrybAHzchNb7O44SbkFXUwkTdME/NgD ltJSf/HIQjJYUVjjhegc5l2DnLRnxiov7g== X-Received: by 2002:a17:90b:1210:b0:1ea:ee10:c823 with SMTP id gl16-20020a17090b121000b001eaee10c823mr26498610pjb.109.1656415028648; Tue, 28 Jun 2022 04:17:08 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id a8-20020a654188000000b003fd4831e6fesm9079283pgq.70.2022.06.28.04.17.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 04:17:08 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: f4bug@amsat.org, alex.bennee@linaro.org, jiaxun.yang@flygoat.com, aleksandar.rikalo@syrmia.com Subject: [PATCH v5 0/8] target/mips: semihosting cleanup Date: Tue, 28 Jun 2022 16:46:53 +0530 Message-Id: <20220628111701.677216-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1031.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Changes for v5: * Rebase on master, which includes all prereq and patches 1-3. Not changed: Existing behaviour for exceptional conditions is to use abort(). During review, Phil suggested to change that, but I think the exit status of WTERMSIG(SIGABRT) is better than overloading exit(EXIT_FAILURE). r~ Richard Henderson (8): target/mips: Create report_fault for semihosting target/mips: Drop link syscall from semihosting target/mips: Use semihosting/syscalls.h target/mips: Avoid qemu_semihosting_log_out for UHI_plog target/mips: Use error_report for UHI_assert semihosting: Remove qemu_semihosting_log_out target/mips: Simplify UHI_argnlen and UHI_argn target/mips: Remove GET_TARGET_STRING and FREE_TARGET_STRING include/semihosting/console.h | 13 - semihosting/console.c | 9 - target/mips/tcg/sysemu/mips-semi.c | 397 ++++++++++++++--------------- 3 files changed, 186 insertions(+), 233 deletions(-)