From patchwork Tue Jul 12 20:53:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 589800 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5817:0:0:0:0 with SMTP id j23csp673619max; Tue, 12 Jul 2022 13:56:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vyW6jBIa+VP2nmZTFTpChLpUhY7+hJI41UbJRaKHNDF2UswNxIk55gcS6Bl2Re1vw+SH+C X-Received: by 2002:a05:6214:aca:b0:473:247c:6fde with SMTP id g10-20020a0562140aca00b00473247c6fdemr153613qvi.66.1657659368590; Tue, 12 Jul 2022 13:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657659368; cv=none; d=google.com; s=arc-20160816; b=ZBRaCWPnUI9HPsNjxdNYnU3tyRt4t6oYHMiAP2HCo/6KuJEq7pSnOisgz01jKR1vo+ XZiq+aWlOmSyN8fksTMD4sxP6PETMZw5c2DiRmd+4111OfU/pRAW/E/rFmGdykgIWU8e 8AZKlG1SBdOf1FvcfZumYYIdU6Al4N66zkk2RoXmGvh8Wd4DYiWuU3vck9FxSrufzO5V x4qEqFmOjtJgCmwjs5wPKkkRzmlfBSUqHx4KralFu084TFn7O/+JlTxEz9wouy4+Zyhz VAE9jwV4Sw12ecZaczCo8GiJwljWnuZXEjn7JIEiEas53/ZH0teFrNa3fmdt6YxYe4Sc 3flA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=from:reply-to:sender:errors-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dkim-signature; bh=wcyJ02wlNyzEg57m9Ur9GMAopAxBv6GVRoR8NlG5s+8=; b=ec8Zz2cemeAiUNzsyjBD2Gi6PMPxOEmhz2BoSrtC2PpwL0JBtp/wpOqs6XF0bBeiVp LSE5+mjiDqhXValKUw3Mg/ODFBKBBIj7CC94+gczJy2rKwIYOCC8SlNlYILpxVZUDXcz E1Ym315FohLStvITtCKErGBnlWC13YdpD51xLwKSMpwIcBOJF7eHCjMwWo+VGVhaSS+c EFtSnXU9KKZoIOR/EbwGYsmc4ze1dtTSpKg55ceGpT0NI1jBIZBY++zGip7LMQUMYNGN cDERoexQYP4X7VvpRwCJPDcERyYgbGu1mhXcDu0Jv5FQAJL3pJLIU7XcLcPcHUVffE0S w7fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=l3AlmzQN; 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=nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f23-20020a05622a1a1700b0031d4757998dsi9176929qtb.299.2022.07.12.13.56.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Jul 2022 13:56:08 -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=fail header.i=@gmail.com header.s=20210112 header.b=l3AlmzQN; 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=nongnu.org Received: from localhost ([::1]:37340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBMvQ-00067O-74 for patch@linaro.org; Tue, 12 Jul 2022 16:56:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBMtp-00065Z-DE for qemu-devel@nongnu.org; Tue, 12 Jul 2022 16:54:29 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:44556) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBMtj-0007FT-UH for qemu-devel@nongnu.org; Tue, 12 Jul 2022 16:54:26 -0400 Received: by mail-wm1-x334.google.com with SMTP id be14-20020a05600c1e8e00b003a04a458c54so89763wmb.3 for ; Tue, 12 Jul 2022 13:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wcyJ02wlNyzEg57m9Ur9GMAopAxBv6GVRoR8NlG5s+8=; b=l3AlmzQNo2IvbDgrjZIM0XbSdZJYXe6f6WXMlkiDdvFML65QeUazNx6XgX6cAcpGnZ KNIF7mKszl68ZM22Socu7Lx5/OmKFIzTjBu/5gymO1ilmgUZsltC0jOTWGfkY1PGRiec xmrjmHhannmKsxJi/Eq/KRj5hqsZIaO3yikDuoPHtWrHVqb+bYnJ/AgO9FLnoksRnWNN I1yY8FevT5ctWx21v6kcPrcPPx7SoH5ATgnWNQ745UA5CXhtLtKGhjQrvnB4vSPduJXt DmGs/B/v35nxr+hIg7JzTS4nh8NLRNHhjavnsh0RPVTLb7nWD5T5BZqzn8HwU4nWPBPP 8nIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=wcyJ02wlNyzEg57m9Ur9GMAopAxBv6GVRoR8NlG5s+8=; b=JZSbkvNeojfeiqPdfPxamDQB8cPxmmSsN0YIaHFj5WeRiEm0kCys2bDRd6fyF96B1f XCpzliZwzt83Zslpsd8KR1N9Vm0Wafwh+M5HMniZ/ujSLn6keAPVydCJ7ru9VBoR63E/ w01Zsi8cyYqkTvq8XjvTUyYgo54QEOo4vdQ7whf2Te3imxvPK9+01JLeoZv54R9BgbN7 o7Lc4VjVhepwbLNM7o2s1XNWZlf9HGh2T59hff0/A4sXZrHSX9xiIJeRPmJyBmmG4bnj /1LT/tRIJReRhI4Yn0WuK+KerGkD5hZHAmXR7EfHyFDRJm8bSQfsOd02MZdwsEyIDNOl Yhdg== X-Gm-Message-State: AJIora9+5IrYsarMDo4tLPtkdoL6+FyeFMe2zyhi58oGFLYFiiGuvM/C a67eQntKc6f9GPU4RguPzmdOScsdHp0WGTE4 X-Received: by 2002:a05:600c:1992:b0:3a1:9252:c373 with SMTP id t18-20020a05600c199200b003a19252c373mr5848056wmq.140.1657659261978; Tue, 12 Jul 2022 13:54:21 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id bj22-20020a0560001e1600b0021d60994b0asm9492207wrb.100.2022.07.12.13.54.20 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 12 Jul 2022 13:54:21 -0700 (PDT) To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Jiaxun Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= , Aleksandar Rikalo , Richard Henderson Subject: [PULL 06/12] target/mips: Drop link syscall from semihosting Date: Tue, 12 Jul 2022 22:53:41 +0200 Message-Id: <20220712205347.58372-7-f4bug@amsat.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220712205347.58372-1-f4bug@amsat.org> References: <20220712205347.58372-1-f4bug@amsat.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x334.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" Reply-to: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Original-From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= via From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= From: Richard Henderson We don't implement it with _WIN32 hosts, and the syscall is missing from the gdb remote file i/o interface. Since we can't implement it universally, drop it. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220628111701.677216-3-richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé --- target/mips/tcg/sysemu/mips-semi.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/target/mips/tcg/sysemu/mips-semi.c b/target/mips/tcg/sysemu/mips-semi.c index 153df1fa15..93c9d3d0b3 100644 --- a/target/mips/tcg/sysemu/mips-semi.c +++ b/target/mips/tcg/sysemu/mips-semi.c @@ -362,15 +362,6 @@ void mips_semihosting(CPUMIPSState *env) FREE_TARGET_STRING(p, gpr[4]); abort(); break; -#ifndef _WIN32 - case UHI_link: - GET_TARGET_STRINGS_2(p, gpr[4], p2, gpr[5]); - gpr[2] = link(p, p2); - gpr[3] = errno_mips(errno); - FREE_TARGET_STRING(p2, gpr[5]); - FREE_TARGET_STRING(p, gpr[4]); - break; -#endif default: error_report("Unknown UHI operation %d", op); abort();