From nobody Thu Nov 13 00:33:50 2025 Delivered-To: importer@patchew.org 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; 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; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1575341809; cv=none; d=zohomail.com; s=zohoarc; b=LI/BRdEGcIl25b6vRHQnouN9kl2Dfnmbs84BD26opP53K2g2nEhjTQMGlPYyR+tU+FmnO9O+onqphBrYCJAhZLRcih2racs1+Jo9ZvJ4SyPEtf0tdSGgI9EyUrrKenJL5FlOL0yz3kMG2rF1Vi38U2qBp7KH9jxicEJBFEeVfeA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575341809; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=u63gqALS75nKLyBBgFxH9YCXnhD2J6j4ZQ6v9GcNUx4=; b=dtUS+mcUYux/K+f9I88xm849h5ulvR2CDzBss/Y0uwcaSoKynokhfb4XtXtEkEvarJUuoES1A1s7FTqO5JUnmO9QCXmZS0jyegvBNTcJdm9BtzSmxIzyP0CsM2wISRVYTFEAhsUMTSELqGc5vnqwDvWjXhXDNtFTf4PL3pTkJq4= 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; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1575341809232833.2060996351529; Mon, 2 Dec 2019 18:56:49 -0800 (PST) Received: from localhost ([::1]:47598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibyMp-00021I-MU for importer@patchew.org; Mon, 02 Dec 2019 21:56:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33788) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibxxP-0003Vp-Si for qemu-devel@nongnu.org; Mon, 02 Dec 2019 21:30:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibxxO-0000RB-E4 for qemu-devel@nongnu.org; Mon, 02 Dec 2019 21:30:31 -0500 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]:36165) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ibxxO-0000PL-70 for qemu-devel@nongnu.org; Mon, 02 Dec 2019 21:30:30 -0500 Received: by mail-pj1-x1044.google.com with SMTP id n96so827612pjc.3 for ; Mon, 02 Dec 2019 18:30:30 -0800 (PST) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id q22sm873695pfg.170.2019.12.02.18.30.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 18:30:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=u63gqALS75nKLyBBgFxH9YCXnhD2J6j4ZQ6v9GcNUx4=; b=QKRfFCH/7LRf3OLHS7U5cg6JJEOvd1qGoiwEkrkNI6YXjyjGHVfKasmnCbzuPF2/Vl I28BdiB53bjLj2f6vDrPQprcP3zOG8V7kuAkKer/ohY8cZQXgy8kj5jNQsdGnvdueiS1 Y9bF7x+j3uPw+meszc9eNR8/rAJZ/5zlCd9UhnyXvesRs/xrgrl4T6A4zfacCrz9Eexa dFhrm7667UgAfyHZOxY/d7cTRvvSwG1itiSs3HfRkzxaICaNTxuRmI7tt8lbwkucMtGR 2cvom6roIPoq4sLv6P+bTa+mdwN2cFRfdTfMvdxCsB9Kd8CbQwkekqYJ0zZgD3Pl8V5l UKEg== 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; bh=u63gqALS75nKLyBBgFxH9YCXnhD2J6j4ZQ6v9GcNUx4=; b=CAQqDWOVCCNcrYxPWbtz0nNWamgpycguqLt6UOsAkyQMTIkiFHujFKcQrTBSFQgwUp ybVQ/Ts6Re94fKCaaIb5SJsavWzDMGkUTTLWCmsMcUtVhoyGqm+CcCtENpKQPntKUAgH tuplujUpQP69n7hI9DV4xakzqd8Or/1Pg/VVedz6t4NdcL4t6C7Re8ksEeyTEroHaglY iRJqCrIAmADTPYctd0so2n/GPi311fJeu1BH9dZPndA41+++xbiaAPjo94ztV/yAW2+h fmYNsyCfyry2uSPFjWuiGRD07OdEJVe9SKMEjCrVxAMuAcFdtL5v5nOUEgjrnSAwJhN1 G9kg== X-Gm-Message-State: APjAAAXAfcPSv6Stvl5ILe4EDLnZTZMWzB99daLcf4Qshb4N+sjb7sWC w9gu3NgmGBLz4WuxgwHIMIA2dcIybvI= X-Google-Smtp-Source: APXvYqyOFHAwJN2L1PYdxXcavKM4QpKVPJ0O8oQ4jqkkKKGvyzdxpRj52dXpSXfIdATSV6OygMJgqQ== X-Received: by 2002:a17:90b:3007:: with SMTP id hg7mr2964339pjb.73.1575340228735; Mon, 02 Dec 2019 18:30:28 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 39/40] target/arm: Use bool for unmasked in arm_excp_unmasked Date: Mon, 2 Dec 2019 18:29:36 -0800 Message-Id: <20191203022937.1474-40-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191203022937.1474-1-richard.henderson@linaro.org> References: <20191203022937.1474-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::1044 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@linaro.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The value computed is fully boolean; using int8_t is odd. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/arm/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 7a1177b883..a366448c6d 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -417,7 +417,7 @@ static inline bool arm_excp_unmasked(CPUState *cs, unsi= gned int excp_idx, { CPUARMState *env =3D cs->env_ptr; bool pstate_unmasked; - int8_t unmasked =3D 0; + bool unmasked =3D false; =20 /* * Don't take exceptions if they target a lower EL. @@ -468,7 +468,7 @@ static inline bool arm_excp_unmasked(CPUState *cs, unsi= gned int excp_idx, * don't affect the masking logic, only the interrupt routing. */ if (target_el =3D=3D 3 || !secure) { - unmasked =3D 1; + unmasked =3D true; } } else { /* @@ -514,7 +514,7 @@ static inline bool arm_excp_unmasked(CPUState *cs, unsi= gned int excp_idx, } =20 if ((scr || hcr) && !secure) { - unmasked =3D 1; + unmasked =3D true; } } } --=20 2.17.1