From nobody Tue Feb 10 05:46:43 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; dmarc=pass(p=none dis=none) header.from=nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1626784585; cv=none; d=zohomail.com; s=zohoarc; b=Hm/AGwHgR5e+TaGytpHUip6YIAZflGeqZjKMsVAmmSVv1aLi2qLdr4CISh0QBPRL/MZYtjbqfNqEEMNRW++uazrxjwTKHMf5wovhBHT0J7l7CNWdkH4wPXCSfHEWqZ4L4LNNkuyis+UcwXzVoRjssBOGPid7V/b7xwUQxFOB8uI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1626784585; 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:Reply-To:References:Sender:Subject:To; bh=g7K7ah7dzgA9qNNeIHcq61tdQ4zff5490T//67zBwbg=; b=nlQdeo7NAi6UO6sOoJ/OvI4qxs+R17lUpdvfGcfLXw2d7ruIn363wzJW+fhbsneR8tGV31d86+O0Jb/Q+HkkluKyFX529T0On8RZ4GWb3Rd8Qpe16SPLGc6vMv5N2we+P8Ol23EoMG5+UX1IwuEPq17sbzu/9JgRM3Hm+W2l3aw= 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=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 1626784585396474.3260053454288; Tue, 20 Jul 2021 05:36:25 -0700 (PDT) Received: from localhost ([::1]:36202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5oz2-0004Xc-Bp for importer@patchew.org; Tue, 20 Jul 2021 08:36:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5otl-0004Vv-AZ for qemu-devel@nongnu.org; Tue, 20 Jul 2021 08:30:57 -0400 Received: from rev.ng ([5.9.113.41]:59983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5oth-0004ei-7m for qemu-devel@nongnu.org; Tue, 20 Jul 2021 08:30:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=rev.ng; s=dkim; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=g7K7ah7dzgA9qNNeIHcq61tdQ4zff5490T//67zBwbg=; b=O06w+rw40cd6NYuiXpsdKIo4n7 q3Vpu7jEzzrpEzyWJBiTGbjQgyTZOxec/sz6gSSU7IWq/CGdE9ayRZ7n1b3GQqAO+D3IC9mh2g4Kw Ll8yqR2m8lFnisciAtaof3oTaOu0UK49/XYiNC4kFF8X6xSiPQ98wyFKv1BR4w6uUDPY=; To: qemu-devel@nongnu.org Cc: tsimpson@quicinc.com, bcain@quicinc.com, babush@rev.ng, nizzo@rev.ng, richard.henderson@linaro.org, Alessandro Di Federico Subject: [PATCH v6 03/12] target/hexagon: make slot number an unsigned Date: Tue, 20 Jul 2021 14:30:22 +0200 Message-Id: <20210720123031.1101682-4-ale.qemu@rev.ng> In-Reply-To: <20210720123031.1101682-1-ale.qemu@rev.ng> References: <20210720123031.1101682-1-ale.qemu@rev.ng> 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=5.9.113.41; envelope-from=ale@rev.ng; helo=rev.ng 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, SPF_HELO_PASS=-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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Reply-to: Alessandro Di Federico From: Alessandro Di Federico via X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1626784587546100001 Content-Type: text/plain; charset="utf-8" From: Paolo Montesel Signed-off-by: Alessandro Di Federico Signed-off-by: Paolo Montesel Acked-by: Richard Henderson --- target/hexagon/macros.h | 2 +- target/hexagon/genptr.c | 24 +++++++++++++----------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/target/hexagon/macros.h b/target/hexagon/macros.h index 094b8dabb5..cd4f878fcf 100644 --- a/target/hexagon/macros.h +++ b/target/hexagon/macros.h @@ -185,7 +185,7 @@ #define LOAD_CANCEL(EA) do { CANCEL; } while (0) =20 #ifdef QEMU_GENERATE -static inline void gen_pred_cancel(TCGv pred, int slot_num) +static inline void gen_pred_cancel(TCGv pred, uint32_t slot_num) { TCGv slot_mask =3D tcg_const_tl(1 << slot_num); TCGv tmp =3D tcg_temp_new(); diff --git a/target/hexagon/genptr.c b/target/hexagon/genptr.c index 7333299615..2c7f4136b5 100644 --- a/target/hexagon/genptr.c +++ b/target/hexagon/genptr.c @@ -27,7 +27,8 @@ #undef QEMU_GENERATE #include "gen_tcg.h" =20 -static inline void gen_log_predicated_reg_write(int rnum, TCGv val, int sl= ot) +static inline void gen_log_predicated_reg_write(int rnum, TCGv val, + uint32_t slot) { TCGv zero =3D tcg_const_tl(0); TCGv slot_mask =3D tcg_temp_new(); @@ -60,7 +61,8 @@ static inline void gen_log_reg_write(int rnum, TCGv val) } } =20 -static void gen_log_predicated_reg_write_pair(int rnum, TCGv_i64 val, int = slot) +static void gen_log_predicated_reg_write_pair(int rnum, TCGv_i64 val, + uint32_t slot) { TCGv val32 =3D tcg_temp_new(); TCGv zero =3D tcg_const_tl(0); @@ -379,7 +381,7 @@ static inline void gen_store_conditional8(DisasContext = *ctx, tcg_gen_movi_tl(hex_llsc_addr, ~0); } =20 -static inline void gen_store32(TCGv vaddr, TCGv src, int width, int slot) +static inline void gen_store32(TCGv vaddr, TCGv src, int width, uint32_t s= lot) { tcg_gen_mov_tl(hex_store_addr[slot], vaddr); tcg_gen_movi_tl(hex_store_width[slot], width); @@ -387,14 +389,14 @@ static inline void gen_store32(TCGv vaddr, TCGv src, = int width, int slot) } =20 static inline void gen_store1(TCGv_env cpu_env, TCGv vaddr, TCGv src, - DisasContext *ctx, int slot) + DisasContext *ctx, uint32_t slot) { gen_store32(vaddr, src, 1, slot); ctx->store_width[slot] =3D 1; } =20 static inline void gen_store1i(TCGv_env cpu_env, TCGv vaddr, int32_t src, - DisasContext *ctx, int slot) + DisasContext *ctx, uint32_t slot) { TCGv tmp =3D tcg_const_tl(src); gen_store1(cpu_env, vaddr, tmp, ctx, slot); @@ -402,14 +404,14 @@ static inline void gen_store1i(TCGv_env cpu_env, TCGv= vaddr, int32_t src, } =20 static inline void gen_store2(TCGv_env cpu_env, TCGv vaddr, TCGv src, - DisasContext *ctx, int slot) + DisasContext *ctx, uint32_t slot) { gen_store32(vaddr, src, 2, slot); ctx->store_width[slot] =3D 2; } =20 static inline void gen_store2i(TCGv_env cpu_env, TCGv vaddr, int32_t src, - DisasContext *ctx, int slot) + DisasContext *ctx, uint32_t slot) { TCGv tmp =3D tcg_const_tl(src); gen_store2(cpu_env, vaddr, tmp, ctx, slot); @@ -417,14 +419,14 @@ static inline void gen_store2i(TCGv_env cpu_env, TCGv= vaddr, int32_t src, } =20 static inline void gen_store4(TCGv_env cpu_env, TCGv vaddr, TCGv src, - DisasContext *ctx, int slot) + DisasContext *ctx, uint32_t slot) { gen_store32(vaddr, src, 4, slot); ctx->store_width[slot] =3D 4; } =20 static inline void gen_store4i(TCGv_env cpu_env, TCGv vaddr, int32_t src, - DisasContext *ctx, int slot) + DisasContext *ctx, uint32_t slot) { TCGv tmp =3D tcg_const_tl(src); gen_store4(cpu_env, vaddr, tmp, ctx, slot); @@ -432,7 +434,7 @@ static inline void gen_store4i(TCGv_env cpu_env, TCGv v= addr, int32_t src, } =20 static inline void gen_store8(TCGv_env cpu_env, TCGv vaddr, TCGv_i64 src, - DisasContext *ctx, int slot) + DisasContext *ctx, uint32_t slot) { tcg_gen_mov_tl(hex_store_addr[slot], vaddr); tcg_gen_movi_tl(hex_store_width[slot], 8); @@ -441,7 +443,7 @@ static inline void gen_store8(TCGv_env cpu_env, TCGv va= ddr, TCGv_i64 src, } =20 static inline void gen_store8i(TCGv_env cpu_env, TCGv vaddr, int64_t src, - DisasContext *ctx, int slot) + DisasContext *ctx, uint32_t slot) { TCGv_i64 tmp =3D tcg_const_i64(src); gen_store8(cpu_env, vaddr, tmp, ctx, slot); --=20 2.32.0