From patchwork Tue Apr 22 19:26:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 883047 Delivered-To: patch@linaro.org Received: by 2002:a5d:474d:0:b0:38f:210b:807b with SMTP id o13csp2588743wrs; Tue, 22 Apr 2025 12:40:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUs5g6DpMfsnqRZTu/G6Crbxz97aNYh0tIkHZfZqzfM5tlLvGV9Oj6CLriuf3MHwX4BnHmr1w==@linaro.org X-Google-Smtp-Source: AGHT+IGBvs8o8HgqJjpOo0CS5YtNnzInR0Q9qdazueGOW7u8ZMDLH7pedX4WkxySeg27/wzZvUoX X-Received: by 2002:a05:6214:2b08:b0:6f2:b0a7:3982 with SMTP id 6a1803df08f44-6f2c46717ffmr290139756d6.37.1745350815359; Tue, 22 Apr 2025 12:40:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1745350815; cv=none; d=google.com; s=arc-20240605; b=GpyMK9U/oh2vp5Slp+diDe9X9oCyX6HMWl7/noDkwXubo4Q9/Ed3/kjHur0pKEdOIL ZdV8ThcnhW1Q0mZTYJP2QAXb/aJWfBFkmEyXYAat1wfs7/wRKuT24Jn9hhSPViad17g0 QZGb3ifKZs5khmTbE00e6Cp0B10ZCWMy+ly3UvDQour3+R/lmsmYt55wI94q/0Fy/RuP Qrdt9DeF0ElzMBUBW2hwGfEebvZ3skpQNMEPVq1y1EH1jUz4RPL0xj9pi+2ordfmu8wa 2GdOx4z50tYoKoCznzgVySVnuDJjm3gmoVMqRRJiqVZ8MJ/t/SuJ7t2V93gRwkdiOyGs Fssg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=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 :from:dkim-signature; bh=wDV12YwNumASN3qNFcyYdusmdSKLuYlMr1apQ66exto=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=ZHS7MKJ3rIRwj7XQw44p7OFVmZkG74VAPjvhHaVbVyvPdCWEl/XLL9HkmQogAhi0jd +kxAOXRn4mgmSQkFsdZzRa0ofBFsXP8AilSyY5xT+mB69OzDwYCMOpXLL6ti9IYylR5p LUl54zah3XT/cjCx170fUTK0arjTEDOQYQ/UTp6FIU0YkZ5+JgG0JyLufgbs6jAFVJL6 Ev1Vd/c3IARh4yCzhj522NNl/golsXmzLE6mqvZbACIBERqds7S2kAp3sP676LYaS7tu 1yYxuuPL2/aNKgeCvk+27SyYYxVIvr7Szvasu6r5EAYViGqJdYfvNMj3twZnAI8lyQi5 G9Gg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xJ+m2JXP; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6f2c2c43181si117417706d6.503.2025.04.22.12.40.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Apr 2025 12:40:15 -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=xJ+m2JXP; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u7JMC-0001Mg-9m; Tue, 22 Apr 2025 15:32:36 -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 1u7JLX-0000C9-Bw for qemu-devel@nongnu.org; Tue, 22 Apr 2025 15:31:55 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u7JLV-0006bF-5m for qemu-devel@nongnu.org; Tue, 22 Apr 2025 15:31:54 -0400 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-2279915e06eso58608945ad.1 for ; Tue, 22 Apr 2025 12:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1745350312; x=1745955112; 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=wDV12YwNumASN3qNFcyYdusmdSKLuYlMr1apQ66exto=; b=xJ+m2JXP7AEJ3J0aMNaTejZYREAdJ3vT5akJpRBTMY5qmLRlY4G/nZ9lGNoK3UaIbP eNMHtlvbLV8LGrfUIuy8Hk1Cl970XOOWfDR1Pw4y3tpL0Z3KccvNZBh2gNvHUgEnht6H 58rVbI5wfgJo/C4uPCeyZASr6n9OSwcB+gPsMAU0lCgXnztj4swOw9zeM6jFzoI+c1BJ 1hAJtpxo7zF5ukqX9wlpQGRaq+hLvmIQWPX3eMv8EK04wb2A8JYaqMWsTq7/bj/EoPPd zxRy1AoNJjasg8h4+ahWJDy05tT4LSqGDqPI3sAL+APeuz9Io3sDTfGhqKHXXWcSh7pD 9raQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745350312; x=1745955112; 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=wDV12YwNumASN3qNFcyYdusmdSKLuYlMr1apQ66exto=; b=rirKcEJsDoSNfOf/DsL6Ad6vfVxeGnntl3KfdowenL/QBVoj0nKdRpIzppqFFQ5x+U beEvq32sUomek6amiAKC86oh1tLpMd+qh90/IKCgMrqF2ladhAqPyjhaTSkbgfjOXyuQ cAXgjm6H1HuT6ki7MBeR5GFj3FioDw7zp1JqY5HGA6yXdrFfQAOIzEPJJ90r7Y54708V KwtheiGlrDAKA6otAVPVud+Ym0tbJ1Ve+Vv13X+xH+CyTFmPbcBaIn+dIpczJXAu3+JE cLzSGQ0oGFoxsscTftpJU16aBGmAQhhf7NZMJNVERrCR5U6+Pel7oDsJrl/qv+360xGR cj0Q== X-Gm-Message-State: AOJu0Ywv3orY7emc4O2xnvgODNWMQT+8zCEpcfdSWha/fu4haojHDVkQ gvXj+qoY2JfqjlxUPUH1j6Sysqdck5NwKaDhNM/6Voif7Tqjv1cEbEssRD2gLPNtNzLRrI6glpX 0 X-Gm-Gg: ASbGnctZ8EjGA9+om5VgxUOhloQo+X6cAQqZaRAuZUJc94TDRvEHzQ1SquJPRTsWwrl YsCYeKwVF+VSFZ3WIiks77YJRENnU2l/KmigT1HgKmwhg/S7PTfMhHl1PN6GkEVJOQVCdSJfs2H HiB1NliTZ5GKhmHvz/Ravv8fHx30+m5S/OeGXovTVNvE7LPpMi22trL7VNRGo4VQ1Uj8e+YPgj8 eMTyw1y/hlN4RV9D26dXHYnn0oU4FodUeHxs9UWbafVuCFH/UaCpckprFRiBrU8EbiOReoPLG4J a8mi338woFBcO/yjyLMsIsBdUC8KY+zGhqQkPdb8sd7j8x3Mi12Orev/oIBeIK36MxLYpbPQlyc v6/WqpZPivQ== X-Received: by 2002:a17:903:440f:b0:226:4764:1963 with SMTP id d9443c01a7336-22c536627dfmr245617175ad.51.1745350311894; Tue, 22 Apr 2025 12:31:51 -0700 (PDT) Received: from stoup.. (71-212-47-143.tukw.qwest.net. [71.212.47.143]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22c50bdda3bsm89312635ad.27.2025.04.22.12.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Apr 2025 12:31:51 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 047/147] semihosting: Assert is_user in user-only semihosting_enabled Date: Tue, 22 Apr 2025 12:26:36 -0700 Message-ID: <20250422192819.302784-48-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250422192819.302784-1-richard.henderson@linaro.org> References: <20250422192819.302784-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x635.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Suggested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Reviewed-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé --- semihosting/user.c | 1 + 1 file changed, 1 insertion(+) diff --git a/semihosting/user.c b/semihosting/user.c index 515de3d2c0..98c144cb45 100644 --- a/semihosting/user.c +++ b/semihosting/user.c @@ -11,6 +11,7 @@ bool semihosting_enabled(bool is_user) { + assert(is_user); return true; }