From nobody Fri Apr 4 03:47:04 2025 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=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1742333778; cv=none; d=zohomail.com; s=zohoarc; b=Wi5ONq87FibcVXbgMSqM9DCE5UDb3ErP+AxDSWYkCXmxgRxQb7FfBxC90V/6YWWahz0c/SGVE9heRvOPySdZvgC9z8cUdTNGHQKtvGAphnRqKv5fG0UwrkbTvEK1mf+y13lwUzB7vZ27YqKszRxoRjERb47mkza15qaPY6Ibz2o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742333778; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=rmJPVBq1IIiVyK6FrvUDybHt88qCAdqwKT6ScZgiv/Y=; b=Jl4bDpNfXozH/Yh6KIE5q5YgrUAtoEVtYEnqua7oN92fSuZJM+IgIgdDJk+Vp52O9+iIdBwL6a3+wPeC0/n4NmUzmXk4shmTsoWsB6xiwSzL2ZoqKlISPYDOd979PKKKWgmyZxZtwB7tcO6XxDHFLKI53mzW8eln6QW6/xoPrDE= 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=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1742333778742952.3297200649349; Tue, 18 Mar 2025 14:36:18 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tueaL-0005bK-KF; Tue, 18 Mar 2025 17:34:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tueY4-0001KO-U2 for qemu-devel@nongnu.org; Tue, 18 Mar 2025 17:32:33 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tueY3-0000oj-8G for qemu-devel@nongnu.org; Tue, 18 Mar 2025 17:32:32 -0400 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-223594b3c6dso133166015ad.2 for ; Tue, 18 Mar 2025 14:32:30 -0700 (PDT) Received: from stoup.. (174-21-74-48.tukw.qwest.net. [174.21.74.48]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56e9ddf4fsm9473854a12.21.2025.03.18.14.32.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Mar 2025 14:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742333550; x=1742938350; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rmJPVBq1IIiVyK6FrvUDybHt88qCAdqwKT6ScZgiv/Y=; b=htK1UucRyLeRCv464+txXqLlEJGqxIyujKkSMhJWfpvOuh/dU3nTKHVZh5XNek0pJ8 qS03M3iQC8B12IykvKen/JDBEK+L/rWgUlHVCFVemoBrtpwc+P4dsAb6qwz22I4y+V4v 8bRoyF+p7d+TJpc6tywUkNV7weE98piMms8sQfl86UHUgxHMXtMUzR0/pNkC2kNxGAYt ChoQVPklMXkJGwT6SYqiVXNLnwLHlSKM0qbJK+L8GFjet/arS6kaL4gLsWyg1exZNAna 7VdVhe9YKCK6/ZrvX7GqLaK7ACjG0XByCxLwbbWboZZHfCwq59Rib4WCM9s6duQht2PL Mt6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742333550; x=1742938350; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rmJPVBq1IIiVyK6FrvUDybHt88qCAdqwKT6ScZgiv/Y=; b=UzzIMwrVIzRM9n80Mki61Uw4uxkv3ddJ9LjCVvvLbfh54h7bvveByC7oR2LM9jNL3v 5vGE3uVebe62k0XiRg1yC1xaCD1JpdOMb64WJkA6d0KuWfZQ/IwAGRT07/7wK4A9uJ+X sH6YfGF2ljGxH0r1HbyGGsnKsyZUL10aOmk6FBgPhZwVT9i+OhvTFhwxwaS5mP/qurrX Ytdj1F17/BtihYNmlAeuHH74UG8/Rh50Zfd8Vvszry9dbrEyQ+fnsb/aSsJJp/979oE7 dD/XKyduu+2Ushm4mALvFVZJ6p57jqVbrU6lePUnnrBxiFZTXY+6kVvWpeqQuXHZfoXK aI6A== X-Gm-Message-State: AOJu0YxaIaUvjPSg3LVA55b99byw5o+05Eqhd1KHHcwrw5CT5VFVm4re RGuOXZkakFAuc6+yr5lrkpATJvA+T2Z7ljAKuGqTScsIsufHe2bZXty6yGk1q3/T2wtR5kQNKae h X-Gm-Gg: ASbGncujFbZa+USa27T2zA+f49c1MYRyc+l4jw6YlOQwHksMolCjayUL7VNAoQhDfBv noVgBabQ3lnOCYkGB3roZZ/D5plEs/2ZdkU3EEy7Ih9jP7ag4ca9EVGSfwOByeA6PkiEcXnGaX2 7vEtgYtC6Xxl/29q1hUrDL+JPrrU08fxvenMX0/Httzgv17mMeVderHXamxL5kwPDN3G2T4u715 ssRkF3+DlSwh6+S5MQf5HsWE8Bp9WPnTauz0/3eI+elIekvKuIX9sxliuCM37YNTV5KA4t6L8LC KS7Ee3LnVAgQaBK8ajMGrX5fEfVlGx6eVVv9cjr31WqwEwHrnRRUSebRGgPc53MqIs7aSOxe0Y5 Y X-Google-Smtp-Source: AGHT+IHi9ZdF0SpeQcIIcqQGUgGclzzKMakrfoHzKLBqtMqJ0ENmIhyhXywww+LQUw+VkfL0pb/BVw== X-Received: by 2002:a05:6a20:9f4d:b0:1f3:2e85:c052 with SMTP id adf61e73a8af0-1fbed31614amr328947637.35.1742333549841; Tue, 18 Mar 2025 14:32:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: pierrick.bouvier@linaro.org, philmd@linaro.org Subject: [PATCH v2 27/42] target/mips: Restrict semihosting tests to system mode Date: Tue, 18 Mar 2025 14:31:52 -0700 Message-ID: <20250318213209.2579218-28-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250318213209.2579218-1-richard.henderson@linaro.org> References: <20250318213209.2579218-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=2607:f8b0:4864:20::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.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 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1742333779902019000 Content-Type: text/plain; charset="utf-8" We do not set CONFIG_SEMIHOSTING in configs/targets/mips*-linux-user.mak. Signed-off-by: Richard Henderson Reviewed-by: Pierrick Bouvier --- target/mips/cpu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/target/mips/cpu.c b/target/mips/cpu.c index b207106dd7..47df563e12 100644 --- a/target/mips/cpu.c +++ b/target/mips/cpu.c @@ -32,8 +32,10 @@ #include "exec/exec-all.h" #include "hw/qdev-properties.h" #include "hw/qdev-clock.h" -#include "semihosting/semihost.h" #include "fpu_helper.h" +#ifndef CONFIG_USER_ONLY +#include "semihosting/semihost.h" +#endif =20 const char regnames[32][3] =3D { "r0", "at", "v0", "v1", "a0", "a1", "a2", "a3", @@ -415,12 +417,11 @@ static void mips_cpu_reset_hold(Object *obj, ResetTyp= e type) restore_pamask(env); cs->exception_index =3D EXCP_NONE; =20 +#ifndef CONFIG_USER_ONLY if (semihosting_get_argc()) { /* UHI interface can be used to obtain argc and argv */ env->active_tc.gpr[4] =3D -1; } - -#ifndef CONFIG_USER_ONLY if (kvm_enabled()) { kvm_mips_reset_vcpu(cpu); } --=20 2.43.0