From nobody Tue Feb 10 11:56:12 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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 ARC-Seal: i=1; a=rsa-sha256; t=1622031762; cv=none; d=zohomail.com; s=zohoarc; b=cuOUaoP37SpbXl808gLOpjBNvT6p3opILzHfTaw8eh5w9wyxLVMZlhAfex/u05kOHbb8vxSQ9wCY9pYtcA+vq5IuxRVTCZZgXMJCGtIGMP+lKk9gksz8in6Ttle4zJrHx7UXDMV3QTPNOkg0kGoMSQ4J+JObucvcdOJb2jZB3VQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622031762; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=3PQhiScHPkNKcCY+PhXTE0UGJiFJX/FPoJRFcJeb+U0=; b=PuRzQVAiYlt/6J5I3Y9CxoLg8xwfJFEbWVvoJDRphbgnRfYhWis+YUFrW+mnkgJoIqOcntcZpKEVkcqb8GGVxH+WuGnGMGrz0o3DsgJ5aQ7QgO1KNQKkZ9Y3nDHw+Tc7YDbRfBcArL2DIeOJ8mCBk0IZYkqlWM8NoswS/qFaox0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622031762606657.6200563226346; Wed, 26 May 2021 05:22:42 -0700 (PDT) Received: from localhost ([::1]:55654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llsYa-0004VH-Qv for importer@patchew.org; Wed, 26 May 2021 08:22:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llsV6-0001Zt-2d for qemu-devel@nongnu.org; Wed, 26 May 2021 08:19:04 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:56280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llsUy-00033H-0c for qemu-devel@nongnu.org; Wed, 26 May 2021 08:19:03 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 16so585634wmj.5 for ; Wed, 26 May 2021 05:18:55 -0700 (PDT) Received: from localhost ([82.44.17.50]) by smtp.gmail.com with ESMTPSA id n13sm21000887wrg.75.2021.05.26.05.18.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 05:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3PQhiScHPkNKcCY+PhXTE0UGJiFJX/FPoJRFcJeb+U0=; b=OpUxCrrXqnAop+Smfw6gb/h67wmtiVBhoiTxyI9RdJu0GgMBdKVFHdR1dgGqvRBx2L s7BGEwAUZQyxBpuIvHcFGuYyxcvqyu7PHtCJTQhZz5FQNgNqynij5pIP+96/biiSZisW jj/WgPmyAzSVzDQYJQ59PhezGe3ROXAFmhAhpT24o0n3OxLo9BLoXCeSu3HZxINww8lA F7v5JCa1csryj6+JmTK2ZCt1rnwj1cG32qvGQZfW4q+/THrWGWy0ZW9Aao+6LGhZRJ74 PAC9g1dLCRAYbkGQMkIueVyfijS3biBOgRU8Ilo+y1FqG2ZdXBV01/TPzb5p/Yv76+zU 8IxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3PQhiScHPkNKcCY+PhXTE0UGJiFJX/FPoJRFcJeb+U0=; b=otXWL1g+DXu/JVOvI9vyphVnSp9swCpEInlHJUmie4HatlTXs5NTqOVSq1jAa71T5l Ju2ETjCZTibTn7ZZ8evcvD3XDblhlMGV6MFVdU5OMv7FQBLEZDNhIrSn1qOnIMmTEUwe l5AdHdqyWyNZZDBsNWcMb/h6JdTL82cszm3sQOAKmdKC1tj1JBnAex2pe2tD8nl9QLmF JHb231309GUwM93HedUxMZaU/9HShtYG7zriuse8ziz4r9pet8C9Orp5ECxr1Pk93Tq9 hPADHp8rjNVI61FFU73rA3AVW6wgvHR+tbjuES8DVJbe+hJXjIxWjV4+5kbf4N5Tpq93 ZnZg== X-Gm-Message-State: AOAM530N+JbRqIYYX0KMtcfszafue4mwOvjIbnruhHNhKd1530nR9T5O 6uaSYbdiGRY7KinxDesKjhRXBA== X-Google-Smtp-Source: ABdhPJxxuPZR4qBKDwQ9bix/m6K/wNuvILQZFok1m5NYwWukVXYdSHkYb7c8r1Ow0bIx+UTrZFPhcg== X-Received: by 2002:a1c:c911:: with SMTP id f17mr29180288wmb.45.1622031534171; Wed, 26 May 2021 05:18:54 -0700 (PDT) From: Jamie Iles To: qemu-arm@nongnu.org Subject: [PATCHv2 2/4] target/arm: fold do_raise_exception into raise_exception Date: Wed, 26 May 2021 13:18:45 +0100 Message-Id: <20210526121847.1935454-3-jamie@nuviainc.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210526121847.1935454-1-jamie@nuviainc.com> References: <20210526121847.1935454-1-jamie@nuviainc.com> 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=2a00:1450:4864:20::32b; envelope-from=jamie@nuviainc.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Jamie Iles , Richard Henderson , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Now that there are no other users of do_raise_exception, fold it into raise_exception. Cc: Richard Henderson Cc: Peter Maydell Signed-off-by: Jamie Iles --- target/arm/op_helper.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/target/arm/op_helper.c b/target/arm/op_helper.c index 078ed74ab962..3b3daa955598 100644 --- a/target/arm/op_helper.c +++ b/target/arm/op_helper.c @@ -27,8 +27,8 @@ #define SIGNBIT (uint32_t)0x80000000 #define SIGNBIT64 ((uint64_t)1 << 63) =20 -static CPUState *do_raise_exception(CPUARMState *env, uint32_t excp, - uint32_t syndrome, uint32_t target_el) +void raise_exception(CPUARMState *env, uint32_t excp, + uint32_t syndrome, uint32_t target_el) { CPUState *cs =3D env_cpu(env); =20 @@ -49,14 +49,6 @@ static CPUState *do_raise_exception(CPUARMState *env, ui= nt32_t excp, cs->exception_index =3D excp; env->exception.syndrome =3D syndrome; env->exception.target_el =3D target_el; - - return cs; -} - -void raise_exception(CPUARMState *env, uint32_t excp, - uint32_t syndrome, uint32_t target_el) -{ - CPUState *cs =3D do_raise_exception(env, excp, syndrome, target_el); cpu_loop_exit(cs); } =20 --=20 2.30.2