From patchwork Thu Sep 12 07:38:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 827795 Delivered-To: patch@linaro.org Received: by 2002:adf:ab1c:0:b0:367:895a:4699 with SMTP id q28csp1142067wrc; Thu, 12 Sep 2024 00:41:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV1H5kkxdOHS0CpzjLTWzusUKt/DrUXLHEo3e2n8C738hBHI61lVvmTAbSFs7lgnJMcO4oGrQ==@linaro.org X-Google-Smtp-Source: AGHT+IExMKiOFNWRIQGlRu1Mihsev9jquD1Df8G8XlAeS0WudBvFDWDF+eN9nFTNPjnFiPScVg1Z X-Received: by 2002:a05:6214:440b:b0:6c3:659b:bef6 with SMTP id 6a1803df08f44-6c57351d08fmr24998636d6.18.1726126904029; Thu, 12 Sep 2024 00:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726126904; cv=none; d=google.com; s=arc-20240605; b=ix8/Wm2JdCTI+1TOxZnDcqoNIni7lklL7a8w3GH2vW7DxJ6jlogca9Jp/mBZ4jpiVr gzranJFQTk22IktXlzjAm0AvJJzpmh4ymem/HJZGzsITdt54z06akOCo4C+sfEfl70Ei rB/TGmbhBQpTqGrV7l8KlhEoyeZmrWrdeSqDlXY90i+gZDk47x/g99wEwL/pWK/c0ewm n5DZsEkv+7k3zS1PyX1qcnKtcWyO8Kwb/63TgswiR3roHPRGG/+kw3b3jUVOVrUv9Yr1 dY6wf3cE48i5iYcXg/y89ZINjHbQN2sXD0WRTqUI0F/vg2XQkiQCpbM6t40tCwwUU+Hp DR2g== 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=7ty7Rs9QHnECV8EUUJMzVINdjzR9zKkzYj9QmIBEPQw=; fh=9lXHm2cv0EOsvaESlQxkp+iopfNbpS2ZXLeBYSea/ko=; b=Fa1trcSMzO+zkrgeMWd9teVfV43Nqu2A+vbd1/7SNcJY6X19L+A6h4mny166PhyTQk iA6ni7pfQUu5iTRMVhOOoWFKDly/+LTW68kBuLC05BxL1O/nWnoTHgHvVnLJWcKYhLND u0S3zbZzkvFZe5TIWZUWppqE9Zwt21hbKtYx6w7zR/Cz5QatCEmqH9/h1OVE52nf9BdV trZ0q9sDMlg8ASExm2qV9ZVJEiK46H5jab0yr48ed9Ari2vsF1428uxtBqGKEacyVDMr DgLm5WXV2Hp/Ej/YIAxCB2fRYAdGduroM6zs7MylYXuhSIFvn5bF8ApMPsOcwkCEIoBF ilwg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WZTqg3LS; 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-6c5348c93c0si124020716d6.575.2024.09.12.00.41.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Sep 2024 00:41:44 -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=WZTqg3LS; 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 1soeQj-00023D-Ls; Thu, 12 Sep 2024 03:39:53 -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 1soeQV-0001AU-1S for qemu-devel@nongnu.org; Thu, 12 Sep 2024 03:39:41 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1soeQR-00008H-Ii for qemu-devel@nongnu.org; Thu, 12 Sep 2024 03:39:38 -0400 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-718d8d6af8fso421736b3a.3 for ; Thu, 12 Sep 2024 00:39:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726126774; x=1726731574; 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=7ty7Rs9QHnECV8EUUJMzVINdjzR9zKkzYj9QmIBEPQw=; b=WZTqg3LSHGhk6Zhy1xWlGv10+14xPk8lykm2+SSBL6pXWDeXl/q+tFIEATNhVJNZVI lOr12kncf+c68axriRIuoryVYU4NNB+0AOFKl2gnEgmU6CtatTY4JTfH15MHs2ObMvEW zEBqLSnf7RYwJRWz4q6QfDeynH9Ae6PyGyYBtC0cRL+jLG5OVwDw1Mr6jgRAqnplvmvZ xXT8DqeGYvYKDTe07nxybvZjdhtKc2opCZUmuUJMd2RiBdHBuk1kBPH2R5GAESnRpviZ euNN5zTV+WAtzXW1M8oMBCf8isK+jS4G/mcdpNbkF/ka+JEZsTbQwI54RM3zDCDRvSSh skog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726126774; x=1726731574; 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=7ty7Rs9QHnECV8EUUJMzVINdjzR9zKkzYj9QmIBEPQw=; b=XH+RlvDK3tA8kLuvVmmvXOxQGNQ+msYZUDV1KIWna9k6kv/YT5pOit25cTFY+C/IQW YGO4gEJbN9B/sTnsue9zfvX5ps9Pp5lPHlJrsBk8advW2JTW/llvAUqn8S1L17kpBxJD wIIs17x1DmsmsYBIOAx3VrOQ2ucuyiF6CmlKNMmcu54w3+Vj5U6lwji9ADPdHoMWqQb0 KV5bzGNm+65vShLuWcO+lSmRK/v2/4w/jNo0IJQU+awI/fs3v60P6ZuNWM1R5buErgxm qokl/ONAJvw5kgrSMXUlzzhbY4PrEylQzHU0IQEk0dTXoOEgoBlKPNk1HKuPZ4gZwyv1 famg== X-Gm-Message-State: AOJu0YxKoFo60WchVYvrBI0BJABy/aRmm9NohDtSIcjaKRy/hJzBPyvS uWP6mFOKIvqHgCWXqBqrdqzdE0MCFHHMhht3PkJEMf3wBkYWYgPjlRex/dlf/V8tH3QOCPi0CzC n9HpckgdF X-Received: by 2002:a05:6a00:1a86:b0:717:839c:6838 with SMTP id d2e1a72fcca58-71926095e9bmr2094282b3a.14.1726126773886; Thu, 12 Sep 2024 00:39:33 -0700 (PDT) Received: from linaro.vn.shawcable.net ([2604:3d08:9384:1d00::9633]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fb9ad87sm983458a12.6.2024.09.12.00.39.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 00:39:33 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Jason Wang , =?utf-8?q?Alex_Benn=C3=A9e?= , Laurent Vivier , Marcelo Tosatti , Nicholas Piggin , Klaus Jensen , WANG Xuerui , Halil Pasic , Rob Herring , Michael Rolnik , Zhao Liu , Peter Maydell , Richard Henderson , Fabiano Rosas , Corey Minyard , Keith Busch , Thomas Huth , "Maciej S. Szmigiero" , Harsh Prateek Bora , Kevin Wolf , Paolo Bonzini , Jesper Devantier , Hyman Huang , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Palmer Dabbelt , qemu-s390x@nongnu.org, Laurent Vivier , qemu-riscv@nongnu.org, "Richard W.M. Jones" , Liu Zhiwei , Aurelien Jarno , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Marcel Apfelbaum , kvm@vger.kernel.org, Christian Borntraeger , Akihiko Odaki , Daniel Henrique Barboza , Hanna Reitz , Ani Sinha , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Alistair Francis , Bin Meng , "Michael S. Tsirkin" , Helge Deller , Peter Xu , Daniel Henrique Barboza , Dmitry Fleytman , Nina Schoetterl-Glausch , Yanan Wang , qemu-arm@nongnu.org, Igor Mammedov , Jean-Christophe Dubois , Eric Farman , Sriram Yagnaraman , qemu-block@nongnu.org, Stefan Berger , Joel Stanley , Eduardo Habkost , David Gibson , Fam Zheng , Weiwei Li , Markus Armbruster , Pierrick Bouvier Subject: [PATCH v2 03/48] hw/arm: replace assert(0) with g_assert_not_reached() Date: Thu, 12 Sep 2024 00:38:36 -0700 Message-Id: <20240912073921.453203-4-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240912073921.453203-1-pierrick.bouvier@linaro.org> References: <20240912073921.453203-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42c.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=unavailable 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 This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- hw/arm/highbank.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c index c71b1a8db32..72c4cbff39d 100644 --- a/hw/arm/highbank.c +++ b/hw/arm/highbank.c @@ -199,7 +199,7 @@ static void calxeda_init(MachineState *machine, enum cxmachines machine_id) machine->cpu_type = ARM_CPU_TYPE_NAME("cortex-a15"); break; default: - assert(0); + g_assert_not_reached(); } for (n = 0; n < smp_cpus; n++) {