From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792444929; cv=none; d=zohomail.com; s=zohoarc; b=VUmJthY6s0z4qVQH9g6/q+gpxDx3tKiRubZLMMVi2gGx1KEEmQh1UTJIN8M5tgrjmfd6/EJtFSU1nJt0Dj/oJSNbmsDO8dOAs0SWAVtBoBFLf+OXfoTBmVG3fJw+hQ+b5Z9SGugtWV/RrOMNwM/C0pPU736UdXfIz1qx3ZZtBbc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792444929; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=1jwq+whi5e9OAXirMqts4Aq+ZRiE3+qiIxNuwH6prbg=; b=ZDAOz+PypWN9Xk6uxPxm9EncD4ALNqK9I2LHZhhtCWA3ShRtf0kBAADnsnQCEXaMxvDJQH424kL/RXbGN3ibsny7xpmJT0icI/HXqGWb3byMAL00N0spfrEqIA33t6DJla0Oy1QlmPt1xrtjlM7BkgogfjsW2smtxiPfNNF5gzY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792444929528674.3750454896124; Mon, 19 Oct 2026 14:22:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIun9-0001bI-KO; Mon, 19 Oct 2026 17:21:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun7-0001aZ-AO for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:09 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun4-0005fg-8e for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:09 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJKKRV4190411 for ; Mon, 19 Oct 2026 21:21:04 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf48k91h-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:04 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3a46f0f158dso97618a91.1 for ; Mon, 19 Oct 2026 14:21:04 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=1jwq+whi5e9 OAXirMqts4Aq+ZRiE3+qiIxNuwH6prbg=; b=LVSUA2WQPEtbP/jtZIEBLqd6phK cd16+aDdOjZWAO793Z0VZ8BE9eztnQ8Jc48V9fOgsfQUg6uJUmZq46krO9cepbDJ qOD1RtCHBC0lZyvFas/oOpzIYxse6kk7qvsEp74rlP6qEzcXOHleDqeITIU1RmnP VwIdTru+4DXRZbKCy4zmyPlqXCv9XNlI0ubJk1NywysukStY9Fcd0TJFtNT8egPp WrlwBwcdhsRcJGl66pVxRZjtUPoSPH9b4GKqtnhpS5Z554dUPEVCDq+42jYeBrfD gviSIb0A41chmKNkTZv1yCLS+HrSKxSmS8/4pSrWOpkh41Wrwnau6zyCDVw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444863; x=1793049663; 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:content-type; bh=1jwq+whi5e9OAXirMqts4Aq+ZRiE3+qiIxNuwH6prbg=; b=HUHACvQvbWMTJRaEwUQqlks+oxHSuPUqiiCLRWKyIa650TOpodnftcS2NOHXkP4YEx SlTDO56/bYAJA+kP5RnuVM8QvpMSOTmBCYaQUGIPmfsXS0dfF42U1z6PFU2kovPKuks9 R4Oc2wYEbtKoMBGbWnoZS0cV5IN7uYXHgUBtYrHlzFcHs2y4PisDQZiNPRabfDshN6A9 L9gqmddyB4JjM1ZZ8j9V36NiZpAettkNnPWXn5/hsBlPq11Xcvvyfb2PPJilk2Ru/j8H fflQH+LNRE2PVTWHwszGVcVF9jeQGx2HxXhKqcXzZkKK5L89a29iqVzgqKOTL7LyByuo BMJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444863; x=1793049663; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=1jwq+whi5e9OAXirMqts4Aq+ZRiE3+qiIxNuwH6prbg=; b=XOQ7hbKlhDWSoO54DwZzZau89QA0ruO+M850RYlrZxpyZ/qh6nw39npKv6gny7S09S VFh0/HYDsI8zMy/+L1vOOfXSanYPXdPrfWQeFRANcMcKobo2CgfuHXtDYzAyTq8UeqRe QN41pUAzcBA+LZ1f9uznR5six4d862n2IFRBeY4lIqx5ZGBmtM+BG9N+pAuvIn9xmTAr 5PJmIxBr3KcEwt8Eu+jMO19ABQFS+G8KD2TaQQ5mNfdDS4gU/Kw6bvA+9cj5ejngZYQi 28HVBNe7b1lrQCcrc65o9fTlYzEDhgB0i59xGqSjoTtXp31FEnoXgXA8QMvTlJwYS7oj vluQ== X-Gm-Message-State: AFq9FYKQHtI7ZgKJNBLcM38BwdjX5VN2dahAqd1LeW+7knLUISUCzatB PSNT0Gj1pdBEx42o+e0ah0IIv2R+56M3tqLIHePevuqIVnNrUo0SC4uRd3Ap/jZjgKOCZzjUxyB vdszO7r3h2R/TMHeW51odit4AcPCmcptcYmQEsCdUWwz1D1YUufs5BEG265JRLqyfRA== X-Gm-Gg: AYBFou3rWRhxhFd4wKPqnivo7hEQSnl6LfmllQ5PiIH/sRMlezC+0pdyJNww0fiEGJa NwK1Y+A/ymJl4YxiaAqxUovrFyamGphJ6lo/4fZJEF5nGJMCydK8VIiUqJ/SJUWRbZItsWAVhDu ydoTdoiYA6aR/02dCqa0mAjdBJ6vsXNZeG9sHurONndzcZnrJQtvP7ZTVjEqzOyFnegsnwGEaQo qUqQh6nMPmRH2Y+U8AxzHP55z8OoXXmATO067dtVOdr6C8mO49E9dxwnND05cRn5UffkNixXJit Wf7qXukKGco1GUxnA5srMi6h4IkNeoaG211O0rDhxxz5dsm/KNMSjHB0m4lSZrMCcrvGb1YEL6F hw4KVYMT8Dg0SQGx56mMFo2c1SYWE1Z6tcgPyGTQ9iQpFcinqjL5YFW5hg1VNAgU= X-Received: by 2002:a17:90a:c17:b0:3a0:e568:ed63 with SMTP id 98e67ed59e1d1-3ad64b90b59mr120667a91.8.1792444862986; Mon, 19 Oct 2026 14:21:02 -0700 (PDT) X-Received: by 2002:a17:90a:c17:b0:3a0:e568:ed63 with SMTP id 98e67ed59e1d1-3ad64b90b59mr120653a91.8.1792444862277; Mon, 19 Oct 2026 14:21:02 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 01/26] target/alpha: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:20 +0000 Message-ID: <20261019212046.149572-2-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX+L7zhM5wGKDR ONEHX6U1Uzlm20LIbPbVXfO9Oqv5h2DMOUffkzttLb5fRPpKzB97pQXbLsrhIHqWbQNhOSd21wb rLgrNfkWfFUrWuiA8RinoU/oiKLbTtmmNcWHreVLuvILhaIVpK6nFYI1kHMwhwBbOM/EF2tEofe oHKbQP3MeFBvWAIUMQuJm9vXtJCIcihytcE0gAM6wxik00kMmYtWkSvKlYjGp7LOF5RTmHfkZcH HQdEH/EzsBt+H0pURSnA6NpLLJonBxpQ8p/UrrSzCaCJ7yYD5w3VT31DWOH1KTpZSzilDSmkyuF JxkP0ZUmBzlTbiB4DukyYj3yzoUvh/kP71J3/c8KSoU9P5e7evsFcfAzAmw8pvrVVFRd/Qi9sHN SHIDj9e2TYSE4gu/h8rvamoYwSAsORiMobHJjQg3wG238v4VBxA2yKzC+oar1RCoRorHk7WYeIW 4Nu1CWlgRLE02kaDNww== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX4ej2mjhBDLNk UoxJCW6hLtE9KCUJ9Uy+xV7RDEV+lZmnNSuwht0j2f3JVSRuDjf8o3Snz8m9nDOmtRm2WSkhpq1 PMw8sXkTih6Fwczy6f0B8Q8UQhrDHZM= X-Proofpoint-ORIG-GUID: LXkSB1dyJmEZwt9aCWwncyNRazKanN_3 X-Authority-Analysis: v=2.4 cv=Qr/LTlyd c=1 sm=1 tr=0 ts=6ad689c0 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=OayeTtTT_1BB-LWajB0A:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-GUID: LXkSB1dyJmEZwt9aCWwncyNRazKanN_3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792444931636158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/alpha/clk_helper.c | 2 +- target/alpha/fpu_helper.c | 60 +++++++++++++++++++-------------------- target/alpha/helper.c | 6 ++-- target/alpha/int_helper.c | 38 ++++++++++++------------- target/alpha/sys_helper.c | 12 ++++---- target/alpha/vax_helper.c | 42 +++++++++++++-------------- 6 files changed, 80 insertions(+), 80 deletions(-) diff --git a/target/alpha/clk_helper.c b/target/alpha/clk_helper.c index 26ffc231cda..36674221a66 100644 --- a/target/alpha/clk_helper.c +++ b/target/alpha/clk_helper.c @@ -11,7 +11,7 @@ #include "exec/helper-proto.h" #include "cpu.h" =20 -uint64_t helper_load_pcc(CPUAlphaState *env) +uint64_t HELPER(load_pcc)(CPUAlphaState *env) { #ifndef CONFIG_USER_ONLY /* diff --git a/target/alpha/fpu_helper.c b/target/alpha/fpu_helper.c index 529eadca9f2..61166396f6e 100644 --- a/target/alpha/fpu_helper.c +++ b/target/alpha/fpu_helper.c @@ -25,12 +25,12 @@ #define FP_STATUS (env->fp_status) =20 =20 -void helper_setroundmode(CPUAlphaState *env, uint32_t val) +void HELPER(setroundmode)(CPUAlphaState *env, uint32_t val) { set_float_rounding_mode(val, &FP_STATUS); } =20 -void helper_setflushzero(CPUAlphaState *env, uint32_t val) +void HELPER(setflushzero)(CPUAlphaState *env, uint32_t val) { set_flush_to_zero(val, &FP_STATUS); } @@ -71,7 +71,7 @@ static void fp_exc_raise1(CPUAlphaState *env, uintptr_t r= etaddr, /* Raise exceptions for ieee fp insns without software completion. In that case there are no exceptions that don't trap; the mask doesn't apply. */ -void helper_fp_exc_raise(CPUAlphaState *env, uint32_t ignore, uint32_t reg= no) +void HELPER(fp_exc_raise)(CPUAlphaState *env, uint32_t ignore, uint32_t re= gno) { uint32_t exc =3D env->error_code; if (exc) { @@ -84,7 +84,7 @@ void helper_fp_exc_raise(CPUAlphaState *env, uint32_t ign= ore, uint32_t regno) } =20 /* Raise exceptions for ieee fp insns with software completion. */ -void helper_fp_exc_raise_s(CPUAlphaState *env, uint32_t ignore, uint32_t r= egno) +void HELPER(fp_exc_raise_s)(CPUAlphaState *env, uint32_t ignore, uint32_t = regno) { uint32_t exc =3D env->error_code & ~ignore; if (exc) { @@ -107,7 +107,7 @@ void helper_fp_exc_raise_s(CPUAlphaState *env, uint32_t= ignore, uint32_t regno) =20 /* Input handing without software completion. Trap for all non-finite numbers. */ -void helper_ieee_input(CPUAlphaState *env, uint64_t val) +void HELPER(ieee_input)(CPUAlphaState *env, uint64_t val) { uint32_t exp =3D (uint32_t)(val >> 52) & 0x7ff; uint64_t frac =3D val & 0xfffffffffffffull; @@ -125,7 +125,7 @@ void helper_ieee_input(CPUAlphaState *env, uint64_t val) } =20 /* Similar, but does not trap for infinities. Used for comparisons. */ -void helper_ieee_input_cmp(CPUAlphaState *env, uint64_t val) +void HELPER(ieee_input_cmp)(CPUAlphaState *env, uint64_t val) { uint32_t exp =3D (uint32_t)(val >> 52) & 0x7ff; uint64_t frac =3D val & 0xfffffffffffffull; @@ -148,7 +148,7 @@ void helper_ieee_input_cmp(CPUAlphaState *env, uint64_t= val) then the code downstream of that will need to cope with denorms sans flush_input_to_zero. Most of it should work sanely, but there's nothing to compare with. */ -void helper_ieee_input_s(CPUAlphaState *env, uint64_t val) +void HELPER(ieee_input_s)(CPUAlphaState *env, uint64_t val) { if (unlikely(2 * val - 1 < 0x1fffffffffffffull) && !get_flush_inputs_to_zero(&env->fp_status)) { @@ -202,17 +202,17 @@ static inline float32 s_to_float32(uint64_t a) return r.f; } =20 -uint32_t helper_s_to_memory(uint64_t a) +uint32_t HELPER(s_to_memory)(uint64_t a) { return s_to_float32_int(a); } =20 -uint64_t helper_memory_to_s(uint32_t a) +uint64_t HELPER(memory_to_s)(uint32_t a) { return float32_to_s_int(a); } =20 -uint64_t helper_adds(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(adds)(CPUAlphaState *env, uint64_t a, uint64_t b) { float32 fa, fb, fr; =20 @@ -224,7 +224,7 @@ uint64_t helper_adds(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float32_to_s(fr); } =20 -uint64_t helper_subs(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(subs)(CPUAlphaState *env, uint64_t a, uint64_t b) { float32 fa, fb, fr; =20 @@ -236,7 +236,7 @@ uint64_t helper_subs(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float32_to_s(fr); } =20 -uint64_t helper_muls(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(muls)(CPUAlphaState *env, uint64_t a, uint64_t b) { float32 fa, fb, fr; =20 @@ -248,7 +248,7 @@ uint64_t helper_muls(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float32_to_s(fr); } =20 -uint64_t helper_alpha_divs(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(alpha_divs)(CPUAlphaState *env, uint64_t a, uint64_t b) { float32 fa, fb, fr; =20 @@ -260,7 +260,7 @@ uint64_t helper_alpha_divs(CPUAlphaState *env, uint64_t= a, uint64_t b) return float32_to_s(fr); } =20 -uint64_t helper_sqrts(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(sqrts)(CPUAlphaState *env, uint64_t a) { float32 fa, fr; =20 @@ -289,7 +289,7 @@ static inline uint64_t float64_to_t(float64 fa) return r.ll; } =20 -uint64_t helper_addt(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(addt)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb, fr; =20 @@ -301,7 +301,7 @@ uint64_t helper_addt(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float64_to_t(fr); } =20 -uint64_t helper_subt(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(subt)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb, fr; =20 @@ -313,7 +313,7 @@ uint64_t helper_subt(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float64_to_t(fr); } =20 -uint64_t helper_mult(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(mult)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb, fr; =20 @@ -325,7 +325,7 @@ uint64_t helper_mult(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float64_to_t(fr); } =20 -uint64_t helper_divt(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(divt)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb, fr; =20 @@ -337,7 +337,7 @@ uint64_t helper_divt(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float64_to_t(fr); } =20 -uint64_t helper_sqrtt(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(sqrtt)(CPUAlphaState *env, uint64_t a) { float64 fa, fr; =20 @@ -349,7 +349,7 @@ uint64_t helper_sqrtt(CPUAlphaState *env, uint64_t a) } =20 /* Comparisons */ -uint64_t helper_cmptun(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(cmptun)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb; uint64_t ret =3D 0; @@ -365,7 +365,7 @@ uint64_t helper_cmptun(CPUAlphaState *env, uint64_t a, = uint64_t b) return ret; } =20 -uint64_t helper_cmpteq(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(cmpteq)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb; uint64_t ret =3D 0; @@ -381,7 +381,7 @@ uint64_t helper_cmpteq(CPUAlphaState *env, uint64_t a, = uint64_t b) return ret; } =20 -uint64_t helper_cmptle(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(cmptle)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb; uint64_t ret =3D 0; @@ -397,7 +397,7 @@ uint64_t helper_cmptle(CPUAlphaState *env, uint64_t a, = uint64_t b) return ret; } =20 -uint64_t helper_cmptlt(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(cmptlt)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb; uint64_t ret =3D 0; @@ -414,7 +414,7 @@ uint64_t helper_cmptlt(CPUAlphaState *env, uint64_t a, = uint64_t b) } =20 /* Floating point format conversion */ -uint64_t helper_cvtts(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(cvtts)(CPUAlphaState *env, uint64_t a) { float64 fa; float32 fr; @@ -426,7 +426,7 @@ uint64_t helper_cvtts(CPUAlphaState *env, uint64_t a) return float32_to_s(fr); } =20 -uint64_t helper_cvtst(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(cvtst)(CPUAlphaState *env, uint64_t a) { float32 fa; float64 fr; @@ -438,7 +438,7 @@ uint64_t helper_cvtst(CPUAlphaState *env, uint64_t a) return float64_to_t(fr); } =20 -uint64_t helper_cvtqs(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(cvtqs)(CPUAlphaState *env, uint64_t a) { float32 fr =3D int64_to_float32(a, &FP_STATUS); env->error_code =3D soft_to_fpcr_exc(env); @@ -483,24 +483,24 @@ static uint64_t do_cvttq(CPUAlphaState *env, uint64_t= a, int roundmode) return ret; } =20 -uint64_t helper_cvttq(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(cvttq)(CPUAlphaState *env, uint64_t a) { return do_cvttq(env, a, get_float_rounding_mode(&FP_STATUS)); } =20 -uint64_t helper_cvttq_c(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(cvttq_c)(CPUAlphaState *env, uint64_t a) { return do_cvttq(env, a, float_round_to_zero); } =20 -uint64_t helper_cvtqt(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(cvtqt)(CPUAlphaState *env, uint64_t a) { float64 fr =3D int64_to_float64(a, &FP_STATUS); env->error_code =3D soft_to_fpcr_exc(env); return float64_to_t(fr); } =20 -uint64_t helper_cvtql(CPUAlphaState *env, uint64_t val) +uint64_t HELPER(cvtql)(CPUAlphaState *env, uint64_t val) { uint32_t exc =3D 0; if (val !=3D (int32_t)val) { diff --git a/target/alpha/helper.c b/target/alpha/helper.c index c3614ecafda..c8fc46d666f 100644 --- a/target/alpha/helper.c +++ b/target/alpha/helper.c @@ -91,12 +91,12 @@ void cpu_alpha_store_fpcr(CPUAlphaState *env, uint64_t = val) env->fpcr_flush_to_zero =3D t; } =20 -uint64_t helper_load_fpcr(CPUAlphaState *env) +uint64_t HELPER(load_fpcr)(CPUAlphaState *env) { return cpu_alpha_load_fpcr(env); } =20 -void helper_store_fpcr(CPUAlphaState *env, uint64_t val) +void HELPER(store_fpcr)(CPUAlphaState *env, uint64_t val) { cpu_alpha_store_fpcr(env, val); } @@ -535,7 +535,7 @@ void alpha_cpu_dump_state(CPUState *cs, FILE *f, int fl= ags) =20 /* This should only be called from translate, via gen_excp. We expect that ENV->PC has already been updated. */ -G_NORETURN void helper_excp(CPUAlphaState *env, int excp, int error) +G_NORETURN void HELPER(excp)(CPUAlphaState *env, int excp, int error) { CPUState *cs =3D env_cpu(env); =20 diff --git a/target/alpha/int_helper.c b/target/alpha/int_helper.c index 6bfe63500e0..11b0af82bc1 100644 --- a/target/alpha/int_helper.c +++ b/target/alpha/int_helper.c @@ -23,7 +23,7 @@ #include "qemu/host-utils.h" =20 =20 -uint64_t helper_zapnot(uint64_t val, uint64_t mskb) +uint64_t HELPER(zapnot)(uint64_t val, uint64_t mskb) { uint64_t mask; =20 @@ -39,12 +39,12 @@ uint64_t helper_zapnot(uint64_t val, uint64_t mskb) return val & mask; } =20 -uint64_t helper_zap(uint64_t val, uint64_t mask) +uint64_t HELPER(zap)(uint64_t val, uint64_t mask) { - return helper_zapnot(val, ~mask); + return HELPER(zapnot)(val, ~mask); } =20 -uint64_t helper_cmpbe0(uint64_t a) +uint64_t HELPER(cmpbe0)(uint64_t a) { uint64_t m =3D 0x7f7f7f7f7f7f7f7fULL; uint64_t c =3D ~(((a & m) + m) | a | m); @@ -58,7 +58,7 @@ uint64_t helper_cmpbe0(uint64_t a) return c >> 56; } =20 -uint64_t helper_cmpbge(uint64_t a, uint64_t b) +uint64_t HELPER(cmpbge)(uint64_t a, uint64_t b) { uint64_t mask =3D 0x00ff00ff00ff00ffULL; uint64_t test =3D 0x0100010001000100ULL; @@ -87,7 +87,7 @@ uint64_t helper_cmpbge(uint64_t a, uint64_t b) return cl >> 50; } =20 -uint64_t helper_minub8(uint64_t op1, uint64_t op2) +uint64_t HELPER(minub8)(uint64_t op1, uint64_t op2) { uint64_t res =3D 0; uint8_t opa, opb, opr; @@ -102,7 +102,7 @@ uint64_t helper_minub8(uint64_t op1, uint64_t op2) return res; } =20 -uint64_t helper_minsb8(uint64_t op1, uint64_t op2) +uint64_t HELPER(minsb8)(uint64_t op1, uint64_t op2) { uint64_t res =3D 0; int8_t opa, opb; @@ -118,7 +118,7 @@ uint64_t helper_minsb8(uint64_t op1, uint64_t op2) return res; } =20 -uint64_t helper_minuw4(uint64_t op1, uint64_t op2) +uint64_t HELPER(minuw4)(uint64_t op1, uint64_t op2) { uint64_t res =3D 0; uint16_t opa, opb, opr; @@ -133,7 +133,7 @@ uint64_t helper_minuw4(uint64_t op1, uint64_t op2) return res; } =20 -uint64_t helper_minsw4(uint64_t op1, uint64_t op2) +uint64_t HELPER(minsw4)(uint64_t op1, uint64_t op2) { uint64_t res =3D 0; int16_t opa, opb; @@ -149,7 +149,7 @@ uint64_t helper_minsw4(uint64_t op1, uint64_t op2) return res; } =20 -uint64_t helper_maxub8(uint64_t op1, uint64_t op2) +uint64_t HELPER(maxub8)(uint64_t op1, uint64_t op2) { uint64_t res =3D 0; uint8_t opa, opb, opr; @@ -164,7 +164,7 @@ uint64_t helper_maxub8(uint64_t op1, uint64_t op2) return res; } =20 -uint64_t helper_maxsb8(uint64_t op1, uint64_t op2) +uint64_t HELPER(maxsb8)(uint64_t op1, uint64_t op2) { uint64_t res =3D 0; int8_t opa, opb; @@ -180,7 +180,7 @@ uint64_t helper_maxsb8(uint64_t op1, uint64_t op2) return res; } =20 -uint64_t helper_maxuw4(uint64_t op1, uint64_t op2) +uint64_t HELPER(maxuw4)(uint64_t op1, uint64_t op2) { uint64_t res =3D 0; uint16_t opa, opb, opr; @@ -195,7 +195,7 @@ uint64_t helper_maxuw4(uint64_t op1, uint64_t op2) return res; } =20 -uint64_t helper_maxsw4(uint64_t op1, uint64_t op2) +uint64_t HELPER(maxsw4)(uint64_t op1, uint64_t op2) { uint64_t res =3D 0; int16_t opa, opb; @@ -211,7 +211,7 @@ uint64_t helper_maxsw4(uint64_t op1, uint64_t op2) return res; } =20 -uint64_t helper_perr(uint64_t op1, uint64_t op2) +uint64_t HELPER(perr)(uint64_t op1, uint64_t op2) { uint64_t res =3D 0; uint8_t opa, opb, opr; @@ -230,12 +230,12 @@ uint64_t helper_perr(uint64_t op1, uint64_t op2) return res; } =20 -uint64_t helper_pklb(uint64_t op1) +uint64_t HELPER(pklb)(uint64_t op1) { return (op1 & 0xff) | ((op1 >> 24) & 0xff00); } =20 -uint64_t helper_pkwb(uint64_t op1) +uint64_t HELPER(pkwb)(uint64_t op1) { return ((op1 & 0xff) | ((op1 >> 8) & 0xff00) @@ -243,12 +243,12 @@ uint64_t helper_pkwb(uint64_t op1) | ((op1 >> 24) & 0xff000000)); } =20 -uint64_t helper_unpkbl(uint64_t op1) +uint64_t HELPER(unpkbl)(uint64_t op1) { return (op1 & 0xff) | ((op1 & 0xff00) << 24); } =20 -uint64_t helper_unpkbw(uint64_t op1) +uint64_t HELPER(unpkbw)(uint64_t op1) { return ((op1 & 0xff) | ((op1 & 0xff00) << 8) @@ -256,7 +256,7 @@ uint64_t helper_unpkbw(uint64_t op1) | ((op1 & 0xff000000) << 24)); } =20 -void helper_check_overflow(CPUAlphaState *env, uint64_t op1, uint64_t op2) +void HELPER(check_overflow)(CPUAlphaState *env, uint64_t op1, uint64_t op2) { if (unlikely(op1 !=3D op2)) { arith_excp(env, GETPC(), EXC_M_IOV, 0); diff --git a/target/alpha/sys_helper.c b/target/alpha/sys_helper.c index 0e0a619975b..95613e97f2b 100644 --- a/target/alpha/sys_helper.c +++ b/target/alpha/sys_helper.c @@ -27,17 +27,17 @@ =20 =20 /* PALcode support special instructions */ -void helper_tbia(CPUAlphaState *env) +void HELPER(tbia)(CPUAlphaState *env) { tlb_flush(env_cpu(env)); } =20 -void helper_tbis(CPUAlphaState *env, uint64_t p) +void HELPER(tbis)(CPUAlphaState *env, uint64_t p) { tlb_flush_page(env_cpu(env), p); } =20 -void helper_halt(uint64_t restart) +void HELPER(halt)(uint64_t restart) { if (restart) { qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET); @@ -46,17 +46,17 @@ void helper_halt(uint64_t restart) } } =20 -uint64_t helper_get_vmtime(void) +uint64_t HELPER(get_vmtime)(void) { return qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); } =20 -uint64_t helper_get_walltime(void) +uint64_t HELPER(get_walltime)(void) { return qemu_clock_get_ns(rtc_clock); } =20 -void helper_set_alarm(CPUAlphaState *env, uint64_t expire) +void HELPER(set_alarm)(CPUAlphaState *env, uint64_t expire) { AlphaCPU *cpu =3D env_archcpu(env); =20 diff --git a/target/alpha/vax_helper.c b/target/alpha/vax_helper.c index c1d201e7b4d..01c12538494 100644 --- a/target/alpha/vax_helper.c +++ b/target/alpha/vax_helper.c @@ -82,7 +82,7 @@ static float32 f_to_float32(CPUAlphaState *env, uintptr_t= retaddr, uint64_t a) return r.f; } =20 -uint32_t helper_f_to_memory(uint64_t a) +uint32_t HELPER(f_to_memory)(uint64_t a) { uint32_t r; r =3D (a & 0x00001fffe0000000ull) >> 13; @@ -91,7 +91,7 @@ uint32_t helper_f_to_memory(uint64_t a) return r; } =20 -uint64_t helper_memory_to_f(uint32_t a) +uint64_t HELPER(memory_to_f)(uint32_t a) { uint64_t r; r =3D ((uint64_t)(a & 0x0000c000)) << 48; @@ -106,7 +106,7 @@ uint64_t helper_memory_to_f(uint32_t a) /* ??? Emulating VAX arithmetic with IEEE arithmetic is wrong. We should either implement VAX arithmetic properly or just signal invalid opcode.= */ =20 -uint64_t helper_addf(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(addf)(CPUAlphaState *env, uint64_t a, uint64_t b) { float32 fa, fb, fr; =20 @@ -116,7 +116,7 @@ uint64_t helper_addf(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float32_to_f(fr); } =20 -uint64_t helper_subf(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(subf)(CPUAlphaState *env, uint64_t a, uint64_t b) { float32 fa, fb, fr; =20 @@ -126,7 +126,7 @@ uint64_t helper_subf(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float32_to_f(fr); } =20 -uint64_t helper_mulf(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(mulf)(CPUAlphaState *env, uint64_t a, uint64_t b) { float32 fa, fb, fr; =20 @@ -136,7 +136,7 @@ uint64_t helper_mulf(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float32_to_f(fr); } =20 -uint64_t helper_divf(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(divf)(CPUAlphaState *env, uint64_t a, uint64_t b) { float32 fa, fb, fr; =20 @@ -146,7 +146,7 @@ uint64_t helper_divf(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float32_to_f(fr); } =20 -uint64_t helper_sqrtf(CPUAlphaState *env, uint64_t t) +uint64_t HELPER(sqrtf)(CPUAlphaState *env, uint64_t t) { float32 ft, fr; =20 @@ -213,7 +213,7 @@ static float64 g_to_float64(CPUAlphaState *env, uintptr= _t retaddr, uint64_t a) return r.d; } =20 -uint64_t helper_g_to_memory(uint64_t a) +uint64_t HELPER(g_to_memory)(uint64_t a) { uint64_t r; r =3D (a & 0x000000000000ffffull) << 48; @@ -223,7 +223,7 @@ uint64_t helper_g_to_memory(uint64_t a) return r; } =20 -uint64_t helper_memory_to_g(uint64_t a) +uint64_t HELPER(memory_to_g)(uint64_t a) { uint64_t r; r =3D (a & 0x000000000000ffffull) << 48; @@ -233,7 +233,7 @@ uint64_t helper_memory_to_g(uint64_t a) return r; } =20 -uint64_t helper_addg(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(addg)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb, fr; =20 @@ -243,7 +243,7 @@ uint64_t helper_addg(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float64_to_g(fr); } =20 -uint64_t helper_subg(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(subg)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb, fr; =20 @@ -253,7 +253,7 @@ uint64_t helper_subg(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float64_to_g(fr); } =20 -uint64_t helper_mulg(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(mulg)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb, fr; =20 @@ -263,7 +263,7 @@ uint64_t helper_mulg(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float64_to_g(fr); } =20 -uint64_t helper_divg(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(divg)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb, fr; =20 @@ -273,7 +273,7 @@ uint64_t helper_divg(CPUAlphaState *env, uint64_t a, ui= nt64_t b) return float64_to_g(fr); } =20 -uint64_t helper_sqrtg(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(sqrtg)(CPUAlphaState *env, uint64_t a) { float64 fa, fr; =20 @@ -282,7 +282,7 @@ uint64_t helper_sqrtg(CPUAlphaState *env, uint64_t a) return float64_to_g(fr); } =20 -uint64_t helper_cmpgeq(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(cmpgeq)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb; =20 @@ -296,7 +296,7 @@ uint64_t helper_cmpgeq(CPUAlphaState *env, uint64_t a, = uint64_t b) } } =20 -uint64_t helper_cmpgle(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(cmpgle)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb; =20 @@ -310,7 +310,7 @@ uint64_t helper_cmpgle(CPUAlphaState *env, uint64_t a, = uint64_t b) } } =20 -uint64_t helper_cmpglt(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(cmpglt)(CPUAlphaState *env, uint64_t a, uint64_t b) { float64 fa, fb; =20 @@ -324,13 +324,13 @@ uint64_t helper_cmpglt(CPUAlphaState *env, uint64_t a= , uint64_t b) } } =20 -uint64_t helper_cvtqf(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(cvtqf)(CPUAlphaState *env, uint64_t a) { float32 fr =3D int64_to_float32(a, &FP_STATUS); return float32_to_f(fr); } =20 -uint64_t helper_cvtgf(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(cvtgf)(CPUAlphaState *env, uint64_t a) { float64 fa; float32 fr; @@ -340,13 +340,13 @@ uint64_t helper_cvtgf(CPUAlphaState *env, uint64_t a) return float32_to_f(fr); } =20 -uint64_t helper_cvtgq(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(cvtgq)(CPUAlphaState *env, uint64_t a) { float64 fa =3D g_to_float64(env, GETPC(), a); return float64_to_int64_round_to_zero(fa, &FP_STATUS); } =20 -uint64_t helper_cvtqg(CPUAlphaState *env, uint64_t a) +uint64_t HELPER(cvtqg)(CPUAlphaState *env, uint64_t a) { float64 fr; fr =3D int64_to_float64(a, &FP_STATUS); --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445012; cv=none; d=zohomail.com; s=zohoarc; b=nN1rUtrnheT0y/szSquOXwepysVo37CesUxtSya8BjRTR538TZONvwZNApWZhjunoh5kRmrYoo/6Mkwmioam/1DqEXx2KHm2sSTTON8bnZuKdIW7V8qblpjS+W84CxM6RplnzA7I0Qz5yY3gVABpF7uH9jRKeleSXH1TJ/JWMgk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445012; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=y1ihBXndHpOh5EYTYcAtUPJoNxmjQ+L7zGDQ/keBCQM=; b=Z+nmd3BeFZCDhXtw1vIh/Zwh1ytAQucEGIhSQiVc4WL6u7G8v3SC1HXvpogRrgnedXFu/EFH2DLTh30BaMjGsJ+9tyrg3K5b/ufYMBN0EVNyIrWyLGePRifTRPFGsKn7ydFHOIxicZWLg2oYuZkxePnQmkhVRYCtysXjgVBZZ40= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792445012893307.26902857569553; Mon, 19 Oct 2026 14:23:32 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunC-0001cd-IA; Mon, 19 Oct 2026 17:21:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun9-0001bH-EF for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:11 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun5-0005fv-CB for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:11 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJJuRG2604726 for ; Mon, 19 Oct 2026 21:21:06 GMT Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdr4a0ps8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:05 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3ab1e771632so80046a91.1 for ; Mon, 19 Oct 2026 14:21:05 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=y1ihBXndHpO h5EYTYcAtUPJoNxmjQ+L7zGDQ/keBCQM=; b=ShIMMF5O7z7T5caTk6iE+3j9uc+ 96SomDD/v7E6hJxXjXIwj6dBxNWbvoLCSrRqd33XmNFGlQaQSw8ADKUgTmit6RrW tTjMoUONVnQh9DSwkUSJ5b2sx+QS8P+TJd0IFMJEceWvVHRjMt9ywGDrEpRKz23v Kh587bK72UF/0mDp5VSVNbNcHnz3R3NMq6oZMfCueyeFvXc+w40cZLXSDxRdkxgK u0TGCHhGEUfwhawdZIgr903KsxXyVsD7gM5+gayCEwCL7SxXD1Ucb7lsA0hUcy79 dbHfplgJqp/kiK423h9kg9Pxc6NMbR4wabKOaU15P8yw02YlQpSnXxWI8qw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444864; x=1793049664; 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:content-type; bh=y1ihBXndHpOh5EYTYcAtUPJoNxmjQ+L7zGDQ/keBCQM=; b=KKTtLN4dnQz+w8xpJ0lqbPf16gplv3WVeXKEXu7IBRHvKnZBMrUSyH7EFRixOl3cW3 16Ahjl7UojqzuT5Sgbwuvx5Hh2LFfZCAfjSCT8MVanjYbbP+OFEEq/g8rnIdU81a+P0j ruDLkcLI1lhuP2oBdKCDr0zDft18iwlpDNKkBj9wtgSicui8IiZeGmPlYxGDmZ8dnN0A Ed1XlumaQVd7eq9Pqf00eVel7dL3mPDn8Gi9EpUo1sOQRMHSeOamkHm8XVLGR9SR8eUP YSWgdRYgZQtOUco3OCQqefn/kjYMJOQqnpsD+RE3TpTsy5xHZ/gA5GMc16qi0vb6vXzr HFcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444864; x=1793049664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=y1ihBXndHpOh5EYTYcAtUPJoNxmjQ+L7zGDQ/keBCQM=; b=1jL6cR565Ocq/1cUO42GbT+ZL78rqq82zSE5nT4rjzBsHPcNcZf2t7C99WDkxA98pi 89L+it9uJZKGt0hwH7NW6BGXOGONe/S9ULqeIZRicWantToPVLJFEywB4wy+7GcR4BQ/ l5dNPQ54XB9HYHk4thiMuJuk9tby37WsMhJTjWBEZNQ9BwdFT33CrC3KxqZcNQ0EsgX2 LTQlX8GpYu0h59P+ZSIWmPSTKYaC0WcXgNKaUq19uDrudri0Xd1NsKbxKcvIZZs0ruhb AsUqwM5RQsBG2Q8MHBoEyuLMsIk0WQ7wZlOPcpwXf9jmb7IzHJIN6H10BdhjjlWX09MA bHew== X-Gm-Message-State: AFq9FYI090ce7XaCSJ2XVHLfU63IeSdegHYEGzBjs7CpHG2qirzQeebd PDlnLcDGbYLGg2+3jPA58VpaMiqe+yQCs5kHHiAdgDTkTt11jf0tvuIKHWqF5hUOACzxyqrpC2h jtNqqkGvvnz058fl8pQZAPLPhFKc6E6iLcYsv41opxufJzLj//Irgj5yF23ECycZYJw== X-Gm-Gg: AYBFou1m7OBGSHari8AUEaswWXUXRD0QvQWG/5PpDj2I/fS4+XgsMV4NSxH5xj9f4eN w5bjm2l2QnXIabqM3KxDDAUq6dW92lLQyd22wSqnn24n7buKGRAPlrcChdIumoVDj3tSWZRzGwG zv47LCkazNPPH1h+XrbcavXEMMTcdIujbJzHIgdRTa02UMclHi9ZC2cvboA8nE/7IxhMF9py6kf 3gkpDAsFatDabfIw47LvhHRxz2IEISJiZjCfgj91G52gNftDUmp3wHLL2FWgG1sQmGfUgV4i4IX bTRubFYrszyLKCgL7yIFjswHXOiBFFBt00VJMjHCYx3DsGSIONjtY+MJhzptzZvNBQaO7WOK2l3 ozZnAaHq22H5yiOpnt9UFVvwNMfHFjh/7JeVQAFZ4RvSuskKvZBXXFejmZJc2WvM= X-Received: by 2002:a17:90a:ec88:b0:3a6:d850:bf16 with SMTP id 98e67ed59e1d1-3ad64bb7a75mr179273a91.23.1792444863898; Mon, 19 Oct 2026 14:21:03 -0700 (PDT) X-Received: by 2002:a17:90a:ec88:b0:3a6:d850:bf16 with SMTP id 98e67ed59e1d1-3ad64bb7a75mr179256a91.23.1792444863074; Mon, 19 Oct 2026 14:21:03 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 02/26] target/arm: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:21 +0000 Message-ID: <20261019212046.149572-3-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX1iv8JgJQWcVL 6a1iTPSVPUYA19i9W9N7L28QP3R4xTTgMeYhj75zcx5VgJ4vDPbTJKUdRB9pG63OxFGmhtSailw Ef1PFkcPbsmdJLk28tJrVJogJLUz68g= X-Authority-Analysis: v=2.4 cv=Zt54uN7G c=1 sm=1 tr=0 ts=6ad689c1 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=UqKkN2FlH-C22XUL27IA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-ORIG-GUID: Xs81vINeCnA7WITDDZOkxGu1GWaIwo_1 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfXyjkkr1xWKSjI IVovmQJrWKKDmVslRe5ADnWFVCYwGleShBNQYxNVwEoe9WcGYlaPsBA1DaChbU4aYDMdezEbJzf BHJveJa0SZndoIx9aKQ3Du1tZH3l5CH+7NDKw9VN3s64QIB77Tk8qt5/qrxhPqsT4JAxLgbHLd1 N0UZgc8FloW+S91UJN5YewbutebVC/zZPaNBWQBiMTP3R+QRyIlSkwUA7PZLigCfiop3V7sUWVv XmnfsqOFlPbVK5vE4z6y/snjrCA7usQ9hmyq089+pkfIAOytN/F/BvNhUKwOKP5tv7JCJwdIYim C/7ysbHYB6aPjwDFIKj3YPHK6x5Y6WOtWmslqfGWWJt1sR7/++RiRMR1EAOjnWot99UpQFjiP2W fcXil82uTBCSiYaBf8VNRR/2CjSuv7DR7hgY3wrcrFdIusEhv+s6sMrhbem8idCjxqy9tzBxJY4 EamdT0Owq5diLaPBNgg== X-Proofpoint-GUID: Xs81vINeCnA7WITDDZOkxGu1GWaIwo_1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 phishscore=0 impostorscore=0 adultscore=0 priorityscore=1501 suspectscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445014974158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/arm/tcg/helper-a64.c | 6 +- target/arm/tcg/mve_helper.c | 28 +++---- target/arm/tcg/psci.c | 2 +- target/arm/tcg/sme_helper.c | 4 +- target/arm/tcg/sve_helper.c | 141 +++++++++++++++++----------------- target/arm/tcg/tlb_helper.c | 2 +- target/arm/tcg/vec_helper.c | 72 ++++++++--------- target/arm/tcg/vec_helper64.c | 64 +++++++-------- target/arm/tcg/vec_internal.h | 5 +- 9 files changed, 163 insertions(+), 161 deletions(-) diff --git a/target/arm/tcg/helper-a64.c b/target/arm/tcg/helper-a64.c index f76d89990c3..fdfa220574f 100644 --- a/target/arm/tcg/helper-a64.c +++ b/target/arm/tcg/helper-a64.c @@ -707,7 +707,7 @@ void HELPER(exception_return)(CPUARMState *env, uint64_= t new_pc) } else { env->regs[15] =3D new_pc & ~0x3; } - helper_rebuild_hflags_a32(env, new_el); + HELPER(rebuild_hflags_a32)(env, new_el); qemu_log_mask(CPU_LOG_INT, "Exception return from AArch64 EL%d to " "AArch32 EL%d PC 0x%" PRIx32 "\n", cur_el, new_el, env->regs[15]); @@ -721,7 +721,7 @@ void HELPER(exception_return)(CPUARMState *env, uint64_= t new_pc) env->pstate &=3D ~PSTATE_SS; } aarch64_restore_sp(env, new_el); - helper_rebuild_hflags_a64(env, new_el); + HELPER(rebuild_hflags_a64)(env, new_el); =20 /* * Apply TBI to the exception return address. We had to delay this @@ -777,7 +777,7 @@ illegal_return: if (!arm_singlestep_active(env)) { env->pstate &=3D ~PSTATE_SS; } - helper_rebuild_hflags_a64(env, cur_el); + HELPER(rebuild_hflags_a64)(env, cur_el); qemu_log_mask(LOG_GUEST_ERROR, "Illegal exception return at EL%d: " "resuming execution at 0x%" PRIx64 "\n", cur_el, env->pc= ); } diff --git a/target/arm/tcg/mve_helper.c b/target/arm/tcg/mve_helper.c index 09ae2334167..4a8e0b210e6 100644 --- a/target/arm/tcg/mve_helper.c +++ b/target/arm/tcg/mve_helper.c @@ -3310,14 +3310,14 @@ DO_VCMP_FP_BOTH(vfcmples, vfcmple_scalars, 4, float= 32, !DO_GT32) mve_advance_vpt(env); \ } =20 -DO_VCVT_FIXED(vcvt_sh, 2, int16_t, helper_vfp_shtoh) -DO_VCVT_FIXED(vcvt_uh, 2, uint16_t, helper_vfp_uhtoh) -DO_VCVT_FIXED(vcvt_hs, 2, int16_t, helper_vfp_toshh_round_to_zero) -DO_VCVT_FIXED(vcvt_hu, 2, uint16_t, helper_vfp_touhh_round_to_zero) -DO_VCVT_FIXED(vcvt_sf, 4, int32_t, helper_vfp_sltos) -DO_VCVT_FIXED(vcvt_uf, 4, uint32_t, helper_vfp_ultos) -DO_VCVT_FIXED(vcvt_fs, 4, int32_t, helper_vfp_tosls_round_to_zero) -DO_VCVT_FIXED(vcvt_fu, 4, uint32_t, helper_vfp_touls_round_to_zero) +DO_VCVT_FIXED(vcvt_sh, 2, int16_t, HELPER(vfp_shtoh)) +DO_VCVT_FIXED(vcvt_uh, 2, uint16_t, HELPER(vfp_uhtoh)) +DO_VCVT_FIXED(vcvt_hs, 2, int16_t, HELPER(vfp_toshh_round_to_zero)) +DO_VCVT_FIXED(vcvt_hu, 2, uint16_t, HELPER(vfp_touhh_round_to_zero)) +DO_VCVT_FIXED(vcvt_sf, 4, int32_t, HELPER(vfp_sltos)) +DO_VCVT_FIXED(vcvt_uf, 4, uint32_t, HELPER(vfp_ultos)) +DO_VCVT_FIXED(vcvt_fs, 4, int32_t, HELPER(vfp_tosls_round_to_zero)) +DO_VCVT_FIXED(vcvt_fu, 4, uint32_t, HELPER(vfp_touls_round_to_zero)) =20 /* VCVT with specified rmode */ #define DO_VCVT_RMODE(OP, ESIZE, TYPE, FN) \ @@ -3351,13 +3351,13 @@ DO_VCVT_FIXED(vcvt_fu, 4, uint32_t, helper_vfp_toul= s_round_to_zero) mve_advance_vpt(env); \ } =20 -DO_VCVT_RMODE(vcvt_rm_sh, 2, uint16_t, helper_vfp_toshh) -DO_VCVT_RMODE(vcvt_rm_uh, 2, uint16_t, helper_vfp_touhh) -DO_VCVT_RMODE(vcvt_rm_ss, 4, uint32_t, helper_vfp_tosls) -DO_VCVT_RMODE(vcvt_rm_us, 4, uint32_t, helper_vfp_touls) +DO_VCVT_RMODE(vcvt_rm_sh, 2, uint16_t, HELPER(vfp_toshh)) +DO_VCVT_RMODE(vcvt_rm_uh, 2, uint16_t, HELPER(vfp_touhh)) +DO_VCVT_RMODE(vcvt_rm_ss, 4, uint32_t, HELPER(vfp_tosls)) +DO_VCVT_RMODE(vcvt_rm_us, 4, uint32_t, HELPER(vfp_touls)) =20 -#define DO_VRINT_RM_H(M, F, S) helper_rinth(M, S) -#define DO_VRINT_RM_S(M, F, S) helper_rints(M, S) +#define DO_VRINT_RM_H(M, F, S) HELPER(rinth)(M, S) +#define DO_VRINT_RM_S(M, F, S) HELPER(rints)(M, S) =20 DO_VCVT_RMODE(vrint_rm_h, 2, uint16_t, DO_VRINT_RM_H) DO_VCVT_RMODE(vrint_rm_s, 4, uint32_t, DO_VRINT_RM_S) diff --git a/target/arm/tcg/psci.c b/target/arm/tcg/psci.c index 56754bde951..d8e01df7623 100644 --- a/target/arm/tcg/psci.c +++ b/target/arm/tcg/psci.c @@ -172,7 +172,7 @@ void arm_handle_psci_call(ARMCPU *cpu) } else { env->regs[0] =3D 0; } - helper_wfi(env, 4); + HELPER(wfi)(env, 4); break; case QEMU_PSCI_1_0_FN_PSCI_FEATURES: switch (param[1]) { diff --git a/target/arm/tcg/sme_helper.c b/target/arm/tcg/sme_helper.c index 9de95428d2a..5fb629362b9 100644 --- a/target/arm/tcg/sme_helper.c +++ b/target/arm/tcg/sme_helper.c @@ -34,12 +34,12 @@ #define HELPER_H "tcg/helper-sme-defs.h" #include "exec/helper-info.c.inc" =20 -void helper_set_svcr(CPUARMState *env, uint32_t val, uint32_t mask) +void HELPER(set_svcr)(CPUARMState *env, uint32_t val, uint32_t mask) { aarch64_set_svcr(env, val, mask); } =20 -void helper_sme_zero(CPUARMState *env, uint32_t imm, uint32_t svl) +void HELPER(sme_zero)(CPUARMState *env, uint32_t imm, uint32_t svl) { uint32_t i; =20 diff --git a/target/arm/tcg/sve_helper.c b/target/arm/tcg/sve_helper.c index 8389dce6299..c296fc8c08f 100644 --- a/target/arm/tcg/sve_helper.c +++ b/target/arm/tcg/sve_helper.c @@ -778,13 +778,13 @@ DO_ZPZZ_PAIR_FP(sve2_fminp_zpzz_h, float16, H1_2, flo= at16_min) DO_ZPZZ_PAIR_FP(sve2_fminp_zpzz_s, float32, H1_4, float32_min) DO_ZPZZ_PAIR_FP(sve2_fminp_zpzz_d, float64, H1_8, float64_min) =20 -DO_ZPZZ_PAIR_FP(sve2_ah_fmaxp_zpzz_h, float16, H1_2, helper_vfp_ah_maxh) -DO_ZPZZ_PAIR_FP(sve2_ah_fmaxp_zpzz_s, float32, H1_4, helper_vfp_ah_maxs) -DO_ZPZZ_PAIR_FP(sve2_ah_fmaxp_zpzz_d, float64, H1_8, helper_vfp_ah_maxd) +DO_ZPZZ_PAIR_FP(sve2_ah_fmaxp_zpzz_h, float16, H1_2, HELPER(vfp_ah_maxh)) +DO_ZPZZ_PAIR_FP(sve2_ah_fmaxp_zpzz_s, float32, H1_4, HELPER(vfp_ah_maxs)) +DO_ZPZZ_PAIR_FP(sve2_ah_fmaxp_zpzz_d, float64, H1_8, HELPER(vfp_ah_maxd)) =20 -DO_ZPZZ_PAIR_FP(sve2_ah_fminp_zpzz_h, float16, H1_2, helper_vfp_ah_minh) -DO_ZPZZ_PAIR_FP(sve2_ah_fminp_zpzz_s, float32, H1_4, helper_vfp_ah_mins) -DO_ZPZZ_PAIR_FP(sve2_ah_fminp_zpzz_d, float64, H1_8, helper_vfp_ah_mind) +DO_ZPZZ_PAIR_FP(sve2_ah_fminp_zpzz_h, float16, H1_2, HELPER(vfp_ah_minh)) +DO_ZPZZ_PAIR_FP(sve2_ah_fminp_zpzz_s, float32, H1_4, HELPER(vfp_ah_mins)) +DO_ZPZZ_PAIR_FP(sve2_ah_fminp_zpzz_d, float64, H1_8, HELPER(vfp_ah_mind)) =20 #undef DO_ZPZZ_PAIR_FP =20 @@ -1044,8 +1044,8 @@ DO_ZPZ(sve2_sqneg_h, uint16_t, H1_2, DO_SQNEG) DO_ZPZ(sve2_sqneg_s, uint32_t, H1_4, DO_SQNEG) DO_ZPZ_D(sve2_sqneg_d, uint64_t, DO_SQNEG) =20 -DO_ZPZ(sve2_urecpe_s, uint32_t, H1_4, helper_recpe_u32) -DO_ZPZ(sve2_ursqrte_s, uint32_t, H1_4, helper_rsqrte_u32) +DO_ZPZ(sve2_urecpe_s, uint32_t, H1_4, HELPER(recpe_u32)) +DO_ZPZ(sve2_ursqrte_s, uint32_t, H1_4, HELPER(rsqrte_u32)) =20 /* Three-operand expander, unpredicated, in which the third operand is "wi= de". */ @@ -3621,25 +3621,25 @@ static void do_perseg_zzz(void *vd, void *vn, void = *vm, void HELPER(NAME)(void *vd, void *vn, void *vm, uint32_t desc) \ { do_perseg_zzz(vd, vn, vm, desc, FUNC); } =20 -DO_PERSEG_ZZZ(sve2p1_uzpq_b, helper_sve_uzp_b) -DO_PERSEG_ZZZ(sve2p1_uzpq_h, helper_sve_uzp_h) -DO_PERSEG_ZZZ(sve2p1_uzpq_s, helper_sve_uzp_s) -DO_PERSEG_ZZZ(sve2p1_uzpq_d, helper_sve_uzp_d) +DO_PERSEG_ZZZ(sve2p1_uzpq_b, HELPER(sve_uzp_b)) +DO_PERSEG_ZZZ(sve2p1_uzpq_h, HELPER(sve_uzp_h)) +DO_PERSEG_ZZZ(sve2p1_uzpq_s, HELPER(sve_uzp_s)) +DO_PERSEG_ZZZ(sve2p1_uzpq_d, HELPER(sve_uzp_d)) =20 -DO_PERSEG_ZZZ(sve2p1_zipq_b, helper_sve_zip_b) -DO_PERSEG_ZZZ(sve2p1_zipq_h, helper_sve_zip_h) -DO_PERSEG_ZZZ(sve2p1_zipq_s, helper_sve_zip_s) -DO_PERSEG_ZZZ(sve2p1_zipq_d, helper_sve_zip_d) +DO_PERSEG_ZZZ(sve2p1_zipq_b, HELPER(sve_zip_b)) +DO_PERSEG_ZZZ(sve2p1_zipq_h, HELPER(sve_zip_h)) +DO_PERSEG_ZZZ(sve2p1_zipq_s, HELPER(sve_zip_s)) +DO_PERSEG_ZZZ(sve2p1_zipq_d, HELPER(sve_zip_d)) =20 -DO_PERSEG_ZZZ(sve2p1_tblq_b, helper_sve_tbl_b) -DO_PERSEG_ZZZ(sve2p1_tblq_h, helper_sve_tbl_h) -DO_PERSEG_ZZZ(sve2p1_tblq_s, helper_sve_tbl_s) -DO_PERSEG_ZZZ(sve2p1_tblq_d, helper_sve_tbl_d) +DO_PERSEG_ZZZ(sve2p1_tblq_b, HELPER(sve_tbl_b)) +DO_PERSEG_ZZZ(sve2p1_tblq_h, HELPER(sve_tbl_h)) +DO_PERSEG_ZZZ(sve2p1_tblq_s, HELPER(sve_tbl_s)) +DO_PERSEG_ZZZ(sve2p1_tblq_d, HELPER(sve_tbl_d)) =20 -DO_PERSEG_ZZZ(sve2p1_tbxq_b, helper_sve2_tbx_b) -DO_PERSEG_ZZZ(sve2p1_tbxq_h, helper_sve2_tbx_h) -DO_PERSEG_ZZZ(sve2p1_tbxq_s, helper_sve2_tbx_s) -DO_PERSEG_ZZZ(sve2p1_tbxq_d, helper_sve2_tbx_d) +DO_PERSEG_ZZZ(sve2p1_tbxq_b, HELPER(sve2_tbx_b)) +DO_PERSEG_ZZZ(sve2p1_tbxq_h, HELPER(sve2_tbx_h)) +DO_PERSEG_ZZZ(sve2p1_tbxq_s, HELPER(sve2_tbx_s)) +DO_PERSEG_ZZZ(sve2p1_tbxq_d, HELPER(sve2_tbx_d)) =20 #undef DO_PERSEG_ZZZ =20 @@ -4575,18 +4575,19 @@ uint32_t HELPER(sve_whilecg)(void *vd, uint32_t cou= nt, uint32_t pred_desc) * little to gain with a more complex non-recursive form. */ #define DO_REDUCE(NAME, SUF, TYPE, H, FUNC, IDENT) \ -static TYPE FUNC##_reduce(TYPE *data, float_status *status, uintptr_t n) \ +static TYPE NAME##_##SUF##_reduce(TYPE *data, float_status *status, \ + uintptr_t n) \ { \ if (n =3D=3D 1) { \ return *data; \ } else { \ uintptr_t half =3D n / 2; \ - TYPE lo =3D FUNC##_reduce(data, status, half); \ - TYPE hi =3D FUNC##_reduce(data + half, status, half); \ + TYPE lo =3D NAME##_##SUF##_reduce(data, status, half); \ + TYPE hi =3D NAME##_##SUF##_reduce(data + half, status, half); \ return FUNC(lo, hi, status); \ } \ } \ -uint64_t helper_sve_##NAME##v_##SUF(void *vn, void *vg, \ +uint64_t HELPER(sve_##NAME##v_##SUF)(void *vn, void *vg, \ float_status *status, uint32_t desc) \ { \ uintptr_t i, oprsz =3D simd_oprsz(desc), maxsz =3D simd_data(desc); \ @@ -4603,9 +4604,9 @@ uint64_t helper_sve_##NAME##v_##SUF(void *vn, void *v= g, \ for (; i < maxsz; i +=3D sizeof(TYPE)) { \ *(TYPE *)((void *)data + i) =3D ident; \ } \ - return FUNC##_reduce(data, status, maxsz / sizeof(TYPE)); \ + return NAME##_##SUF##_reduce(data, status, maxsz / sizeof(TYPE)); \ } \ -void helper_sve2p1_##NAME##qv_##SUF(void *vd, void *vn, void *vg, \ +void HELPER(sve2p1_##NAME##qv_##SUF)(void *vd, void *vn, void *vg, \ float_status *status, uint32_t desc) \ { \ unsigned oprsz =3D simd_oprsz(desc), segments =3D oprsz / 16; \ @@ -4617,7 +4618,7 @@ void helper_sve2p1_##NAME##qv_##SUF(void *vd, void *v= n, void *vg, \ TYPE nn =3D *(TYPE *)(vn + (s * 16 + H(e))); \ data[s] =3D (pg >> e) & 1 ? nn : ident; \ } \ - *(TYPE *)(vd + H(e)) =3D FUNC##_reduce(data, status, segments); \ + *(TYPE *)(vd + H(e)) =3D NAME##_##SUF##_reduce(data, status, segme= nts); \ } \ clear_tail(vd, 16, simd_maxsz(desc)); \ } @@ -4646,15 +4647,15 @@ DO_REDUCE(fmax,h, float16, H1_2, float16_max, float= 16_chs(float16_infinity)) DO_REDUCE(fmax,s, float32, H1_4, float32_max, float32_chs(float32_infinity= )) DO_REDUCE(fmax,d, float64, H1_8, float64_max, float64_chs(float64_infinity= )) =20 -DO_REDUCE(ah_fmin,h, float16, H1_2, helper_vfp_ah_minh, float16_infinity) -DO_REDUCE(ah_fmin,s, float32, H1_4, helper_vfp_ah_mins, float32_infinity) -DO_REDUCE(ah_fmin,d, float64, H1_8, helper_vfp_ah_mind, float64_infinity) +DO_REDUCE(ah_fmin, h, float16, H1_2, HELPER(vfp_ah_minh), float16_infinity) +DO_REDUCE(ah_fmin, s, float32, H1_4, HELPER(vfp_ah_mins), float32_infinity) +DO_REDUCE(ah_fmin, d, float64, H1_8, HELPER(vfp_ah_mind), float64_infinity) =20 -DO_REDUCE(ah_fmax,h, float16, H1_2, helper_vfp_ah_maxh, +DO_REDUCE(ah_fmax, h, float16, H1_2, HELPER(vfp_ah_maxh), float16_chs(float16_infinity)) -DO_REDUCE(ah_fmax,s, float32, H1_4, helper_vfp_ah_maxs, +DO_REDUCE(ah_fmax, s, float32, H1_4, HELPER(vfp_ah_maxs), float32_chs(float32_infinity)) -DO_REDUCE(ah_fmax,d, float64, H1_8, helper_vfp_ah_maxd, +DO_REDUCE(ah_fmax, d, float64, H1_8, HELPER(vfp_ah_maxd), float64_chs(float64_infinity)) =20 #undef DO_REDUCE @@ -4766,15 +4767,15 @@ DO_ZPZZ_FP(sve_fmax_h, uint16_t, H1_2, float16_max) DO_ZPZZ_FP(sve_fmax_s, uint32_t, H1_4, float32_max) DO_ZPZZ_FP(sve_fmax_d, uint64_t, H1_8, float64_max) =20 -DO_ZPZZ_FP(sve_ah_fmin_b16, uint16_t, H1_2, helper_sme2_ah_fmin_b16) -DO_ZPZZ_FP(sve_ah_fmin_h, uint16_t, H1_2, helper_vfp_ah_minh) -DO_ZPZZ_FP(sve_ah_fmin_s, uint32_t, H1_4, helper_vfp_ah_mins) -DO_ZPZZ_FP(sve_ah_fmin_d, uint64_t, H1_8, helper_vfp_ah_mind) +DO_ZPZZ_FP(sve_ah_fmin_b16, uint16_t, H1_2, HELPER(sme2_ah_fmin_b16)) +DO_ZPZZ_FP(sve_ah_fmin_h, uint16_t, H1_2, HELPER(vfp_ah_minh)) +DO_ZPZZ_FP(sve_ah_fmin_s, uint32_t, H1_4, HELPER(vfp_ah_mins)) +DO_ZPZZ_FP(sve_ah_fmin_d, uint64_t, H1_8, HELPER(vfp_ah_mind)) =20 -DO_ZPZZ_FP(sve_ah_fmax_b16, uint16_t, H1_2, helper_sme2_ah_fmax_b16) -DO_ZPZZ_FP(sve_ah_fmax_h, uint16_t, H1_2, helper_vfp_ah_maxh) -DO_ZPZZ_FP(sve_ah_fmax_s, uint32_t, H1_4, helper_vfp_ah_maxs) -DO_ZPZZ_FP(sve_ah_fmax_d, uint64_t, H1_8, helper_vfp_ah_maxd) +DO_ZPZZ_FP(sve_ah_fmax_b16, uint16_t, H1_2, HELPER(sme2_ah_fmax_b16)) +DO_ZPZZ_FP(sve_ah_fmax_h, uint16_t, H1_2, HELPER(vfp_ah_maxh)) +DO_ZPZZ_FP(sve_ah_fmax_s, uint32_t, H1_4, HELPER(vfp_ah_maxs)) +DO_ZPZZ_FP(sve_ah_fmax_d, uint64_t, H1_8, HELPER(vfp_ah_maxd)) =20 DO_ZPZZ_FP(sve_fminnum_b16, uint16_t, H1_2, bfloat16_minnum) DO_ZPZZ_FP(sve_fminnum_h, uint16_t, H1_2, float16_minnum) @@ -4832,9 +4833,9 @@ DO_ZPZZ_FP(sve_fscalbn_h, int16_t, H1_2, float16_scal= bn) DO_ZPZZ_FP(sve_fscalbn_s, int32_t, H1_4, float32_scalbn) DO_ZPZZ_FP(sve_fscalbn_d, int64_t, H1_8, scalbn_d) =20 -DO_ZPZZ_FP(sve_fmulx_h, uint16_t, H1_2, helper_advsimd_mulxh) -DO_ZPZZ_FP(sve_fmulx_s, uint32_t, H1_4, helper_vfp_mulxs) -DO_ZPZZ_FP(sve_fmulx_d, uint64_t, H1_8, helper_vfp_mulxd) +DO_ZPZZ_FP(sve_fmulx_h, uint16_t, H1_2, HELPER(advsimd_mulxh)) +DO_ZPZZ_FP(sve_fmulx_s, uint32_t, H1_4, HELPER(vfp_mulxs)) +DO_ZPZZ_FP(sve_fmulx_d, uint64_t, H1_8, HELPER(vfp_mulxd)) =20 DO_ZPZZ_FP(sve2_famax_h, uint16_t, H1_2, float16_famax) DO_ZPZZ_FP(sve2_famax_s, uint32_t, H1_4, float32_famax) @@ -4915,13 +4916,13 @@ DO_ZPZS_FP(sve_fmins_h, float16, H1_2, float16_min) DO_ZPZS_FP(sve_fmins_s, float32, H1_4, float32_min) DO_ZPZS_FP(sve_fmins_d, float64, H1_8, float64_min) =20 -DO_ZPZS_FP(sve_ah_fmaxs_h, float16, H1_2, helper_vfp_ah_maxh) -DO_ZPZS_FP(sve_ah_fmaxs_s, float32, H1_4, helper_vfp_ah_maxs) -DO_ZPZS_FP(sve_ah_fmaxs_d, float64, H1_8, helper_vfp_ah_maxd) +DO_ZPZS_FP(sve_ah_fmaxs_h, float16, H1_2, HELPER(vfp_ah_maxh)) +DO_ZPZS_FP(sve_ah_fmaxs_s, float32, H1_4, HELPER(vfp_ah_maxs)) +DO_ZPZS_FP(sve_ah_fmaxs_d, float64, H1_8, HELPER(vfp_ah_maxd)) =20 -DO_ZPZS_FP(sve_ah_fmins_h, float16, H1_2, helper_vfp_ah_minh) -DO_ZPZS_FP(sve_ah_fmins_s, float32, H1_4, helper_vfp_ah_mins) -DO_ZPZS_FP(sve_ah_fmins_d, float64, H1_8, helper_vfp_ah_mind) +DO_ZPZS_FP(sve_ah_fmins_h, float16, H1_2, HELPER(vfp_ah_minh)) +DO_ZPZS_FP(sve_ah_fmins_s, float32, H1_4, HELPER(vfp_ah_mins)) +DO_ZPZS_FP(sve_ah_fmins_d, float64, H1_8, HELPER(vfp_ah_mind)) =20 /* * Fully general two-operand expander, controlled by a predicate, @@ -5077,37 +5078,37 @@ DO_ZPZ_FP(sve_fcvt_ds, uint64_t, H1_8, float64_to_f= loat32) DO_ZPZ_FP(sve_fcvt_sd, uint64_t, H1_8, float32_to_float64) =20 DO_ZPZ_FP(sve_fcvtzs_hh, uint16_t, H1_2, vfp_float16_to_int16_rtz) -DO_ZPZ_FP(sve_fcvtzs_hs, uint32_t, H1_4, helper_vfp_tosizh) -DO_ZPZ_FP(sve_fcvtzs_ss, uint32_t, H1_4, helper_vfp_tosizs) +DO_ZPZ_FP(sve_fcvtzs_hs, uint32_t, H1_4, HELPER(vfp_tosizh)) +DO_ZPZ_FP(sve_fcvtzs_ss, uint32_t, H1_4, HELPER(vfp_tosizs)) DO_ZPZ_FP(sve_fcvtzs_hd, uint64_t, H1_8, vfp_float16_to_int64_rtz) DO_ZPZ_FP(sve_fcvtzs_sd, uint64_t, H1_8, vfp_float32_to_int64_rtz) -DO_ZPZ_FP(sve_fcvtzs_ds, uint64_t, H1_8, helper_vfp_tosizd) +DO_ZPZ_FP(sve_fcvtzs_ds, uint64_t, H1_8, HELPER(vfp_tosizd)) DO_ZPZ_FP(sve_fcvtzs_dd, uint64_t, H1_8, vfp_float64_to_int64_rtz) =20 DO_ZPZ_FP(sve_fcvtzu_hh, uint16_t, H1_2, vfp_float16_to_uint16_rtz) -DO_ZPZ_FP(sve_fcvtzu_hs, uint32_t, H1_4, helper_vfp_touizh) -DO_ZPZ_FP(sve_fcvtzu_ss, uint32_t, H1_4, helper_vfp_touizs) +DO_ZPZ_FP(sve_fcvtzu_hs, uint32_t, H1_4, HELPER(vfp_touizh)) +DO_ZPZ_FP(sve_fcvtzu_ss, uint32_t, H1_4, HELPER(vfp_touizs)) DO_ZPZ_FP(sve_fcvtzu_hd, uint64_t, H1_8, vfp_float16_to_uint64_rtz) DO_ZPZ_FP(sve_fcvtzu_sd, uint64_t, H1_8, vfp_float32_to_uint64_rtz) -DO_ZPZ_FP(sve_fcvtzu_ds, uint64_t, H1_8, helper_vfp_touizd) +DO_ZPZ_FP(sve_fcvtzu_ds, uint64_t, H1_8, HELPER(vfp_touizd)) DO_ZPZ_FP(sve_fcvtzu_dd, uint64_t, H1_8, vfp_float64_to_uint64_rtz) =20 -DO_ZPZ_FP(sve_frint_h, uint16_t, H1_2, helper_advsimd_rinth) -DO_ZPZ_FP(sve_frint_s, uint32_t, H1_4, helper_rints) -DO_ZPZ_FP(sve_frint_d, uint64_t, H1_8, helper_rintd) +DO_ZPZ_FP(sve_frint_h, uint16_t, H1_2, HELPER(advsimd_rinth)) +DO_ZPZ_FP(sve_frint_s, uint32_t, H1_4, HELPER(rints)) +DO_ZPZ_FP(sve_frint_d, uint64_t, H1_8, HELPER(rintd)) =20 DO_ZPZ_FP(sve_frintx_h, uint16_t, H1_2, float16_round_to_int) DO_ZPZ_FP(sve_frintx_s, uint32_t, H1_4, float32_round_to_int) DO_ZPZ_FP(sve_frintx_d, uint64_t, H1_8, float64_round_to_int) =20 -DO_ZPZ_FP(sve2p2_frint32_s, uint32_t, H1_4, helper_frint32_s) -DO_ZPZ_FP(sve2p2_frint64_s, uint32_t, H1_4, helper_frint64_s) -DO_ZPZ_FP(sve2p2_frint32_d, uint64_t, H1_8, helper_frint32_d) -DO_ZPZ_FP(sve2p2_frint64_d, uint64_t, H1_8, helper_frint64_d) +DO_ZPZ_FP(sve2p2_frint32_s, uint32_t, H1_4, HELPER(frint32_s)) +DO_ZPZ_FP(sve2p2_frint64_s, uint32_t, H1_4, HELPER(frint64_s)) +DO_ZPZ_FP(sve2p2_frint32_d, uint64_t, H1_8, HELPER(frint32_d)) +DO_ZPZ_FP(sve2p2_frint64_d, uint64_t, H1_8, HELPER(frint64_d)) =20 -DO_ZPZ_FP(sve_frecpx_h, uint16_t, H1_2, helper_frecpx_f16) -DO_ZPZ_FP(sve_frecpx_s, uint32_t, H1_4, helper_frecpx_f32) -DO_ZPZ_FP(sve_frecpx_d, uint64_t, H1_8, helper_frecpx_f64) +DO_ZPZ_FP(sve_frecpx_h, uint16_t, H1_2, HELPER(frecpx_f16)) +DO_ZPZ_FP(sve_frecpx_s, uint32_t, H1_4, HELPER(frecpx_f32)) +DO_ZPZ_FP(sve_frecpx_d, uint64_t, H1_8, HELPER(frecpx_f64)) =20 DO_ZPZ_FP(sve_fsqrt_h, uint16_t, H1_2, float16_sqrt) DO_ZPZ_FP(sve_fsqrt_s, uint32_t, H1_4, float32_sqrt) diff --git a/target/arm/tcg/tlb_helper.c b/target/arm/tcg/tlb_helper.c index 4c3f16dc2aa..4a1611f23f5 100644 --- a/target/arm/tcg/tlb_helper.c +++ b/target/arm/tcg/tlb_helper.c @@ -289,7 +289,7 @@ void arm_cpu_do_unaligned_access(CPUState *cs, vaddr va= ddr, arm_deliver_fault(cpu, vaddr, access_type, mmu_idx, &fi); } =20 -void helper_exception_pc_alignment(CPUARMState *env, vaddr pc) +void HELPER(exception_pc_alignment)(CPUARMState *env, vaddr pc) { ARMMMUFaultInfo fi =3D { .type =3D ARMFault_Alignment }; int target_el =3D exception_target_el(env); diff --git a/target/arm/tcg/vec_helper.c b/target/arm/tcg/vec_helper.c index 3c06e93e02d..8dd840e8291 100644 --- a/target/arm/tcg/vec_helper.c +++ b/target/arm/tcg/vec_helper.c @@ -1286,23 +1286,23 @@ void HELPER(NAME)(void *vd, void *vn, float_status = *stat, uint32_t desc) \ clear_tail(d, oprsz, simd_maxsz(desc)); \ } =20 -DO_2OP(gvec_frecpe_h, helper_recpe_f16, float16) -DO_2OP(gvec_frecpe_s, helper_recpe_f32, float32) -DO_2OP(gvec_frecpe_rpres_s, helper_recpe_rpres_f32, float32) -DO_2OP(gvec_frecpe_d, helper_recpe_f64, float64) +DO_2OP(gvec_frecpe_h, HELPER(recpe_f16), float16) +DO_2OP(gvec_frecpe_s, HELPER(recpe_f32), float32) +DO_2OP(gvec_frecpe_rpres_s, HELPER(recpe_rpres_f32), float32) +DO_2OP(gvec_frecpe_d, HELPER(recpe_f64), float64) =20 -DO_2OP(gvec_frsqrte_h, helper_rsqrte_f16, float16) -DO_2OP(gvec_frsqrte_s, helper_rsqrte_f32, float32) -DO_2OP(gvec_frsqrte_rpres_s, helper_rsqrte_rpres_f32, float32) -DO_2OP(gvec_frsqrte_d, helper_rsqrte_f64, float64) +DO_2OP(gvec_frsqrte_h, HELPER(rsqrte_f16), float16) +DO_2OP(gvec_frsqrte_s, HELPER(rsqrte_f32), float32) +DO_2OP(gvec_frsqrte_rpres_s, HELPER(rsqrte_rpres_f32), float32) +DO_2OP(gvec_frsqrte_d, HELPER(rsqrte_f64), float64) =20 DO_2OP(gvec_vrintx_h, float16_round_to_int, float16) DO_2OP(gvec_vrintx_s, float32_round_to_int, float32) =20 -DO_2OP(gvec_sitos, helper_vfp_sitos, int32_t) -DO_2OP(gvec_uitos, helper_vfp_uitos, uint32_t) -DO_2OP(gvec_tosizs, helper_vfp_tosizs, float32) -DO_2OP(gvec_touizs, helper_vfp_touizs, float32) +DO_2OP(gvec_sitos, HELPER(vfp_sitos), int32_t) +DO_2OP(gvec_uitos, HELPER(vfp_uitos), uint32_t) +DO_2OP(gvec_tosizs, HELPER(vfp_tosizs), float32) +DO_2OP(gvec_touizs, HELPER(vfp_touizs), float32) DO_2OP(gvec_sstoh, int16_to_float16, int16_t) DO_2OP(gvec_ustoh, uint16_to_float16, uint16_t) DO_2OP(gvec_tosszh, vfp_tosszh, float16) @@ -2596,19 +2596,19 @@ DO_3OP_PAIR_NO_STATUS(gvec_uminp_s, MIN, uint32_t, = H4) clear_tail(d, oprsz, simd_maxsz(desc)); \ } =20 -DO_VCVT_FIXED(gvec_vcvt_sd, helper_vfp_sqtod, uint64_t) -DO_VCVT_FIXED(gvec_vcvt_ud, helper_vfp_uqtod, uint64_t) -DO_VCVT_FIXED(gvec_vcvt_sf, helper_vfp_sltos, uint32_t) -DO_VCVT_FIXED(gvec_vcvt_uf, helper_vfp_ultos, uint32_t) -DO_VCVT_FIXED(gvec_vcvt_sh, helper_vfp_shtoh, uint16_t) -DO_VCVT_FIXED(gvec_vcvt_uh, helper_vfp_uhtoh, uint16_t) +DO_VCVT_FIXED(gvec_vcvt_sd, HELPER(vfp_sqtod), uint64_t) +DO_VCVT_FIXED(gvec_vcvt_ud, HELPER(vfp_uqtod), uint64_t) +DO_VCVT_FIXED(gvec_vcvt_sf, HELPER(vfp_sltos), uint32_t) +DO_VCVT_FIXED(gvec_vcvt_uf, HELPER(vfp_ultos), uint32_t) +DO_VCVT_FIXED(gvec_vcvt_sh, HELPER(vfp_shtoh), uint16_t) +DO_VCVT_FIXED(gvec_vcvt_uh, HELPER(vfp_uhtoh), uint16_t) =20 -DO_VCVT_FIXED(gvec_vcvt_rz_ds, helper_vfp_tosqd_round_to_zero, uint64_t) -DO_VCVT_FIXED(gvec_vcvt_rz_du, helper_vfp_touqd_round_to_zero, uint64_t) -DO_VCVT_FIXED(gvec_vcvt_rz_fs, helper_vfp_tosls_round_to_zero, uint32_t) -DO_VCVT_FIXED(gvec_vcvt_rz_fu, helper_vfp_touls_round_to_zero, uint32_t) -DO_VCVT_FIXED(gvec_vcvt_rz_hs, helper_vfp_toshh_round_to_zero, uint16_t) -DO_VCVT_FIXED(gvec_vcvt_rz_hu, helper_vfp_touhh_round_to_zero, uint16_t) +DO_VCVT_FIXED(gvec_vcvt_rz_ds, HELPER(vfp_tosqd_round_to_zero), uint64_t) +DO_VCVT_FIXED(gvec_vcvt_rz_du, HELPER(vfp_touqd_round_to_zero), uint64_t) +DO_VCVT_FIXED(gvec_vcvt_rz_fs, HELPER(vfp_tosls_round_to_zero), uint32_t) +DO_VCVT_FIXED(gvec_vcvt_rz_fu, HELPER(vfp_touls_round_to_zero), uint32_t) +DO_VCVT_FIXED(gvec_vcvt_rz_hs, HELPER(vfp_toshh_round_to_zero), uint16_t) +DO_VCVT_FIXED(gvec_vcvt_rz_hu, HELPER(vfp_touhh_round_to_zero), uint16_t) =20 #undef DO_VCVT_FIXED =20 @@ -2627,12 +2627,12 @@ DO_VCVT_FIXED(gvec_vcvt_rz_hu, helper_vfp_touhh_rou= nd_to_zero, uint16_t) clear_tail(d, oprsz, simd_maxsz(desc)); \ } =20 -DO_VCVT_RMODE(gvec_vcvt_rm_sd, helper_vfp_tosqd, uint64_t) -DO_VCVT_RMODE(gvec_vcvt_rm_ud, helper_vfp_touqd, uint64_t) -DO_VCVT_RMODE(gvec_vcvt_rm_ss, helper_vfp_tosls, uint32_t) -DO_VCVT_RMODE(gvec_vcvt_rm_us, helper_vfp_touls, uint32_t) -DO_VCVT_RMODE(gvec_vcvt_rm_sh, helper_vfp_toshh, uint16_t) -DO_VCVT_RMODE(gvec_vcvt_rm_uh, helper_vfp_touhh, uint16_t) +DO_VCVT_RMODE(gvec_vcvt_rm_sd, HELPER(vfp_tosqd), uint64_t) +DO_VCVT_RMODE(gvec_vcvt_rm_ud, HELPER(vfp_touqd), uint64_t) +DO_VCVT_RMODE(gvec_vcvt_rm_ss, HELPER(vfp_tosls), uint32_t) +DO_VCVT_RMODE(gvec_vcvt_rm_us, HELPER(vfp_touls), uint32_t) +DO_VCVT_RMODE(gvec_vcvt_rm_sh, HELPER(vfp_toshh), uint16_t) +DO_VCVT_RMODE(gvec_vcvt_rm_uh, HELPER(vfp_touhh), uint16_t) =20 #undef DO_VCVT_RMODE =20 @@ -2651,8 +2651,8 @@ DO_VCVT_RMODE(gvec_vcvt_rm_uh, helper_vfp_touhh, uint= 16_t) clear_tail(d, oprsz, simd_maxsz(desc)); \ } =20 -DO_VRINT_RMODE(gvec_vrint_rm_h, helper_rinth, uint16_t) -DO_VRINT_RMODE(gvec_vrint_rm_s, helper_rints, uint32_t) +DO_VRINT_RMODE(gvec_vrint_rm_h, HELPER(rinth), uint16_t) +DO_VRINT_RMODE(gvec_vrint_rm_s, HELPER(rints), uint32_t) =20 #undef DO_VRINT_RMODE =20 @@ -3242,7 +3242,7 @@ void HELPER(gvec_urecpe_s)(void *vd, void *vn, uint32= _t desc) uint32_t *d =3D vd, *n =3D vn; =20 for (i =3D 0; i < opr_sz / 4; ++i) { - d[i] =3D helper_recpe_u32(n[i]); + d[i] =3D HELPER(recpe_u32)(n[i]); } clear_tail(d, opr_sz, simd_maxsz(desc)); } @@ -3253,7 +3253,7 @@ void HELPER(gvec_ursqrte_s)(void *vd, void *vn, uint3= 2_t desc) uint32_t *d =3D vd, *n =3D vn; =20 for (i =3D 0; i < opr_sz / 4; ++i) { - d[i] =3D helper_rsqrte_u32(n[i]); + d[i] =3D HELPER(rsqrte_u32)(n[i]); } clear_tail(d, opr_sz, simd_maxsz(desc)); } @@ -3307,7 +3307,7 @@ static inline void do_lut_s(void *zd, uint64_t *index= es, uint32_t *table, } =20 #define DO_SME2_LUT(ISIZE, NREG, SUFF, ESIZE) \ -void helper_sme2_luti##ISIZE##_##NREG##SUFF \ +void HELPER(sme2_luti##ISIZE##_##NREG##SUFF) \ (void *zd, void *zn, CPUARMState *env, uint32_t desc) \ { \ unsigned vl =3D simd_oprsz(desc); \ @@ -3345,7 +3345,7 @@ DO_SME2_LUT(4,4,s, 4) =20 #undef DO_SME2_LUT =20 -void helper_sme2_luti4_4b(void *zd, void *zn, CPUARMState *env, uint32_t d= esc) +void HELPER(sme2_luti4_4b)(void *zd, void *zn, CPUARMState *env, uint32_t = desc) { unsigned vl =3D simd_oprsz(desc); unsigned strided =3D extract32(desc, SIMD_DATA_SHIFT, 1); diff --git a/target/arm/tcg/vec_helper64.c b/target/arm/tcg/vec_helper64.c index 4f43869d9e9..53723fa40b9 100644 --- a/target/arm/tcg/vec_helper64.c +++ b/target/arm/tcg/vec_helper64.c @@ -23,46 +23,46 @@ DO_3OP(gvec_fdiv_h, float16_div, float16) DO_3OP(gvec_fdiv_s, float32_div, float32) DO_3OP(gvec_fdiv_d, float64_div, float64) =20 -DO_3OP(gvec_fmulx_h, helper_advsimd_mulxh, float16) -DO_3OP(gvec_fmulx_s, helper_vfp_mulxs, float32) -DO_3OP(gvec_fmulx_d, helper_vfp_mulxd, float64) +DO_3OP(gvec_fmulx_h, HELPER(advsimd_mulxh), float16) +DO_3OP(gvec_fmulx_s, HELPER(vfp_mulxs), float32) +DO_3OP(gvec_fmulx_d, HELPER(vfp_mulxd), float64) =20 -DO_3OP(gvec_recps_h, helper_recpsf_f16, float16) -DO_3OP(gvec_recps_s, helper_recpsf_f32, float32) -DO_3OP(gvec_recps_d, helper_recpsf_f64, float64) +DO_3OP(gvec_recps_h, HELPER(recpsf_f16), float16) +DO_3OP(gvec_recps_s, HELPER(recpsf_f32), float32) +DO_3OP(gvec_recps_d, HELPER(recpsf_f64), float64) =20 -DO_3OP(gvec_rsqrts_h, helper_rsqrtsf_f16, float16) -DO_3OP(gvec_rsqrts_s, helper_rsqrtsf_f32, float32) -DO_3OP(gvec_rsqrts_d, helper_rsqrtsf_f64, float64) +DO_3OP(gvec_rsqrts_h, HELPER(rsqrtsf_f16), float16) +DO_3OP(gvec_rsqrts_s, HELPER(rsqrtsf_f32), float32) +DO_3OP(gvec_rsqrts_d, HELPER(rsqrtsf_f64), float64) =20 -DO_3OP(gvec_ah_recps_h, helper_recpsf_ah_f16, float16) -DO_3OP(gvec_ah_recps_s, helper_recpsf_ah_f32, float32) -DO_3OP(gvec_ah_recps_d, helper_recpsf_ah_f64, float64) +DO_3OP(gvec_ah_recps_h, HELPER(recpsf_ah_f16), float16) +DO_3OP(gvec_ah_recps_s, HELPER(recpsf_ah_f32), float32) +DO_3OP(gvec_ah_recps_d, HELPER(recpsf_ah_f64), float64) =20 -DO_3OP(gvec_ah_rsqrts_h, helper_rsqrtsf_ah_f16, float16) -DO_3OP(gvec_ah_rsqrts_s, helper_rsqrtsf_ah_f32, float32) -DO_3OP(gvec_ah_rsqrts_d, helper_rsqrtsf_ah_f64, float64) +DO_3OP(gvec_ah_rsqrts_h, HELPER(rsqrtsf_ah_f16), float16) +DO_3OP(gvec_ah_rsqrts_s, HELPER(rsqrtsf_ah_f32), float32) +DO_3OP(gvec_ah_rsqrts_d, HELPER(rsqrtsf_ah_f64), float64) =20 -DO_3OP(gvec_ah_fmax_h, helper_vfp_ah_maxh, float16) -DO_3OP(gvec_ah_fmax_s, helper_vfp_ah_maxs, float32) -DO_3OP(gvec_ah_fmax_d, helper_vfp_ah_maxd, float64) +DO_3OP(gvec_ah_fmax_h, HELPER(vfp_ah_maxh), float16) +DO_3OP(gvec_ah_fmax_s, HELPER(vfp_ah_maxs), float32) +DO_3OP(gvec_ah_fmax_d, HELPER(vfp_ah_maxd), float64) =20 -DO_3OP(gvec_ah_fmin_h, helper_vfp_ah_minh, float16) -DO_3OP(gvec_ah_fmin_s, helper_vfp_ah_mins, float32) -DO_3OP(gvec_ah_fmin_d, helper_vfp_ah_mind, float64) +DO_3OP(gvec_ah_fmin_h, HELPER(vfp_ah_minh), float16) +DO_3OP(gvec_ah_fmin_s, HELPER(vfp_ah_mins), float32) +DO_3OP(gvec_ah_fmin_d, HELPER(vfp_ah_mind), float64) =20 DO_3OP(gvec_fmax_b16, bfloat16_max, bfloat16) DO_3OP(gvec_fmin_b16, bfloat16_min, bfloat16) DO_3OP(gvec_fmaxnum_b16, bfloat16_maxnum, bfloat16) DO_3OP(gvec_fminnum_b16, bfloat16_minnum, bfloat16) -DO_3OP(gvec_ah_fmax_b16, helper_sme2_ah_fmax_b16, bfloat16) -DO_3OP(gvec_ah_fmin_b16, helper_sme2_ah_fmin_b16, bfloat16) +DO_3OP(gvec_ah_fmax_b16, HELPER(sme2_ah_fmax_b16), bfloat16) +DO_3OP(gvec_ah_fmin_b16, HELPER(sme2_ah_fmin_b16), bfloat16) =20 #define nop(N, M, S) (M) =20 -DO_FMUL_IDX(gvec_fmulx_idx_h, nop, helper_advsimd_mulxh, float16, H2) -DO_FMUL_IDX(gvec_fmulx_idx_s, nop, helper_vfp_mulxs, float32, H4) -DO_FMUL_IDX(gvec_fmulx_idx_d, nop, helper_vfp_mulxd, float64, H8) +DO_FMUL_IDX(gvec_fmulx_idx_h, nop, HELPER(advsimd_mulxh), float16, H2) +DO_FMUL_IDX(gvec_fmulx_idx_s, nop, HELPER(vfp_mulxs), float32, H4) +DO_FMUL_IDX(gvec_fmulx_idx_d, nop, HELPER(vfp_mulxd), float64, H8) =20 #undef nop =20 @@ -123,13 +123,13 @@ void HELPER(sve_pmlal_q)(void *vd, void *vn, void *vm= , uint32_t desc) } } =20 -DO_3OP_PAIR(gvec_ah_fmaxp_h, helper_vfp_ah_maxh, float16, H2) -DO_3OP_PAIR(gvec_ah_fmaxp_s, helper_vfp_ah_maxs, float32, H4) -DO_3OP_PAIR(gvec_ah_fmaxp_d, helper_vfp_ah_maxd, float64, /**/) +DO_3OP_PAIR(gvec_ah_fmaxp_h, HELPER(vfp_ah_maxh), float16, H2) +DO_3OP_PAIR(gvec_ah_fmaxp_s, HELPER(vfp_ah_maxs), float32, H4) +DO_3OP_PAIR(gvec_ah_fmaxp_d, HELPER(vfp_ah_maxd), float64, /**/) =20 -DO_3OP_PAIR(gvec_ah_fminp_h, helper_vfp_ah_minh, float16, H2) -DO_3OP_PAIR(gvec_ah_fminp_s, helper_vfp_ah_mins, float32, H4) -DO_3OP_PAIR(gvec_ah_fminp_d, helper_vfp_ah_mind, float64, /**/) +DO_3OP_PAIR(gvec_ah_fminp_h, HELPER(vfp_ah_minh), float16, H2) +DO_3OP_PAIR(gvec_ah_fminp_s, HELPER(vfp_ah_mins), float32, H4) +DO_3OP_PAIR(gvec_ah_fminp_d, HELPER(vfp_ah_mind), float64, /**/) =20 void HELPER(simd_tblx)(void *vd, void *vm, CPUARMState *env, uint32_t desc) { diff --git a/target/arm/tcg/vec_internal.h b/target/arm/tcg/vec_internal.h index 8f6d8a984b3..6d9d7c35efa 100644 --- a/target/arm/tcg/vec_internal.h +++ b/target/arm/tcg/vec_internal.h @@ -22,6 +22,7 @@ =20 #include "fpu/softfloat.h" #include "vector-type.h" +#include "exec/helper-head.h.inc" =20 typedef struct CPUArchState CPUARMState; =20 @@ -364,8 +365,8 @@ static inline float64 float64_maybe_ah_chs(float64 a, b= ool fpcr_ah) } =20 /* Not actually called directly as a helper, but uses similar machinery. */ -bfloat16 helper_sme2_ah_fmax_b16(bfloat16 a, bfloat16 b, float_status *fps= t); -bfloat16 helper_sme2_ah_fmin_b16(bfloat16 a, bfloat16 b, float_status *fps= t); +bfloat16 HELPER(sme2_ah_fmax_b16)(bfloat16 a, bfloat16 b, float_status *fp= st); +bfloat16 HELPER(sme2_ah_fmin_b16)(bfloat16 a, bfloat16 b, float_status *fp= st); =20 float32 sve_f16_to_f32(float16 f, float_status *fpst); float16 sve_f32_to_f16(float32 f, float_status *fpst); --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792444996; cv=none; d=zohomail.com; s=zohoarc; b=WptSS1hNHQq7CBeXAbCRtL2CftH+TU+COMfrWk5xrVlDjUV63OUUtkcYkunB274coOlbX2Fus765GZWIETb/XXUVixSJl0O4zOihpmWZS5ikylvpnrOTXIObb2E21SKMK9qsv/Cu4my+4us2U6rFfwdSWQzbD3ETT877bHk2FMw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792444996; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=F9n6VDdqaV1jQvRabIb+g3lpRWCe13ptMle2nBD2R8g=; b=dHEYSMxaqiBH1YiaOp9PCq+W34gdkPx/Xbw4YwHWaNFiSeIcr71ujR4vuMQ0ImWrofKwtdf29fkJ0U8tpKBnJW2DH6JjR+JOBrIouWu5DIFvk0YptTQz7cTA0ImsMQhQ3pIbQAk4Wsz1+SV2+I8QKMiy1k6e6mk6tI4CFQIjOdw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792444996548948.4018873791867; Mon, 19 Oct 2026 14:23:16 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunC-0001ce-Iw; Mon, 19 Oct 2026 17:21:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun7-0001aa-DX for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:09 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun4-0005fk-IK for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:09 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJK6xY4106610 for ; Mon, 19 Oct 2026 21:21:05 GMT Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdr780ntd-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:05 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-cd65285537aso1098489a12.1 for ; Mon, 19 Oct 2026 14:21:05 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=F9n6VDdqaV1 jQvRabIb+g3lpRWCe13ptMle2nBD2R8g=; b=B0mP0tLOqKI3f/60Dmf4+kGJYbN MCVQHc2//yZu2GtW6GG6riAYyNO2rUf1cNwqE02Y58lVQBuOZNQ4x9FWLi37VliS clUS+WDjBwmhqT7KDsMlcfQ+Gc8DY6oFEsZD9Folj7+XWHCCVgfOASmN91gvAHX6 kftCBC3Fq+n+Pxro/QrXO8D564fvFgVeOKteWnV+RbxCqc3KVPwcyjJXRRkJuY3f TlygXR9nMOxf54ErTb4jkeFkBj+EgaIOXr8uUwpCFpCDJinX7O2RwLO2EuhauHq7 PQMbGeTkDNeu36Ci+eYdy4wjoNgD6PrrlQQVeIGeQD7Dr2D44yrIQI0lxfg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444864; x=1793049664; 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:content-type; bh=F9n6VDdqaV1jQvRabIb+g3lpRWCe13ptMle2nBD2R8g=; b=Esk3PqJfWc89/gKOuiKFYKmOvMV5sSpaGHaaOFaqauBW7tnnHZE6hxcCMacXn4Ox1i pqcA7CBJc9R2VOjAyne+tApFmQUNz+8khT9NGn0ROoeVg511g1kMQPpqGzm5c+9mgA1Y EWW8iQofQt8H210W7QkrSZ8Z1jMNFEOI8f1lRGQVNXz8+sTAZmfmqyPFd0ZWrfsweYPV CumUlmkqQWXjCI+qlbsUxF9Wbvl+gtRxXOvI4nXYzJkKarZo2HqBXeOlAh2LPPbXoNzd JbhYegJe755WPF0DWZFj7f1rpu6H50hpmuiBuKxiNkuQvfBw8jGXXyXg+hJFE3PwF2jr zXbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444864; x=1793049664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=F9n6VDdqaV1jQvRabIb+g3lpRWCe13ptMle2nBD2R8g=; b=b/6W/N9IKvcoHzTP8PIJcLPJ5vTpd3oIIhABj8YYJU41ci+cvt7tTs3eQP5jUNe4Av lR/3zR2sznjJwKrtayf0nQShWITaKaKe+XjkDeqFRuS5snb+rSyDMWUK34F7KQpbWN6M ajNUDv5R2P/u1oykwE0TPpo1GgbtZCtB1KBASsPvqZBh3IvNKv5urNruPbDqaPJhzrG/ JIVe5/krhvxhjMbP7wtmBhLQY4A5FHMS4uDRBDq7f/1d0HQ65oy1diR/MC8Iw3Rpnsyy m6cx4ZGzOLe8mOugAmeH7n6TZAo3g/t6F5UJydbpWvJoz2HDrSppzsKEbJIaG2/NtStr jAEA== X-Gm-Message-State: AFq9FYKKqzPCH6WEPBsXOA6oPFksg531K92sMxuDaePeDBMov6OVc1oC ULMc+NbEAG4Mw+z+5pEPM4nmnvn+o4XBp7z12SO8hAymS0sOYiN1KHNunp3IDoAiQIoULypPVGA JJcSHEObMfjegSB3ubVAapkJbcO5GI94E7oahcHZ2oXRuomD8hcYZzc7oXad/i5BPbQ== X-Gm-Gg: AYBFou2uHhYQ14mEitkaqveA1B6IfP2hRviE8yR+W/qs8eOLa2/ow0nEXcZ5DJlxT9u DdUg8a31DgkF/aZBBOuqgrEhegUV8WgtoB9/bDO1luR7X0dMBINPDhdsUOoGvcdRAFIZYuCgin0 rfIwrOHb/oxRBp/kOzzUV9v+mKacH8X4+2xbayWpgruwNBECN0DZ8evshJxNhK5akpXTwv6967i hvG0/EfbXo0N1AKn/17LJo+rcbDB9HAjPLK5tOAFXVu3JT7pTukUtznimc+lmSY9/BFyH7675pk N4mrR4IEAa2uBRUpk98Edz0RVwcIWfXiPt99IUzKFDXVYscs+uZT+xwuoHLTwQTbmUVLTauIScC shmOBuvH5bZ53J1YJ1Vw24T0tIa8IzR/QiXzksxdtrFLbPYQf7g/7bvcCPKIFnKY= X-Received: by 2002:a17:90b:582f:b0:3ab:884b:65ab with SMTP id 98e67ed59e1d1-3acef5f1d45mr7936303a91.55.1792444864263; Mon, 19 Oct 2026 14:21:04 -0700 (PDT) X-Received: by 2002:a17:90b:582f:b0:3ab:884b:65ab with SMTP id 98e67ed59e1d1-3acef5f1d45mr7936287a91.55.1792444863765; Mon, 19 Oct 2026 14:21:03 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 03/26] target/avr: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:22 +0000 Message-ID: <20261019212046.149572-4-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX+E5+Sle9TanX dcNqiZQ2WuE/4Zrw4cYxOuzvXHB11JgUducUZwpQ2xLmh3kiWnLLiC0EgslcV/Bve9UHJCMaEYu uBHYaltlnah97/8CbugEBHoJ/55Novrc2F6gW2rJD6ZlFr9oDJt32XHrVrzDVM7cWIzIBRuMLv1 tlJ73ow8+pQXc5FJ8EpgqXlH48ncxjJ26eB4OaaAa7BjP6MakOofe93cgoqi0hIdpqL51G6tqG3 eeQtsXDAOHiQ6P9gRKW73kqW3ukjvNVDIteYD2ONQiUm3xSxz8c5o1APC3oL4A3PKkSwauKrWqp igqzZ7ciSi0iIJlyaTILlyEWbqXmxpx8XXb/cjb6rPQX40HgtRuQr4j0sh+7aVckONaXNc7+4po L0tet0e1DOjLnmr1NERU36mIV1YAYaSOtvOi/SDfb7ULy9hTvfYulDRQD6jU50XxQvd0iB7yWFS dDjcX5S6oymG06eVWNw== X-Proofpoint-GUID: saWPUW3wolJevd33kwNbxNuOPLy095dq X-Authority-Analysis: v=2.4 cv=LKnz05W9 c=1 sm=1 tr=0 ts=6ad689c1 cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=Wv-XcSyDAywttTPMHZIA:9 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX+TUjGPKoxoRK COZydq4bLHm0pbaYYGuKa18y5FHK5qPUVZmJR3Pjpc2P79ncS5TAuhx43fO7h7VObwIQggVtaoi JH0vVkZjkAINpD6j2px50/2WSMLzkY0= X-Proofpoint-ORIG-GUID: saWPUW3wolJevd33kwNbxNuOPLy095dq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 adultscore=0 suspectscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792444998658158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/avr/helper.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/target/avr/helper.c b/target/avr/helper.c index f452c9d9040..bd197638f19 100644 --- a/target/avr/helper.c +++ b/target/avr/helper.c @@ -152,7 +152,7 @@ bool avr_cpu_tlb_fill(CPUState *cs, vaddr address, int = size, * helpers */ =20 -void helper_sleep(CPUAVRState *env) +void HELPER(sleep)(CPUAVRState *env) { CPUState *cs =3D env_cpu(env); =20 @@ -160,7 +160,7 @@ void helper_sleep(CPUAVRState *env) cpu_loop_exit(cs); } =20 -void helper_unsupported(CPUAVRState *env) +void HELPER(unsupported)(CPUAVRState *env) { CPUState *cs =3D env_cpu(env); =20 @@ -176,7 +176,7 @@ void helper_unsupported(CPUAVRState *env) cpu_loop_exit(cs); } =20 -void helper_debug(CPUAVRState *env) +void HELPER(debug)(CPUAVRState *env) { CPUState *cs =3D env_cpu(env); =20 @@ -184,7 +184,7 @@ void helper_debug(CPUAVRState *env) cpu_loop_exit(cs); } =20 -void helper_break(CPUAVRState *env) +void HELPER(break)(CPUAVRState *env) { CPUState *cs =3D env_cpu(env); =20 @@ -192,7 +192,7 @@ void helper_break(CPUAVRState *env) cpu_loop_exit(cs); } =20 -void helper_wdr(CPUAVRState *env) +void HELPER(wdr)(CPUAVRState *env) { qemu_log_mask(LOG_UNIMP, "WDG reset (not implemented)\n"); } @@ -274,7 +274,7 @@ const MemoryRegionOps avr_cpu_reg2 =3D { * this function implements ST instruction when there is a possibility to= write * into a CPU register */ -void helper_fullwr(CPUAVRState *env, uint32_t data, uint32_t addr) +void HELPER(fullwr)(CPUAVRState *env, uint32_t data, uint32_t addr) { env->fullacc =3D false; =20 --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792444922; cv=none; d=zohomail.com; s=zohoarc; b=cim+VLUexB63Xj+Vg5WZQT83qMi8mrFXEa13+wZqecyHIvP8fsYpCi50BqrDBRk0DIPIydCocDZHEtlICRH5yxigX4zuxxnj2XD/8uGv+oRH1KTYu7p63g4v0zY/FBGvbdEkJn6fUFoFlYezpuvdX86GY6k1yh9ayKuOTefYpSA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792444922; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=GUoXuknmqQGvLg8BaRNLo1bJpgP08k/FekAUU2k4A5A=; b=i737Y1VPlNLKuLoSokEov6p1vRbIuC/tIKGvHZp0Mambc9GBQBdGLG6UNnioBJYWg41vRyamvTvU2nmG/ZidonzLk4wos/Euih1zg611yqPRR2jWUKZJ1dtEdxy/L4Uaep3Q41lqrfrNiFVBTrXjFD42V8dIxJe6K6uBUkwpcmA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792444922376549.1588016741624; Mon, 19 Oct 2026 14:22:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIun9-0001bR-PD; Mon, 19 Oct 2026 17:21:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun7-0001af-Fw for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:09 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun4-0005fp-RQ for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:09 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJKI6u4190068 for ; Mon, 19 Oct 2026 21:21:06 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf48k91q-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:05 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3a4aa263a4aso2384635a91.1 for ; Mon, 19 Oct 2026 14:21:05 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=GUoXuknmqQG vLg8BaRNLo1bJpgP08k/FekAUU2k4A5A=; b=bfYjXRQNweR5Rilmx1DmCntP6RQ TVmGuj05nq9NiAO8C1KQr4RbFUEST5wuj4CL+X99L54AKdikYqP/UWDWnRIEhDo4 Q99Vl0U3netV44O3OU7Ogst/RCLZFNx31C88CkGb9AnrhLLtPTEBhyXJl8VeTjU/ IPfcobOL2dl9/ux8o7ufYWEFnxv73aqFk2ME0FqV4tPLHbcWxj5uXPTHd7Av7bnu IlOzS+Et3xxTo+CRzvZfmuDk8EVpjDVBgLrM4/EKqz9kBSBMLKBnezc2WqNcfQzA U39NJIbGSGq4u+DuaM4fUF1pTJKm9aRQIfUcxBBV+qrG6Ymeag2C5gBxIlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444865; x=1793049665; 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:content-type; bh=GUoXuknmqQGvLg8BaRNLo1bJpgP08k/FekAUU2k4A5A=; b=G3NK5JjNibSLAu3AR3au31wzV/r28SPRb/8onahwQ7gDJQBii+D2/WVZnjlQzh8Mfx 4qzYWDlpjDJLFLSg5w1cbGE0KbrhSx4MD2jhQiVHaWHI4n2tkRhDEs5n/zPUR4uldgwM V9KvFp+aMxHQkMkb5N19DBbp4hceb4931r3Jq5QUYppMkCF985dPirwqfIPdeTSP5Di3 obw+ylIeNma2t7VEtzd4hN7ZnTrY2ESIEchZjsVz6DCwjVCcPyGPI6ghfb/2+M5lBzFA 8gT8AlyY/kXLqxqLhkD6OQzTzi37pyuVdGfi2bR4howNz9aFtyUOTyLVAzdxNjw3Uw7P hRzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444865; x=1793049665; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=GUoXuknmqQGvLg8BaRNLo1bJpgP08k/FekAUU2k4A5A=; b=B1zhESVl/WE7IHyFu7HhJzdNGiB90ZsvtESb0KF3WYgpL+DGcgezOzrXpetL24GTGA nn8+RDU6jPtZ5ChkgLwRAfA6Xe9scAVvVbZe9iVcVAzwbwkxlPHL3F2H3K1Jr2Jxdqtl 8IgV6VFVVC7uObUrhud5mhoftF+LZwG+ZM5FDhpBLCjmGOAyf9ix3n/6Pw9j4Oj2GXbh drYxR+3bcctN1QIIQgsjBV4+FjOwRL8y3muS8xivN9C/aAy7aQqZ+DqwM5CJAXJwmnpu MgJMdgqiZueXuxrGG6WEY1qr8UuECC4rYg1JH4QWRia3e3e2dLYB0Cnnxgd6/iDXuhjU NePA== X-Gm-Message-State: AFq9FYL8+F6QYYJD/RTdY/mxuPHznzmYo/5PMxTXHECs/5cu4L/i1DUQ bOmyO/t+l8XGv5brNivIfMn2VLNOmH3Y5nx75tCECUysS4nX/qMVZcRzcNYEn1oZKpeTEabqeCW o0GY2wCMMHNp0Jvs5Oi7jzFkEGSsgvs/iQDompnT0IJYylUKOkRzVd8uZ5/aUAQJ1Tg== X-Gm-Gg: AYBFou3GiePLkp0b8WkPk/urvr/FXa5c9o9zTAJtQ2A7SXIibKQ2bUK2c+tveVCvb6u Mve/toK30S28Soid8YELqpT7G+fRjuf7W4X7QnwJvI1qdnT0aGV6dxup568/EFDkQwER9OgL6XS y7JEj9Zh2q6Rw90lAKD7vMDcRo2zP390HEMQNlLSTJO+ARrFsGxbuZxSj339ecfI8PlKdRXGYh2 M21f7r5mHQc7XhSfEfMJHvyNIme/0+vssYELpb/i/AhYW2r4HfdTJE71eq33EUtSgxc9Z+xg4mh MG04Vd+z8XDsa6moVT38EyR3bzrr6NS4DUcNUb6/JaKQ7Lf96cWW/fvuMFcwus5PFzQO/nFSsC3 AO45VWb6pgeCDzHLNh31Zl6TRMbYqKo1H+XRRbEuY3MT+XSyUePkBpc+E4boupBM= X-Received: by 2002:a17:90b:5610:b0:3ab:189b:6985 with SMTP id 98e67ed59e1d1-3acef4fb852mr6964759a91.35.1792444864932; Mon, 19 Oct 2026 14:21:04 -0700 (PDT) X-Received: by 2002:a17:90b:5610:b0:3ab:189b:6985 with SMTP id 98e67ed59e1d1-3acef4fb852mr6964746a91.35.1792444864476; Mon, 19 Oct 2026 14:21:04 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 04/26] target/hppa: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:23 +0000 Message-ID: <20261019212046.149572-5-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX2AYzik8BVSfd J5V9J0FCDxwpHvNFUY+3fK9LQkAmx/VPi8dcrHwpAM8KhDmnYHPtMZxuLKhaegu8s4s/ocrcq4U ZJLJ1bSIsjG0/6Hn8SaJSrdEtDzbvcknfoQZ8Fpz9QR0zBBkg/Ht4v+a+V/7BNkjzJVzspFNuKa QzcIW3gapkabH14RVGrY28IQvxCf2lm8as8n+k2Hwyl3MF15UlCh7M+2mj0Rh2VGi6OxqCmeiUG DocFrxK59vLgXJtHRDYzt5HDuumKeGaP9yoQd2O45w2+B1EIF+uVhSnesdGrPfMaQEz1gs4J5Bu rHQYupQnkUcrIRASnTwt0OeTMD/a5FbEUcsRyYNXHvpFzxGv+MSxDPrf5l878j2AenH85EcQ+tG m611UMpbDumEzwxmpYwJ+MakrrSX3YAVvHMDPXRTRpztSBcz8jkfo/N8oP8QUldqdQLEza4oE3s JkZmiENf5BaiofJhE8w== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfXwgbY8OjjL3Er IkttgaSsan3auw9iD+ky2vilUyBwuQehsvltp8bExvsUeaqVV6IZthP+11BwXc2SrUJFkwvCGzL FAQ+QrumwN3RzOwIRBUBaHddyY3L/co= X-Proofpoint-ORIG-GUID: G2JmFJpoPjhHyQDs8ZEjtWZP_b7UJKIw X-Authority-Analysis: v=2.4 cv=Qr/LTlyd c=1 sm=1 tr=0 ts=6ad689c1 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=ya3Pk_hNRNhBRN_1oewA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-GUID: G2JmFJpoPjhHyQDs8ZEjtWZP_b7UJKIw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792444925606158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/hppa/fpu_helper.c | 2 +- target/hppa/op_helper.c | 2 +- target/hppa/sys_helper.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/target/hppa/fpu_helper.c b/target/hppa/fpu_helper.c index cdbebcfeb3a..a0c8c91ee54 100644 --- a/target/hppa/fpu_helper.c +++ b/target/hppa/fpu_helper.c @@ -82,7 +82,7 @@ void HELPER(loaded_fr0)(CPUHPPAState *env) =20 void cpu_hppa_loaded_fr0(CPUHPPAState *env) { - helper_loaded_fr0(env); + HELPER(loaded_fr0)(env); } =20 #define CONVERT_BIT(X, SRC, DST) \ diff --git a/target/hppa/op_helper.c b/target/hppa/op_helper.c index 3542c275663..ea0680aa9eb 100644 --- a/target/hppa/op_helper.c +++ b/target/hppa/op_helper.c @@ -341,7 +341,7 @@ target_ulong HELPER(probe)(CPUHPPAState *env, target_ul= ong addr, if (excp =3D=3D EXCP_DTLB_MISS) { excp =3D EXCP_NA_DTLB_MISS; } - helper_hppa_excp(env, excp); + HELPER(hppa_excp)(env, excp); } return (want & prot) !=3D 0; #endif diff --git a/target/hppa/sys_helper.c b/target/hppa/sys_helper.c index f7fd80b5830..ccfc2b48816 100644 --- a/target/hppa/sys_helper.c +++ b/target/hppa/sys_helper.c @@ -51,13 +51,13 @@ void HELPER(write_interval_timer)(CPUHPPAState *env, ta= rget_ulong val) void HELPER(hppa_halt)(CPUHPPAState *env) { qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN); - helper_hppa_excp(env, EXCP_HLT); + HELPER(hppa_excp)(env, EXCP_HLT); } =20 void HELPER(hppa_reset)(CPUHPPAState *env) { qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET); - helper_hppa_excp(env, EXCP_HLT); + HELPER(hppa_excp)(env, EXCP_HLT); } =20 target_ulong HELPER(swap_system_mask)(CPUHPPAState *env, target_ulong nsm) @@ -120,7 +120,7 @@ static void getshadowregs(CPUHPPAState *env) void HELPER(rfi_r)(CPUHPPAState *env) { getshadowregs(env); - helper_rfi(env); + HELPER(rfi)(env); } =20 #ifndef CONFIG_USER_ONLY --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445021; cv=none; d=zohomail.com; s=zohoarc; b=l0DCvk1qGiEg7yGqUSdkFBiAG6CyHZLpYqVaAV9x98GQ14Tp3C3za7VqB2Ir0eu+2P/CpcMLE3H9cYjToor7dO6QXGQbcEjD9cna5IqCwl8r2LoTyht76qo1fdnYzUztCcimgTXSA17/hHEHTmOzKcEDX0z+biQGFtfekypdDAQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445021; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=3zL45DOXzeCth8NreUKbhL+6nxVmFdWksCResfM8aFo=; b=nU4/VNwNQp5MHyQsijcFdruW9DbI1f8L8SdCSKvLGWaYlME8aJG5unCfm199gIG2OiV49ZdbLOi4gTnXwCudzEPBQ84uzUN9dJTQxmO0XFoIvVmwFFzVVIlKaBue8s1F5UyaE1h9R7lEoy7EmUvF8udZpJRPLheKhchHYrf6IIQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17924450217401023.3401255258889; Mon, 19 Oct 2026 14:23:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunI-0001en-QH; Mon, 19 Oct 2026 17:21:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunD-0001dR-Tf for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:16 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun8-0005ga-W0 for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:15 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJK1ge3627863 for ; Mon, 19 Oct 2026 21:21:10 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdr42gptw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:09 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-38f97b3f853so3469178a91.3 for ; Mon, 19 Oct 2026 14:21:09 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=3zL45DOXzeC th8NreUKbhL+6nxVmFdWksCResfM8aFo=; b=Ehjf4aKed+jK8aVGRTvb3i174ZJ 6duSoPKhsPwF+5AwRz2JmgecRsw3UUJzLPwb+9jyfL49mdzUgNTjnNIdv+r8pkuQ egkqxkTTL8/39CFbxl+iuaeZMv1A6g9fhOTZrOscU1el+khrvYHyN1BxQbyMDDXX GhpzbilKNl47Up1/8VtC8JXuzVyf+ZXtZF4S28OmYfgNIEbNMOGL+7vDQ+3c7Jxq 7WX8QBVGl0NLMB+Cd1OJKjbeg14S6WlEj37WuTffO7zIcTt0kYccZ1Ma30mBzWl8 v3ttWYidBhwgCTKXr9hWu+lFQKaKYbD8QsNh31eNgusC1TKwGiDJ4Ahy8iw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444869; x=1793049669; 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:content-type; bh=3zL45DOXzeCth8NreUKbhL+6nxVmFdWksCResfM8aFo=; b=fB7N4d5Jrb1CoBEbCpk2XU4AEFfbzOeSWwzAjYGxIYHxKtZ4nMuj7FU6PADCAEECZ6 TrktegzDq5316RSu6CsSVqxkMpow4iybPDwWPIV3UZ5c2R4oK3gf09lLAM06UJSZ9n+f lwoonzLt8XzAimAM6hhVRUAm8dRNk5MA9KsLpDsr7EzIIdj27qAvIyrDPrj0EIEHsnct h4ut6eqpEkTqklNAIJm9UkPLhm09OWa/IqfvETcmMo54hCwOBhMzrAHPFRs2IktZFJdE ImbZzGXn/W5BbK0GZgNHO7WErGr9dJhY6ohmheofgJ1+T847qHTOBVMvAs6NAGkvGM+t tDuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444869; x=1793049669; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=3zL45DOXzeCth8NreUKbhL+6nxVmFdWksCResfM8aFo=; b=0lukLGOYRMNstcCXtTdAhlmymfH+nL+3Z6PJi59AsryfMjbHjBNa3nQzM20RZU6Agj 17vJowLr6IrjQEYQZ6ioYpm2OvNoZYlZhjhALj0dsYppuAw6yZYJtqmQapNXia0K6s/p T0eYiXky23tXi1wIonyJkoB3FhYvRY3EESrnO/tHhVUL7FRsAUJY1Ynuta9l1uf/NPzZ oXyI+pdy8gWF/7I9x7TUDUYC3Zvv6lg0YjZXgUDdosvCBSX3ONFt1xUXDZISEO4GkVZt GcM5LHEMVqKPvza1Spd0dEOjXIppFyALFF12M3BRNm8T7wyXcI+XXdclKNQaQpbXbB5e GNLQ== X-Gm-Message-State: AFq9FYKlabN09uHL+P3kdMinMWaqiF0WmLB/nIs03jRmOFe5NCiAdv+j MhiPCuqQT6KdakYWSetbTFjQdf4B3hrMeLzRdCZXkFYFcsW2isIsYw3vW1eeyCqFy/pSJH12Irn VbSrKz1QzuPI/WXAz5UzYTdzMnHeJ5cEpdfDGaxiR/4Vqfv8W54F1q8QP3mPdPWkm5Q== X-Gm-Gg: AYBFou3Peef4oogXgfvF1XIwscOr/24gHUPPymthb8RA1so2SI53/lDh+uf4RvnqA38 NTKL8ddP4LsvjVpSoZ6bYm7bKCv51eUcd4DymeKodHyEZP9/Eexn0ojQcjzDu+2zO8OjREqS+f0 Hfr252iaJ16Xc9ykhq04utg0xLWcvv5JFsUPbFgV9vrY8JIIF6qM9ymEs8yQ63zMsDhTdDjUCON CQu1iApaIkIH6j8WMW5plmF8NDsBcmjBZVL9ueWKL8T14q6KPlemTkIN65cR89GqO/9bJxoXyzY data+M8g1agGAB1P4Wib3DTblKvh3JQqn00wzBaRv13WU8XARYgl1Pwcl6hUc0eKOix2pBqxsC6 apO7On6t5PnN84c+ktwcZ5ZxKNT/du81SG4SczwmvmV2TqZ/FYfttFWsHRWtFeQc= X-Received: by 2002:a17:90b:2e03:b0:3ac:adce:60bb with SMTP id 98e67ed59e1d1-3aceeb95d84mr6226739a91.23.1792444867510; Mon, 19 Oct 2026 14:21:07 -0700 (PDT) X-Received: by 2002:a17:90b:2e03:b0:3ac:adce:60bb with SMTP id 98e67ed59e1d1-3aceeb95d84mr6226679a91.23.1792444865639; Mon, 19 Oct 2026 14:21:05 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 05/26] target/i386: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:24 +0000 Message-ID: <20261019212046.149572-6-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfXzu5a+KCa0YtH DSTgovnvcsJYHR4j5K/t+e3YVcaqxG/m/Dq6wVIWviIXd2jLboBqaN1rEJYoA7+ac4iVZm9H5vE V9x6oOhlZiHPMI3bEMzAF0fvQU95SmV3F/Oa9su4K59zrGnLSMMJ2LuhCSny1BvGJYDQlkolHnE uGho2gtBJozN7neMkG+WPFe63c1Tkj8vWLK44jE9ZViz9yepOW2xC1XjRdIpMSrF+H5JhPsHCfX pmS6ayd3AtwlMJ0/qVUA/PjSqdOBFV4NXseP6xFc34dz7AYFwRvXppYhRjeP4bQU5Vh32q0mZrt BYk47pAG09/1f9E8wiOKBqdZvAjIPxUFnjLt91cNWsDE09EMHUYtGkckp/4sxCedhfnhaQJ2AaQ NZbucQX2xNyxTq2qOS5EUI7VJsr4NsnWYGi25ghB/tDHg4PMnAeCqzbTAYzOc93m440r7lA74ae U92vH68EL51g35/cB4A== X-Authority-Analysis: v=2.4 cv=Ve9ir1p9 c=1 sm=1 tr=0 ts=6ad689c6 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=xYhcjry6s8sSYopFNbsA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX+8+q5R+iW9YY hm0nI3fSI/mn6XblWPivOtm0JDrJu+7JxVnETx+ke6jpV3B1X1j/2EsmM+ckdqYnE4qK7TTL/MX McS8A5MP/QDSP5R6gumu1FpkVhILKkI= X-Proofpoint-ORIG-GUID: 5ZD6rsaPYI8HyAEywSgZ3HPkkHS4eh2U X-Proofpoint-GUID: 5ZD6rsaPYI8HyAEywSgZ3HPkkHS4eh2U X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 impostorscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 bulkscore=0 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445023255158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/i386/ops_sse.h | 401 ++++++++++++++------------- target/i386/tcg/bpt_helper.c | 6 +- target/i386/tcg/cc_helper.c | 14 +- target/i386/tcg/excp_helper.c | 8 +- target/i386/tcg/fpu_helper.c | 182 ++++++------ target/i386/tcg/int_helper.c | 34 +-- target/i386/tcg/mem_helper.c | 4 +- target/i386/tcg/misc_helper.c | 16 +- target/i386/tcg/mpx_helper.c | 12 +- target/i386/tcg/seg_helper.c | 32 +-- target/i386/tcg/system/bpt_helper.c | 6 +- target/i386/tcg/system/misc_helper.c | 32 +-- target/i386/tcg/system/seg_helper.c | 4 +- target/i386/tcg/system/smm_helper.c | 12 +- target/i386/tcg/system/svm_helper.c | 16 +- target/i386/tcg/user/seg_helper.c | 4 +- 16 files changed, 392 insertions(+), 391 deletions(-) diff --git a/target/i386/ops_sse.h b/target/i386/ops_sse.h index 5176a9f9e35..b39fcde3539 100644 --- a/target/i386/ops_sse.h +++ b/target/i386/ops_sse.h @@ -54,7 +54,7 @@ #define FPSLL(x, c) ((x) << shift) #endif =20 -void glue(helper_psrlw, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) +void glue(HELPER(psrlw), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) { int shift; if (c->Q(0) > 15) { @@ -69,7 +69,7 @@ void glue(helper_psrlw, SUFFIX)(CPUX86State *env, Reg *d,= Reg *s, Reg *c) } } =20 -void glue(helper_psllw, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) +void glue(HELPER(psllw), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) { int shift; if (c->Q(0) > 15) { @@ -84,7 +84,7 @@ void glue(helper_psllw, SUFFIX)(CPUX86State *env, Reg *d,= Reg *s, Reg *c) } } =20 -void glue(helper_psraw, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) +void glue(HELPER(psraw), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) { int shift; if (c->Q(0) > 15) { @@ -97,7 +97,7 @@ void glue(helper_psraw, SUFFIX)(CPUX86State *env, Reg *d,= Reg *s, Reg *c) } } =20 -void glue(helper_psrld, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) +void glue(HELPER(psrld), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) { int shift; if (c->Q(0) > 31) { @@ -112,7 +112,7 @@ void glue(helper_psrld, SUFFIX)(CPUX86State *env, Reg *= d, Reg *s, Reg *c) } } =20 -void glue(helper_pslld, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) +void glue(HELPER(pslld), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) { int shift; if (c->Q(0) > 31) { @@ -127,7 +127,7 @@ void glue(helper_pslld, SUFFIX)(CPUX86State *env, Reg *= d, Reg *s, Reg *c) } } =20 -void glue(helper_psrad, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) +void glue(HELPER(psrad), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) { int shift; if (c->Q(0) > 31) { @@ -140,7 +140,7 @@ void glue(helper_psrad, SUFFIX)(CPUX86State *env, Reg *= d, Reg *s, Reg *c) } } =20 -void glue(helper_psrlq, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) +void glue(HELPER(psrlq), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) { int shift; if (c->Q(0) > 63) { @@ -155,7 +155,7 @@ void glue(helper_psrlq, SUFFIX)(CPUX86State *env, Reg *= d, Reg *s, Reg *c) } } =20 -void glue(helper_psllq, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) +void glue(HELPER(psllq), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) { int shift; if (c->Q(0) > 63) { @@ -171,7 +171,7 @@ void glue(helper_psllq, SUFFIX)(CPUX86State *env, Reg *= d, Reg *s, Reg *c) } =20 #if SHIFT >=3D 1 -void glue(helper_psrldq, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) +void glue(HELPER(psrldq), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) { int shift, i, j; =20 @@ -189,7 +189,7 @@ void glue(helper_psrldq, SUFFIX)(CPUX86State *env, Reg = *d, Reg *s, Reg *c) } } =20 -void glue(helper_pslldq, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) +void glue(HELPER(pslldq), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) { int shift, i, j; =20 @@ -306,11 +306,11 @@ static inline int satsw(int x) #define FAVG(a, b) (((a) + (b) + 1) >> 1) #endif =20 -SSE_HELPER_W(helper_pmulhuw, FMULHUW) -SSE_HELPER_W(helper_pmulhw, FMULHW) +SSE_HELPER_W(HELPER(pmulhuw), FMULHUW) +SSE_HELPER_W(HELPER(pmulhw), FMULHW) =20 #if SHIFT =3D=3D 0 -void glue(helper_pmulhrw, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(pmulhrw), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { d->W(0) =3D FMULHRW(d->W(0), s->W(0)); d->W(1) =3D FMULHRW(d->W(1), s->W(1)); @@ -319,10 +319,10 @@ void glue(helper_pmulhrw, SUFFIX)(CPUX86State *env, R= eg *d, Reg *s) } #endif =20 -SSE_HELPER_B(helper_pavgb, FAVG) -SSE_HELPER_W(helper_pavgw, FAVG) +SSE_HELPER_B(HELPER(pavgb), FAVG) +SSE_HELPER_W(HELPER(pavgw), FAVG) =20 -void glue(helper_pmuludq, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) +void glue(HELPER(pmuludq), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s) { int i; =20 @@ -331,7 +331,7 @@ void glue(helper_pmuludq, SUFFIX)(CPUX86State *env, Reg= *d, Reg *v, Reg *s) } } =20 -void glue(helper_pmaddwd, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) +void glue(HELPER(pmaddwd), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s) { int i; =20 @@ -351,7 +351,7 @@ static inline int abs1(int a) } } #endif -void glue(helper_psadbw, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) +void glue(HELPER(psadbw), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) { int i; =20 @@ -370,7 +370,7 @@ void glue(helper_psadbw, SUFFIX)(CPUX86State *env, Reg = *d, Reg *v, Reg *s) } =20 #if SHIFT < 2 -void glue(helper_maskmov, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, +void glue(HELPER(maskmov), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, target_ulong a0) { int i; @@ -395,14 +395,14 @@ void glue(helper_maskmov, SUFFIX)(CPUX86State *env, R= eg *d, Reg *s, } while (0) =20 #if SHIFT =3D=3D 0 -void glue(helper_pshufw, SUFFIX)(Reg *d, Reg *s, int order) +void glue(HELPER(pshufw), SUFFIX)(Reg *d, Reg *s, int order) { uint16_t r0, r1, r2, r3; =20 SHUFFLE4(W, s, s, 0); } #else -void glue(helper_shufps, SUFFIX)(Reg *d, Reg *v, Reg *s, int order) +void glue(HELPER(shufps), SUFFIX)(Reg *d, Reg *v, Reg *s, int order) { uint32_t r0, r1, r2, r3; int i; @@ -412,7 +412,7 @@ void glue(helper_shufps, SUFFIX)(Reg *d, Reg *v, Reg *s= , int order) } } =20 -void glue(helper_shufpd, SUFFIX)(Reg *d, Reg *v, Reg *s, int order) +void glue(HELPER(shufpd), SUFFIX)(Reg *d, Reg *v, Reg *s, int order) { uint64_t r0, r1; int i; @@ -426,7 +426,7 @@ void glue(helper_shufpd, SUFFIX)(Reg *d, Reg *v, Reg *s= , int order) } } =20 -void glue(helper_pshufd, SUFFIX)(Reg *d, Reg *s, int order) +void glue(HELPER(pshufd), SUFFIX)(Reg *d, Reg *s, int order) { uint32_t r0, r1, r2, r3; int i; @@ -436,7 +436,7 @@ void glue(helper_pshufd, SUFFIX)(Reg *d, Reg *s, int or= der) } } =20 -void glue(helper_pshuflw, SUFFIX)(Reg *d, Reg *s, int order) +void glue(HELPER(pshuflw), SUFFIX)(Reg *d, Reg *s, int order) { uint16_t r0, r1, r2, r3; int i, j; @@ -447,7 +447,7 @@ void glue(helper_pshuflw, SUFFIX)(Reg *d, Reg *s, int o= rder) } } =20 -void glue(helper_pshufhw, SUFFIX)(Reg *d, Reg *s, int order) +void glue(HELPER(pshufhw), SUFFIX)(Reg *d, Reg *s, int order) { uint16_t r0, r1, r2, r3; int i, j; @@ -464,7 +464,7 @@ void glue(helper_pshufhw, SUFFIX)(Reg *d, Reg *s, int o= rder) /* XXX: not accurate */ =20 #define SSE_HELPER_P(name, F) \ - void glue(helper_ ## name ## ps, SUFFIX)(CPUX86State *env, \ + void HELPER(glue(name ## ps, SUFFIX))(CPUX86State *env, \ Reg *d, Reg *v, Reg *s) \ { \ int i; \ @@ -473,7 +473,7 @@ void glue(helper_pshufhw, SUFFIX)(Reg *d, Reg *s, int o= rder) } \ } \ \ - void glue(helper_ ## name ## pd, SUFFIX)(CPUX86State *env, \ + void HELPER(glue(name ## pd, SUFFIX))(CPUX86State *env, \ Reg *d, Reg *v, Reg *s) \ { \ int i; \ @@ -487,7 +487,7 @@ void glue(helper_pshufhw, SUFFIX)(Reg *d, Reg *s, int o= rder) #define SSE_HELPER_S(name, F) \ SSE_HELPER_P(name, F) \ \ - void helper_ ## name ## ss(CPUX86State *env, Reg *d, Reg *v, Reg *s)\ + void HELPER(name ## ss)(CPUX86State *env, Reg *d, Reg *v, Reg *s) \ { \ int i; \ d->ZMM_S(0) =3D F(32, v->ZMM_S(0), s->ZMM_S(0)); \ @@ -496,7 +496,7 @@ void glue(helper_pshufhw, SUFFIX)(Reg *d, Reg *s, int o= rder) } \ } \ \ - void helper_ ## name ## sd(CPUX86State *env, Reg *d, Reg *v, Reg *s)\ + void HELPER(name ## sd)(CPUX86State *env, Reg *d, Reg *v, Reg *s) \ { \ int i; \ d->ZMM_D(0) =3D F(64, v->ZMM_D(0), s->ZMM_D(0)); \ @@ -532,7 +532,7 @@ SSE_HELPER_S(div, FPU_DIV) SSE_HELPER_S(min, FPU_MIN) SSE_HELPER_S(max, FPU_MAX) =20 -void glue(helper_sqrtps, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(sqrtps), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { int i; for (i =3D 0; i < 2 << SHIFT; i++) { @@ -540,7 +540,7 @@ void glue(helper_sqrtps, SUFFIX)(CPUX86State *env, Reg = *d, Reg *s) } } =20 -void glue(helper_sqrtpd, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(sqrtpd), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { int i; for (i =3D 0; i < 1 << SHIFT; i++) { @@ -549,7 +549,7 @@ void glue(helper_sqrtpd, SUFFIX)(CPUX86State *env, Reg = *d, Reg *s) } =20 #if SHIFT =3D=3D 1 -void helper_sqrtss(CPUX86State *env, Reg *d, Reg *v, Reg *s) +void HELPER(sqrtss)(CPUX86State *env, Reg *d, Reg *v, Reg *s) { int i; d->ZMM_S(0) =3D float32_sqrt(s->ZMM_S(0), &env->sse_status); @@ -558,7 +558,7 @@ void helper_sqrtss(CPUX86State *env, Reg *d, Reg *v, Re= g *s) } } =20 -void helper_sqrtsd(CPUX86State *env, Reg *d, Reg *v, Reg *s) +void HELPER(sqrtsd)(CPUX86State *env, Reg *d, Reg *v, Reg *s) { int i; d->ZMM_D(0) =3D float64_sqrt(s->ZMM_D(0), &env->sse_status); @@ -569,7 +569,7 @@ void helper_sqrtsd(CPUX86State *env, Reg *d, Reg *v, Re= g *s) #endif =20 /* float to float conversions */ -void glue(helper_cvtps2pd, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(cvtps2pd), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { int i; for (i =3D 1 << SHIFT; --i >=3D 0; ) { @@ -577,7 +577,7 @@ void glue(helper_cvtps2pd, SUFFIX)(CPUX86State *env, Re= g *d, Reg *s) } } =20 -void glue(helper_cvtpd2ps, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(cvtpd2ps), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { int i; for (i =3D 0; i < 1 << SHIFT; i++) { @@ -589,7 +589,7 @@ void glue(helper_cvtpd2ps, SUFFIX)(CPUX86State *env, Re= g *d, Reg *s) } =20 #if SHIFT >=3D 1 -void glue(helper_cvtph2ps, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(cvtph2ps), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { int i; =20 @@ -598,7 +598,7 @@ void glue(helper_cvtph2ps, SUFFIX)(CPUX86State *env, Re= g *d, Reg *s) } } =20 -void glue(helper_cvtps2ph, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, int m= ode) +void glue(HELPER(cvtps2ph), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, int = mode) { int i; FloatRoundMode prev_rounding_mode =3D get_float_rounding_mode(&env->ss= e_status); @@ -618,7 +618,7 @@ void glue(helper_cvtps2ph, SUFFIX)(CPUX86State *env, Re= g *d, Reg *s, int mode) #endif =20 #if SHIFT =3D=3D 1 -void helper_cvtss2sd(CPUX86State *env, Reg *d, Reg *v, Reg *s) +void HELPER(cvtss2sd)(CPUX86State *env, Reg *d, Reg *v, Reg *s) { int i; d->ZMM_D(0) =3D float32_to_float64(s->ZMM_S(0), &env->sse_status); @@ -627,7 +627,7 @@ void helper_cvtss2sd(CPUX86State *env, Reg *d, Reg *v, = Reg *s) } } =20 -void helper_cvtsd2ss(CPUX86State *env, Reg *d, Reg *v, Reg *s) +void HELPER(cvtsd2ss)(CPUX86State *env, Reg *d, Reg *v, Reg *s) { int i; d->ZMM_S(0) =3D float64_to_float32(s->ZMM_D(0), &env->sse_status); @@ -638,7 +638,7 @@ void helper_cvtsd2ss(CPUX86State *env, Reg *d, Reg *v, = Reg *s) #endif =20 /* integer to float */ -void glue(helper_cvtdq2ps, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(cvtdq2ps), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { int i; for (i =3D 0; i < 2 << SHIFT; i++) { @@ -646,7 +646,7 @@ void glue(helper_cvtdq2ps, SUFFIX)(CPUX86State *env, Re= g *d, Reg *s) } } =20 -void glue(helper_cvtdq2pd, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(cvtdq2pd), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { int i; for (i =3D 1 << SHIFT; --i >=3D 0; ) { @@ -656,35 +656,35 @@ void glue(helper_cvtdq2pd, SUFFIX)(CPUX86State *env, = Reg *d, Reg *s) } =20 #if SHIFT =3D=3D 1 -void helper_cvtpi2ps(CPUX86State *env, ZMMReg *d, MMXReg *s) +void HELPER(cvtpi2ps)(CPUX86State *env, ZMMReg *d, MMXReg *s) { d->ZMM_S(0) =3D int32_to_float32(s->MMX_L(0), &env->sse_status); d->ZMM_S(1) =3D int32_to_float32(s->MMX_L(1), &env->sse_status); } =20 -void helper_cvtpi2pd(CPUX86State *env, ZMMReg *d, MMXReg *s) +void HELPER(cvtpi2pd)(CPUX86State *env, ZMMReg *d, MMXReg *s) { d->ZMM_D(0) =3D int32_to_float64(s->MMX_L(0), &env->sse_status); d->ZMM_D(1) =3D int32_to_float64(s->MMX_L(1), &env->sse_status); } =20 -void helper_cvtsi2ss(CPUX86State *env, ZMMReg *d, uint32_t val) +void HELPER(cvtsi2ss)(CPUX86State *env, ZMMReg *d, uint32_t val) { d->ZMM_S(0) =3D int32_to_float32(val, &env->sse_status); } =20 -void helper_cvtsi2sd(CPUX86State *env, ZMMReg *d, uint32_t val) +void HELPER(cvtsi2sd)(CPUX86State *env, ZMMReg *d, uint32_t val) { d->ZMM_D(0) =3D int32_to_float64(val, &env->sse_status); } =20 #ifdef TARGET_X86_64 -void helper_cvtsq2ss(CPUX86State *env, ZMMReg *d, uint64_t val) +void HELPER(cvtsq2ss)(CPUX86State *env, ZMMReg *d, uint64_t val) { d->ZMM_S(0) =3D int64_to_float32(val, &env->sse_status); } =20 -void helper_cvtsq2sd(CPUX86State *env, ZMMReg *d, uint64_t val) +void HELPER(cvtsq2sd)(CPUX86State *env, ZMMReg *d, uint64_t val) { d->ZMM_D(0) =3D int64_to_float64(val, &env->sse_status); } @@ -727,7 +727,7 @@ WRAP_FLOATCONV(int64_t, float64_to_int64, float64, INT6= 4_MIN) WRAP_FLOATCONV(int64_t, float64_to_int64_round_to_zero, float64, INT64_MIN) #endif =20 -void glue(helper_cvtps2dq, SUFFIX)(CPUX86State *env, ZMMReg *d, ZMMReg *s) +void glue(HELPER(cvtps2dq), SUFFIX)(CPUX86State *env, ZMMReg *d, ZMMReg *s) { int i; for (i =3D 0; i < 2 << SHIFT; i++) { @@ -735,7 +735,7 @@ void glue(helper_cvtps2dq, SUFFIX)(CPUX86State *env, ZM= MReg *d, ZMMReg *s) } } =20 -void glue(helper_cvtpd2dq, SUFFIX)(CPUX86State *env, ZMMReg *d, ZMMReg *s) +void glue(HELPER(cvtpd2dq), SUFFIX)(CPUX86State *env, ZMMReg *d, ZMMReg *s) { int i; for (i =3D 0; i < 1 << SHIFT; i++) { @@ -747,35 +747,35 @@ void glue(helper_cvtpd2dq, SUFFIX)(CPUX86State *env, = ZMMReg *d, ZMMReg *s) } =20 #if SHIFT =3D=3D 1 -void helper_cvtps2pi(CPUX86State *env, MMXReg *d, ZMMReg *s) +void HELPER(cvtps2pi)(CPUX86State *env, MMXReg *d, ZMMReg *s) { d->MMX_L(0) =3D x86_float32_to_int32(s->ZMM_S(0), &env->sse_status); d->MMX_L(1) =3D x86_float32_to_int32(s->ZMM_S(1), &env->sse_status); } =20 -void helper_cvtpd2pi(CPUX86State *env, MMXReg *d, ZMMReg *s) +void HELPER(cvtpd2pi)(CPUX86State *env, MMXReg *d, ZMMReg *s) { d->MMX_L(0) =3D x86_float64_to_int32(s->ZMM_D(0), &env->sse_status); d->MMX_L(1) =3D x86_float64_to_int32(s->ZMM_D(1), &env->sse_status); } =20 -int32_t helper_cvtss2si(CPUX86State *env, ZMMReg *s) +int32_t HELPER(cvtss2si)(CPUX86State *env, ZMMReg *s) { return x86_float32_to_int32(s->ZMM_S(0), &env->sse_status); } =20 -int32_t helper_cvtsd2si(CPUX86State *env, ZMMReg *s) +int32_t HELPER(cvtsd2si)(CPUX86State *env, ZMMReg *s) { return x86_float64_to_int32(s->ZMM_D(0), &env->sse_status); } =20 #ifdef TARGET_X86_64 -int64_t helper_cvtss2sq(CPUX86State *env, ZMMReg *s) +int64_t HELPER(cvtss2sq)(CPUX86State *env, ZMMReg *s) { return x86_float32_to_int64(s->ZMM_S(0), &env->sse_status); } =20 -int64_t helper_cvtsd2sq(CPUX86State *env, ZMMReg *s) +int64_t HELPER(cvtsd2sq)(CPUX86State *env, ZMMReg *s) { return x86_float64_to_int64(s->ZMM_D(0), &env->sse_status); } @@ -783,7 +783,7 @@ int64_t helper_cvtsd2sq(CPUX86State *env, ZMMReg *s) #endif =20 /* float to integer truncated */ -void glue(helper_cvttps2dq, SUFFIX)(CPUX86State *env, ZMMReg *d, ZMMReg *s) +void glue(HELPER(cvttps2dq), SUFFIX)(CPUX86State *env, ZMMReg *d, ZMMReg *= s) { int i; for (i =3D 0; i < 2 << SHIFT; i++) { @@ -792,7 +792,7 @@ void glue(helper_cvttps2dq, SUFFIX)(CPUX86State *env, Z= MMReg *d, ZMMReg *s) } } =20 -void glue(helper_cvttpd2dq, SUFFIX)(CPUX86State *env, ZMMReg *d, ZMMReg *s) +void glue(HELPER(cvttpd2dq), SUFFIX)(CPUX86State *env, ZMMReg *d, ZMMReg *= s) { int i; for (i =3D 0; i < 1 << SHIFT; i++) { @@ -805,42 +805,42 @@ void glue(helper_cvttpd2dq, SUFFIX)(CPUX86State *env,= ZMMReg *d, ZMMReg *s) } =20 #if SHIFT =3D=3D 1 -void helper_cvttps2pi(CPUX86State *env, MMXReg *d, ZMMReg *s) +void HELPER(cvttps2pi)(CPUX86State *env, MMXReg *d, ZMMReg *s) { d->MMX_L(0) =3D x86_float32_to_int32_round_to_zero(s->ZMM_S(0), &env->= sse_status); d->MMX_L(1) =3D x86_float32_to_int32_round_to_zero(s->ZMM_S(1), &env->= sse_status); } =20 -void helper_cvttpd2pi(CPUX86State *env, MMXReg *d, ZMMReg *s) +void HELPER(cvttpd2pi)(CPUX86State *env, MMXReg *d, ZMMReg *s) { d->MMX_L(0) =3D x86_float64_to_int32_round_to_zero(s->ZMM_D(0), &env->= sse_status); d->MMX_L(1) =3D x86_float64_to_int32_round_to_zero(s->ZMM_D(1), &env->= sse_status); } =20 -int32_t helper_cvttss2si(CPUX86State *env, ZMMReg *s) +int32_t HELPER(cvttss2si)(CPUX86State *env, ZMMReg *s) { return x86_float32_to_int32_round_to_zero(s->ZMM_S(0), &env->sse_statu= s); } =20 -int32_t helper_cvttsd2si(CPUX86State *env, ZMMReg *s) +int32_t HELPER(cvttsd2si)(CPUX86State *env, ZMMReg *s) { return x86_float64_to_int32_round_to_zero(s->ZMM_D(0), &env->sse_statu= s); } =20 #ifdef TARGET_X86_64 -int64_t helper_cvttss2sq(CPUX86State *env, ZMMReg *s) +int64_t HELPER(cvttss2sq)(CPUX86State *env, ZMMReg *s) { return x86_float32_to_int64_round_to_zero(s->ZMM_S(0), &env->sse_statu= s); } =20 -int64_t helper_cvttsd2sq(CPUX86State *env, ZMMReg *s) +int64_t HELPER(cvttsd2sq)(CPUX86State *env, ZMMReg *s) { return x86_float64_to_int64_round_to_zero(s->ZMM_D(0), &env->sse_statu= s); } #endif #endif =20 -void glue(helper_rsqrtps, SUFFIX)(CPUX86State *env, ZMMReg *d, ZMMReg *s) +void glue(HELPER(rsqrtps), SUFFIX)(CPUX86State *env, ZMMReg *d, ZMMReg *s) { int old_flags =3D get_float_exception_flags(&env->sse_status); int i; @@ -853,7 +853,7 @@ void glue(helper_rsqrtps, SUFFIX)(CPUX86State *env, ZMM= Reg *d, ZMMReg *s) } =20 #if SHIFT =3D=3D 1 -void helper_rsqrtss(CPUX86State *env, ZMMReg *d, ZMMReg *v, ZMMReg *s) +void HELPER(rsqrtss)(CPUX86State *env, ZMMReg *d, ZMMReg *v, ZMMReg *s) { int old_flags =3D get_float_exception_flags(&env->sse_status); int i; @@ -867,7 +867,7 @@ void helper_rsqrtss(CPUX86State *env, ZMMReg *d, ZMMReg= *v, ZMMReg *s) } #endif =20 -void glue(helper_rcpps, SUFFIX)(CPUX86State *env, ZMMReg *d, ZMMReg *s) +void glue(HELPER(rcpps), SUFFIX)(CPUX86State *env, ZMMReg *d, ZMMReg *s) { int old_flags =3D get_float_exception_flags(&env->sse_status); int i; @@ -878,7 +878,7 @@ void glue(helper_rcpps, SUFFIX)(CPUX86State *env, ZMMRe= g *d, ZMMReg *s) } =20 #if SHIFT =3D=3D 1 -void helper_rcpss(CPUX86State *env, ZMMReg *d, ZMMReg *v, ZMMReg *s) +void HELPER(rcpss)(CPUX86State *env, ZMMReg *d, ZMMReg *v, ZMMReg *s) { int old_flags =3D get_float_exception_flags(&env->sse_status); int i; @@ -903,12 +903,12 @@ static inline uint64_t helper_extrq(uint64_t src, int= shift, int len) return (src >> shift) & mask; } =20 -void helper_extrq_r(CPUX86State *env, ZMMReg *d, ZMMReg *s) +void HELPER(extrq_r)(CPUX86State *env, ZMMReg *d, ZMMReg *s) { d->ZMM_Q(0) =3D helper_extrq(d->ZMM_Q(0), s->ZMM_B(1) & 63, s->ZMM_B(0= ) & 63); } =20 -void helper_extrq_i(CPUX86State *env, ZMMReg *d, int index, int length) +void HELPER(extrq_i)(CPUX86State *env, ZMMReg *d, int index, int length) { d->ZMM_Q(0) =3D helper_extrq(d->ZMM_Q(0), index, length); } @@ -925,19 +925,20 @@ static inline uint64_t helper_insertq(uint64_t dest, = uint64_t src, int shift, in return (dest & ~(mask << shift)) | ((src & mask) << shift); } =20 -void helper_insertq_r(CPUX86State *env, ZMMReg *d, ZMMReg *s) +void HELPER(insertq_r)(CPUX86State *env, ZMMReg *d, ZMMReg *s) { d->ZMM_Q(0) =3D helper_insertq(d->ZMM_Q(0), s->ZMM_Q(0), s->ZMM_B(9) &= 63, s->ZMM_B(8) & 63); } =20 -void helper_insertq_i(CPUX86State *env, ZMMReg *d, ZMMReg *s, int index, i= nt length) +void HELPER(insertq_i)(CPUX86State *env, ZMMReg *d, ZMMReg *s, int index, + int length) { d->ZMM_Q(0) =3D helper_insertq(d->ZMM_Q(0), s->ZMM_Q(0), index, length= ); } #endif =20 #define SSE_HELPER_HPS(name, F) \ -void glue(helper_ ## name, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s) \ +void HELPER(glue(name, SUFFIX))(CPUX86State *env, Reg *d, Reg *v, Reg *s) = \ { \ float32 r[2 << SHIFT]; \ int i, j, k; \ @@ -958,7 +959,7 @@ SSE_HELPER_HPS(haddps, float32_add) SSE_HELPER_HPS(hsubps, float32_sub) =20 #define SSE_HELPER_HPD(name, F) \ -void glue(helper_ ## name, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s) \ +void HELPER(glue(name, SUFFIX))(CPUX86State *env, Reg *d, Reg *v, Reg *s) = \ { \ float64 r[1 << SHIFT]; \ int i, j, k; \ @@ -978,7 +979,7 @@ void glue(helper_ ## name, SUFFIX)(CPUX86State *env, Re= g *d, Reg *v, Reg *s) \ SSE_HELPER_HPD(haddpd, float64_add) SSE_HELPER_HPD(hsubpd, float64_sub) =20 -void glue(helper_addsubps, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s) +void glue(HELPER(addsubps), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg = *s) { int i; for (i =3D 0; i < 2 << SHIFT; i +=3D 2) { @@ -987,7 +988,7 @@ void glue(helper_addsubps, SUFFIX)(CPUX86State *env, Re= g *d, Reg *v, Reg *s) } } =20 -void glue(helper_addsubpd, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s) +void glue(HELPER(addsubpd), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg = *s) { int i; for (i =3D 0; i < 1 << SHIFT; i +=3D 2) { @@ -997,7 +998,7 @@ void glue(helper_addsubpd, SUFFIX)(CPUX86State *env, Re= g *d, Reg *v, Reg *s) } =20 #define SSE_HELPER_CMP_P(name, F, C) \ - void glue(helper_ ## name ## ps, SUFFIX)(CPUX86State *env, \ + void HELPER(glue(name ## ps, SUFFIX))(CPUX86State *env, \ Reg *d, Reg *v, Reg *s) \ { \ int i; \ @@ -1006,7 +1007,7 @@ void glue(helper_addsubpd, SUFFIX)(CPUX86State *env, = Reg *d, Reg *v, Reg *s) } \ } \ \ - void glue(helper_ ## name ## pd, SUFFIX)(CPUX86State *env, \ + void HELPER(glue(name ## pd, SUFFIX))(CPUX86State *env, \ Reg *d, Reg *v, Reg *s) \ { \ int i; \ @@ -1018,7 +1019,7 @@ void glue(helper_addsubpd, SUFFIX)(CPUX86State *env, = Reg *d, Reg *v, Reg *s) #if SHIFT =3D=3D 1 #define SSE_HELPER_CMP(name, F, C) = \ SSE_HELPER_CMP_P(name, F, C) = \ - void helper_ ## name ## ss(CPUX86State *env, Reg *d, Reg *v, Reg *s) = \ + void HELPER(name ## ss)(CPUX86State *env, Reg *d, Reg *v, Reg *s) = \ { = \ int i; = \ d->ZMM_L(0) =3D C(F(32, v->ZMM_S(0), s->ZMM_S(0))) ? -1 : 0; = \ @@ -1027,7 +1028,7 @@ void glue(helper_addsubpd, SUFFIX)(CPUX86State *env, = Reg *d, Reg *v, Reg *s) } = \ } = \ = \ - void helper_ ## name ## sd(CPUX86State *env, Reg *d, Reg *v, Reg *s) = \ + void HELPER(name ## sd)(CPUX86State *env, Reg *d, Reg *v, Reg *s) = \ { = \ int i; = \ d->ZMM_Q(0) =3D C(F(64, v->ZMM_D(0), s->ZMM_D(0))) ? -1 : 0; = \ @@ -1102,7 +1103,7 @@ SSE_HELPER_CMP(cmptrues, FPU_CMPS, !FPU_FALSE) #if SHIFT =3D=3D 1 static const int comis_eflags[4] =3D {CC_C, CC_Z, 0, CC_Z | CC_P | CC_C}; =20 -void helper_ucomiss(CPUX86State *env, Reg *d, Reg *s) +void HELPER(ucomiss)(CPUX86State *env, Reg *d, Reg *s) { FloatRelation ret; float32 s0, s1; @@ -1114,7 +1115,7 @@ void helper_ucomiss(CPUX86State *env, Reg *d, Reg *s) CC_OP =3D CC_OP_EFLAGS; } =20 -void helper_comiss(CPUX86State *env, Reg *d, Reg *s) +void HELPER(comiss)(CPUX86State *env, Reg *d, Reg *s) { FloatRelation ret; float32 s0, s1; @@ -1126,7 +1127,7 @@ void helper_comiss(CPUX86State *env, Reg *d, Reg *s) CC_OP =3D CC_OP_EFLAGS; } =20 -void helper_ucomisd(CPUX86State *env, Reg *d, Reg *s) +void HELPER(ucomisd)(CPUX86State *env, Reg *d, Reg *s) { FloatRelation ret; float64 d0, d1; @@ -1138,7 +1139,7 @@ void helper_ucomisd(CPUX86State *env, Reg *d, Reg *s) CC_OP =3D CC_OP_EFLAGS; } =20 -void helper_comisd(CPUX86State *env, Reg *d, Reg *s) +void HELPER(comisd)(CPUX86State *env, Reg *d, Reg *s) { FloatRelation ret; float64 d0, d1; @@ -1151,7 +1152,7 @@ void helper_comisd(CPUX86State *env, Reg *d, Reg *s) } #endif =20 -uint32_t glue(helper_movmskps, SUFFIX)(CPUX86State *env, Reg *s) +uint32_t glue(HELPER(movmskps), SUFFIX)(CPUX86State *env, Reg *s) { uint32_t mask; int i; @@ -1163,7 +1164,7 @@ uint32_t glue(helper_movmskps, SUFFIX)(CPUX86State *e= nv, Reg *s) return mask; } =20 -uint32_t glue(helper_movmskpd, SUFFIX)(CPUX86State *env, Reg *s) +uint32_t glue(HELPER(movmskpd), SUFFIX)(CPUX86State *env, Reg *s) { uint32_t mask; int i; @@ -1178,7 +1179,7 @@ uint32_t glue(helper_movmskpd, SUFFIX)(CPUX86State *e= nv, Reg *s) #endif =20 #define PACK_HELPER_B(name, F) \ -void glue(helper_pack ## name, SUFFIX)(CPUX86State *env, \ +void HELPER(glue(pack ## name, SUFFIX))(CPUX86State *env, \ Reg *d, Reg *v, Reg *s) \ { \ uint8_t r[PACK_WIDTH * 2]; \ @@ -1199,7 +1200,7 @@ void glue(helper_pack ## name, SUFFIX)(CPUX86State *e= nv, \ PACK_HELPER_B(sswb, satsb) PACK_HELPER_B(uswb, satub) =20 -void glue(helper_packssdw, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s) +void glue(HELPER(packssdw), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg = *s) { uint16_t r[PACK_WIDTH]; int j, k; @@ -1219,7 +1220,7 @@ void glue(helper_packssdw, SUFFIX)(CPUX86State *env, = Reg *d, Reg *v, Reg *s) =20 #define UNPCK_OP(base_name, base) \ \ - void glue(helper_punpck ## base_name ## bw, SUFFIX)(CPUX86State *env,\ + void HELPER(glue(punpck ## base_name ## bw, SUFFIX))(CPUX86State *env,= \ Reg *d, Reg *v, Reg *s) \ { \ uint8_t r[PACK_WIDTH * 2]; \ @@ -1237,7 +1238,7 @@ void glue(helper_packssdw, SUFFIX)(CPUX86State *env, = Reg *d, Reg *v, Reg *s) } \ } \ \ - void glue(helper_punpck ## base_name ## wd, SUFFIX)(CPUX86State *env,\ + void HELPER(glue(punpck ## base_name ## wd, SUFFIX))(CPUX86State *env,= \ Reg *d, Reg *v, Reg *s) \ { \ uint16_t r[PACK_WIDTH]; \ @@ -1255,7 +1256,7 @@ void glue(helper_packssdw, SUFFIX)(CPUX86State *env, = Reg *d, Reg *v, Reg *s) } \ } \ \ - void glue(helper_punpck ## base_name ## dq, SUFFIX)(CPUX86State *env,\ + void HELPER(glue(punpck ## base_name ## dq, SUFFIX))(CPUX86State *env,= \ Reg *d, Reg *v, Reg *s) \ { \ uint32_t r[PACK_WIDTH / 2]; \ @@ -1274,7 +1275,7 @@ void glue(helper_packssdw, SUFFIX)(CPUX86State *env, = Reg *d, Reg *v, Reg *s) } \ \ XMM_ONLY( \ - void glue(helper_punpck ## base_name ## qdq, SUFFIX)( \ + void HELPER(glue(punpck ## base_name ## qdq, SUFFIX))( \ CPUX86State *env, Reg *d, Reg *v, Reg *s) \ { \ uint64_t r[2]; \ @@ -1299,25 +1300,25 @@ UNPCK_OP(h, 1) =20 /* 3DNow! float ops */ #if SHIFT =3D=3D 0 -void helper_pi2fd(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pi2fd)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_S(0) =3D int32_to_float32(s->MMX_L(0), &env->mmx_status); d->MMX_S(1) =3D int32_to_float32(s->MMX_L(1), &env->mmx_status); } =20 -void helper_pi2fw(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pi2fw)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_S(0) =3D int32_to_float32((int16_t)s->MMX_W(0), &env->mmx_statu= s); d->MMX_S(1) =3D int32_to_float32((int16_t)s->MMX_W(2), &env->mmx_statu= s); } =20 -void helper_pf2id(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pf2id)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_L(0) =3D float32_to_int32_round_to_zero(s->MMX_S(0), &env->mmx_= status); d->MMX_L(1) =3D float32_to_int32_round_to_zero(s->MMX_S(1), &env->mmx_= status); } =20 -void helper_pf2iw(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pf2iw)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_L(0) =3D satsw(float32_to_int32_round_to_zero(s->MMX_S(0), &env->mmx_status)); @@ -1325,7 +1326,7 @@ void helper_pf2iw(CPUX86State *env, MMXReg *d, MMXReg= *s) &env->mmx_status)); } =20 -void helper_pfacc(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfacc)(CPUX86State *env, MMXReg *d, MMXReg *s) { float32 r; =20 @@ -1334,13 +1335,13 @@ void helper_pfacc(CPUX86State *env, MMXReg *d, MMXR= eg *s) d->MMX_S(0) =3D r; } =20 -void helper_pfadd(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfadd)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_S(0) =3D float32_add(d->MMX_S(0), s->MMX_S(0), &env->mmx_status= ); d->MMX_S(1) =3D float32_add(d->MMX_S(1), s->MMX_S(1), &env->mmx_status= ); } =20 -void helper_pfcmpeq(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfcmpeq)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_L(0) =3D float32_eq_quiet(d->MMX_S(0), s->MMX_S(0), &env->mmx_status) ? -1 : 0; @@ -1348,7 +1349,7 @@ void helper_pfcmpeq(CPUX86State *env, MMXReg *d, MMXR= eg *s) &env->mmx_status) ? -1 : 0; } =20 -void helper_pfcmpge(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfcmpge)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_L(0) =3D float32_le(s->MMX_S(0), d->MMX_S(0), &env->mmx_status) ? -1 : 0; @@ -1356,7 +1357,7 @@ void helper_pfcmpge(CPUX86State *env, MMXReg *d, MMXR= eg *s) &env->mmx_status) ? -1 : 0; } =20 -void helper_pfcmpgt(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfcmpgt)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_L(0) =3D float32_lt(s->MMX_S(0), d->MMX_S(0), &env->mmx_status) ? -1 : 0; @@ -1364,7 +1365,7 @@ void helper_pfcmpgt(CPUX86State *env, MMXReg *d, MMXR= eg *s) &env->mmx_status) ? -1 : 0; } =20 -void helper_pfmax(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfmax)(CPUX86State *env, MMXReg *d, MMXReg *s) { if (float32_lt(d->MMX_S(0), s->MMX_S(0), &env->mmx_status)) { d->MMX_S(0) =3D s->MMX_S(0); @@ -1374,7 +1375,7 @@ void helper_pfmax(CPUX86State *env, MMXReg *d, MMXReg= *s) } } =20 -void helper_pfmin(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfmin)(CPUX86State *env, MMXReg *d, MMXReg *s) { if (float32_lt(s->MMX_S(0), d->MMX_S(0), &env->mmx_status)) { d->MMX_S(0) =3D s->MMX_S(0); @@ -1384,13 +1385,13 @@ void helper_pfmin(CPUX86State *env, MMXReg *d, MMXR= eg *s) } } =20 -void helper_pfmul(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfmul)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_S(0) =3D float32_mul(d->MMX_S(0), s->MMX_S(0), &env->mmx_status= ); d->MMX_S(1) =3D float32_mul(d->MMX_S(1), s->MMX_S(1), &env->mmx_status= ); } =20 -void helper_pfnacc(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfnacc)(CPUX86State *env, MMXReg *d, MMXReg *s) { float32 r; =20 @@ -1399,7 +1400,7 @@ void helper_pfnacc(CPUX86State *env, MMXReg *d, MMXRe= g *s) d->MMX_S(0) =3D r; } =20 -void helper_pfpnacc(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfpnacc)(CPUX86State *env, MMXReg *d, MMXReg *s) { float32 r; =20 @@ -1408,13 +1409,13 @@ void helper_pfpnacc(CPUX86State *env, MMXReg *d, MM= XReg *s) d->MMX_S(0) =3D r; } =20 -void helper_pfrcp(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfrcp)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_S(0) =3D float32_div(float32_one, s->MMX_S(0), &env->mmx_status= ); d->MMX_S(1) =3D d->MMX_S(0); } =20 -void helper_pfrsqrt(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfrsqrt)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_L(1) =3D s->MMX_L(0) & 0x7fffffff; d->MMX_S(1) =3D float32_div(float32_one, @@ -1424,19 +1425,19 @@ void helper_pfrsqrt(CPUX86State *env, MMXReg *d, MM= XReg *s) d->MMX_L(0) =3D d->MMX_L(1); } =20 -void helper_pfsub(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfsub)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_S(0) =3D float32_sub(d->MMX_S(0), s->MMX_S(0), &env->mmx_status= ); d->MMX_S(1) =3D float32_sub(d->MMX_S(1), s->MMX_S(1), &env->mmx_status= ); } =20 -void helper_pfsubr(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pfsubr)(CPUX86State *env, MMXReg *d, MMXReg *s) { d->MMX_S(0) =3D float32_sub(s->MMX_S(0), d->MMX_S(0), &env->mmx_status= ); d->MMX_S(1) =3D float32_sub(s->MMX_S(1), d->MMX_S(1), &env->mmx_status= ); } =20 -void helper_pswapd(CPUX86State *env, MMXReg *d, MMXReg *s) +void HELPER(pswapd)(CPUX86State *env, MMXReg *d, MMXReg *s) { uint32_t r; =20 @@ -1447,7 +1448,7 @@ void helper_pswapd(CPUX86State *env, MMXReg *d, MMXRe= g *s) #endif =20 /* SSSE3 op helpers */ -void glue(helper_pshufb, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) +void glue(HELPER(pshufb), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) { int i; #if SHIFT =3D=3D 0 @@ -1473,7 +1474,7 @@ void glue(helper_pshufb, SUFFIX)(CPUX86State *env, Re= g *d, Reg *v, Reg *s) } =20 #define SSE_HELPER_HW(name, F) \ -void glue(helper_ ## name, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s) \ +void HELPER(glue(name, SUFFIX))(CPUX86State *env, Reg *d, Reg *v, Reg *s) = \ { \ uint16_t r[4 << SHIFT]; \ int i, j, k; \ @@ -1491,7 +1492,7 @@ void glue(helper_ ## name, SUFFIX)(CPUX86State *env, = Reg *d, Reg *v, Reg *s) \ } =20 #define SSE_HELPER_HL(name, F) \ -void glue(helper_ ## name, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s) \ +void HELPER(glue(name, SUFFIX))(CPUX86State *env, Reg *d, Reg *v, Reg *s) = \ { \ uint32_t r[2 << SHIFT]; \ int i, j, k; \ @@ -1518,7 +1519,7 @@ SSE_HELPER_HL(phsubd, FSUB) #undef SSE_HELPER_HW #undef SSE_HELPER_HL =20 -void glue(helper_pmaddubsw, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg = *s) +void glue(HELPER(pmaddubsw), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg= *s) { int i; for (i =3D 0; i < 4 << SHIFT; i++) { @@ -1528,16 +1529,16 @@ void glue(helper_pmaddubsw, SUFFIX)(CPUX86State *en= v, Reg *d, Reg *v, Reg *s) } =20 #define FMULHRSW(d, s) (((int16_t) d * (int16_t)s + 0x4000) >> 15) -SSE_HELPER_W(helper_pmulhrsw, FMULHRSW) +SSE_HELPER_W(HELPER(pmulhrsw), FMULHRSW) =20 #define FSIGNB(d, s) (s <=3D INT8_MAX ? s ? d : 0 : -(int8_t)d) #define FSIGNW(d, s) (s <=3D INT16_MAX ? s ? d : 0 : -(int16_t)d) #define FSIGNL(d, s) (s <=3D INT32_MAX ? s ? d : 0 : -(int32_t)d) -SSE_HELPER_B(helper_psignb, FSIGNB) -SSE_HELPER_W(helper_psignw, FSIGNW) -SSE_HELPER_L(helper_psignd, FSIGNL) +SSE_HELPER_B(HELPER(psignb), FSIGNB) +SSE_HELPER_W(HELPER(psignw), FSIGNW) +SSE_HELPER_L(HELPER(psignd), FSIGNL) =20 -void glue(helper_palignr, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s, +void glue(HELPER(palignr), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s, uint32_t imm) { int i; @@ -1600,11 +1601,11 @@ void glue(helper_palignr, SUFFIX)(CPUX86State *env,= Reg *d, Reg *v, Reg *s, #define FBLENDVB(v, s, m) ((m & 0x80) ? s : v) #define FBLENDVPS(v, s, m) ((m & 0x80000000) ? s : v) #define FBLENDVPD(v, s, m) ((m & 0x8000000000000000LL) ? s : v) -SSE_HELPER_V(helper_pblendvb, B, 8 << SHIFT, FBLENDVB) -SSE_HELPER_V(helper_blendvps, L, 2 << SHIFT, FBLENDVPS) -SSE_HELPER_V(helper_blendvpd, Q, 1 << SHIFT, FBLENDVPD) +SSE_HELPER_V(HELPER(pblendvb), B, 8 << SHIFT, FBLENDVB) +SSE_HELPER_V(HELPER(blendvps), L, 2 << SHIFT, FBLENDVPS) +SSE_HELPER_V(HELPER(blendvpd), Q, 1 << SHIFT, FBLENDVPD) =20 -void glue(helper_ptest, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(ptest), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { uint64_t zf =3D 0, cf =3D 0; int i; @@ -1631,24 +1632,24 @@ void glue(helper_ptest, SUFFIX)(CPUX86State *env, R= eg *d, Reg *s) } =20 #if SHIFT > 0 -SSE_HELPER_F(helper_pmovsxbw, W, 4 << SHIFT, (int8_t) s->B) -SSE_HELPER_F(helper_pmovsxbd, L, 2 << SHIFT, (int8_t) s->B) -SSE_HELPER_F(helper_pmovsxbq, Q, 1 << SHIFT, (int8_t) s->B) -SSE_HELPER_F(helper_pmovsxwd, L, 2 << SHIFT, (int16_t) s->W) -SSE_HELPER_F(helper_pmovsxwq, Q, 1 << SHIFT, (int16_t) s->W) -SSE_HELPER_F(helper_pmovsxdq, Q, 1 << SHIFT, (int32_t) s->L) -SSE_HELPER_F(helper_pmovzxbw, W, 4 << SHIFT, s->B) -SSE_HELPER_F(helper_pmovzxbd, L, 2 << SHIFT, s->B) -SSE_HELPER_F(helper_pmovzxbq, Q, 1 << SHIFT, s->B) -SSE_HELPER_F(helper_pmovzxwd, L, 2 << SHIFT, s->W) -SSE_HELPER_F(helper_pmovzxwq, Q, 1 << SHIFT, s->W) -SSE_HELPER_F(helper_pmovzxdq, Q, 1 << SHIFT, s->L) -SSE_HELPER_F(helper_pmovsldup, L, 2 << SHIFT, FMOVSLDUP) -SSE_HELPER_F(helper_pmovshdup, L, 2 << SHIFT, FMOVSHDUP) -SSE_HELPER_F(helper_pmovdldup, Q, 1 << SHIFT, FMOVDLDUP) +SSE_HELPER_F(HELPER(pmovsxbw), W, 4 << SHIFT, (int8_t) s->B) +SSE_HELPER_F(HELPER(pmovsxbd), L, 2 << SHIFT, (int8_t) s->B) +SSE_HELPER_F(HELPER(pmovsxbq), Q, 1 << SHIFT, (int8_t) s->B) +SSE_HELPER_F(HELPER(pmovsxwd), L, 2 << SHIFT, (int16_t) s->W) +SSE_HELPER_F(HELPER(pmovsxwq), Q, 1 << SHIFT, (int16_t) s->W) +SSE_HELPER_F(HELPER(pmovsxdq), Q, 1 << SHIFT, (int32_t) s->L) +SSE_HELPER_F(HELPER(pmovzxbw), W, 4 << SHIFT, s->B) +SSE_HELPER_F(HELPER(pmovzxbd), L, 2 << SHIFT, s->B) +SSE_HELPER_F(HELPER(pmovzxbq), Q, 1 << SHIFT, s->B) +SSE_HELPER_F(HELPER(pmovzxwd), L, 2 << SHIFT, s->W) +SSE_HELPER_F(HELPER(pmovzxwq), Q, 1 << SHIFT, s->W) +SSE_HELPER_F(HELPER(pmovzxdq), Q, 1 << SHIFT, s->L) +SSE_HELPER_F(HELPER(pmovsldup), L, 2 << SHIFT, FMOVSLDUP) +SSE_HELPER_F(HELPER(pmovshdup), L, 2 << SHIFT, FMOVSHDUP) +SSE_HELPER_F(HELPER(pmovdldup), Q, 1 << SHIFT, FMOVDLDUP) #endif =20 -void glue(helper_pmuldq, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) +void glue(HELPER(pmuldq), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) { int i; =20 @@ -1657,7 +1658,7 @@ void glue(helper_pmuldq, SUFFIX)(CPUX86State *env, Re= g *d, Reg *v, Reg *s) } } =20 -void glue(helper_packusdw, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s) +void glue(HELPER(packusdw), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg = *s) { uint16_t r[8]; int i, j, k; @@ -1678,7 +1679,7 @@ void glue(helper_packusdw, SUFFIX)(CPUX86State *env, = Reg *d, Reg *v, Reg *s) } =20 #if SHIFT =3D=3D 1 -void glue(helper_phminposuw, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(phminposuw), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { int idx =3D 0; =20 @@ -1711,7 +1712,7 @@ void glue(helper_phminposuw, SUFFIX)(CPUX86State *env= , Reg *d, Reg *s) } #endif =20 -void glue(helper_roundps, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, +void glue(HELPER(roundps), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, uint32_t mode) { int old_flags =3D get_float_exception_flags(&env->sse_status); @@ -1734,7 +1735,7 @@ void glue(helper_roundps, SUFFIX)(CPUX86State *env, R= eg *d, Reg *s, set_float_rounding_mode(prev_rounding_mode, &env->sse_status); } =20 -void glue(helper_roundpd, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, +void glue(HELPER(roundpd), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, uint32_t mode) { int old_flags =3D get_float_exception_flags(&env->sse_status); @@ -1758,7 +1759,7 @@ void glue(helper_roundpd, SUFFIX)(CPUX86State *env, R= eg *d, Reg *s, } =20 #if SHIFT =3D=3D 1 -void glue(helper_roundss, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s, +void glue(HELPER(roundss), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s, uint32_t mode) { int old_flags =3D get_float_exception_flags(&env->sse_status); @@ -1782,7 +1783,7 @@ void glue(helper_roundss, SUFFIX)(CPUX86State *env, R= eg *d, Reg *v, Reg *s, set_float_rounding_mode(prev_rounding_mode, &env->sse_status); } =20 -void glue(helper_roundsd, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s, +void glue(HELPER(roundsd), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s, uint32_t mode) { int old_flags =3D get_float_exception_flags(&env->sse_status); @@ -1808,11 +1809,11 @@ void glue(helper_roundsd, SUFFIX)(CPUX86State *env,= Reg *d, Reg *v, Reg *s, #endif =20 #define FBLENDP(v, s, m) (m ? s : v) -SSE_HELPER_I(helper_blendps, L, 2 << SHIFT, FBLENDP) -SSE_HELPER_I(helper_blendpd, Q, 1 << SHIFT, FBLENDP) -SSE_HELPER_I(helper_pblendw, W, 4 << SHIFT, FBLENDP) +SSE_HELPER_I(HELPER(blendps), L, 2 << SHIFT, FBLENDP) +SSE_HELPER_I(HELPER(blendpd), Q, 1 << SHIFT, FBLENDP) +SSE_HELPER_I(HELPER(pblendw), W, 4 << SHIFT, FBLENDP) =20 -void glue(helper_dpps, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s, +void glue(HELPER(dpps), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s, uint32_t mask) { float32 prod1, prod2, temp2, temp3, temp4; @@ -1856,7 +1857,7 @@ void glue(helper_dpps, SUFFIX)(CPUX86State *env, Reg = *d, Reg *v, Reg *s, =20 #if SHIFT =3D=3D 1 /* Oddly, there is no ymm version of dppd */ -void glue(helper_dppd, SUFFIX)(CPUX86State *env, +void glue(HELPER(dppd), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s, uint32_t mask) { float64 prod1, prod2, temp2; @@ -1877,7 +1878,7 @@ void glue(helper_dppd, SUFFIX)(CPUX86State *env, } #endif =20 -void glue(helper_mpsadbw, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s, +void glue(HELPER(mpsadbw), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *= s, uint32_t offset) { int i, j; @@ -2033,7 +2034,7 @@ static inline unsigned pcmpxstrx(CPUX86State *env, Re= g *d, Reg *s, return res; } =20 -void glue(helper_pcmpestri, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, +void glue(HELPER(pcmpestri), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, uint32_t ctrl) { unsigned int res =3D pcmpxstrx(env, d, s, ctrl, @@ -2047,7 +2048,7 @@ void glue(helper_pcmpestri, SUFFIX)(CPUX86State *env,= Reg *d, Reg *s, } } =20 -void glue(helper_pcmpestrm, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, +void glue(HELPER(pcmpestrm), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, uint32_t ctrl) { int i; @@ -2071,7 +2072,7 @@ void glue(helper_pcmpestrm, SUFFIX)(CPUX86State *env,= Reg *d, Reg *s, } } =20 -void glue(helper_pcmpistri, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, +void glue(HELPER(pcmpistri), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, uint32_t ctrl) { unsigned int res =3D pcmpxstrx(env, d, s, ctrl, @@ -2085,7 +2086,7 @@ void glue(helper_pcmpistri, SUFFIX)(CPUX86State *env,= Reg *d, Reg *s, } } =20 -void glue(helper_pcmpistrm, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, +void glue(HELPER(pcmpistrm), SUFFIX)(CPUX86State *env, Reg *d, Reg *s, uint32_t ctrl) { int i; @@ -2111,7 +2112,7 @@ void glue(helper_pcmpistrm, SUFFIX)(CPUX86State *env,= Reg *d, Reg *s, =20 #define CRCPOLY 0x1edc6f41 #define CRCPOLY_BITREV 0x82f63b78 -target_ulong helper_crc32(uint32_t crc1, target_ulong msg, uint32_t len) +target_ulong HELPER(crc32)(uint32_t crc1, target_ulong msg, uint32_t len) { target_ulong crc =3D (msg & ((target_ulong) -1 >> (TARGET_LONG_BITS - len))) ^ crc1; @@ -2125,7 +2126,7 @@ target_ulong helper_crc32(uint32_t crc1, target_ulong= msg, uint32_t len) =20 #endif =20 -void glue(helper_pclmulqdq, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg = *s, +void glue(HELPER(pclmulqdq), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg= *s, uint32_t ctrl) { int a_idx =3D (ctrl & 1) !=3D 0; @@ -2140,7 +2141,7 @@ void glue(helper_pclmulqdq, SUFFIX)(CPUX86State *env,= Reg *d, Reg *v, Reg *s, } } =20 -void glue(helper_aesdec, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) +void glue(HELPER(aesdec), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) { for (int i =3D 0; i < SHIFT; i++) { AESState *ad =3D (AESState *)&d->ZMM_X(i); @@ -2151,7 +2152,7 @@ void glue(helper_aesdec, SUFFIX)(CPUX86State *env, Re= g *d, Reg *v, Reg *s) } } =20 -void glue(helper_aesdeclast, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg= *s) +void glue(HELPER(aesdeclast), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Re= g *s) { for (int i =3D 0; i < SHIFT; i++) { AESState *ad =3D (AESState *)&d->ZMM_X(i); @@ -2162,7 +2163,7 @@ void glue(helper_aesdeclast, SUFFIX)(CPUX86State *env= , Reg *d, Reg *v, Reg *s) } } =20 -void glue(helper_aesenc, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) +void glue(HELPER(aesenc), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) { for (int i =3D 0; i < SHIFT; i++) { AESState *ad =3D (AESState *)&d->ZMM_X(i); @@ -2173,7 +2174,7 @@ void glue(helper_aesenc, SUFFIX)(CPUX86State *env, Re= g *d, Reg *v, Reg *s) } } =20 -void glue(helper_aesenclast, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg= *s) +void glue(HELPER(aesenclast), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Re= g *s) { for (int i =3D 0; i < SHIFT; i++) { AESState *ad =3D (AESState *)&d->ZMM_X(i); @@ -2185,7 +2186,7 @@ void glue(helper_aesenclast, SUFFIX)(CPUX86State *env= , Reg *d, Reg *v, Reg *s) } =20 #if SHIFT =3D=3D 1 -void glue(helper_aesimc, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(aesimc), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { AESState *ad =3D (AESState *)&d->ZMM_X(0); AESState *st =3D (AESState *)&s->ZMM_X(0); @@ -2193,7 +2194,7 @@ void glue(helper_aesimc, SUFFIX)(CPUX86State *env, Re= g *d, Reg *s) aesdec_IMC(ad, st, false); } =20 -void glue(helper_aeskeygenassist, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, +void glue(HELPER(aeskeygenassist), SUFFIX)(CPUX86State *env, Reg *d, Reg *= s, uint32_t ctrl) { int i; @@ -2210,7 +2211,7 @@ void glue(helper_aeskeygenassist, SUFFIX)(CPUX86State= *env, Reg *d, Reg *s, #endif =20 #if SHIFT >=3D 1 -void glue(helper_vpermilpd, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg = *s) +void glue(HELPER(vpermilpd), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg= *s) { uint64_t r0, r1; int i; @@ -2223,7 +2224,7 @@ void glue(helper_vpermilpd, SUFFIX)(CPUX86State *env,= Reg *d, Reg *v, Reg *s) } } =20 -void glue(helper_vpermilps, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg = *s) +void glue(HELPER(vpermilps), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg= *s) { uint32_t r0, r1, r2, r3; int i; @@ -2240,7 +2241,7 @@ void glue(helper_vpermilps, SUFFIX)(CPUX86State *env,= Reg *d, Reg *v, Reg *s) } } =20 -void glue(helper_vpermilpd_imm, SUFFIX)(Reg *d, Reg *s, uint32_t order) +void glue(HELPER(vpermilpd_imm), SUFFIX)(Reg *d, Reg *s, uint32_t order) { uint64_t r0, r1; int i; @@ -2255,7 +2256,7 @@ void glue(helper_vpermilpd_imm, SUFFIX)(Reg *d, Reg *= s, uint32_t order) } } =20 -void glue(helper_vpermilps_imm, SUFFIX)(Reg *d, Reg *s, uint32_t order) +void glue(HELPER(vpermilps_imm), SUFFIX)(Reg *d, Reg *s, uint32_t order) { uint32_t r0, r1, r2, r3; int i; @@ -2281,15 +2282,15 @@ void glue(helper_vpermilps_imm, SUFFIX)(Reg *d, Reg= *s, uint32_t order) #define FPSLLVQ(x, c) (c < 64 ? ((x) << c) : 0) #endif =20 -SSE_HELPER_L(helper_vpsrlvd, FPSRLVD) -SSE_HELPER_L(helper_vpsravd, FPSRAVD) -SSE_HELPER_L(helper_vpsllvd, FPSLLVD) +SSE_HELPER_L(HELPER(vpsrlvd), FPSRLVD) +SSE_HELPER_L(HELPER(vpsravd), FPSRAVD) +SSE_HELPER_L(HELPER(vpsllvd), FPSLLVD) =20 -SSE_HELPER_Q(helper_vpsrlvq, FPSRLVQ) -SSE_HELPER_Q(helper_vpsravq, FPSRAVQ) -SSE_HELPER_Q(helper_vpsllvq, FPSLLVQ) +SSE_HELPER_Q(HELPER(vpsrlvq), FPSRLVQ) +SSE_HELPER_Q(HELPER(vpsravq), FPSRAVQ) +SSE_HELPER_Q(HELPER(vpsllvq), FPSLLVQ) =20 -void glue(helper_vtestps, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(vtestps), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { uint32_t zf =3D 0, cf =3D 0; int i; @@ -2302,7 +2303,7 @@ void glue(helper_vtestps, SUFFIX)(CPUX86State *env, R= eg *d, Reg *s) CC_OP =3D CC_OP_EFLAGS; } =20 -void glue(helper_vtestpd, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +void glue(HELPER(vtestpd), SUFFIX)(CPUX86State *env, Reg *d, Reg *s) { uint64_t zf =3D 0, cf =3D 0; int i; @@ -2315,7 +2316,7 @@ void glue(helper_vtestpd, SUFFIX)(CPUX86State *env, R= eg *d, Reg *s) CC_OP =3D CC_OP_EFLAGS; } =20 -void glue(helper_vpmaskmovd_st, SUFFIX)(CPUX86State *env, +void glue(HELPER(vpmaskmovd_st), SUFFIX)(CPUX86State *env, Reg *v, Reg *s, target_ulong a0) { int i; @@ -2327,7 +2328,7 @@ void glue(helper_vpmaskmovd_st, SUFFIX)(CPUX86State *= env, } } =20 -void glue(helper_vpmaskmovq_st, SUFFIX)(CPUX86State *env, +void glue(HELPER(vpmaskmovq_st), SUFFIX)(CPUX86State *env, Reg *v, Reg *s, target_ulong a0) { int i; @@ -2339,7 +2340,7 @@ void glue(helper_vpmaskmovq_st, SUFFIX)(CPUX86State *= env, } } =20 -void glue(helper_vpmaskmovd, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg= *s) +void glue(HELPER(vpmaskmovd), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Re= g *s) { int i; =20 @@ -2348,7 +2349,7 @@ void glue(helper_vpmaskmovd, SUFFIX)(CPUX86State *env= , Reg *d, Reg *v, Reg *s) } } =20 -void glue(helper_vpmaskmovq, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg= *s) +void glue(HELPER(vpmaskmovq), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Re= g *s) { int i; =20 @@ -2357,7 +2358,7 @@ void glue(helper_vpmaskmovq, SUFFIX)(CPUX86State *env= , Reg *d, Reg *v, Reg *s) } } =20 -void glue(helper_vpgatherdd, SUFFIX)(CPUX86State *env, +void glue(HELPER(vpgatherdd), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s, target_ulong a0, unsigned scale, target_ul= ong amask) { int i; @@ -2371,7 +2372,7 @@ void glue(helper_vpgatherdd, SUFFIX)(CPUX86State *env, } } =20 -void glue(helper_vpgatherdq, SUFFIX)(CPUX86State *env, +void glue(HELPER(vpgatherdq), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s, target_ulong a0, unsigned scale, target_ul= ong amask) { int i; @@ -2385,7 +2386,7 @@ void glue(helper_vpgatherdq, SUFFIX)(CPUX86State *env, } } =20 -void glue(helper_vpgatherqd, SUFFIX)(CPUX86State *env, +void glue(HELPER(vpgatherqd), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s, target_ulong a0, unsigned scale, target_ul= ong amask) { int i; @@ -2403,7 +2404,7 @@ void glue(helper_vpgatherqd, SUFFIX)(CPUX86State *env, } } =20 -void glue(helper_vpgatherqq, SUFFIX)(CPUX86State *env, +void glue(HELPER(vpgatherqq), SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s, target_ulong a0, unsigned scale, target_ul= ong amask) { int i; @@ -2419,7 +2420,7 @@ void glue(helper_vpgatherqq, SUFFIX)(CPUX86State *env, #endif =20 #if SHIFT >=3D 2 -void helper_vpermdq_ymm(Reg *d, Reg *v, Reg *s, uint32_t order) +void HELPER(vpermdq_ymm)(Reg *d, Reg *v, Reg *s, uint32_t order) { uint64_t r0, r1, r2, r3; =20 @@ -2477,7 +2478,7 @@ void helper_vpermdq_ymm(Reg *d, Reg *v, Reg *s, uint3= 2_t order) } } =20 -void helper_vpermq_ymm(Reg *d, Reg *s, uint32_t order) +void HELPER(vpermq_ymm)(Reg *d, Reg *s, uint32_t order) { uint64_t r0, r1, r2, r3; r0 =3D s->Q(order & 3); @@ -2490,7 +2491,7 @@ void helper_vpermq_ymm(Reg *d, Reg *s, uint32_t order) d->Q(3) =3D r3; } =20 -void helper_vpermd_ymm(Reg *d, Reg *v, Reg *s) +void HELPER(vpermd_ymm)(Reg *d, Reg *v, Reg *s) { uint32_t r[8]; int i; @@ -2522,13 +2523,13 @@ void helper_vpermd_ymm(Reg *d, Reg *v, Reg *s) } = \ } =20 -SSE_HELPER_FMAS(helper_fma4ss, ZMM_S, float32_muladd) -SSE_HELPER_FMAS(helper_fma4sd, ZMM_D, float64_muladd) +SSE_HELPER_FMAS(HELPER(fma4ss), ZMM_S, float32_muladd) +SSE_HELPER_FMAS(HELPER(fma4sd), ZMM_D, float64_muladd) #endif =20 #if SHIFT >=3D 1 -SSE_HELPER_FMAP(helper_fma4ps, ZMM_S, 2 << SHIFT, float32_muladd) -SSE_HELPER_FMAP(helper_fma4pd, ZMM_D, 1 << SHIFT, float64_muladd) +SSE_HELPER_FMAP(HELPER(fma4ps), ZMM_S, 2 << SHIFT, float32_muladd) +SSE_HELPER_FMAP(HELPER(fma4pd), ZMM_D, 1 << SHIFT, float64_muladd) #endif =20 #if SHIFT =3D=3D 1 @@ -2562,12 +2563,12 @@ SSE_HELPER_FMAP(helper_fma4pd, ZMM_D, 1 << SHIFT, = float64_muladd) #define SHA1_F1(b, c, d) ((b) ^ (c) ^ (d)) #define SHA1_F2(b, c, d) (((b) & (c)) ^ ((b) & (d)) ^ ((c) & (d))) =20 -SSE_HELPER_SHA1RNDS4(helper_sha1rnds4_f0, SHA1_F0, 0x5A827999) -SSE_HELPER_SHA1RNDS4(helper_sha1rnds4_f1, SHA1_F1, 0x6ED9EBA1) -SSE_HELPER_SHA1RNDS4(helper_sha1rnds4_f2, SHA1_F2, 0x8F1BBCDC) -SSE_HELPER_SHA1RNDS4(helper_sha1rnds4_f3, SHA1_F1, 0xCA62C1D6) +SSE_HELPER_SHA1RNDS4(HELPER(sha1rnds4_f0), SHA1_F0, 0x5A827999) +SSE_HELPER_SHA1RNDS4(HELPER(sha1rnds4_f1), SHA1_F1, 0x6ED9EBA1) +SSE_HELPER_SHA1RNDS4(HELPER(sha1rnds4_f2), SHA1_F2, 0x8F1BBCDC) +SSE_HELPER_SHA1RNDS4(HELPER(sha1rnds4_f3), SHA1_F1, 0xCA62C1D6) =20 -void helper_sha1nexte(Reg *d, Reg *a, Reg *b) +void HELPER(sha1nexte)(Reg *d, Reg *a, Reg *b) { d->L(3) =3D b->L(3) + rol32(a->L(3), 30); d->L(2) =3D b->L(2); @@ -2575,7 +2576,7 @@ void helper_sha1nexte(Reg *d, Reg *a, Reg *b) d->L(0) =3D b->L(0); } =20 -void helper_sha1msg1(Reg *d, Reg *a, Reg *b) +void HELPER(sha1msg1)(Reg *d, Reg *a, Reg *b) { /* These could be overwritten by the first two assignments, save them.= */ uint32_t b3 =3D b->L(3); @@ -2587,7 +2588,7 @@ void helper_sha1msg1(Reg *d, Reg *a, Reg *b) d->L(0) =3D a->L(0) ^ b2; } =20 -void helper_sha1msg2(Reg *d, Reg *a, Reg *b) +void HELPER(sha1msg2)(Reg *d, Reg *a, Reg *b) { d->L(3) =3D rol32(a->L(3) ^ b->L(2), 1); d->L(2) =3D rol32(a->L(2) ^ b->L(1), 1); @@ -2603,7 +2604,7 @@ void helper_sha1msg2(Reg *d, Reg *a, Reg *b) #define SHA256_MSGS0(w) (ror32((w), 7) ^ ror32((w), 18) ^ ((w) >> 3)) #define SHA256_MSGS1(w) (ror32((w), 17) ^ ror32((w), 19) ^ ((w) >> 10)) =20 -void helper_sha256rnds2(Reg *d, Reg *a, Reg *b, uint32_t wk0, uint32_t wk1) +void HELPER(sha256rnds2)(Reg *d, Reg *a, Reg *b, uint32_t wk0, uint32_t wk= 1) { uint32_t t, AA, EE; =20 @@ -2637,7 +2638,7 @@ void helper_sha256rnds2(Reg *d, Reg *a, Reg *b, uint3= 2_t wk0, uint32_t wk1) d->L(1) =3D EE; } =20 -void helper_sha256msg1(Reg *d, Reg *a, Reg *b) +void HELPER(sha256msg1)(Reg *d, Reg *a, Reg *b) { /* b->L(0) could be overwritten by the first assignment, save it. */ uint32_t b0 =3D b->L(0); @@ -2648,7 +2649,7 @@ void helper_sha256msg1(Reg *d, Reg *a, Reg *b) d->L(3) =3D a->L(3) + SHA256_MSGS0(b0); } =20 -void helper_sha256msg2(Reg *d, Reg *a, Reg *b) +void HELPER(sha256msg2)(Reg *d, Reg *a, Reg *b) { /* Earlier assignments cannot overwrite any of the two operands. */ d->L(0) =3D a->L(0) + SHA256_MSGS1(b->L(2)); diff --git a/target/i386/tcg/bpt_helper.c b/target/i386/tcg/bpt_helper.c index bc34ac27fea..573f74bcb45 100644 --- a/target/i386/tcg/bpt_helper.c +++ b/target/i386/tcg/bpt_helper.c @@ -22,7 +22,7 @@ #include "exec/helper-proto.h" #include "helper-tcg.h" =20 -G_NORETURN void helper_single_step(CPUX86State *env) +G_NORETURN void HELPER(single_step)(CPUX86State *env) { #ifndef CONFIG_USER_ONLY check_hw_breakpoints(env, true); @@ -31,9 +31,9 @@ G_NORETURN void helper_single_step(CPUX86State *env) raise_exception(env, EXCP01_DB); } =20 -void helper_rechecking_single_step(CPUX86State *env) +void HELPER(rechecking_single_step)(CPUX86State *env) { if ((env->eflags & TF_MASK) !=3D 0) { - helper_single_step(env); + HELPER(single_step)(env); } } diff --git a/target/i386/tcg/cc_helper.c b/target/i386/tcg/cc_helper.c index b868ef2949f..d9fcd2d9203 100644 --- a/target/i386/tcg/cc_helper.c +++ b/target/i386/tcg/cc_helper.c @@ -60,7 +60,7 @@ static target_ulong compute_all_adcox(target_ulong dst, t= arget_ulong src1, return (src1 & ~(CC_C | CC_O)) | (dst * CC_C) | (src2 * CC_O); } =20 -target_ulong helper_cc_compute_nz(target_ulong dst, target_ulong src1, +target_ulong HELPER(cc_compute_nz)(target_ulong dst, target_ulong src1, int op) { if (CC_OP_HAS_EFLAGS(op)) { @@ -86,7 +86,7 @@ static inline uint32_t compute_aco_mul(target_long src1) return cf + af + of; } =20 -target_ulong helper_cc_compute_all(target_ulong dst, target_ulong src1, +target_ulong HELPER(cc_compute_all)(target_ulong dst, target_ulong src1, target_ulong src2, int op) { uint32_t flags =3D 0; @@ -300,10 +300,10 @@ psz_q: =20 uint32_t cpu_cc_compute_all(CPUX86State *env) { - return helper_cc_compute_all(CC_DST, CC_SRC, CC_SRC2, CC_OP); + return HELPER(cc_compute_all)(CC_DST, CC_SRC, CC_SRC2, CC_OP); } =20 -target_ulong helper_cc_compute_c(target_ulong dst, target_ulong src1, +target_ulong HELPER(cc_compute_c)(target_ulong dst, target_ulong src1, target_ulong src2, int op) { switch (op) { @@ -418,13 +418,13 @@ target_ulong helper_cc_compute_c(target_ulong dst, ta= rget_ulong src1, } } =20 -void helper_write_eflags(CPUX86State *env, target_ulong t0, +void HELPER(write_eflags)(CPUX86State *env, target_ulong t0, uint32_t update_mask) { cpu_load_eflags(env, t0, update_mask); } =20 -target_ulong helper_read_eflags(CPUX86State *env) +target_ulong HELPER(read_eflags)(CPUX86State *env) { uint32_t eflags; =20 @@ -436,7 +436,7 @@ target_ulong helper_read_eflags(CPUX86State *env) return eflags; } =20 -void helper_clts(CPUX86State *env) +void HELPER(clts)(CPUX86State *env) { env->cr[0] &=3D ~CR0_TS_MASK; env->hflags &=3D ~HF_TS_MASK; diff --git a/target/i386/tcg/excp_helper.c b/target/i386/tcg/excp_helper.c index d6410d6fc11..bff67a35fec 100644 --- a/target/i386/tcg/excp_helper.c +++ b/target/i386/tcg/excp_helper.c @@ -26,18 +26,18 @@ #include "helper-tcg.h" #include "qemu/plugin.h" =20 -G_NORETURN void helper_raise_interrupt(CPUX86State *env, int intno, +G_NORETURN void HELPER(raise_interrupt)(CPUX86State *env, int intno, int next_eip_addend) { raise_interrupt(env, intno, next_eip_addend); } =20 -G_NORETURN void helper_raise_exception(CPUX86State *env, int exception_ind= ex) +G_NORETURN void HELPER(raise_exception)(CPUX86State *env, int exception_in= dex) { raise_exception(env, exception_index); } =20 -G_NORETURN void helper_raise_gpf(CPUX86State *env) +G_NORETURN void HELPER(raise_gpf)(CPUX86State *env) { raise_exception_err_ra(env, EXCP0D_GPF, 0, GETPC()); } @@ -148,7 +148,7 @@ G_NORETURN void raise_exception_ra(CPUX86State *env, in= t exception_index, raise_interrupt2(env, exception_index, 0, 0, 0, retaddr); } =20 -G_NORETURN void helper_icebp(CPUX86State *env) +G_NORETURN void HELPER(icebp)(CPUX86State *env) { CPUState *cs =3D env_cpu(env); =20 diff --git a/target/i386/tcg/fpu_helper.c b/target/i386/tcg/fpu_helper.c index 4bbac996326..ef4ca2a0c46 100644 --- a/target/i386/tcg/fpu_helper.c +++ b/target/i386/tcg/fpu_helper.c @@ -238,7 +238,7 @@ static void fpu_raise_exception(CPUX86State *env, uintp= tr_t retaddr) #endif } =20 -void helper_flds_FT0(CPUX86State *env, uint32_t val) +void HELPER(flds_FT0)(CPUX86State *env, uint32_t val) { int old_flags =3D save_exception_flags(env); union { @@ -251,7 +251,7 @@ void helper_flds_FT0(CPUX86State *env, uint32_t val) merge_exception_flags(env, old_flags); } =20 -void helper_fldl_FT0(CPUX86State *env, uint64_t val) +void HELPER(fldl_FT0)(CPUX86State *env, uint64_t val) { int old_flags =3D save_exception_flags(env); union { @@ -264,12 +264,12 @@ void helper_fldl_FT0(CPUX86State *env, uint64_t val) merge_exception_flags(env, old_flags); } =20 -void helper_fildl_FT0(CPUX86State *env, int32_t val) +void HELPER(fildl_FT0)(CPUX86State *env, int32_t val) { FT0 =3D int32_to_floatx80(val, &env->fp_status); } =20 -void helper_flds_ST0(CPUX86State *env, uint32_t val) +void HELPER(flds_ST0)(CPUX86State *env, uint32_t val) { int old_flags =3D save_exception_flags(env); int new_fpstt; @@ -286,7 +286,7 @@ void helper_flds_ST0(CPUX86State *env, uint32_t val) merge_exception_flags(env, old_flags); } =20 -void helper_fldl_ST0(CPUX86State *env, uint64_t val) +void HELPER(fldl_ST0)(CPUX86State *env, uint64_t val) { int old_flags =3D save_exception_flags(env); int new_fpstt; @@ -310,7 +310,7 @@ static FloatX80RoundPrec tmp_maximise_precision(float_s= tatus *st) return old; } =20 -void helper_fildl_ST0(CPUX86State *env, int32_t val) +void HELPER(fildl_ST0)(CPUX86State *env, int32_t val) { int new_fpstt; FloatX80RoundPrec old =3D tmp_maximise_precision(&env->fp_status); @@ -323,7 +323,7 @@ void helper_fildl_ST0(CPUX86State *env, int32_t val) set_floatx80_rounding_precision(old, &env->fp_status); } =20 -void helper_fildll_ST0(CPUX86State *env, int64_t val) +void HELPER(fildll_ST0)(CPUX86State *env, int64_t val) { int new_fpstt; FloatX80RoundPrec old =3D tmp_maximise_precision(&env->fp_status); @@ -336,7 +336,7 @@ void helper_fildll_ST0(CPUX86State *env, int64_t val) set_floatx80_rounding_precision(old, &env->fp_status); } =20 -uint32_t helper_fsts_ST0(CPUX86State *env) +uint32_t HELPER(fsts_ST0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); union { @@ -349,7 +349,7 @@ uint32_t helper_fsts_ST0(CPUX86State *env) return u.i; } =20 -uint64_t helper_fstl_ST0(CPUX86State *env) +uint64_t HELPER(fstl_ST0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); union { @@ -362,7 +362,7 @@ uint64_t helper_fstl_ST0(CPUX86State *env) return u.i; } =20 -int32_t helper_fist_ST0(CPUX86State *env) +int32_t HELPER(fist_ST0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); int32_t val; @@ -376,7 +376,7 @@ int32_t helper_fist_ST0(CPUX86State *env) return val; } =20 -int32_t helper_fistl_ST0(CPUX86State *env) +int32_t HELPER(fistl_ST0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); int32_t val; @@ -389,7 +389,7 @@ int32_t helper_fistl_ST0(CPUX86State *env) return val; } =20 -int64_t helper_fistll_ST0(CPUX86State *env) +int64_t HELPER(fistll_ST0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); int64_t val; @@ -402,7 +402,7 @@ int64_t helper_fistll_ST0(CPUX86State *env) return val; } =20 -int32_t helper_fistt_ST0(CPUX86State *env) +int32_t HELPER(fistt_ST0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); int32_t val; @@ -416,7 +416,7 @@ int32_t helper_fistt_ST0(CPUX86State *env) return val; } =20 -int32_t helper_fisttl_ST0(CPUX86State *env) +int32_t HELPER(fisttl_ST0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); int32_t val; @@ -429,7 +429,7 @@ int32_t helper_fisttl_ST0(CPUX86State *env) return val; } =20 -int64_t helper_fisttll_ST0(CPUX86State *env) +int64_t HELPER(fisttll_ST0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); int64_t val; @@ -442,7 +442,7 @@ int64_t helper_fisttll_ST0(CPUX86State *env) return val; } =20 -void helper_fldt_ST0(CPUX86State *env, target_ulong ptr) +void HELPER(fldt_ST0)(CPUX86State *env, target_ulong ptr) { int new_fpstt; X86Access ac; @@ -455,7 +455,7 @@ void helper_fldt_ST0(CPUX86State *env, target_ulong ptr) env->fptags[new_fpstt] =3D 0; /* validate stack entry */ } =20 -void helper_fstt_ST0(CPUX86State *env, target_ulong ptr) +void HELPER(fstt_ST0)(CPUX86State *env, target_ulong ptr) { X86Access ac; =20 @@ -463,23 +463,23 @@ void helper_fstt_ST0(CPUX86State *env, target_ulong p= tr) do_fstt(&ac, ptr, ST0); } =20 -void helper_fpush(CPUX86State *env) +void HELPER(fpush)(CPUX86State *env) { fpush(env); } =20 -void helper_fpop(CPUX86State *env) +void HELPER(fpop)(CPUX86State *env) { fpop(env); } =20 -void helper_fdecstp(CPUX86State *env) +void HELPER(fdecstp)(CPUX86State *env) { env->fpstt =3D (env->fpstt - 1) & 7; env->fpus &=3D ~0x4700; } =20 -void helper_fincstp(CPUX86State *env) +void HELPER(fincstp)(CPUX86State *env) { env->fpstt =3D (env->fpstt + 1) & 7; env->fpus &=3D ~0x4700; @@ -487,33 +487,33 @@ void helper_fincstp(CPUX86State *env) =20 /* FPU move */ =20 -void helper_ffree_STN(CPUX86State *env, int st_index) +void HELPER(ffree_STN)(CPUX86State *env, int st_index) { env->fptags[(env->fpstt + st_index) & 7] =3D 1; } =20 -void helper_fmov_ST0_FT0(CPUX86State *env) +void HELPER(fmov_ST0_FT0)(CPUX86State *env) { ST0 =3D FT0; } =20 -void helper_fmov_FT0_STN(CPUX86State *env, int st_index) +void HELPER(fmov_FT0_STN)(CPUX86State *env, int st_index) { FT0 =3D ST(st_index); } =20 -void helper_fmov_ST0_STN(CPUX86State *env, int st_index) +void HELPER(fmov_ST0_STN)(CPUX86State *env, int st_index) { ST0 =3D ST(st_index); } =20 -void helper_fmov_STN_ST0(CPUX86State *env, int st_index) +void HELPER(fmov_STN_ST0)(CPUX86State *env, int st_index) { ST(st_index) =3D ST0; env->fptags[(env->fpstt + st_index) & 7] =3D 0; } =20 -void helper_fxchg_ST0_STN(CPUX86State *env, int st_index) +void HELPER(fxchg_ST0_STN)(CPUX86State *env, int st_index) { floatx80 tmp; =20 @@ -532,7 +532,7 @@ void helper_fxchg_ST0_STN(CPUX86State *env, int st_inde= x) =20 static const int fcom_ccval[4] =3D {0x0100, 0x4000, 0x0000, 0x4500}; =20 -void helper_fcom_ST0_FT0(CPUX86State *env) +void HELPER(fcom_ST0_FT0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); FloatRelation ret; @@ -543,7 +543,7 @@ void helper_fcom_ST0_FT0(CPUX86State *env) merge_exception_flags(env, old_flags); } =20 -void helper_fucom_ST0_FT0(CPUX86State *env) +void HELPER(fucom_ST0_FT0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); FloatRelation ret; @@ -556,7 +556,7 @@ void helper_fucom_ST0_FT0(CPUX86State *env) =20 static const int fcomi_ccval[4] =3D {CC_C, CC_Z, 0, CC_Z | CC_P | CC_C}; =20 -void helper_fcomi_ST0_FT0(CPUX86State *env) +void HELPER(fcomi_ST0_FT0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); FloatRelation ret; @@ -568,7 +568,7 @@ void helper_fcomi_ST0_FT0(CPUX86State *env) merge_exception_flags(env, old_flags); } =20 -void helper_fucomi_ST0_FT0(CPUX86State *env) +void HELPER(fucomi_ST0_FT0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); FloatRelation ret; @@ -580,75 +580,75 @@ void helper_fucomi_ST0_FT0(CPUX86State *env) merge_exception_flags(env, old_flags); } =20 -void helper_fadd_ST0_FT0(CPUX86State *env) +void HELPER(fadd_ST0_FT0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); ST0 =3D floatx80_add(ST0, FT0, &env->fp_status); merge_exception_flags(env, old_flags); } =20 -void helper_fmul_ST0_FT0(CPUX86State *env) +void HELPER(fmul_ST0_FT0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); ST0 =3D floatx80_mul(ST0, FT0, &env->fp_status); merge_exception_flags(env, old_flags); } =20 -void helper_fsub_ST0_FT0(CPUX86State *env) +void HELPER(fsub_ST0_FT0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); ST0 =3D floatx80_sub(ST0, FT0, &env->fp_status); merge_exception_flags(env, old_flags); } =20 -void helper_fsubr_ST0_FT0(CPUX86State *env) +void HELPER(fsubr_ST0_FT0)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); ST0 =3D floatx80_sub(FT0, ST0, &env->fp_status); merge_exception_flags(env, old_flags); } =20 -void helper_fdiv_ST0_FT0(CPUX86State *env) +void HELPER(fdiv_ST0_FT0)(CPUX86State *env) { ST0 =3D helper_fdiv(env, ST0, FT0); } =20 -void helper_fdivr_ST0_FT0(CPUX86State *env) +void HELPER(fdivr_ST0_FT0)(CPUX86State *env) { ST0 =3D helper_fdiv(env, FT0, ST0); } =20 /* fp operations between STN and ST0 */ =20 -void helper_fadd_STN_ST0(CPUX86State *env, int st_index) +void HELPER(fadd_STN_ST0)(CPUX86State *env, int st_index) { int old_flags =3D save_exception_flags(env); ST(st_index) =3D floatx80_add(ST(st_index), ST0, &env->fp_status); merge_exception_flags(env, old_flags); } =20 -void helper_fmul_STN_ST0(CPUX86State *env, int st_index) +void HELPER(fmul_STN_ST0)(CPUX86State *env, int st_index) { int old_flags =3D save_exception_flags(env); ST(st_index) =3D floatx80_mul(ST(st_index), ST0, &env->fp_status); merge_exception_flags(env, old_flags); } =20 -void helper_fsub_STN_ST0(CPUX86State *env, int st_index) +void HELPER(fsub_STN_ST0)(CPUX86State *env, int st_index) { int old_flags =3D save_exception_flags(env); ST(st_index) =3D floatx80_sub(ST(st_index), ST0, &env->fp_status); merge_exception_flags(env, old_flags); } =20 -void helper_fsubr_STN_ST0(CPUX86State *env, int st_index) +void HELPER(fsubr_STN_ST0)(CPUX86State *env, int st_index) { int old_flags =3D save_exception_flags(env); ST(st_index) =3D floatx80_sub(ST0, ST(st_index), &env->fp_status); merge_exception_flags(env, old_flags); } =20 -void helper_fdiv_STN_ST0(CPUX86State *env, int st_index) +void HELPER(fdiv_STN_ST0)(CPUX86State *env, int st_index) { floatx80 *p; =20 @@ -656,7 +656,7 @@ void helper_fdiv_STN_ST0(CPUX86State *env, int st_index) *p =3D helper_fdiv(env, *p, ST0); } =20 -void helper_fdivr_STN_ST0(CPUX86State *env, int st_index) +void HELPER(fdivr_STN_ST0)(CPUX86State *env, int st_index) { floatx80 *p; =20 @@ -665,22 +665,22 @@ void helper_fdivr_STN_ST0(CPUX86State *env, int st_in= dex) } =20 /* misc FPU operations */ -void helper_fchs_ST0(CPUX86State *env) +void HELPER(fchs_ST0)(CPUX86State *env) { ST0 =3D floatx80_chs(ST0); } =20 -void helper_fabs_ST0(CPUX86State *env) +void HELPER(fabs_ST0)(CPUX86State *env) { ST0 =3D floatx80_abs(ST0); } =20 -void helper_fld1_ST0(CPUX86State *env) +void HELPER(fld1_ST0)(CPUX86State *env) { ST0 =3D floatx80_one; } =20 -void helper_fldl2t_ST0(CPUX86State *env) +void HELPER(fldl2t_ST0)(CPUX86State *env) { switch (env->fpuc & FPU_RC_MASK) { case FPU_RC_UP: @@ -692,7 +692,7 @@ void helper_fldl2t_ST0(CPUX86State *env) } } =20 -void helper_fldl2e_ST0(CPUX86State *env) +void HELPER(fldl2e_ST0)(CPUX86State *env) { switch (env->fpuc & FPU_RC_MASK) { case FPU_RC_DOWN: @@ -705,7 +705,7 @@ void helper_fldl2e_ST0(CPUX86State *env) } } =20 -void helper_fldpi_ST0(CPUX86State *env) +void HELPER(fldpi_ST0)(CPUX86State *env) { switch (env->fpuc & FPU_RC_MASK) { case FPU_RC_DOWN: @@ -718,7 +718,7 @@ void helper_fldpi_ST0(CPUX86State *env) } } =20 -void helper_fldlg2_ST0(CPUX86State *env) +void HELPER(fldlg2_ST0)(CPUX86State *env) { switch (env->fpuc & FPU_RC_MASK) { case FPU_RC_DOWN: @@ -731,7 +731,7 @@ void helper_fldlg2_ST0(CPUX86State *env) } } =20 -void helper_fldln2_ST0(CPUX86State *env) +void HELPER(fldln2_ST0)(CPUX86State *env) { switch (env->fpuc & FPU_RC_MASK) { case FPU_RC_DOWN: @@ -744,22 +744,22 @@ void helper_fldln2_ST0(CPUX86State *env) } } =20 -void helper_fldz_ST0(CPUX86State *env) +void HELPER(fldz_ST0)(CPUX86State *env) { ST0 =3D floatx80_zero; } =20 -void helper_fldz_FT0(CPUX86State *env) +void HELPER(fldz_FT0)(CPUX86State *env) { FT0 =3D floatx80_zero; } =20 -uint32_t helper_fnstsw(CPUX86State *env) +uint32_t HELPER(fnstsw)(CPUX86State *env) { return (env->fpus & ~0x3800) | (env->fpstt & 0x7) << 11; } =20 -uint32_t helper_fnstcw(CPUX86State *env) +uint32_t HELPER(fnstcw)(CPUX86State *env) { return env->fpuc; } @@ -800,17 +800,17 @@ void update_fp_status(CPUX86State *env) set_floatx80_rounding_precision(rnd_prec, &env->fp_status); } =20 -void helper_fldcw(CPUX86State *env, uint32_t val) +void HELPER(fldcw)(CPUX86State *env, uint32_t val) { cpu_set_fpuc(env, val); } =20 -void helper_fclex(CPUX86State *env) +void HELPER(fclex)(CPUX86State *env) { env->fpus &=3D 0x7f00; } =20 -void helper_fwait(CPUX86State *env) +void HELPER(fwait)(CPUX86State *env) { if (env->fpus & FPUS_SE) { fpu_raise_exception(env, GETPC()); @@ -836,14 +836,14 @@ static void do_fninit(CPUX86State *env) env->fptags[7] =3D 1; } =20 -void helper_fninit(CPUX86State *env) +void HELPER(fninit)(CPUX86State *env) { do_fninit(env); } =20 /* BCD ops */ =20 -void helper_fbld_ST0(CPUX86State *env, target_ulong ptr) +void HELPER(fbld_ST0)(CPUX86State *env, target_ulong ptr) { X86Access ac; floatx80 tmp; @@ -866,7 +866,7 @@ void helper_fbld_ST0(CPUX86State *env, target_ulong ptr) ST0 =3D tmp; } =20 -void helper_fbst_ST0(CPUX86State *env, target_ulong ptr) +void HELPER(fbst_ST0)(CPUX86State *env, target_ulong ptr) { int old_flags =3D save_exception_flags(env); int v; @@ -1141,7 +1141,7 @@ static const struct f2xm1_data f2xm1_table[65] =3D { make_floatx80_init(0x3fff, 0x8000000000000000ULL) }, }; =20 -void helper_f2xm1(CPUX86State *env) +void HELPER(f2xm1)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); uint64_t sig =3D extractFloatx80Frac(ST0); @@ -1302,7 +1302,7 @@ void helper_f2xm1(CPUX86State *env) merge_exception_flags(env, old_flags); } =20 -void helper_fptan(CPUX86State *env) +void HELPER(fptan)(CPUX86State *env) { double fptemp =3D floatx80_to_double(env, ST0); =20 @@ -1374,7 +1374,7 @@ static const struct fpatan_data fpatan_table[9] =3D { make_floatx80_init(0xbfbc, 0xece675d1fc8f8cbcULL) }, }; =20 -void helper_fpatan(CPUX86State *env) +void HELPER(fpatan)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); uint64_t arg0_sig =3D extractFloatx80Frac(ST0); @@ -1821,7 +1821,7 @@ static inline void fpush_fxtract(CPUX86State *env) env->fptags[(env->fpstt + 1) & 7] =3D 0; } =20 -void helper_fxtract(CPUX86State *env) +void HELPER(fxtract)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); CPU_LDoubleU temp; @@ -1921,12 +1921,12 @@ static void helper_fprem_common(CPUX86State *env, b= ool mod) merge_exception_flags(env, old_flags); } =20 -void helper_fprem1(CPUX86State *env) +void HELPER(fprem1)(CPUX86State *env) { helper_fprem_common(env, false); } =20 -void helper_fprem(CPUX86State *env) +void HELPER(fprem)(CPUX86State *env) { helper_fprem_common(env, true); } @@ -2066,7 +2066,7 @@ static void helper_fyl2x_common(CPUX86State *env, flo= atx80 arg, int32_t *exp, *sig1 =3D asig1; } =20 -void helper_fyl2xp1(CPUX86State *env) +void HELPER(fyl2xp1)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); uint64_t arg0_sig =3D extractFloatx80Frac(ST0); @@ -2164,7 +2164,7 @@ void helper_fyl2xp1(CPUX86State *env) merge_exception_flags(env, old_flags); } =20 -void helper_fyl2x(CPUX86State *env) +void HELPER(fyl2x)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); uint64_t arg0_sig =3D extractFloatx80Frac(ST0); @@ -2311,7 +2311,7 @@ void helper_fyl2x(CPUX86State *env) merge_exception_flags(env, old_flags); } =20 -void helper_fsqrt(CPUX86State *env) +void HELPER(fsqrt)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); if (floatx80_is_neg(ST0)) { @@ -2322,7 +2322,7 @@ void helper_fsqrt(CPUX86State *env) merge_exception_flags(env, old_flags); } =20 -void helper_fsincos(CPUX86State *env) +void HELPER(fsincos)(CPUX86State *env) { double fptemp =3D floatx80_to_double(env, ST0); =20 @@ -2337,14 +2337,14 @@ void helper_fsincos(CPUX86State *env) } } =20 -void helper_frndint(CPUX86State *env) +void HELPER(frndint)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); ST0 =3D floatx80_round_to_int(ST0, &env->fp_status); merge_exception_flags(env, old_flags); } =20 -void helper_fscale(CPUX86State *env) +void HELPER(fscale)(CPUX86State *env) { int old_flags =3D save_exception_flags(env); if (floatx80_invalid_encoding(ST1, &env->fp_status) || @@ -2395,7 +2395,7 @@ void helper_fscale(CPUX86State *env) merge_exception_flags(env, old_flags); } =20 -void helper_fsin(CPUX86State *env) +void HELPER(fsin)(CPUX86State *env) { double fptemp =3D floatx80_to_double(env, ST0); =20 @@ -2408,7 +2408,7 @@ void helper_fsin(CPUX86State *env) } } =20 -void helper_fcos(CPUX86State *env) +void HELPER(fcos)(CPUX86State *env) { double fptemp =3D floatx80_to_double(env, ST0); =20 @@ -2421,7 +2421,7 @@ void helper_fcos(CPUX86State *env) } } =20 -void helper_fxam_ST0(CPUX86State *env) +void HELPER(fxam_ST0)(CPUX86State *env) { CPU_LDoubleU temp; int expdif; @@ -2504,7 +2504,7 @@ static void do_fstenv(X86Access *ac, target_ulong ptr= , int data32) } } =20 -void helper_fstenv(CPUX86State *env, target_ulong ptr, int data32) +void HELPER(fstenv)(CPUX86State *env, target_ulong ptr, int data32) { X86Access ac; =20 @@ -2544,7 +2544,7 @@ static void do_fldenv(X86Access *ac, target_ulong ptr= , int data32) } } =20 -void helper_fldenv(CPUX86State *env, target_ulong ptr, int data32) +void HELPER(fldenv)(CPUX86State *env, target_ulong ptr, int data32) { X86Access ac; =20 @@ -2570,7 +2570,7 @@ static void do_fsave(X86Access *ac, target_ulong ptr,= int data32) } } =20 -void helper_fsave(CPUX86State *env, target_ulong ptr, int data32) +void HELPER(fsave)(CPUX86State *env, target_ulong ptr, int data32) { int size =3D (14 << data32) + 80; X86Access ac; @@ -2594,7 +2594,7 @@ static void do_frstor(X86Access *ac, target_ulong ptr= , int data32) } } =20 -void helper_frstor(CPUX86State *env, target_ulong ptr, int data32) +void HELPER(frstor)(CPUX86State *env, target_ulong ptr, int data32) { int size =3D (14 << data32) + 80; X86Access ac; @@ -2741,7 +2741,7 @@ static void do_fxsave(X86Access *ac, target_ulong ptr) } } =20 -void helper_fxsave(CPUX86State *env, target_ulong ptr) +void HELPER(fxsave)(CPUX86State *env, target_ulong ptr) { uintptr_t ra =3D GETPC(); X86Access ac; @@ -2839,12 +2839,12 @@ static void do_xsave(CPUX86State *env, target_ulong= ptr, uint64_t rfbm, do_xsave_access(&ac, ptr, rfbm, inuse, opt); } =20 -void helper_xsave(CPUX86State *env, target_ulong ptr, uint64_t rfbm) +void HELPER(xsave)(CPUX86State *env, target_ulong ptr, uint64_t rfbm) { do_xsave(env, ptr, rfbm, get_xinuse(env), rfbm, GETPC()); } =20 -void helper_xsaveopt(CPUX86State *env, target_ulong ptr, uint64_t rfbm) +void HELPER(xsaveopt)(CPUX86State *env, target_ulong ptr, uint64_t rfbm) { uint64_t inuse =3D get_xinuse(env); do_xsave(env, ptr, rfbm, inuse, inuse, GETPC()); @@ -3018,7 +3018,7 @@ static void do_clear_apx(X86Access *ac) } #endif =20 -void helper_fxrstor(CPUX86State *env, target_ulong ptr) +void HELPER(fxrstor)(CPUX86State *env, target_ulong ptr) { uintptr_t ra =3D GETPC(); X86Access ac; @@ -3129,7 +3129,7 @@ static void do_xrstor(X86Access *ac, target_ulong ptr, =20 #undef XO =20 -void helper_xrstor(CPUX86State *env, target_ulong ptr, uint64_t rfbm) +void HELPER(xrstor)(CPUX86State *env, target_ulong ptr, uint64_t rfbm) { uintptr_t ra =3D GETPC(); X86Access ac; @@ -3251,7 +3251,7 @@ bool cpu_x86_xrstor(CPUX86State *env, void *host, siz= e_t len, uint64_t rfbm) } #endif =20 -uint64_t helper_xgetbv(CPUX86State *env, uint32_t ecx) +uint64_t HELPER(xgetbv)(CPUX86State *env, uint32_t ecx) { /* The OS must have enabled XSAVE. */ if (!(env->cr[4] & CR4_OSXSAVE_MASK)) { @@ -3270,7 +3270,7 @@ uint64_t helper_xgetbv(CPUX86State *env, uint32_t ecx) raise_exception_ra(env, EXCP0D_GPF, GETPC()); } =20 -void helper_xsetbv(CPUX86State *env, uint32_t ecx, uint64_t mask) +void HELPER(xsetbv)(CPUX86State *env, uint32_t ecx, uint64_t mask) { uint32_t dummy, ena_lo, ena_hi; uint64_t ena; @@ -3359,24 +3359,24 @@ void update_mxcsr_from_sse_status(CPUX86State *env) 0)); } =20 -void helper_update_mxcsr(CPUX86State *env) +void HELPER(update_mxcsr)(CPUX86State *env) { update_mxcsr_from_sse_status(env); } =20 -void helper_ldmxcsr(CPUX86State *env, uint32_t val) +void HELPER(ldmxcsr)(CPUX86State *env, uint32_t val) { cpu_set_mxcsr(env, val); } =20 -void helper_enter_mmx(CPUX86State *env) +void HELPER(enter_mmx)(CPUX86State *env) { env->fpstt =3D 0; *(uint32_t *)(env->fptags) =3D 0; *(uint32_t *)(env->fptags + 4) =3D 0; } =20 -void helper_emms(CPUX86State *env) +void HELPER(emms)(CPUX86State *env) { /* set to empty state */ *(uint32_t *)(env->fptags) =3D 0x01010101; diff --git a/target/i386/tcg/int_helper.c b/target/i386/tcg/int_helper.c index 46741d9f68a..772e6adcc86 100644 --- a/target/i386/tcg/int_helper.c +++ b/target/i386/tcg/int_helper.c @@ -30,7 +30,7 @@ =20 /* division, flags are undefined */ =20 -void helper_divb_AL(CPUX86State *env, target_ulong t0) +void HELPER(divb_AL)(CPUX86State *env, target_ulong t0) { unsigned int num, den, q, r; =20 @@ -48,7 +48,7 @@ void helper_divb_AL(CPUX86State *env, target_ulong t0) env->regs[R_EAX] =3D (env->regs[R_EAX] & ~0xffff) | (r << 8) | q; } =20 -void helper_idivb_AL(CPUX86State *env, target_ulong t0) +void HELPER(idivb_AL)(CPUX86State *env, target_ulong t0) { int num, den, q, r; =20 @@ -66,7 +66,7 @@ void helper_idivb_AL(CPUX86State *env, target_ulong t0) env->regs[R_EAX] =3D (env->regs[R_EAX] & ~0xffff) | (r << 8) | q; } =20 -void helper_divw_AX(CPUX86State *env, target_ulong t0) +void HELPER(divw_AX)(CPUX86State *env, target_ulong t0) { unsigned int num, den, q, r; =20 @@ -85,7 +85,7 @@ void helper_divw_AX(CPUX86State *env, target_ulong t0) env->regs[R_EDX] =3D (env->regs[R_EDX] & ~0xffff) | r; } =20 -void helper_idivw_AX(CPUX86State *env, target_ulong t0) +void HELPER(idivw_AX)(CPUX86State *env, target_ulong t0) { int num, den, q, r; =20 @@ -104,7 +104,7 @@ void helper_idivw_AX(CPUX86State *env, target_ulong t0) env->regs[R_EDX] =3D (env->regs[R_EDX] & ~0xffff) | r; } =20 -void helper_divl_EAX(CPUX86State *env, target_ulong t0) +void HELPER(divl_EAX)(CPUX86State *env, target_ulong t0) { unsigned int den, r; uint64_t num, q; @@ -123,7 +123,7 @@ void helper_divl_EAX(CPUX86State *env, target_ulong t0) env->regs[R_EDX] =3D (uint32_t)r; } =20 -void helper_idivl_EAX(CPUX86State *env, target_ulong t0) +void HELPER(idivl_EAX)(CPUX86State *env, target_ulong t0) { int den, r; int64_t num, q; @@ -144,7 +144,7 @@ void helper_idivl_EAX(CPUX86State *env, target_ulong t0) =20 /* bcd */ =20 -target_ulong helper_aam(target_ulong al, target_ulong base) +target_ulong HELPER(aam)(target_ulong al, target_ulong base) { int ah; =20 @@ -154,7 +154,7 @@ target_ulong helper_aam(target_ulong al, target_ulong b= ase) return al | (ah << 8); } =20 -target_ulong helper_aad(target_ulong ax, target_ulong base) +target_ulong HELPER(aad)(target_ulong ax, target_ulong base) { int al, ah; =20 @@ -164,7 +164,7 @@ target_ulong helper_aad(target_ulong ax, target_ulong b= ase) return al; } =20 -void helper_aaa(CPUX86State *env) +void HELPER(aaa)(CPUX86State *env) { int icarry; int al, ah, af; @@ -189,7 +189,7 @@ void helper_aaa(CPUX86State *env) CC_OP =3D CC_OP_EFLAGS; } =20 -void helper_aas(CPUX86State *env) +void HELPER(aas)(CPUX86State *env) { int icarry; int al, ah, af; @@ -214,7 +214,7 @@ void helper_aas(CPUX86State *env) CC_OP =3D CC_OP_EFLAGS; } =20 -void helper_daa(CPUX86State *env) +void HELPER(daa)(CPUX86State *env) { int old_al, al, af, cf; int eflags; @@ -242,7 +242,7 @@ void helper_daa(CPUX86State *env) CC_OP =3D CC_OP_EFLAGS; } =20 -void helper_das(CPUX86State *env) +void HELPER(das)(CPUX86State *env) { int al, al1, af, cf; int eflags; @@ -364,7 +364,7 @@ static int idiv64(uint64_t *plow, uint64_t *phigh, int6= 4_t b) return 0; } =20 -void helper_divq_EAX(CPUX86State *env, target_ulong t0) +void HELPER(divq_EAX)(CPUX86State *env, target_ulong t0) { uint64_t r0, r1; =20 @@ -380,7 +380,7 @@ void helper_divq_EAX(CPUX86State *env, target_ulong t0) env->regs[R_EDX] =3D r1; } =20 -void helper_idivq_EAX(CPUX86State *env, target_ulong t0) +void HELPER(idivq_EAX)(CPUX86State *env, target_ulong t0) { uint64_t r0, r1; =20 @@ -405,7 +405,7 @@ void helper_idivq_EAX(CPUX86State *env, target_ulong t0) # define clztl clz64 #endif =20 -target_ulong helper_pdep(target_ulong src, target_ulong mask) +target_ulong HELPER(pdep)(target_ulong src, target_ulong mask) { target_ulong dest =3D 0; int i, o; @@ -418,7 +418,7 @@ target_ulong helper_pdep(target_ulong src, target_ulong= mask) return dest; } =20 -target_ulong helper_pext(target_ulong src, target_ulong mask) +target_ulong HELPER(pext)(target_ulong src, target_ulong mask) { target_ulong dest =3D 0; int i, o; @@ -434,7 +434,7 @@ target_ulong helper_pext(target_ulong src, target_ulong= mask) /* Test that BIT is enabled in CR4. If not, raise an illegal opcode exception. This reduces the requirements for rare CR4 bits being mapped into HFLAGS. */ -void helper_cr4_testbit(CPUX86State *env, uint32_t bit) +void HELPER(cr4_testbit)(CPUX86State *env, uint32_t bit) { if (unlikely((env->cr[4] & bit) =3D=3D 0)) { raise_exception_ra(env, EXCP06_ILLOP, GETPC()); diff --git a/target/i386/tcg/mem_helper.c b/target/i386/tcg/mem_helper.c index c15a32d60ad..1ed75a34920 100644 --- a/target/i386/tcg/mem_helper.c +++ b/target/i386/tcg/mem_helper.c @@ -26,7 +26,7 @@ #include "tcg/tcg.h" #include "helper-tcg.h" =20 -void helper_boundw(CPUX86State *env, target_ulong a0, int v) +void HELPER(boundw)(CPUX86State *env, target_ulong a0, int v) { int low, high; =20 @@ -41,7 +41,7 @@ void helper_boundw(CPUX86State *env, target_ulong a0, int= v) } } =20 -void helper_boundl(CPUX86State *env, target_ulong a0, int v) +void HELPER(boundl)(CPUX86State *env, target_ulong a0, int v) { int low, high; =20 diff --git a/target/i386/tcg/misc_helper.c b/target/i386/tcg/misc_helper.c index f7342871ded..7c1f15953ac 100644 --- a/target/i386/tcg/misc_helper.c +++ b/target/i386/tcg/misc_helper.c @@ -38,7 +38,7 @@ void cpu_load_eflags(CPUX86State *env, int eflags, int up= date_mask) (eflags & update_mask) | 0x2; } =20 -void helper_into(CPUX86State *env, int next_eip_addend) +void HELPER(into)(CPUX86State *env, int next_eip_addend) { int eflags; =20 @@ -48,7 +48,7 @@ void helper_into(CPUX86State *env, int next_eip_addend) } } =20 -void helper_cpuid(CPUX86State *env) +void HELPER(cpuid)(CPUX86State *env) { uint32_t eax, ebx, ecx, edx; =20 @@ -62,7 +62,7 @@ void helper_cpuid(CPUX86State *env) env->regs[R_EDX] =3D edx; } =20 -void helper_rdtsc(CPUX86State *env) +void HELPER(rdtsc)(CPUX86State *env) { uint64_t val; =20 @@ -76,7 +76,7 @@ void helper_rdtsc(CPUX86State *env) env->regs[R_EDX] =3D (uint32_t)(val >> 32); } =20 -G_NORETURN void helper_rdpmc(CPUX86State *env) +G_NORETURN void HELPER(rdpmc)(CPUX86State *env) { if (((env->cr[4] & CR4_PCE_MASK) =3D=3D 0 ) && ((env->hflags & HF_CPL_MASK) !=3D 0)) { @@ -89,20 +89,20 @@ G_NORETURN void helper_rdpmc(CPUX86State *env) raise_exception_err(env, EXCP06_ILLOP, 0); } =20 -G_NORETURN void helper_pause(CPUX86State *env) +G_NORETURN void HELPER(pause)(CPUX86State *env) { CPUState *cs =3D env_cpu(env); =20 /* Do gen_eob() tasks before going back to the main loop. */ do_end_instruction(env); - helper_rechecking_single_step(env); + HELPER(rechecking_single_step)(env); =20 /* Just let another CPU run. */ cs->exception_index =3D EXCP_INTERRUPT; cpu_loop_exit(cs); } =20 -uint64_t helper_rdpkru(CPUX86State *env, uint32_t ecx) +uint64_t HELPER(rdpkru)(CPUX86State *env, uint32_t ecx) { if ((env->cr[4] & CR4_PKE_MASK) =3D=3D 0) { raise_exception_err_ra(env, EXCP06_ILLOP, 0, GETPC()); @@ -114,7 +114,7 @@ uint64_t helper_rdpkru(CPUX86State *env, uint32_t ecx) return env->pkru; } =20 -void helper_wrpkru(CPUX86State *env, uint32_t ecx, uint64_t val) +void HELPER(wrpkru)(CPUX86State *env, uint32_t ecx, uint64_t val) { CPUState *cs =3D env_cpu(env); =20 diff --git a/target/i386/tcg/mpx_helper.c b/target/i386/tcg/mpx_helper.c index 73d33bf5e4a..bbe2c824be2 100644 --- a/target/i386/tcg/mpx_helper.c +++ b/target/i386/tcg/mpx_helper.c @@ -25,7 +25,7 @@ #include "helper-tcg.h" =20 =20 -void helper_bndck(CPUX86State *env, uint32_t fail) +void HELPER(bndck)(CPUX86State *env, uint32_t fail) { if (unlikely(fail)) { env->bndcs_regs.sts =3D 1; @@ -73,7 +73,7 @@ static uint32_t lookup_bte32(CPUX86State *env, uint32_t b= ase, uintptr_t ra) return (extract32(base, 2, 10) << 4) + (bt & ~3); } =20 -uint64_t helper_bndldx64(CPUX86State *env, target_ulong base, target_ulong= ptr) +uint64_t HELPER(bndldx64)(CPUX86State *env, target_ulong base, target_ulon= g ptr) { uintptr_t ra =3D GETPC(); uint64_t bte, lb, ub, pt; @@ -90,7 +90,7 @@ uint64_t helper_bndldx64(CPUX86State *env, target_ulong b= ase, target_ulong ptr) return lb; } =20 -uint64_t helper_bndldx32(CPUX86State *env, target_ulong base, target_ulong= ptr) +uint64_t HELPER(bndldx32)(CPUX86State *env, target_ulong base, target_ulon= g ptr) { uintptr_t ra =3D GETPC(); uint32_t bte, lb, ub, pt; @@ -106,7 +106,7 @@ uint64_t helper_bndldx32(CPUX86State *env, target_ulong= base, target_ulong ptr) return ((uint64_t)ub << 32) | lb; } =20 -void helper_bndstx64(CPUX86State *env, target_ulong base, target_ulong ptr, +void HELPER(bndstx64)(CPUX86State *env, target_ulong base, target_ulong pt= r, uint64_t lb, uint64_t ub) { uintptr_t ra =3D GETPC(); @@ -118,7 +118,7 @@ void helper_bndstx64(CPUX86State *env, target_ulong bas= e, target_ulong ptr, cpu_stq_le_data_ra(env, bte + 16, ptr, ra); } =20 -void helper_bndstx32(CPUX86State *env, target_ulong base, target_ulong ptr, +void HELPER(bndstx32)(CPUX86State *env, target_ulong base, target_ulong pt= r, uint64_t lb, uint64_t ub) { uintptr_t ra =3D GETPC(); @@ -130,7 +130,7 @@ void helper_bndstx32(CPUX86State *env, target_ulong bas= e, target_ulong ptr, cpu_stl_le_data_ra(env, bte + 8, ptr, ra); } =20 -void helper_bnd_jmp(CPUX86State *env) +void HELPER(bnd_jmp)(CPUX86State *env) { if (!(env->hflags2 & HF2_MPX_PR_MASK)) { memset(env->bnd_regs, 0, sizeof(env->bnd_regs)); diff --git a/target/i386/tcg/seg_helper.c b/target/i386/tcg/seg_helper.c index cad19f9ca6b..f1db415be7f 100644 --- a/target/i386/tcg/seg_helper.c +++ b/target/i386/tcg/seg_helper.c @@ -1082,7 +1082,7 @@ static void do_interrupt64(CPUX86State *env, int intn= o, int is_int, } #endif /* TARGET_X86_64 */ =20 -void helper_sysret(CPUX86State *env, int dflag) +void HELPER(sysret)(CPUX86State *env, int dflag) { int cpl, selector; =20 @@ -1283,7 +1283,7 @@ void do_interrupt_x86_hardirq(CPUX86State *env, int i= ntno, int is_hw) do_interrupt_all(env_archcpu(env), intno, 0, 0, 0, is_hw); } =20 -void helper_lldt(CPUX86State *env, int selector) +void HELPER(lldt)(CPUX86State *env, int selector) { SegmentCache *dt; uint32_t e1, e2; @@ -1337,7 +1337,7 @@ void helper_lldt(CPUX86State *env, int selector) env->ldt.selector =3D selector; } =20 -void helper_ltr(CPUX86State *env, int selector) +void HELPER(ltr)(CPUX86State *env, int selector) { SegmentCache *dt; uint32_t e1, e2; @@ -1401,7 +1401,7 @@ void helper_ltr(CPUX86State *env, int selector) } =20 /* only works if protected mode and not VM86. seg_reg must be !=3D R_CS */ -void helper_load_seg(CPUX86State *env, int seg_reg, int selector) +void HELPER(load_seg)(CPUX86State *env, int seg_reg, int selector) { uint32_t e1, e2; int cpl, dpl, rpl; @@ -1489,7 +1489,7 @@ void helper_load_seg(CPUX86State *env, int seg_reg, i= nt selector) } =20 /* protected mode jump */ -void helper_ljmp_protected(CPUX86State *env, int new_cs, target_ulong new_= eip, +void HELPER(ljmp_protected)(CPUX86State *env, int new_cs, target_ulong new= _eip, target_ulong next_eip) { int gate_cs, type; @@ -1630,7 +1630,7 @@ void helper_ljmp_protected(CPUX86State *env, int new_= cs, target_ulong new_eip, } =20 /* real mode call */ -void helper_lcall_real(CPUX86State *env, uint32_t new_cs, uint32_t new_eip, +void HELPER(lcall_real)(CPUX86State *env, uint32_t new_cs, uint32_t new_ei= p, int shift, uint32_t next_eip) { StackAccess sa; @@ -1657,7 +1657,7 @@ void helper_lcall_real(CPUX86State *env, uint32_t new= _cs, uint32_t new_eip, } =20 /* protected mode call */ -void helper_lcall_protected(CPUX86State *env, int new_cs, target_ulong new= _eip, +void HELPER(lcall_protected)(CPUX86State *env, int new_cs, target_ulong ne= w_eip, int shift, target_ulong next_eip) { int new_stack, i; @@ -1964,7 +1964,7 @@ void helper_lcall_protected(CPUX86State *env, int new= _cs, target_ulong new_eip, } =20 /* real and vm86 mode iret */ -void helper_iret_real(CPUX86State *env, int shift) +void HELPER(iret_real)(CPUX86State *env, int shift) { uint32_t new_cs, new_eip, new_eflags; int eflags_mask; @@ -2256,7 +2256,7 @@ static inline void helper_ret_protected(CPUX86State *= env, int shift, env->regs[R_ESP] =3D new_esp; } =20 -void helper_iret_protected(CPUX86State *env, int shift, int next_eip) +void HELPER(iret_protected)(CPUX86State *env, int shift, int next_eip) { int tss_selector, type; uint32_t e1, e2; @@ -2288,12 +2288,12 @@ void helper_iret_protected(CPUX86State *env, int sh= ift, int next_eip) env->hflags2 &=3D ~HF2_NMI_MASK; } =20 -void helper_lret_protected(CPUX86State *env, int shift, int addend) +void HELPER(lret_protected)(CPUX86State *env, int shift, int addend) { helper_ret_protected(env, shift, 0, addend, GETPC()); } =20 -void helper_sysenter(CPUX86State *env) +void HELPER(sysenter)(CPUX86State *env) { if (env->sysenter_cs =3D=3D 0) { raise_exception_err_ra(env, EXCP0D_GPF, 0, GETPC()); @@ -2326,7 +2326,7 @@ void helper_sysenter(CPUX86State *env) env->eip =3D env->sysenter_eip; } =20 -void helper_sysexit(CPUX86State *env, int dflag) +void HELPER(sysexit)(CPUX86State *env, int dflag) { int cpl; =20 @@ -2365,7 +2365,7 @@ void helper_sysexit(CPUX86State *env, int dflag) env->eip =3D env->regs[R_EDX]; } =20 -target_ulong helper_lsl(CPUX86State *env, target_ulong selector1) +target_ulong HELPER(lsl)(CPUX86State *env, target_ulong selector1) { unsigned int limit; uint32_t e1, e2, selector; @@ -2413,7 +2413,7 @@ target_ulong helper_lsl(CPUX86State *env, target_ulon= g selector1) return limit; } =20 -target_ulong helper_lar(CPUX86State *env, target_ulong selector1) +target_ulong HELPER(lar)(CPUX86State *env, target_ulong selector1) { uint32_t e1, e2, selector; int rpl, dpl, cpl, type; @@ -2462,7 +2462,7 @@ target_ulong helper_lar(CPUX86State *env, target_ulon= g selector1) return e2 & 0x00f0ff00; } =20 -void helper_verr(CPUX86State *env, target_ulong selector1) +void HELPER(verr)(CPUX86State *env, target_ulong selector1) { uint32_t e1, e2, eflags, selector; int rpl, dpl, cpl; @@ -2500,7 +2500,7 @@ void helper_verr(CPUX86State *env, target_ulong selec= tor1) CC_OP =3D CC_OP_EFLAGS; } =20 -void helper_verw(CPUX86State *env, target_ulong selector1) +void HELPER(verw)(CPUX86State *env, target_ulong selector1) { uint32_t e1, e2, eflags, selector; int rpl, dpl, cpl; diff --git a/target/i386/tcg/system/bpt_helper.c b/target/i386/tcg/system/b= pt_helper.c index 2feea69c8a1..5ea229d3b32 100644 --- a/target/i386/tcg/system/bpt_helper.c +++ b/target/i386/tcg/system/bpt_helper.c @@ -235,7 +235,7 @@ void breakpoint_handler(CPUState *cs) } } =20 -target_ulong helper_get_dr(CPUX86State *env, int reg) +target_ulong HELPER(get_dr)(CPUX86State *env, int reg) { if (reg >=3D 4 && reg < 6) { if (env->cr[4] & CR4_DE_MASK) { @@ -254,7 +254,7 @@ target_ulong helper_get_dr(CPUX86State *env, int reg) return env->dr[reg]; } =20 -void helper_set_dr(CPUX86State *env, int reg, target_ulong t0) +void HELPER(set_dr)(CPUX86State *env, int reg, target_ulong t0) { if (reg >=3D 4 && reg < 6) { if (env->cr[4] & CR4_DE_MASK) { @@ -292,7 +292,7 @@ void helper_set_dr(CPUX86State *env, int reg, target_ul= ong t0) } =20 /* Check if Port I/O is trapped by a breakpoint. */ -void helper_bpt_io(CPUX86State *env, uint32_t port, +void HELPER(bpt_io)(CPUX86State *env, uint32_t port, uint32_t size, target_ulong next_eip) { target_ulong dr7 =3D env->dr[7]; diff --git a/target/i386/tcg/system/misc_helper.c b/target/i386/tcg/system/= misc_helper.c index 2998b1aae75..a77da599da8 100644 --- a/target/i386/tcg/system/misc_helper.c +++ b/target/i386/tcg/system/misc_helper.c @@ -29,43 +29,43 @@ #include "tcg/helper-tcg.h" #include "hw/i386/apic.h" =20 -void helper_outb(CPUX86State *env, uint32_t port, uint32_t data) +void HELPER(outb)(CPUX86State *env, uint32_t port, uint32_t data) { address_space_stb(&address_space_io, port, data, cpu_get_mem_attrs(env), NULL); } =20 -target_ulong helper_inb(CPUX86State *env, uint32_t port) +target_ulong HELPER(inb)(CPUX86State *env, uint32_t port) { return address_space_ldub(&address_space_io, port, cpu_get_mem_attrs(env), NULL); } =20 -void helper_outw(CPUX86State *env, uint32_t port, uint32_t data) +void HELPER(outw)(CPUX86State *env, uint32_t port, uint32_t data) { address_space_stw_le(&address_space_io, port, data, cpu_get_mem_attrs(env), NULL); } =20 -target_ulong helper_inw(CPUX86State *env, uint32_t port) +target_ulong HELPER(inw)(CPUX86State *env, uint32_t port) { return address_space_lduw_le(&address_space_io, port, cpu_get_mem_attrs(env), NULL); } =20 -void helper_outl(CPUX86State *env, uint32_t port, uint32_t data) +void HELPER(outl)(CPUX86State *env, uint32_t port, uint32_t data) { address_space_stl_le(&address_space_io, port, data, cpu_get_mem_attrs(env), NULL); } =20 -target_ulong helper_inl(CPUX86State *env, uint32_t port) +target_ulong HELPER(inl)(CPUX86State *env, uint32_t port) { return address_space_ldl_le(&address_space_io, port, cpu_get_mem_attrs(env), NULL); } =20 -target_ulong helper_read_cr8(CPUX86State *env) +target_ulong HELPER(read_cr8)(CPUX86State *env) { if (!(env->hflags2 & HF2_VINTR_MASK)) { return cpu_get_apic_tpr(env_archcpu(env)->apic_state); @@ -74,7 +74,7 @@ target_ulong helper_read_cr8(CPUX86State *env) } } =20 -void helper_write_crN(CPUX86State *env, int reg, target_ulong t0) +void HELPER(write_crN)(CPUX86State *env, int reg, target_ulong t0) { switch (reg) { case 0: @@ -130,7 +130,7 @@ void helper_write_crN(CPUX86State *env, int reg, target= _ulong t0) } } =20 -void helper_wrmsr(CPUX86State *env) +void HELPER(wrmsr)(CPUX86State *env) { uint64_t val; CPUState *cs =3D env_cpu(env); @@ -327,7 +327,7 @@ error: raise_exception_err_ra(env, EXCP0D_GPF, 0, GETPC()); } =20 -void helper_rdmsr(CPUX86State *env) +void HELPER(rdmsr)(CPUX86State *env) { X86CPU *x86_cpu =3D env_archcpu(env); uint64_t val; @@ -502,12 +502,12 @@ void helper_rdmsr(CPUX86State *env) env->regs[R_EDX] =3D (uint32_t)(val >> 32); } =20 -void helper_flush_page(CPUX86State *env, target_ulong addr) +void HELPER(flush_page)(CPUX86State *env, target_ulong addr) { tlb_flush_page(env_cpu(env), addr); } =20 -G_NORETURN void helper_hlt(CPUX86State *env) +G_NORETURN void HELPER(hlt)(CPUX86State *env) { CPUState *cs =3D env_cpu(env); =20 @@ -517,7 +517,7 @@ G_NORETURN void helper_hlt(CPUX86State *env) cpu_loop_exit(cs); } =20 -void helper_monitor(CPUX86State *env, target_ulong ptr) +void HELPER(monitor)(CPUX86State *env, target_ulong ptr) { if ((uint32_t)env->regs[R_ECX] !=3D 0) { raise_exception_ra(env, EXCP0D_GPF, GETPC()); @@ -526,7 +526,7 @@ void helper_monitor(CPUX86State *env, target_ulong ptr) cpu_svm_check_intercept_param(env, SVM_EXIT_MONITOR, 0, GETPC()); } =20 -G_NORETURN void helper_mwait(CPUX86State *env, int next_eip_addend) +G_NORETURN void HELPER(mwait)(CPUX86State *env, int next_eip_addend) { CPUState *cs =3D env_cpu(env); =20 @@ -538,8 +538,8 @@ G_NORETURN void helper_mwait(CPUX86State *env, int next= _eip_addend) =20 /* XXX: not complete but not completely erroneous */ if (cs->cpu_index !=3D 0 || CPU_NEXT(cs) !=3D NULL) { - helper_pause(env); + HELPER(pause)(env); } else { - helper_hlt(env); + HELPER(hlt)(env); } } diff --git a/target/i386/tcg/system/seg_helper.c b/target/i386/tcg/system/s= eg_helper.c index 8c7856be81e..8e038c79267 100644 --- a/target/i386/tcg/system/seg_helper.c +++ b/target/i386/tcg/system/seg_helper.c @@ -27,7 +27,7 @@ #include "tcg/helper-tcg.h" #include "../seg_helper.h" =20 -void helper_syscall(CPUX86State *env, int next_eip_addend) +void HELPER(syscall)(CPUX86State *env, int next_eip_addend) { int selector; =20 @@ -225,7 +225,7 @@ bool x86_cpu_exec_interrupt(CPUState *cs, int interrupt= _request) } =20 /* check if Port I/O is allowed in TSS */ -void helper_check_io(CPUX86State *env, uint32_t addr, uint32_t size) +void HELPER(check_io)(CPUX86State *env, uint32_t addr, uint32_t size) { uintptr_t retaddr =3D GETPC(); uint32_t io_offset, val, mask; diff --git a/target/i386/tcg/system/smm_helper.c b/target/i386/tcg/system/s= mm_helper.c index 4bbe18a86fb..ae705752632 100644 --- a/target/i386/tcg/system/smm_helper.c +++ b/target/i386/tcg/system/smm_helper.c @@ -178,7 +178,7 @@ void do_smm_enter(X86CPU *cpu) env->cr[0] & ~(CR0_PE_MASK | CR0_EM_MASK | CR0_TS_M= ASK | CR0_PG_MASK)); cpu_x86_update_cr4(env, 0); - helper_set_dr(env, 7, 0x00000400); + HELPER(set_dr)(env, 7, 0x00000400); =20 cpu_x86_load_seg_cache(env, R_CS, (env->smbase >> 4) & 0xffff, env->sm= base, 0xffffffff, @@ -243,8 +243,8 @@ static void rsm_load_regs_64(CPUX86State *env) env->eip =3D x86_ldq_phys(cs, sm_state + 0x7f78); cpu_load_eflags(env, x86_ldl_phys(cs, sm_state + 0x7f70), ~(CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C | DF_MASK)); - helper_set_dr(env, 6, x86_ldl_phys(cs, sm_state + 0x7f68)); - helper_set_dr(env, 7, x86_ldl_phys(cs, sm_state + 0x7f60)); + HELPER(set_dr)(env, 6, x86_ldl_phys(cs, sm_state + 0x7f68)); + HELPER(set_dr)(env, 7, x86_ldl_phys(cs, sm_state + 0x7f60)); =20 cpu_x86_update_cr4(env, x86_ldl_phys(cs, sm_state + 0x7f48)); cpu_x86_update_cr3(env, x86_ldq_phys(cs, sm_state + 0x7f50)); @@ -291,8 +291,8 @@ static void rsm_load_regs_32(CPUX86State *env) env->regs[R_EDX] =3D x86_ldl_phys(cs, sm_state + 0x7fd8); env->regs[R_ECX] =3D x86_ldl_phys(cs, sm_state + 0x7fd4); env->regs[R_EAX] =3D x86_ldl_phys(cs, sm_state + 0x7fd0); - helper_set_dr(env, 6, x86_ldl_phys(cs, sm_state + 0x7fcc)); - helper_set_dr(env, 7, x86_ldl_phys(cs, sm_state + 0x7fc8)); + HELPER(set_dr)(env, 6, x86_ldl_phys(cs, sm_state + 0x7fcc)); + HELPER(set_dr)(env, 7, x86_ldl_phys(cs, sm_state + 0x7fc8)); =20 env->tr.selector =3D x86_ldl_phys(cs, sm_state + 0x7fc4) & 0xffff; env->tr.base =3D x86_ldl_phys(cs, sm_state + 0x7f64); @@ -332,7 +332,7 @@ static void rsm_load_regs_32(CPUX86State *env) } } =20 -void helper_rsm(CPUX86State *env) +void HELPER(rsm)(CPUX86State *env) { X86CPU *cpu =3D env_archcpu(env); =20 diff --git a/target/i386/tcg/system/svm_helper.c b/target/i386/tcg/system/s= vm_helper.c index 52a234e7fac..9c040422c1f 100644 --- a/target/i386/tcg/system/svm_helper.c +++ b/target/i386/tcg/system/svm_helper.c @@ -153,7 +153,7 @@ static inline bool virtual_gif_set(CPUX86State *env) return !virtual_gif_enabled(env) || (env->int_ctl & V_GIF_MASK); } =20 -void helper_vmrun(CPUX86State *env, int aflag, int next_eip_addend) +void HELPER(vmrun)(CPUX86State *env, int aflag, int next_eip_addend) { CPUState *cs =3D env_cpu(env); X86CPU *cpu =3D env_archcpu(env); @@ -469,13 +469,13 @@ void helper_vmrun(CPUX86State *env, int aflag, int ne= xt_eip_addend) } } =20 -void helper_vmmcall(CPUX86State *env) +void HELPER(vmmcall)(CPUX86State *env) { cpu_svm_check_intercept_param(env, SVM_EXIT_VMMCALL, 0, GETPC()); raise_exception(env, EXCP06_ILLOP); } =20 -void helper_vmload(CPUX86State *env, int aflag) +void HELPER(vmload)(CPUX86State *env, int aflag) { int mmu_idx =3D MMU_PHYS_IDX; target_ulong addr; @@ -539,7 +539,7 @@ void helper_vmload(CPUX86State *env, int aflag) mmu_idx, 0); } =20 -void helper_vmsave(CPUX86State *env, int aflag) +void HELPER(vmsave)(CPUX86State *env, int aflag) { int mmu_idx =3D MMU_PHYS_IDX; target_ulong addr; @@ -590,7 +590,7 @@ void helper_vmsave(CPUX86State *env, int aflag) env->sysenter_eip, mmu_idx, 0); } =20 -void helper_stgi(CPUX86State *env) +void HELPER(stgi)(CPUX86State *env) { cpu_svm_check_intercept_param(env, SVM_EXIT_STGI, 0, GETPC()); =20 @@ -602,7 +602,7 @@ void helper_stgi(CPUX86State *env) } } =20 -void helper_clgi(CPUX86State *env) +void HELPER(clgi)(CPUX86State *env) { cpu_svm_check_intercept_param(env, SVM_EXIT_CLGI, 0, GETPC()); =20 @@ -701,12 +701,12 @@ void cpu_svm_check_intercept_param(CPUX86State *env, = uint32_t type, cpu_vmexit(env, type, param, retaddr); } =20 -void helper_svm_check_intercept(CPUX86State *env, uint32_t type) +void HELPER(svm_check_intercept)(CPUX86State *env, uint32_t type) { cpu_svm_check_intercept_param(env, type, 0, GETPC()); } =20 -void helper_svm_check_io(CPUX86State *env, uint32_t port, uint32_t param, +void HELPER(svm_check_io)(CPUX86State *env, uint32_t port, uint32_t param, uint32_t next_eip_addend) { CPUState *cs =3D env_cpu(env); diff --git a/target/i386/tcg/user/seg_helper.c b/target/i386/tcg/user/seg_h= elper.c index 3a4a6d5a745..d085b5709b1 100644 --- a/target/i386/tcg/user/seg_helper.c +++ b/target/i386/tcg/user/seg_helper.c @@ -26,7 +26,7 @@ #include "tcg/helper-tcg.h" #include "tcg/seg_helper.h" =20 -void helper_syscall(CPUX86State *env, int next_eip_addend) +void HELPER(syscall)(CPUX86State *env, int next_eip_addend) { CPUState *cs =3D env_cpu(env); =20 @@ -102,6 +102,6 @@ void cpu_x86_load_seg(CPUX86State *env, X86Seg seg_reg,= int selector) DESC_P_MASK | DESC_S_MASK | DESC_W_MASK | DESC_A_MASK | (dpl << DESC_DPL_SHIFT)); } else { - helper_load_seg(env, seg_reg, selector); + HELPER(load_seg)(env, seg_reg, selector); } } --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792444992; cv=none; d=zohomail.com; s=zohoarc; b=Zw51HeuFA0EfvxcpvrZwhgHIHUQnHR4/B5RzB/lXbGeUfnbV2nD/vcA7yZ1JXAj5/ViqhJX2nC+5yPGsrhhJe0F3qgMOU6HNj+QcjzbvuiRG3uCqbpi5xeCQ5t1yBiy49LCV5a1Zs7wOCX5MC+ZghTZH2+Mps6TkNFE/fA61tZQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792444992; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=vgihWuSHxE64MB2Yh+cCmIQVusMNm1rh12LOEVYWTi8=; b=N1Zff08WgzsXlNuZJ9fcpxefyS7Kw84+0bvL2RxdJx5TEprcOp4LkpTpQTpI9GCiQ75U3sx7tF16un6g0qvXJ8pN1fh4uu2CMoK33nq5WyHYyY0/pwmH+RwfKFD/QztHSuCuKj3U1ej8vGRXYVYiZR1KgessZ9E++i2EK9LHAnA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792444992827823.494348874299; Mon, 19 Oct 2026 14:23:12 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunF-0001dn-Fk; Mon, 19 Oct 2026 17:21:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunC-0001cf-6p for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:14 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun8-0005gU-Bv for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:13 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJK4Ec4106599 for ; Mon, 19 Oct 2026 21:21:09 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdr780ntn-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:09 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3a46f0f158dso97674a91.1 for ; Mon, 19 Oct 2026 14:21:09 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=vgihWuSHxE6 4MB2Yh+cCmIQVusMNm1rh12LOEVYWTi8=; b=YQOCpZno2S4cg8cOdn439TfWwpU 0IcZDT4/bLB9xyreYFoYfKiR7PrFCGKqGWJSp0FoAkPoGI5jYYI5ka45dyp09BXw NHZ0tzFZV+MeklxjEz21ZP2P0q3z8raQbkQURqfrxnSnm0dWDFUPugXGHA0gBnZS 06a2p5+0jJYaBKqsfWMzfBPWmvsFACld5pHGhE3y3u6fDdRqybQCsz/paN3gwOUT DJ41PUgtKtfCskr+ajJCoPvc7xh3mk6y0Af7gqms3P03+SbzAHm+BtV0Y972pmSy JkhJkOU0Kp3j4rrlpUUycGl3Ekayhe4U8nUZXQnoNw2pj2Qmv9rgPmeTv5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444868; x=1793049668; 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:content-type; bh=vgihWuSHxE64MB2Yh+cCmIQVusMNm1rh12LOEVYWTi8=; b=KbxG3tFX82saSi6E/iNpa3dqvSQ4tq5rqncji8YLhmKI3oqiHmjgMNvX6ZjGKPTJJu 8lXtdWXbCpcIu/KiEUR1muAya5PlYL0wFk+mSWbLkDzZ7vqDxUplL8v9GP3B7YmkybKT Ob7L1/S8JDZyOuHToJjUCpvjiFDvt0327hbAxt4PB7Wdq0QQI8dkOAwL9lqZI1dR0/xy /HMUen79BGvLZoplxAbo+Fgrteq4w0Z5o3y0nN5YIqsUfy1KE7iC4I+Iaky92Av7H6Ww 2TUDmMunpZKn5Wb8QgzgxwpAX1YMRf9gHGWLFnVTKA0mAAViyp2RF0xVu9DCaQspskfY g6nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444868; x=1793049668; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=vgihWuSHxE64MB2Yh+cCmIQVusMNm1rh12LOEVYWTi8=; b=Oh6v6uh+t4hi1UL4mB6Brdv4DyFNYRree258qz+C7q3kxJJOrsn8DWNzw5bNwene5o VpXziNbBQHkfA/3ZHbsHs4noWsDUkRbiWde6sjr7xnLw+2XAAt/swdNtbYCgMJrCdxCF +c4h6SRIYRskk9TH70RHoG4GscGLL7o1L16/snJPTL0jpolE9z+Em6wK+sIF2InTfkJd WufMsYtEfqkY/ftMlYrgEvalQBWgEsRuwbGf+WPBUtY21oCd1AdYVkm67O+I6yVkPYg7 3/ZC/f6Aa4cr32UrcUNawO3y2RcXWA5le1LAFTD1QkOFqxHi+1HhXY57AyTI/sb6uZQP 96cw== X-Gm-Message-State: AFq9FYIDzfCBg8iiWCXAYJa/lRVcjQp4vHq1fak5fANE3iaujfpeoYHo pzIiSmAyhVFooFp2jUDj/kutjx/bUl+CJHKq8HKuY7ED3RtZlp4xKc1wtDdppNL5kY8VQ65oOL6 MjLcVdWPYob4VWU30X7vLOv1EghUXNBi4E/8GgX84gUon4gpz9JtkWoPwxzKr/gOyPg== X-Gm-Gg: AYBFou1MBWnmk3hjkZJjuvvIymgI5W/CYdwUuY5F8Kjv4LINTDCamt5Bv5edvVEEXFu QkI5P9TRRqkp8Vk62P948HkIU+8JkHWVHaKyi99XH2tjO9MQbKE9+4iqdFzUijc/omr/DtTBtBp eUXIobnODXlDN2UjvKGo/R8A4OsUTDPuINBYdeGbspj36ZFcOQ2g+85YPSEebbswpQpZFgxf9ml lG2pV9bLzDJGrXoepOpy9/MUG3DDt6uPvEnjmCnbYtAfpuFuWKvelcnZAUXfpMrKfQJXlW/3Si4 IiyZp2bUdgl6dg2P2268ngBmK29EZkWOG1BtEV0ubu/D57NkdJNmYkArffWz0eafJWTjnj/eRjQ 6OfmsyCe/Bpn4acE3tPbdjZinhUJINadA7VMPQno5ybyvAANSKT5jTuWZsuG7rVU= X-Received: by 2002:a17:90b:1dcb:b0:3a7:a3c8:8f4a with SMTP id 98e67ed59e1d1-3ad64ba812bmr172421a91.18.1792444867932; Mon, 19 Oct 2026 14:21:07 -0700 (PDT) X-Received: by 2002:a17:90b:1dcb:b0:3a7:a3c8:8f4a with SMTP id 98e67ed59e1d1-3ad64ba812bmr172410a91.18.1792444867133; Mon, 19 Oct 2026 14:21:07 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 06/26] target/loongarch: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:25 +0000 Message-ID: <20261019212046.149572-7-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfXx/6KQBQdfRJo m0NdD0x0qge5eKo1uysn0NCTJDA2Ffm1zMVWy6UzcIcOX+7HCVt3k8cKpisnQ90AB5MTwHGFY+p s1ugaEo+RzP5MxmUQfV1cCvTVCqABkh/ZbddR1S0gg2nkD90+oJ7Cv80AUsF+hR6hVIQO528oMS uWv9Ke0i8g212MGDyNHWi4xGNQ+P8BskWbh6KxAYZXvcGsEPkcWGZrIDYi9BdEct/LhdGy1qGph /g1b2LxZ4kCEgzsqyyWyaunk+9sSUZKdhZbaK5UiHnLirzfXImIvKDQZ8Uq6AuxycwZ3qBkJjvO CPKDOofNIv9Xq8rY61emTizauZNRRbIqx0YvpICaQ9PZ3NwLske35KuBjKVvtzf0RonAvktgIdi Wq71kx14UFI7tvlZjz79rDtKFUkWJn4lMdemf0C+DGVClB8Dq7TP1TTcGWLfI//HUI3ET61eVIf pDQUGTmYeoZNm7XY43A== X-Proofpoint-GUID: 3p_lA29aAvwKojVcb89WiMfuBzCQFlu2 X-Authority-Analysis: v=2.4 cv=LKnz05W9 c=1 sm=1 tr=0 ts=6ad689c5 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=SQnn4VcWqfzk9PnhchsA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX9Mk/cMq8TcaL wDeURlgcShwzCrXztf8O2/3oJaEZF8/RO0QWWF0ufxsdcGNv082UWFhN+7V+1K8EO9ploj4Hkof jij6SeCrwrAAuJFL+WVoVnlS1HN6m+4= X-Proofpoint-ORIG-GUID: 3p_lA29aAvwKojVcb89WiMfuBzCQFlu2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 adultscore=0 suspectscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792444994580158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/loongarch/tcg/csr_helper.c | 22 ++--- target/loongarch/tcg/fpu_helper.c | 126 ++++++++++++++-------------- target/loongarch/tcg/iocsr_helper.c | 16 ++-- target/loongarch/tcg/op_helper.c | 18 ++-- target/loongarch/tcg/tlb_helper.c | 26 +++--- target/loongarch/tcg/vec_helper.c | 4 +- 6 files changed, 106 insertions(+), 106 deletions(-) diff --git a/target/loongarch/tcg/csr_helper.c b/target/loongarch/tcg/csr_h= elper.c index 1a6919417fc..7cba8035df4 100644 --- a/target/loongarch/tcg/csr_helper.c +++ b/target/loongarch/tcg/csr_helper.c @@ -18,7 +18,7 @@ #include "cpu-csr.h" #include "cpu-mmu.h" =20 -target_ulong helper_csrwr_stlbps(CPULoongArchState *env, target_ulong val) +target_ulong HELPER(csrwr_stlbps)(CPULoongArchState *env, target_ulong val) { CPUSysState *sys =3D env_sys(env); int64_t old_v =3D sys->CSR_STLBPS; @@ -40,7 +40,7 @@ target_ulong helper_csrwr_stlbps(CPULoongArchState *env, = target_ulong val) return old_v; } =20 -target_ulong helper_csrrd_pgd(CPULoongArchState *env) +target_ulong HELPER(csrrd_pgd)(CPULoongArchState *env) { int64_t v; CPUSysState *sys =3D env_sys(env); @@ -60,7 +60,7 @@ target_ulong helper_csrrd_pgd(CPULoongArchState *env) return v; } =20 -target_ulong helper_csrrd_cpuid(CPULoongArchState *env) +target_ulong HELPER(csrrd_cpuid)(CPULoongArchState *env) { LoongArchCPU *lac =3D env_archcpu(env); CPUSysState *sys =3D env_sys(env); @@ -70,12 +70,12 @@ target_ulong helper_csrrd_cpuid(CPULoongArchState *env) return sys->CSR_CPUID; } =20 -target_ulong helper_csrrd_tval(CPULoongArchState *env) +target_ulong HELPER(csrrd_tval)(CPULoongArchState *env) { return cpu_loongarch_get_timer_ticks(env_timer(env)); } =20 -target_ulong helper_csrrd_msgir(CPULoongArchState *env) +target_ulong HELPER(csrrd_msgir)(CPULoongArchState *env) { int irq, new; CPUSysState *sys =3D env_sys(env); @@ -97,7 +97,7 @@ target_ulong helper_csrrd_msgir(CPULoongArchState *env) return irq; } =20 -target_ulong helper_csrwr_estat(CPULoongArchState *env, target_ulong val) +target_ulong HELPER(csrwr_estat)(CPULoongArchState *env, target_ulong val) { CPUSysState *sys =3D env_sys(env); int64_t old_v =3D sys->CSR_ESTAT; @@ -118,7 +118,7 @@ target_ulong helper_csrwr_estat(CPULoongArchState *env,= target_ulong val) return old_v; } =20 -target_ulong helper_csrwr_asid(CPULoongArchState *env, target_ulong val) +target_ulong HELPER(csrwr_asid)(CPULoongArchState *env, target_ulong val) { CPUSysState *sys =3D env_sys(env); int64_t old_v =3D sys->CSR_ASID; @@ -131,7 +131,7 @@ target_ulong helper_csrwr_asid(CPULoongArchState *env, = target_ulong val) return old_v; } =20 -target_ulong helper_csrwr_tcfg(CPULoongArchState *env, target_ulong val) +target_ulong HELPER(csrwr_tcfg)(CPULoongArchState *env, target_ulong val) { CPUTimerState *timer =3D env_timer(env); CPUSysState *sys =3D container_of(timer, CPUSysState, timer_state); @@ -142,7 +142,7 @@ target_ulong helper_csrwr_tcfg(CPULoongArchState *env, = target_ulong val) return old_v; } =20 -target_ulong helper_csrwr_ticlr(CPULoongArchState *env, target_ulong val) +target_ulong HELPER(csrwr_ticlr)(CPULoongArchState *env, target_ulong val) { CPUTimerState *timer =3D env_timer(env); int64_t old_v =3D 0; @@ -155,7 +155,7 @@ target_ulong helper_csrwr_ticlr(CPULoongArchState *env,= target_ulong val) return old_v; } =20 -target_ulong helper_csrwr_pwcl(CPULoongArchState *env, target_ulong val) +target_ulong HELPER(csrwr_pwcl)(CPULoongArchState *env, target_ulong val) { uint8_t shift, ptbase; CPUSysState *sys =3D env_sys(env); @@ -180,7 +180,7 @@ target_ulong helper_csrwr_pwcl(CPULoongArchState *env, = target_ulong val) return old_v; } =20 -target_ulong helper_csrwr_pwch(CPULoongArchState *env, target_ulong val) +target_ulong HELPER(csrwr_pwch)(CPULoongArchState *env, target_ulong val) { uint8_t has_ptw; CPUSysState *sys =3D env_sys(env); diff --git a/target/loongarch/tcg/fpu_helper.c b/target/loongarch/tcg/fpu_h= elper.c index fc9c64c20a8..cf7c77b1b05 100644 --- a/target/loongarch/tcg/fpu_helper.c +++ b/target/loongarch/tcg/fpu_helper.c @@ -90,7 +90,7 @@ static void update_fcsr0(CPULoongArchState *env, uintptr_= t pc) update_fcsr0_mask(env, pc, 0); } =20 -uint64_t helper_fadd_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fadd_s)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -99,7 +99,7 @@ uint64_t helper_fadd_s(CPULoongArchState *env, uint64_t f= j, uint64_t fk) return fd; } =20 -uint64_t helper_fadd_d(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fadd_d)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -108,7 +108,7 @@ uint64_t helper_fadd_d(CPULoongArchState *env, uint64_t= fj, uint64_t fk) return fd; } =20 -uint64_t helper_fsub_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fsub_s)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -117,7 +117,7 @@ uint64_t helper_fsub_s(CPULoongArchState *env, uint64_t= fj, uint64_t fk) return fd; } =20 -uint64_t helper_fsub_d(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fsub_d)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -126,7 +126,7 @@ uint64_t helper_fsub_d(CPULoongArchState *env, uint64_t= fj, uint64_t fk) return fd; } =20 -uint64_t helper_fmul_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fmul_s)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -135,7 +135,7 @@ uint64_t helper_fmul_s(CPULoongArchState *env, uint64_t= fj, uint64_t fk) return fd; } =20 -uint64_t helper_fmul_d(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fmul_d)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -144,7 +144,7 @@ uint64_t helper_fmul_d(CPULoongArchState *env, uint64_t= fj, uint64_t fk) return fd; } =20 -uint64_t helper_fdiv_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fdiv_s)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -153,7 +153,7 @@ uint64_t helper_fdiv_s(CPULoongArchState *env, uint64_t= fj, uint64_t fk) return fd; } =20 -uint64_t helper_fdiv_d(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fdiv_d)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -162,7 +162,7 @@ uint64_t helper_fdiv_d(CPULoongArchState *env, uint64_t= fj, uint64_t fk) return fd; } =20 -uint64_t helper_fmax_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fmax_s)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -171,7 +171,7 @@ uint64_t helper_fmax_s(CPULoongArchState *env, uint64_t= fj, uint64_t fk) return fd; } =20 -uint64_t helper_fmax_d(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fmax_d)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -180,7 +180,7 @@ uint64_t helper_fmax_d(CPULoongArchState *env, uint64_t= fj, uint64_t fk) return fd; } =20 -uint64_t helper_fmin_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fmin_s)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -189,7 +189,7 @@ uint64_t helper_fmin_s(CPULoongArchState *env, uint64_t= fj, uint64_t fk) return fd; } =20 -uint64_t helper_fmin_d(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fmin_d)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -198,7 +198,7 @@ uint64_t helper_fmin_d(CPULoongArchState *env, uint64_t= fj, uint64_t fk) return fd; } =20 -uint64_t helper_fmaxa_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fmaxa_s)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -208,7 +208,7 @@ uint64_t helper_fmaxa_s(CPULoongArchState *env, uint64_= t fj, uint64_t fk) return fd; } =20 -uint64_t helper_fmaxa_d(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fmaxa_d)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -217,7 +217,7 @@ uint64_t helper_fmaxa_d(CPULoongArchState *env, uint64_= t fj, uint64_t fk) return fd; } =20 -uint64_t helper_fmina_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fmina_s)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -227,7 +227,7 @@ uint64_t helper_fmina_s(CPULoongArchState *env, uint64_= t fj, uint64_t fk) return fd; } =20 -uint64_t helper_fmina_d(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fmina_d)(CPULoongArchState *env, uint64_t fj, uint64_t fk) { uint64_t fd; =20 @@ -236,7 +236,7 @@ uint64_t helper_fmina_d(CPULoongArchState *env, uint64_= t fj, uint64_t fk) return fd; } =20 -uint64_t helper_fscaleb_s(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fscaleb_s)(CPULoongArchState *env, uint64_t fj, uint64_t f= k) { uint64_t fd; int32_t n =3D (int32_t)fk; @@ -249,7 +249,7 @@ uint64_t helper_fscaleb_s(CPULoongArchState *env, uint6= 4_t fj, uint64_t fk) return fd; } =20 -uint64_t helper_fscaleb_d(CPULoongArchState *env, uint64_t fj, uint64_t fk) +uint64_t HELPER(fscaleb_d)(CPULoongArchState *env, uint64_t fj, uint64_t f= k) { uint64_t fd; int64_t n =3D (int64_t)fk; @@ -262,7 +262,7 @@ uint64_t helper_fscaleb_d(CPULoongArchState *env, uint6= 4_t fj, uint64_t fk) return fd; } =20 -uint64_t helper_fsqrt_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(fsqrt_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -271,7 +271,7 @@ uint64_t helper_fsqrt_s(CPULoongArchState *env, uint64_= t fj) return fd; } =20 -uint64_t helper_fsqrt_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(fsqrt_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -280,7 +280,7 @@ uint64_t helper_fsqrt_d(CPULoongArchState *env, uint64_= t fj) return fd; } =20 -uint64_t helper_frecip_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(frecip_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -289,7 +289,7 @@ uint64_t helper_frecip_s(CPULoongArchState *env, uint64= _t fj) return fd; } =20 -uint64_t helper_frecip_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(frecip_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -298,7 +298,7 @@ uint64_t helper_frecip_d(CPULoongArchState *env, uint64= _t fj) return fd; } =20 -uint64_t helper_frsqrt_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(frsqrt_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; uint32_t fp; @@ -309,7 +309,7 @@ uint64_t helper_frsqrt_s(CPULoongArchState *env, uint64= _t fj) return fd; } =20 -uint64_t helper_frsqrt_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(frsqrt_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fp, fd; =20 @@ -319,7 +319,7 @@ uint64_t helper_frsqrt_d(CPULoongArchState *env, uint64= _t fj) return fd; } =20 -uint64_t helper_flogb_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(flogb_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; uint32_t fp; @@ -334,7 +334,7 @@ uint64_t helper_flogb_s(CPULoongArchState *env, uint64_= t fj) return fd; } =20 -uint64_t helper_flogb_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(flogb_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; float_status *status =3D &env->fp_status; @@ -348,7 +348,7 @@ uint64_t helper_flogb_d(CPULoongArchState *env, uint64_= t fj) return fd; } =20 -uint64_t helper_fclass_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(fclass_s)(CPULoongArchState *env, uint64_t fj) { float32 f =3D fj; bool sign =3D float32_is_neg(f); @@ -366,7 +366,7 @@ uint64_t helper_fclass_s(CPULoongArchState *env, uint64= _t fj) } } =20 -uint64_t helper_fclass_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(fclass_d)(CPULoongArchState *env, uint64_t fj) { float64 f =3D fj; bool sign =3D float64_is_neg(f); @@ -384,7 +384,7 @@ uint64_t helper_fclass_d(CPULoongArchState *env, uint64= _t fj) } } =20 -uint64_t helper_fmuladd_s(CPULoongArchState *env, uint64_t fj, +uint64_t HELPER(fmuladd_s)(CPULoongArchState *env, uint64_t fj, uint64_t fk, uint64_t fa, uint32_t flag) { uint64_t fd; @@ -395,7 +395,7 @@ uint64_t helper_fmuladd_s(CPULoongArchState *env, uint6= 4_t fj, return fd; } =20 -uint64_t helper_fmuladd_d(CPULoongArchState *env, uint64_t fj, +uint64_t HELPER(fmuladd_d)(CPULoongArchState *env, uint64_t fj, uint64_t fk, uint64_t fa, uint32_t flag) { uint64_t fd; @@ -432,7 +432,7 @@ static uint64_t fcmp_common(CPULoongArchState *env, Flo= atRelation cmp, } =20 /* fcmp_cXXX_s */ -uint64_t helper_fcmp_c_s(CPULoongArchState *env, uint64_t fj, +uint64_t HELPER(fcmp_c_s)(CPULoongArchState *env, uint64_t fj, uint64_t fk, uint32_t flags) { FloatRelation cmp =3D float32_compare_quiet((uint32_t)fj, @@ -441,7 +441,7 @@ uint64_t helper_fcmp_c_s(CPULoongArchState *env, uint64= _t fj, } =20 /* fcmp_sXXX_s */ -uint64_t helper_fcmp_s_s(CPULoongArchState *env, uint64_t fj, +uint64_t HELPER(fcmp_s_s)(CPULoongArchState *env, uint64_t fj, uint64_t fk, uint32_t flags) { FloatRelation cmp =3D float32_compare((uint32_t)fj, @@ -450,7 +450,7 @@ uint64_t helper_fcmp_s_s(CPULoongArchState *env, uint64= _t fj, } =20 /* fcmp_cXXX_d */ -uint64_t helper_fcmp_c_d(CPULoongArchState *env, uint64_t fj, +uint64_t HELPER(fcmp_c_d)(CPULoongArchState *env, uint64_t fj, uint64_t fk, uint32_t flags) { FloatRelation cmp =3D float64_compare_quiet(fj, fk, &env->fp_status); @@ -458,7 +458,7 @@ uint64_t helper_fcmp_c_d(CPULoongArchState *env, uint64= _t fj, } =20 /* fcmp_sXXX_d */ -uint64_t helper_fcmp_s_d(CPULoongArchState *env, uint64_t fj, +uint64_t HELPER(fcmp_s_d)(CPULoongArchState *env, uint64_t fj, uint64_t fk, uint32_t flags) { FloatRelation cmp =3D float64_compare(fj, fk, &env->fp_status); @@ -466,7 +466,7 @@ uint64_t helper_fcmp_s_d(CPULoongArchState *env, uint64= _t fj, } =20 /* floating point conversion */ -uint64_t helper_fcvt_s_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(fcvt_s_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -475,7 +475,7 @@ uint64_t helper_fcvt_s_d(CPULoongArchState *env, uint64= _t fj) return fd; } =20 -uint64_t helper_fcvt_d_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(fcvt_d_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -484,7 +484,7 @@ uint64_t helper_fcvt_d_s(CPULoongArchState *env, uint64= _t fj) return fd; } =20 -uint64_t helper_ffint_s_w(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ffint_s_w)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -493,7 +493,7 @@ uint64_t helper_ffint_s_w(CPULoongArchState *env, uint6= 4_t fj) return fd; } =20 -uint64_t helper_ffint_s_l(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ffint_s_l)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -502,7 +502,7 @@ uint64_t helper_ffint_s_l(CPULoongArchState *env, uint6= 4_t fj) return fd; } =20 -uint64_t helper_ffint_d_w(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ffint_d_w)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -511,7 +511,7 @@ uint64_t helper_ffint_d_w(CPULoongArchState *env, uint6= 4_t fj) return fd; } =20 -uint64_t helper_ffint_d_l(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ffint_d_l)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -520,7 +520,7 @@ uint64_t helper_ffint_d_l(CPULoongArchState *env, uint6= 4_t fj) return fd; } =20 -uint64_t helper_frint_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(frint_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -529,7 +529,7 @@ uint64_t helper_frint_s(CPULoongArchState *env, uint64_= t fj) return fd; } =20 -uint64_t helper_frint_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(frint_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -538,7 +538,7 @@ uint64_t helper_frint_d(CPULoongArchState *env, uint64_= t fj) return fd; } =20 -uint64_t helper_ftintrm_l_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrm_l_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -556,7 +556,7 @@ uint64_t helper_ftintrm_l_d(CPULoongArchState *env, uin= t64_t fj) return fd; } =20 -uint64_t helper_ftintrm_l_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrm_l_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -574,7 +574,7 @@ uint64_t helper_ftintrm_l_s(CPULoongArchState *env, uin= t64_t fj) return fd; } =20 -uint64_t helper_ftintrm_w_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrm_w_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -592,7 +592,7 @@ uint64_t helper_ftintrm_w_d(CPULoongArchState *env, uin= t64_t fj) return fd; } =20 -uint64_t helper_ftintrm_w_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrm_w_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -610,7 +610,7 @@ uint64_t helper_ftintrm_w_s(CPULoongArchState *env, uin= t64_t fj) return fd; } =20 -uint64_t helper_ftintrp_l_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrp_l_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -628,7 +628,7 @@ uint64_t helper_ftintrp_l_d(CPULoongArchState *env, uin= t64_t fj) return fd; } =20 -uint64_t helper_ftintrp_l_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrp_l_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -646,7 +646,7 @@ uint64_t helper_ftintrp_l_s(CPULoongArchState *env, uin= t64_t fj) return fd; } =20 -uint64_t helper_ftintrp_w_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrp_w_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -664,7 +664,7 @@ uint64_t helper_ftintrp_w_d(CPULoongArchState *env, uin= t64_t fj) return fd; } =20 -uint64_t helper_ftintrp_w_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrp_w_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -682,7 +682,7 @@ uint64_t helper_ftintrp_w_s(CPULoongArchState *env, uin= t64_t fj) return fd; } =20 -uint64_t helper_ftintrz_l_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrz_l_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -699,7 +699,7 @@ uint64_t helper_ftintrz_l_d(CPULoongArchState *env, uin= t64_t fj) return fd; } =20 -uint64_t helper_ftintrz_l_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrz_l_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -716,7 +716,7 @@ uint64_t helper_ftintrz_l_s(CPULoongArchState *env, uin= t64_t fj) return fd; } =20 -uint64_t helper_ftintrz_w_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrz_w_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -733,7 +733,7 @@ uint64_t helper_ftintrz_w_d(CPULoongArchState *env, uin= t64_t fj) return fd; } =20 -uint64_t helper_ftintrz_w_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrz_w_s)(CPULoongArchState *env, uint64_t fj) { uint32_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -750,7 +750,7 @@ uint64_t helper_ftintrz_w_s(CPULoongArchState *env, uin= t64_t fj) return (uint64_t)fd; } =20 -uint64_t helper_ftintrne_l_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrne_l_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -768,7 +768,7 @@ uint64_t helper_ftintrne_l_d(CPULoongArchState *env, ui= nt64_t fj) return fd; } =20 -uint64_t helper_ftintrne_l_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrne_l_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -786,7 +786,7 @@ uint64_t helper_ftintrne_l_s(CPULoongArchState *env, ui= nt64_t fj) return fd; } =20 -uint64_t helper_ftintrne_w_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrne_w_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -804,7 +804,7 @@ uint64_t helper_ftintrne_w_d(CPULoongArchState *env, ui= nt64_t fj) return fd; } =20 -uint64_t helper_ftintrne_w_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftintrne_w_s)(CPULoongArchState *env, uint64_t fj) { uint32_t fd; FloatRoundMode old_mode =3D get_float_rounding_mode(&env->fp_status); @@ -822,7 +822,7 @@ uint64_t helper_ftintrne_w_s(CPULoongArchState *env, ui= nt64_t fj) return (uint64_t)fd; } =20 -uint64_t helper_ftint_l_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftint_l_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -836,7 +836,7 @@ uint64_t helper_ftint_l_d(CPULoongArchState *env, uint6= 4_t fj) return fd; } =20 -uint64_t helper_ftint_l_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftint_l_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -850,7 +850,7 @@ uint64_t helper_ftint_l_s(CPULoongArchState *env, uint6= 4_t fj) return fd; } =20 -uint64_t helper_ftint_w_s(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftint_w_s)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -864,7 +864,7 @@ uint64_t helper_ftint_w_s(CPULoongArchState *env, uint6= 4_t fj) return fd; } =20 -uint64_t helper_ftint_w_d(CPULoongArchState *env, uint64_t fj) +uint64_t HELPER(ftint_w_d)(CPULoongArchState *env, uint64_t fj) { uint64_t fd; =20 @@ -878,7 +878,7 @@ uint64_t helper_ftint_w_d(CPULoongArchState *env, uint6= 4_t fj) return fd; } =20 -void helper_set_rounding_mode(CPULoongArchState *env) +void HELPER(set_rounding_mode)(CPULoongArchState *env) { set_float_rounding_mode(ieee_rm[(env->fcsr0 >> FCSR0_RM) & 0x3], &env->fp_status); diff --git a/target/loongarch/tcg/iocsr_helper.c b/target/loongarch/tcg/ioc= sr_helper.c index b0f171608bc..be705cebbb1 100644 --- a/target/loongarch/tcg/iocsr_helper.c +++ b/target/loongarch/tcg/iocsr_helper.c @@ -14,52 +14,52 @@ #define GET_MEMTXATTRS(cas) \ ((MemTxAttrs){.requester_id =3D env_cpu(cas)->cpu_index}) =20 -uint64_t helper_iocsrrd_b(CPULoongArchState *env, target_ulong r_addr) +uint64_t HELPER(iocsrrd_b)(CPULoongArchState *env, target_ulong r_addr) { return address_space_ldub(env->address_space_iocsr, r_addr, GET_MEMTXATTRS(env), NULL); } =20 -uint64_t helper_iocsrrd_h(CPULoongArchState *env, target_ulong r_addr) +uint64_t HELPER(iocsrrd_h)(CPULoongArchState *env, target_ulong r_addr) { return address_space_lduw_le(env->address_space_iocsr, r_addr, GET_MEMTXATTRS(env), NULL); } =20 -uint64_t helper_iocsrrd_w(CPULoongArchState *env, target_ulong r_addr) +uint64_t HELPER(iocsrrd_w)(CPULoongArchState *env, target_ulong r_addr) { return address_space_ldl_le(env->address_space_iocsr, r_addr, GET_MEMTXATTRS(env), NULL); } =20 -uint64_t helper_iocsrrd_d(CPULoongArchState *env, target_ulong r_addr) +uint64_t HELPER(iocsrrd_d)(CPULoongArchState *env, target_ulong r_addr) { return address_space_ldq_le(env->address_space_iocsr, r_addr, GET_MEMTXATTRS(env), NULL); } =20 -void helper_iocsrwr_b(CPULoongArchState *env, target_ulong w_addr, +void HELPER(iocsrwr_b)(CPULoongArchState *env, target_ulong w_addr, target_ulong val) { address_space_stb(env->address_space_iocsr, w_addr, val, GET_MEMTXATTRS(env), NULL); } =20 -void helper_iocsrwr_h(CPULoongArchState *env, target_ulong w_addr, +void HELPER(iocsrwr_h)(CPULoongArchState *env, target_ulong w_addr, target_ulong val) { address_space_stw_le(env->address_space_iocsr, w_addr, val, GET_MEMTXATTRS(env), NULL); } =20 -void helper_iocsrwr_w(CPULoongArchState *env, target_ulong w_addr, +void HELPER(iocsrwr_w)(CPULoongArchState *env, target_ulong w_addr, target_ulong val) { address_space_stl_le(env->address_space_iocsr, w_addr, val, GET_MEMTXATTRS(env), NULL); } =20 -void helper_iocsrwr_d(CPULoongArchState *env, target_ulong w_addr, +void HELPER(iocsrwr_d)(CPULoongArchState *env, target_ulong w_addr, target_ulong val) { address_space_stq_le(env->address_space_iocsr, w_addr, diff --git a/target/loongarch/tcg/op_helper.c b/target/loongarch/tcg/op_hel= per.c index f98fe4d4a16..44772d03a4b 100644 --- a/target/loongarch/tcg/op_helper.c +++ b/target/loongarch/tcg/op_helper.c @@ -17,13 +17,13 @@ #include "cpu-csr.h" =20 /* Exceptions helpers */ -void helper_raise_exception(CPULoongArchState *env, uint32_t exception) +void HELPER(raise_exception)(CPULoongArchState *env, uint32_t exception) { do_raise_exception(env, exception, GETPC()); } =20 /* loongarch assert op */ -void helper_asrtle_d(CPULoongArchState *env, target_ulong rj, target_ulong= rk) +void HELPER(asrtle_d)(CPULoongArchState *env, target_ulong rj, target_ulon= g rk) { CPUSysState *sys =3D env_sys(env); =20 @@ -33,7 +33,7 @@ void helper_asrtle_d(CPULoongArchState *env, target_ulong= rj, target_ulong rk) } } =20 -void helper_asrtgt_d(CPULoongArchState *env, target_ulong rj, target_ulong= rk) +void HELPER(asrtgt_d)(CPULoongArchState *env, target_ulong rj, target_ulon= g rk) { CPUSysState *sys =3D env_sys(env); =20 @@ -43,7 +43,7 @@ void helper_asrtgt_d(CPULoongArchState *env, target_ulong= rj, target_ulong rk) } } =20 -target_ulong helper_crc32(target_ulong val, target_ulong m, uint64_t sz) +target_ulong HELPER(crc32)(target_ulong val, target_ulong m, uint64_t sz) { uint8_t buf[8]; target_ulong mask =3D ((sz * 8) =3D=3D 64) ? -1ULL : ((1ULL << (sz * 8= )) - 1); @@ -53,7 +53,7 @@ target_ulong helper_crc32(target_ulong val, target_ulong = m, uint64_t sz) return (int32_t) (crc32(val ^ 0xffffffff, buf, sz) ^ 0xffffffff); } =20 -target_ulong helper_crc32c(target_ulong val, target_ulong m, uint64_t sz) +target_ulong HELPER(crc32c)(target_ulong val, target_ulong m, uint64_t sz) { uint8_t buf[8]; target_ulong mask =3D ((sz * 8) =3D=3D 64) ? -1ULL : ((1ULL << (sz * 8= )) - 1); @@ -62,12 +62,12 @@ target_ulong helper_crc32c(target_ulong val, target_ulo= ng m, uint64_t sz) return (int32_t) (crc32c(val, buf, sz) ^ 0xffffffff); } =20 -target_ulong helper_cpucfg(CPULoongArchState *env, target_ulong rj) +target_ulong HELPER(cpucfg)(CPULoongArchState *env, target_ulong rj) { return rj >=3D ARRAY_SIZE(env->cpucfg) ? 0 : env->cpucfg[rj]; } =20 -uint64_t helper_rdtime_d(CPULoongArchState *env) +uint64_t HELPER(rdtime_d)(CPULoongArchState *env) { #ifdef CONFIG_USER_ONLY return cpu_get_host_ticks(); @@ -86,7 +86,7 @@ uint64_t helper_rdtime_d(CPULoongArchState *env) } =20 #ifndef CONFIG_USER_ONLY -void helper_ertn(CPULoongArchState *env) +void HELPER(ertn)(CPULoongArchState *env) { uint64_t csr_pplv, csr_pie; CPUSysState *sys =3D env_sys(env); @@ -115,7 +115,7 @@ void helper_ertn(CPULoongArchState *env) env->lladdr =3D 1; } =20 -void helper_idle(CPULoongArchState *env) +void HELPER(idle)(CPULoongArchState *env) { CPUState *cs =3D env_cpu(env); =20 diff --git a/target/loongarch/tcg/tlb_helper.c b/target/loongarch/tcg/tlb_h= elper.c index 40cc0764248..479c0b208d6 100644 --- a/target/loongarch/tcg/tlb_helper.c +++ b/target/loongarch/tcg/tlb_helper.c @@ -310,7 +310,7 @@ static bool loongarch_tlb_search(CPULoongArchState *env= , vaddr vaddr, return false; } =20 -void helper_tlbsrch(CPULoongArchState *env) +void HELPER(tlbsrch)(CPULoongArchState *env) { int index, match; CPUSysState *sys =3D env_sys(env); @@ -330,7 +330,7 @@ void helper_tlbsrch(CPULoongArchState *env) sys->CSR_TLBIDX =3D FIELD_DP64(sys->CSR_TLBIDX, CSR_TLBIDX, NE, 1); } =20 -void helper_tlbrd(CPULoongArchState *env) +void HELPER(tlbrd)(CPULoongArchState *env) { LoongArchTLB *tlb; int index; @@ -389,7 +389,7 @@ static void update_tlb_index(CPULoongArchState *env, MM= UContext *context, *old =3D new; } =20 -void helper_tlbwr(CPULoongArchState *env) +void HELPER(tlbwr)(CPULoongArchState *env) { CPUSysState *sys =3D env_sys(env); int index =3D FIELD_EX64(sys->CSR_TLBIDX, CSR_TLBIDX, INDEX); @@ -469,7 +469,7 @@ static int get_tlb_random_index(CPULoongArchState *env,= vaddr addr, return index; } =20 -void helper_tlbfill(CPULoongArchState *env) +void HELPER(tlbfill)(CPULoongArchState *env) { vaddr entryhi; int index, pagesize; @@ -492,7 +492,7 @@ void helper_tlbfill(CPULoongArchState *env) fill_tlb_entry(env, env->tlb + index, &context); } =20 -void helper_tlbclr(CPULoongArchState *env) +void HELPER(tlbclr)(CPULoongArchState *env) { LoongArchTLB *tlb; int i, index; @@ -527,7 +527,7 @@ void helper_tlbclr(CPULoongArchState *env) tlb_flush(env_cpu(env)); } =20 -void helper_tlbflush(CPULoongArchState *env) +void HELPER(tlbflush)(CPULoongArchState *env) { int i, index; CPUSysState *sys =3D env_sys(env); @@ -552,7 +552,7 @@ void helper_tlbflush(CPULoongArchState *env) tlb_flush(env_cpu(env)); } =20 -void helper_invtlb_all(CPULoongArchState *env) +void HELPER(invtlb_all)(CPULoongArchState *env) { for (int i =3D 0; i < LOONGARCH_TLB_MAX; i++) { env->tlb[i].tlb_misc =3D FIELD_DP64(env->tlb[i].tlb_misc, @@ -561,7 +561,7 @@ void helper_invtlb_all(CPULoongArchState *env) tlb_flush(env_cpu(env)); } =20 -void helper_invtlb_all_g(CPULoongArchState *env, uint32_t g) +void HELPER(invtlb_all_g)(CPULoongArchState *env, uint32_t g) { for (int i =3D 0; i < LOONGARCH_TLB_MAX; i++) { LoongArchTLB *tlb =3D &env->tlb[i]; @@ -574,7 +574,7 @@ void helper_invtlb_all_g(CPULoongArchState *env, uint32= _t g) tlb_flush(env_cpu(env)); } =20 -void helper_invtlb_all_asid(CPULoongArchState *env, target_ulong info) +void HELPER(invtlb_all_asid)(CPULoongArchState *env, target_ulong info) { uint16_t asid =3D info & R_CSR_ASID_ASID_MASK; =20 @@ -590,7 +590,7 @@ void helper_invtlb_all_asid(CPULoongArchState *env, tar= get_ulong info) tlb_flush(env_cpu(env)); } =20 -void helper_invtlb_page_asid(CPULoongArchState *env, target_ulong info, +void HELPER(invtlb_page_asid)(CPULoongArchState *env, target_ulong info, target_ulong addr) { int asid =3D info & 0x3ff; @@ -604,7 +604,7 @@ void helper_invtlb_page_asid(CPULoongArchState *env, ta= rget_ulong info, } } =20 -void helper_invtlb_page_asid_or_g(CPULoongArchState *env, +void HELPER(invtlb_page_asid_or_g)(CPULoongArchState *env, target_ulong info, target_ulong addr) { int asid =3D info & 0x3ff; @@ -718,7 +718,7 @@ static inline uint64_t loongarch_sanitize_hw_pte(CPULoo= ngArchState *env, return (pte & ~ppn_mask) | ((pte & ppn_mask) & palen_mask); } =20 -target_ulong helper_lddir(CPULoongArchState *env, target_ulong base, +target_ulong HELPER(lddir)(CPULoongArchState *env, target_ulong base, uint32_t level, uint32_t mem_idx) { CPUState *cs =3D env_cpu(env); @@ -759,7 +759,7 @@ target_ulong helper_lddir(CPULoongArchState *env, targe= t_ulong base, return val & palen_mask; } =20 -void helper_ldpte(CPULoongArchState *env, target_ulong base, target_ulong = odd, +void HELPER(ldpte)(CPULoongArchState *env, target_ulong base, target_ulong= odd, uint32_t mem_idx) { CPUState *cs =3D env_cpu(env); diff --git a/target/loongarch/tcg/vec_helper.c b/target/loongarch/tcg/vec_h= elper.c index a270998e638..3ada636cd9f 100644 --- a/target/loongarch/tcg/vec_helper.c +++ b/target/loongarch/tcg/vec_helper.c @@ -2511,8 +2511,8 @@ void HELPER(NAME)(void *vd, void *vj, = \ } \ } =20 -FCLASS(vfclass_s, 32, UW, helper_fclass_s) -FCLASS(vfclass_d, 64, UD, helper_fclass_d) +FCLASS(vfclass_s, 32, UW, HELPER(fclass_s)) +FCLASS(vfclass_d, 64, UD, HELPER(fclass_d)) =20 #define FSQRT(BIT, T) \ static T do_fsqrt_## BIT(CPULoongArchState *env, T fj) \ --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792444973; cv=none; d=zohomail.com; s=zohoarc; b=FkSchxTLLd/L2sVt4hf3/Vf13Ljl0y/3FSK6UoB+lYFSiHfNJ1X5pA7AyS/GtOLhNGoJ7K84s56sP5bUhrIOor0bzBaD9ZXH3+40mxxjPPrc4fDMBBmNoiE/1UWrKLIu/n8AsizFFh3JYqWb3C/CclbcoaeiDtXDSrfRjsvfr3I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792444973; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=aJMbdppz9E9ELlkt6Mdr5CwCnKqkVxkgmepyUugCPN8=; b=Cu9QsslQesM2wQURxXIR9sJ7PE4buS2ga5KTCmA49uC90qJZRbCsakfCaYbCl77wT1Htu0Ikwk4198paO3ahgqF8TN9mPwV0tBgiLubHDH2szVePWlDGA6ZrYUsac8wQMoMxQz7nDmDP0BsaKRP15wkBJFmkM4YQFvm6J4oiFJ8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792444973274795.2390853699471; Mon, 19 Oct 2026 14:22:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunE-0001dS-FG; Mon, 19 Oct 2026 17:21:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun9-0001bc-Tg for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:11 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun8-0005gR-5c for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:11 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJKGau3628205 for ; Mon, 19 Oct 2026 21:21:09 GMT Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdr42gptu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:09 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-cd5ca3840c5so2882567a12.2 for ; Mon, 19 Oct 2026 14:21:09 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=aJMbdppz9E9 ELlkt6Mdr5CwCnKqkVxkgmepyUugCPN8=; b=dqS984zBfISmvGQoFDOp4SyoV/O yEJZIOj8LWSMf7380OkLGCFx5UYsZ3ehH1llT9IXpCJ42eiYpQsAUWuju6g2I5vV E+jlGxGsWapySS6AgtI7GSTRl1aLfI9CTgDu8rP0qwVRZsNANOV+Mzv5gZso9+e6 KeGI58JtCAutTHFeSdSR72MJGgYbbbK+K5IJeDrg9CWZAUU6I0ZEucW9QliTXOnc 04no4PB9+ZOuekCnzlfFzNJzyKgzJzhhN9EM462onJmKQb89v4P0vjsQFULJ0V5K pEcZ1hsGgU3p2fUpRC/olhBlU4Vl6P8QSUDMefo/4NvwL7NJP1Q4KNLe6DQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444868; x=1793049668; 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:content-type; bh=aJMbdppz9E9ELlkt6Mdr5CwCnKqkVxkgmepyUugCPN8=; b=Z4QKeA8MtirjHyCM7XPPLeiBT9jvv3LNCB71tSwjSrw1GwFrM+xg0OP+nppUFp0YxI glPEKF4Bi/jNKyzRXcjE7V+ehpf7zpAsLyGDqteRqXnvhIGQGTDTIlv6oqf+xDb/yzUR sa+Fpfi5xIR4Moh2s+WYrsoWMLJo/8FvogWD91Jn9Ts9AtY2+B0TujcERTkmZkUhKVeu R8JSV4eAtu1y1ej+zJrLfkt5rEr+Iuk9BaFKLwj6TrDe1hfM1UDiyNTJq6xn6vAdMIjm kqsX22qTjhGpvgCxiWmKz9ICUHmCV7FDcwUprZwJjgmrczpwdPBFPAhvGv7MZ2zXiVmq PiVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444868; x=1793049668; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=aJMbdppz9E9ELlkt6Mdr5CwCnKqkVxkgmepyUugCPN8=; b=rVp9UQ6+2sfBqriscgJXNRHtiNSejaA5lYw7eHOCjg5XU/ye2QxQmbM4zmDTTxklNY hEgi3Csgt2pi26X754/b6Mh5poUQ8iHox/7hLpNswUj28vwl0BTYW7gioXaaB3wjJFvw KbhV52Fpffq59Wx99Q2We4eEu+yp6PdUvOs/kyEykvNCcrWJpG4ZKyzG4tj1lXUUbdS1 OehZr9ci9uyfLRIAUhhYz8WvhzjQwX+VHTzhFz3rpi7Ya0aAvVGBhCCIwho+htFhsG9c myuIdNrvVNk3aeznmX1PxYltgFGtu5V1LmsGZgXjWFq4ohMRkiAzL0d4iWQIGH/iM3q/ l2Rg== X-Gm-Message-State: AFq9FYKi6QAG3FiMJvfW4OvUdynyfr80ZRB5feB40tvuP7r7bXCJAU2Z OcQhUNfIsniRTidz68fUzdxjsRtmcH5cQudyLPrYl2/LmYkw0FD8taJbG0XUSVbG/ZB3j7Vg4NS yACh19Z7Db6AvnYSGCbk+Lt23FsOjcBF8HhDMMwr4BkrPBlHPFKdSImR5dkmAA1ym8w== X-Gm-Gg: AYBFou2gfmietWkJVqWP4gVm8PTX4RiLNBkFnfWjlK7tv7PuflqtrxtOnKs1KpCxl0E vym10RfrmRlw9aU8Zx+DO2AbxGnJfWja0MCDMJgCyg/TY/mqsoNXEVWBy4sp4kRlxHvaBLIt3xB XjSOpn5cnk76JhZ1taivfWZC6uXmxmaXBaYb0W+MGpp8EG3yaTEkA0mPd2TgIvVI/rSZyW3AlJD Hty1IPDdX37OZ0QL1y1zsgbOtEn4GHEcsfzSlNTT/YGhqs68ZUqy9Cq2SaHnYy23oppG/rsPuru lPHXy8MM2aBAnMTo7lft9hEqsbgvOxtYNK1PX30T5uNHkVb42/bHz+aU+LDbC1LDZycaSiZW8LK FdSKsPnebcb3O2WWK8sm7KupVNt4STIHl/ogAwtS60IsuhxX0Zmt0+1tuqxgxOOU= X-Received: by 2002:a17:90a:e7ca:b0:3ac:929d:ba5c with SMTP id 98e67ed59e1d1-3acef55cd8dmr8860092a91.45.1792444868310; Mon, 19 Oct 2026 14:21:08 -0700 (PDT) X-Received: by 2002:a17:90a:e7ca:b0:3ac:929d:ba5c with SMTP id 98e67ed59e1d1-3acef55cd8dmr8860083a91.45.1792444867954; Mon, 19 Oct 2026 14:21:07 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 07/26] target/m68k: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:26 +0000 Message-ID: <20261019212046.149572-8-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX1xdkiwRnUml1 pjrPD25Yt9XkM3/56faiuogNmpYiKanLNWd9FTMuLmVsGyKeBr51e1smquW58VENLo29TENdqBf jV7SIHr3+kGYMJNvMGE1ubWwUHVK5HO+hQB01xxC9i3i1rL8oM5RXiGDOoAEdbJJZy22/BGHG5+ xrv1h/4fh2dDfT/VyKZOmvUrabm4ByRpWXwTkcI0dqkOQyeq/BKEks/ycCrlz9svcEgcuhsoteQ BD/IPLTYpCvcUSZsMgnBofdykjeE34QyYgjpsp9jbVYe5JTrCq0i1Q+pZeYLuXUFZPlSs4OkeU9 ZldI3i1jS3hmktBN5mR+SlBqFHwUnluI0vS6ZuOrI/+7dbHnZdIZMcukMZNk7USXPtLJBs9VtLq zltHfW2lsfkp2wYOZ37ntMRnyLmJmZEepKqkzuPuK5xLtOIquw+BJIwcmwqHHSmnZSoq3GEd8hf ZnJLqoKFt2dxfw6UKHg== X-Authority-Analysis: v=2.4 cv=Ve9ir1p9 c=1 sm=1 tr=0 ts=6ad689c5 cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=VZheFmm8EoinJ6di3KEA:9 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX5tEH0UpOuusB vyLha/vS0ZOSxE0NTP7AZdLe39z7oMAuocUEii/hOJny8qNegYwjTtuZpvmvjNR8BDR9dauN+TI jMc3J+Hect/U/JekO8jH64CorPlEySQ= X-Proofpoint-ORIG-GUID: 9FPNpbDxUoDybmHT4QkiRcyh4E8ZkXq- X-Proofpoint-GUID: 9FPNpbDxUoDybmHT4QkiRcyh4E8ZkXq- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 impostorscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 bulkscore=0 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792444974182158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/m68k/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/m68k/op_helper.c b/target/m68k/op_helper.c index 38f7a689814..12dac20db9e 100644 --- a/target/m68k/op_helper.c +++ b/target/m68k/op_helper.c @@ -1077,7 +1077,7 @@ uint64_t HELPER(bfffo_mem)(CPUM68KState *env, uint32_= t addr, uint64_t data =3D bf_load(env, d.addr, d.blen, ra); uint64_t mask =3D -1ull << (64 - d.len) >> d.bofs; uint64_t n =3D (data & mask) << d.bofs; - uint32_t ffo =3D helper_bfffo_reg(n >> 32, ofs, d.len); + uint32_t ffo =3D HELPER(bfffo_reg)(n >> 32, ofs, d.len); =20 /* * Return FFO in the low word and N in the high word. --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445004; cv=none; d=zohomail.com; s=zohoarc; b=QvdvC+fvPLziuhsAA777dN+T7mhpWSM4zZn6Xm0cn86h1Rwl9yQmAm9aR51mthHqBx7RE+6aHQtubOJo2FWHa0BG8690S60vkfEhQ6CO4Jt6w2c12laIhKJff9vEvdNLHbN2kujy83akPF2ariTDLfVgvX9yTKYrfaYbJkZ+g8s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445004; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=RF8BdSBoaNe/B3LbHLEcnJyqHjo1xI0wir3OwjOw0g0=; b=ekfoMKDUdUR7K9AnuH1Opf0rldXZ8fwfNe8i8GZpLMrY6Ht5Gfq/57nSSylUG41LIO2YTdiPdTUkd3sAbSqI1TaAEpAMxN+Q+/xtM3CTspe76uS725oTUwjnhclE2wXawrzjPqsfyYIxvuvaQYkHhOPB4Ovq804vpv8XN/GAUbI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792445004284216.10203554564634; Mon, 19 Oct 2026 14:23:24 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunG-0001eC-Ja; Mon, 19 Oct 2026 17:21:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunB-0001cH-JM for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:13 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIun9-0005ge-Ll for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:13 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JKZch6156439 for ; Mon, 19 Oct 2026 21:21:10 GMT Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf48k920-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:10 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-38f97b3f853so3469189a91.3 for ; Mon, 19 Oct 2026 14:21:10 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=RF8BdSBoaNe /B3LbHLEcnJyqHjo1xI0wir3OwjOw0g0=; b=csbASeYHpSEbAjl3WGEYoP69Fga 5rOqiczfKSHMc8Bvqq7GLJFvCzXd7heSkp0rv+MtCcBAKT+ZqafonDyPQ2jWLODR gGZFgdy/HEXPkreLJwwiB0qV5DvRQ6BGOEJVxuVojYV3kX+0/kLi6gU+ZllK+XIK 8pfLbAIjRa4uHCxM3EN2x+I5fsAx1vlk8fThursLaCVkadHsqxyqv+1ds6P3L6eC XzQrvYiveyP/9O+d2hdI9LLDvaNpRhqzAuOB6uoYS5kCTnbjGaGlR+oReh2+aww3 /yfkJvNIo4zBMbFsLchazD00nDmDQsT0PQpC/bDGMKxn15OJSiAT4wAAKdg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444869; x=1793049669; 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:content-type; bh=RF8BdSBoaNe/B3LbHLEcnJyqHjo1xI0wir3OwjOw0g0=; b=A9+edqvAQZCLzez5NujQn0aXzVS3l3aTSJGJKm9ThSwo/I0laYJEr2SHSP/IVAUGUX OO4h5Peyo0W0kXArjy6ruUjN6ZC4tLUGV20cKc2Nwd75906mUPOKqCPsC9tC76FRNLVd GQkxE6NDqIStuh2vBgZmcuIGSsak8ckhX6X9TEhFGrKaqO/sCaMlOyFQQleM08U7HE3N iTEgC9YyR5fvNwTQJKS8cq4Co/XCeMZQQsSqZCwuVFlOpmEsH1QjYbiSFsB2vf4LXSjn wprHhMzvAMhGsaYI95uvEnSU/BnO50F929mHGL5S4PwHd+Ub92mU1hqbqfnJiyrZ2Sut ynSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444869; x=1793049669; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=RF8BdSBoaNe/B3LbHLEcnJyqHjo1xI0wir3OwjOw0g0=; b=q4JnSoW60eTyb6nJUDR+asT5wBHLmWcgMzc/g/pjk6NQ0CZmURqdQTUxCIbxBy2sKp XybMGusUbeyQVkCmDohQpVVdnoqVjg5eo4725shF2Lhn1d/6rRLCqZihQKORION3nepK e7yHzNVxXnvF37EW71ydaN9pu2jjkrqzWAWGA65RM7wv73AabR/4IVkGEFY9eFgcHMu8 Y78rQJNJCDK6UwHEtv0+qDzmcnNMcz8z1zkIMxXbsO1uCU1SHwoL4e6uSbu9gpTpEsjY 46plBTnpU/mYFdN+pXFXwS6D2VMfRVErrr/uCTtNT7oYCEBoVvZb0DLppSINK4FiQmxq 4idg== X-Gm-Message-State: AFq9FYIOvXNGE46B3DxIKtV3VsFRQq9QRplIohfdYeVW6oeuXj2sY8nn RVwo0rslhOeEbEb4ExAkhbP8Y7xdMTjUc9uZGkqr/ziAJLSr/CXUU4ls5mhuq8XYnojL3YqpAVX g0dH9QWhL/oxo8sf+TAUItomyEFI/X7P2FRWpZCmsyDdHCpWIKtoBTfqFKivi1V7EMg== X-Gm-Gg: AYBFou0AJWOlxoPtbuukwtCvp72lPUWT/LbC4ycYL3cA1KbQszzHUbipooT3y0+GfQh OQdtfFF+YEJAHRM5Rda4wRBd+SiARMXO4gFWh1rJCkHOjVML19CWXM664M0rqGOm/DioV6Xomjs /MdDoCPJY+cwpFx56cg9Kd45ayfnzHSTJ8ID6YroGC7QHdq7OBMURG+oFt+aPcvvRL4piMJHd/Q RYxwToML4+27UkrWO4qMirtZ33f6UrfGhukGaCxyRlH/sP8r7+S5/Vxhbp7ObxGakE8Qn9RJhVs JHWAkSYnxGwK8EvK6+UejykZfOjGt4nyDWNvvFYX3S6NkXofPYw0Nsvv7Wj5AvL3HGKMtCvzdIL 8U96y+w30PWpSvw8sUj6Vf47V+CeAWQwSWpNBA8y5MicWUOdtiVvmaM0/M4HWkHc= X-Received: by 2002:a17:90a:f0f:b0:3ad:4a8b:c701 with SMTP id 98e67ed59e1d1-3ad4a8be023mr1649315a91.45.1792444869268; Mon, 19 Oct 2026 14:21:09 -0700 (PDT) X-Received: by 2002:a17:90a:f0f:b0:3ad:4a8b:c701 with SMTP id 98e67ed59e1d1-3ad4a8be023mr1649308a91.45.1792444868816; Mon, 19 Oct 2026 14:21:08 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 08/26] target/microblaze: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:27 +0000 Message-ID: <20261019212046.149572-9-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX5kM0D/K4jZ2B ER3xZeR8bDnN5WlmxAxnKsR3tkzMfR+7x/6tW0WDEeBS3EUM3gUh9nMY9yZMVeqpD/ZP53rIFuV xRcY9x5VLnVC0rB+tgDN0whVcUGYV6CTyqQfMkdc5wd4EkJeZ/FRL1aylf3omdgR4NCM5cp5srO FFNc0AKLH5jSwCh9YCfIGoua68dSqoa4hefG8FjmUVuetKd2vgcs6ARN3YRNispvZSSJgGbnWXn 2MPsC+OEP/p0ltkWVjAOWG+zArV0AKqAGjlc/Iq2VozdGJEFPiQ9nWzUJ0Ztw3WyBfi9jVPFE6H HBIWJCQ16lWTUF+r0sSwP99s36+Q5NvfV8u4Wdvi443M0+9DycCcuQMAB3nP/8mdDJEQOxzCvZy wtDeZs6rqHnKIaSZlSTxjTirnsdQIptZfbVRVyAUlOw2zb1iLVZFqaGDwX9xxTQ+Z8rxvAfz65O 19/rDNzoBVOq6h+xAcQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX3URE4XL+A2CZ 1kzoCghYZvLDFxZF49g+zAMhGB26KHZAexKKN1slXQGf6V5ERAGkgWi3fZ9QO7ZvpvDnRF3Vro+ deVKi6NnjItQDpDnObdhZw9tASXuEDI= X-Proofpoint-ORIG-GUID: JCbQUYKuJ_MSlA3Z7JTPQZuRo7KwK76M X-Authority-Analysis: v=2.4 cv=Qr/LTlyd c=1 sm=1 tr=0 ts=6ad689c6 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=itqY9gs7vbMVEQc_hZoA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-GUID: JCbQUYKuJ_MSlA3Z7JTPQZuRo7KwK76M X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445004760158501 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/microblaze/op_helper.c | 46 +++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/target/microblaze/op_helper.c b/target/microblaze/op_helper.c index c169312e954..c53103ecd79 100644 --- a/target/microblaze/op_helper.c +++ b/target/microblaze/op_helper.c @@ -27,7 +27,7 @@ #include "accel/tcg/cpu-loop.h" #include "fpu/softfloat.h" =20 -void helper_put(uint32_t id, uint32_t ctrl, uint32_t data) +void HELPER(put)(uint32_t id, uint32_t ctrl, uint32_t data) { int test =3D ctrl & STREAM_TEST; int atomic =3D ctrl & STREAM_ATOMIC; @@ -44,7 +44,7 @@ void helper_put(uint32_t id, uint32_t ctrl, uint32_t data) atomic ? "a" : ""); } =20 -uint32_t helper_get(uint32_t id, uint32_t ctrl) +uint32_t HELPER(get)(uint32_t id, uint32_t ctrl) { int test =3D ctrl & STREAM_TEST; int atomic =3D ctrl & STREAM_ATOMIC; @@ -62,7 +62,7 @@ uint32_t helper_get(uint32_t id, uint32_t ctrl) return 0xdead0000 | id; } =20 -void helper_microblaze_raise_exception(CPUMBState *env, uint32_t index) +void HELPER(microblaze_raise_exception)(CPUMBState *env, uint32_t index) { CPUState *cs =3D env_cpu(env); =20 @@ -84,7 +84,7 @@ static void raise_divzero(CPUMBState *env, uint32_t esr, = uintptr_t unwind_pc) } } =20 -uint32_t helper_divs(CPUMBState *env, uint32_t ra, uint32_t rb) +uint32_t HELPER(divs)(CPUMBState *env, uint32_t ra, uint32_t rb) { if (!ra) { raise_divzero(env, ESR_EC_DIVZERO, GETPC()); @@ -108,7 +108,7 @@ uint32_t helper_divs(CPUMBState *env, uint32_t ra, uint= 32_t rb) return (int32_t)rb / (int32_t)ra; } =20 -uint32_t helper_divu(CPUMBState *env, uint32_t ra, uint32_t rb) +uint32_t HELPER(divu)(CPUMBState *env, uint32_t ra, uint32_t rb) { if (!ra) { raise_divzero(env, ESR_EC_DIVZERO, GETPC()); @@ -154,7 +154,7 @@ static void update_fpu_flags(CPUMBState *env, int flags= , uintptr_t ra) } } =20 -uint32_t helper_microblaze_fadd(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(microblaze_fadd)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fd, fa, fb; int flags; @@ -169,7 +169,7 @@ uint32_t helper_microblaze_fadd(CPUMBState *env, uint32= _t a, uint32_t b) return fd.l; } =20 -uint32_t helper_frsub(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(frsub)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fd, fa, fb; int flags; @@ -183,7 +183,7 @@ uint32_t helper_frsub(CPUMBState *env, uint32_t a, uint= 32_t b) return fd.l; } =20 -uint32_t helper_microblaze_fmul(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(microblaze_fmul)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fd, fa, fb; int flags; @@ -198,7 +198,7 @@ uint32_t helper_microblaze_fmul(CPUMBState *env, uint32= _t a, uint32_t b) return fd.l; } =20 -uint32_t helper_microblaze_fdiv(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(microblaze_fdiv)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fd, fa, fb; int flags; @@ -213,7 +213,7 @@ uint32_t helper_microblaze_fdiv(CPUMBState *env, uint32= _t a, uint32_t b) return fd.l; } =20 -uint32_t helper_fcmp_un(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(fcmp_un)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fa, fb; uint32_t r =3D 0; @@ -235,7 +235,7 @@ uint32_t helper_fcmp_un(CPUMBState *env, uint32_t a, ui= nt32_t b) return r; } =20 -uint32_t helper_fcmp_lt(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(fcmp_lt)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fa, fb; int r; @@ -251,7 +251,7 @@ uint32_t helper_fcmp_lt(CPUMBState *env, uint32_t a, ui= nt32_t b) return r; } =20 -uint32_t helper_fcmp_eq(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(fcmp_eq)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fa, fb; int flags; @@ -267,7 +267,7 @@ uint32_t helper_fcmp_eq(CPUMBState *env, uint32_t a, ui= nt32_t b) return r; } =20 -uint32_t helper_fcmp_le(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(fcmp_le)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fa, fb; int flags; @@ -284,7 +284,7 @@ uint32_t helper_fcmp_le(CPUMBState *env, uint32_t a, ui= nt32_t b) return r; } =20 -uint32_t helper_fcmp_gt(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(fcmp_gt)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fa, fb; int flags, r; @@ -298,7 +298,7 @@ uint32_t helper_fcmp_gt(CPUMBState *env, uint32_t a, ui= nt32_t b) return r; } =20 -uint32_t helper_fcmp_ne(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(fcmp_ne)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fa, fb; int flags, r; @@ -313,7 +313,7 @@ uint32_t helper_fcmp_ne(CPUMBState *env, uint32_t a, ui= nt32_t b) return r; } =20 -uint32_t helper_fcmp_ge(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(fcmp_ge)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fa, fb; int flags, r; @@ -328,7 +328,7 @@ uint32_t helper_fcmp_ge(CPUMBState *env, uint32_t a, ui= nt32_t b) return r; } =20 -uint32_t helper_flt(CPUMBState *env, uint32_t a) +uint32_t HELPER(flt)(CPUMBState *env, uint32_t a) { CPU_FloatU fd, fa; =20 @@ -337,7 +337,7 @@ uint32_t helper_flt(CPUMBState *env, uint32_t a) return fd.l; } =20 -uint32_t helper_fint(CPUMBState *env, uint32_t a) +uint32_t HELPER(fint)(CPUMBState *env, uint32_t a) { CPU_FloatU fa; uint32_t r; @@ -352,7 +352,7 @@ uint32_t helper_fint(CPUMBState *env, uint32_t a) return r; } =20 -uint32_t helper_microblaze_fsqrt(CPUMBState *env, uint32_t a) +uint32_t HELPER(microblaze_fsqrt)(CPUMBState *env, uint32_t a) { CPU_FloatU fd, fa; int flags; @@ -366,7 +366,7 @@ uint32_t helper_microblaze_fsqrt(CPUMBState *env, uint3= 2_t a) return fd.l; } =20 -uint32_t helper_pcmpbf(uint32_t a, uint32_t b) +uint32_t HELPER(pcmpbf)(uint32_t a, uint32_t b) { unsigned int i; uint32_t mask =3D 0xff000000; @@ -379,7 +379,7 @@ uint32_t helper_pcmpbf(uint32_t a, uint32_t b) return 0; } =20 -void helper_stackprot(CPUMBState *env, uint32_t addr) +void HELPER(stackprot)(CPUMBState *env, uint32_t addr) { if (addr < env->slr || addr > env->shr) { CPUState *cs =3D env_cpu(env); @@ -399,12 +399,12 @@ void helper_stackprot(CPUMBState *env, uint32_t addr) #include "system/memory.h" =20 /* Writes/reads to the MMU's special regs end up here. */ -uint32_t helper_mmu_read(CPUMBState *env, uint32_t ext, uint32_t rn) +uint32_t HELPER(mmu_read)(CPUMBState *env, uint32_t ext, uint32_t rn) { return mmu_read(env, ext, rn); } =20 -void helper_mmu_write(CPUMBState *env, uint32_t ext, uint32_t rn, uint32_t= v) +void HELPER(mmu_write)(CPUMBState *env, uint32_t ext, uint32_t rn, uint32_= t v) { mmu_write(env, ext, rn, v); } --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445054; cv=none; d=zohomail.com; s=zohoarc; b=lmGT1IchJHYUlIQkQ0BESpEbtefQkODDL4y7DHOI2OYExeZygsoLjdp7+ZXWqLXPgK0F53/CdT+48vPdLnKChiDDFcpOnEzsz8DM/qNUTBfWl0C3rl4fG2J6QFJmMAzUHRnLiWxl7pSR4iHjnBklyi/dYmD9IF0qtEtNn60tKVk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445054; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=jhsy3Xpi9AkaEUo/1M7Ds5MNPA9qpycaIqeSYO0K9Gg=; b=KuacrLOXsk13C89ovsXTuNUJmvQdof9LDvVE3FWOg8FDwQUWveOu1GcZVEaBCVhSVhVdpGp9E6N6aBzcOg7hHsymI7x2cV4UJ+kGYS38dBmnCGSgk7bREto/emruYVEQNBaSuSC/0p/qzRfqTNMq8xQ4Ye4i80yR43cw0bYZ0cg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792445054071984.7455788679355; Mon, 19 Oct 2026 14:24:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunq-0001n3-2e; Mon, 19 Oct 2026 17:21:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunW-0001iI-6Y for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:35 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunP-0005ha-OB for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:33 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JLFhPB241875 for ; Mon, 19 Oct 2026 21:21:16 GMT Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf48k929-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:16 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3ac8f449d1bso2390557a91.3 for ; Mon, 19 Oct 2026 14:21:16 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=jhsy3Xpi9Ak aEUo/1M7Ds5MNPA9qpycaIqeSYO0K9Gg=; b=AN2xuL3aTzYLZiF8dL3GFvtZ0Rk MTkjNzPyGG/sDN0AOIIitt84oWw2sujgAErswGQhvA2pKN6uR6hDGWk5RI/t+xM6 V9H7YYGR7PMqENLDYpsN/i8TXK8b5gn1zZfl3QBNcaru8AhK4SSvsjNHTauT/e38 AEN4My+X6x0M4b1vk7TvPmtVJCoItqk8HPcm/Awzz+uAM30cHaImfsgEUObQiusz +BL1tvPajHkcBhf7CfBEqen885Y56EFUGpwpuSTKJbG7sm11KL15rf9SAwIIbA63 BSbUe1kbUbZ8Zy6Gxdg5tVg5cDiXJTHXy0hXmfdu967s28ars4SdbYY4Kpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444875; x=1793049675; 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:content-type; bh=jhsy3Xpi9AkaEUo/1M7Ds5MNPA9qpycaIqeSYO0K9Gg=; b=fycOSsRUMNymNnzJuO/b3hPU3wmc72x2WUZdlG7ydCahqXcTuuMtlK8fX1WrivPwCV bCqBP7ami63xPDx5Y3h1KWS10AjRs9riGlDEWMvUF+WxabVEVWLd/Ga0ZJwpnMv30Guf hypncbcyqhZk13M023X8ilSmIYGBmNMk4/Qya7t90qmxb48/MjfqA1klnhaeq23P3IYE qJj5UxnVIm8a9SLk+JtjjRlWKXURGwbTE9p4UbAJbA3AYepZVI4QJIREtWNFc9dZip5K RBvUY7rxr2tt/k04eOWwG6RW91ba0nxG/9gv9/V1d4OSf6y9d/U4xXiZChdL+ZeqWqhP 3Neg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444875; x=1793049675; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=jhsy3Xpi9AkaEUo/1M7Ds5MNPA9qpycaIqeSYO0K9Gg=; b=1SE0N/yBieNo0GEnE2CnWqoJY5N8AaY25w6Nen+5Zmmlud7oowmbPwKFpBTXjLA9Yh +YbIwVRw4pf9UcctEiVFd6hBDFToN72vz10uGRt8pyHAblLfwcWOMVSR0NEGb5Iepxip erqnZOia0NrjYGGpuRMR0HRK9mmqHjEkeekcADMrO2Ph7NJlToGxefKNOA9O7PDy7lvB q2x2CirpUQ0HGZaSHt21ZmoJk45c3/QOsPzVlHF7Gp2kSCWqdgq4x1c0vcHpVsUE2CYy m/DInlSz33ZA9I7NYNDTVnr8/fQTSgw68dgPgXwsjvlrH9ULoUgAY9kPbY5em8OySH+8 DLVA== X-Gm-Message-State: AFq9FYJG1VR3HYnOiD/TKCPAblCrjw51lxlw7m9BKM4Cau2es8/3vGuM B2tgzARUfwBGROtOXJ3/b1+INfusppaVKC53P17/yGwrn2QmZOCpAaQZChw1izmAkCNSTR+8Nd0 JAV6l227FVToPSg81sj1QRBinGTQZc+R21olphFusw15ZfPXQbYW0SvlVKK2AhtUQDQ== X-Gm-Gg: AYBFou36r4TPGqCeRfbBVvpPftmtWWIpPnpdQXOo4PnpcmdK5hLA2lXjg6iug2jR71/ 5z7kbLby9npYy8HHkxUVsREtQISreWdQn73LXStG5lW6K739GbYov4GqDUiytOZdSHsqmEA0LqO v+Uaa6dbIqTFCk0FzqcbCcKQSijIPDEroRGxNkyu/L4wlrXHybV4KdaJFKskkyc9zGcQVwunv4E sSe+1aCbY0eq9L7uObRCYQZdAs8jdMEi8KGiXjsb+WBGH7dM1yW0uFjuDYNqZFDovhXonfgSTRV VP1Y7yvRxWS4u8JRxNGrZw5p3WmiyTXpLJEbEnmaw0Zai5VQk9uD8j9SGSkuSF2sqBEGx8IigK+ ToDqhAhmwjq6PviEtKsxNugdwcToXxIVeaP5/VB+rGbfjXmg1fUeRz93bqKEsKJU= X-Received: by 2002:a17:90a:1096:b0:3ad:4bfc:1e77 with SMTP id 98e67ed59e1d1-3ad4bfc498fmr1302078a91.66.1792444872829; Mon, 19 Oct 2026 14:21:12 -0700 (PDT) X-Received: by 2002:a17:90a:1096:b0:3ad:4bfc:1e77 with SMTP id 98e67ed59e1d1-3ad4bfc498fmr1302019a91.66.1792444870096; Mon, 19 Oct 2026 14:21:10 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 09/26] target/mips: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:28 +0000 Message-ID: <20261019212046.149572-10-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX4yDJOJAEZvIt qpqvw+/xkMkvuOUoJeUa2wHxDZrJ0gsKVN2FS7ThnAeLjfNrWwJP30FwanHbGZ5qSM2RJ8Fwata PPGHrN69ogRNIoKsXpmUI3lKBrQ21DMhl5a1Q+cliPHZ+AAOnUq1k6eGbpWcEwcc+eXHDdzJXys juoyoFuK9mEMiYZ52XvnC2MhoWue0Lmgc+lME5KuW2QtIy8agroLDBbDLW6lq3pgsjjuveWKLJQ fs6YkGR7R0pjXadKD57IwIqtWtInVNZibDqyPU73Edbdq4Car3LdeUXhpDNXuISh7mSxabZntUg XiWuCJHKUWV8o20ToKBPs5M54AwAWBC68kmEJdKZqV7uIOhfv7X8+xAyoUQCpYDvk6crNojNq1e 07Z8df2nZPiPyNj10KWA0Pca1pQQloO44d/I2qmh34OR6k3VJVukb8uyYfMpMwfj3geyX8z2dpz 9PGBGkO82NvwqfRnP7Q== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX0QtZsgoxeS/M d3/nU990LPbrEA6oMpreLt17GD8nv41Q1/yGrsuGciuoUxon8xcV2gyhbvgwPIKEdoBYx7ZGWip +fpoz4TT5H+dMmiMelX8hmvTQSN8pZw= X-Proofpoint-ORIG-GUID: YqVyUJXh0vr6im-0KZPYSffHJX3WJsSs X-Authority-Analysis: v=2.4 cv=Qr/LTlyd c=1 sm=1 tr=0 ts=6ad689cc cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=klSITKXZHVzXOpRTBfAA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-GUID: YqVyUJXh0vr6im-0KZPYSffHJX3WJsSs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445055929158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/tcg/dsp_helper.c | 187 +++---- target/mips/tcg/exception.c | 8 +- target/mips/tcg/fpu_helper.c | 291 +++++----- target/mips/tcg/ldst_helper.c | 18 +- target/mips/tcg/lmmi_helper.c | 98 ++-- target/mips/tcg/msa_helper.c | 690 ++++++++++++------------ target/mips/tcg/octeon_crypto.c | 100 ++-- target/mips/tcg/op_helper.c | 34 +- target/mips/tcg/system/cp0_helper.c | 276 +++++----- target/mips/tcg/system/lcsr_helper.c | 8 +- target/mips/tcg/system/special_helper.c | 12 +- target/mips/tcg/system/tlb_helper.c | 14 +- target/mips/tcg/vr54xx_helper.c | 30 +- 13 files changed, 892 insertions(+), 874 deletions(-) diff --git a/target/mips/tcg/dsp_helper.c b/target/mips/tcg/dsp_helper.c index 7a4362c8ef4..26fcfd5fb35 100644 --- a/target/mips/tcg/dsp_helper.c +++ b/target/mips/tcg/dsp_helper.c @@ -1094,7 +1094,7 @@ static inline int32_t mipsdsp_cmpu_lt(uint32_t a, uin= t32_t b) =20 /** DSP Arithmetic Sub-class insns **/ #define MIPSDSP32_UNOP_ENV(name, func, element) = \ -target_ulong helper_##name(target_ulong rt, CPUMIPSState *env) = \ +target_ulong HELPER(name)(target_ulong rt, CPUMIPSState *env) = \ { = \ DSP32Value dt; = \ unsigned int i; \ @@ -1114,7 +1114,7 @@ MIPSDSP32_UNOP_ENV(absq_s_w, sat_abs32, sw) =20 #if defined(TARGET_MIPS64) #define MIPSDSP64_UNOP_ENV(name, func, element) = \ -target_ulong helper_##name(target_ulong rt, CPUMIPSState *env) = \ +target_ulong HELPER(name)(target_ulong rt, CPUMIPSState *env) = \ { = \ DSP64Value dt; = \ unsigned int i; = \ @@ -1134,7 +1134,7 @@ MIPSDSP64_UNOP_ENV(absq_s_pw, sat_abs32, sw) #endif =20 #define MIPSDSP32_BINOP(name, func, element) = \ -target_ulong helper_##name(target_ulong rs, target_ulong rt) = \ +target_ulong HELPER(name)(target_ulong rs, target_ulong rt) = \ { = \ DSP32Value ds, dt; = \ unsigned int i; = \ @@ -1161,7 +1161,7 @@ MIPSDSP32_BINOP(subqh_w, rshift1_sub_q32, sw); #undef MIPSDSP32_BINOP =20 #define MIPSDSP32_BINOP_ENV(name, func, element) = \ -target_ulong helper_##name(target_ulong rs, target_ulong rt, = \ +target_ulong HELPER(name)(target_ulong rs, target_ulong rt, = \ CPUMIPSState *env) = \ { = \ DSP32Value ds, dt; = \ @@ -1194,7 +1194,7 @@ MIPSDSP32_BINOP_ENV(subu_s_qb, satu8_sub, ub); =20 #ifdef TARGET_MIPS64 #define MIPSDSP64_BINOP(name, func, element) = \ -target_ulong helper_##name(target_ulong rs, target_ulong rt) = \ +target_ulong HELPER(name)(target_ulong rs, target_ulong rt) = \ { = \ DSP64Value ds, dt; = \ unsigned int i; = \ @@ -1215,7 +1215,7 @@ MIPSDSP64_BINOP(subuh_r_ob, rrshift1_sub_u8, ub); #undef MIPSDSP64_BINOP =20 #define MIPSDSP64_BINOP_ENV(name, func, element) = \ -target_ulong helper_##name(target_ulong rs, target_ulong rt, = \ +target_ulong HELPER(name)(target_ulong rs, target_ulong rt, = \ CPUMIPSState *env) = \ { = \ DSP64Value ds, dt; = \ @@ -1251,7 +1251,7 @@ MIPSDSP64_BINOP_ENV(subu_s_qh, satu16_sub_u16_u16, uh= ); #endif =20 #define SUBUH_QB(name, var) \ -target_ulong helper_##name##_qb(target_ulong rs, target_ulong rt) \ +target_ulong HELPER(name##_qb)(target_ulong rs, target_ulong rt) \ { \ uint8_t rs3, rs2, rs1, rs0; \ uint8_t rt3, rt2, rt1, rt0; \ @@ -1274,7 +1274,7 @@ SUBUH_QB(subuh_r, 1); =20 #undef SUBUH_QB =20 -target_ulong helper_addsc(target_ulong rs, target_ulong rt, CPUMIPSState *= env) +target_ulong HELPER(addsc)(target_ulong rs, target_ulong rt, CPUMIPSState = *env) { uint64_t temp, tempRs, tempRt; bool flag; @@ -1289,7 +1289,7 @@ target_ulong helper_addsc(target_ulong rs, target_ulo= ng rt, CPUMIPSState *env) return (target_long)(int32_t)(temp & MIPSDSP_LLO); } =20 -target_ulong helper_addwc(target_ulong rs, target_ulong rt, CPUMIPSState *= env) +target_ulong HELPER(addwc)(target_ulong rs, target_ulong rt, CPUMIPSState = *env) { uint32_t rd; int32_t temp32, temp31; @@ -1309,7 +1309,7 @@ target_ulong helper_addwc(target_ulong rs, target_ulo= ng rt, CPUMIPSState *env) return (target_long)(int32_t)rd; } =20 -target_ulong helper_modsub(target_ulong rs, target_ulong rt) +target_ulong HELPER(modsub)(target_ulong rs, target_ulong rt) { int32_t decr; uint16_t lastindex; @@ -1327,7 +1327,7 @@ target_ulong helper_modsub(target_ulong rs, target_ul= ong rt) return rd; } =20 -target_ulong helper_raddu_w_qb(target_ulong rs) +target_ulong HELPER(raddu_w_qb)(target_ulong rs) { target_ulong ret =3D 0; DSP32Value ds; @@ -1341,7 +1341,7 @@ target_ulong helper_raddu_w_qb(target_ulong rs) } =20 #if defined(TARGET_MIPS64) -target_ulong helper_raddu_l_ob(target_ulong rs) +target_ulong HELPER(raddu_l_ob)(target_ulong rs) { target_ulong ret =3D 0; DSP64Value ds; @@ -1356,7 +1356,7 @@ target_ulong helper_raddu_l_ob(target_ulong rs) #endif =20 #define PRECR_QB_PH(name, a, b)\ -target_ulong helper_##name##_qb_ph(target_ulong rs, target_ulong rt) \ +target_ulong HELPER(name##_qb_ph)(target_ulong rs, target_ulong rt) \ { \ uint8_t tempD, tempC, tempB, tempA; \ \ @@ -1373,7 +1373,7 @@ PRECR_QB_PH(precrq, 24, 8); =20 #undef PRECR_QB_OH =20 -target_ulong helper_precr_sra_ph_w(uint32_t sa, target_ulong rs, +target_ulong HELPER(precr_sra_ph_w)(uint32_t sa, target_ulong rs, target_ulong rt) { uint16_t tempB, tempA; @@ -1384,7 +1384,7 @@ target_ulong helper_precr_sra_ph_w(uint32_t sa, targe= t_ulong rs, return MIPSDSP_RETURN32_16(tempB, tempA); } =20 -target_ulong helper_precr_sra_r_ph_w(uint32_t sa, +target_ulong HELPER(precr_sra_r_ph_w)(uint32_t sa, target_ulong rs, target_ulong rt) { uint64_t tempB, tempA; @@ -1402,7 +1402,7 @@ target_ulong helper_precr_sra_r_ph_w(uint32_t sa, return (target_long)(int32_t)rt; } =20 -target_ulong helper_precrq_ph_w(target_ulong rs, target_ulong rt) +target_ulong HELPER(precrq_ph_w)(target_ulong rs, target_ulong rt) { uint16_t tempB, tempA; =20 @@ -1412,7 +1412,7 @@ target_ulong helper_precrq_ph_w(target_ulong rs, targ= et_ulong rt) return MIPSDSP_RETURN32_16(tempB, tempA); } =20 -target_ulong helper_precrq_rs_ph_w(target_ulong rs, target_ulong rt, +target_ulong HELPER(precrq_rs_ph_w)(target_ulong rs, target_ulong rt, CPUMIPSState *env) { uint16_t tempB, tempA; @@ -1424,7 +1424,7 @@ target_ulong helper_precrq_rs_ph_w(target_ulong rs, t= arget_ulong rt, } =20 #if defined(TARGET_MIPS64) -target_ulong helper_precr_ob_qh(target_ulong rs, target_ulong rt) +target_ulong HELPER(precr_ob_qh)(target_ulong rs, target_ulong rt) { uint8_t rs6, rs4, rs2, rs0; uint8_t rt6, rt4, rt2, rt0; @@ -1453,7 +1453,7 @@ target_ulong helper_precr_ob_qh(target_ulong rs, targ= et_ulong rt) * In case sa !=3D 0, use rt3, rt1, rs3, rs1. */ #define PRECR_QH_PW(name, var) \ -target_ulong helper_precr_##name##_qh_pw(target_ulong rs, \ +target_ulong HELPER(precr_##name##_qh_pw)(target_ulong rs, \ target_ulong rt, \ uint32_t sa) \ { \ @@ -1484,7 +1484,7 @@ PRECR_QH_PW(sra_r, 1); =20 #undef PRECR_QH_PW =20 -target_ulong helper_precrq_ob_qh(target_ulong rs, target_ulong rt) +target_ulong HELPER(precrq_ob_qh)(target_ulong rs, target_ulong rt) { uint8_t rs6, rs4, rs2, rs0; uint8_t rt6, rt4, rt2, rt0; @@ -1507,7 +1507,7 @@ target_ulong helper_precrq_ob_qh(target_ulong rs, tar= get_ulong rt) return temp; } =20 -target_ulong helper_precrq_qh_pw(target_ulong rs, target_ulong rt) +target_ulong HELPER(precrq_qh_pw)(target_ulong rs, target_ulong rt) { uint16_t tempD, tempC, tempB, tempA; =20 @@ -1519,7 +1519,7 @@ target_ulong helper_precrq_qh_pw(target_ulong rs, tar= get_ulong rt) return MIPSDSP_RETURN64_16(tempD, tempC, tempB, tempA); } =20 -target_ulong helper_precrq_rs_qh_pw(target_ulong rs, target_ulong rt, +target_ulong HELPER(precrq_rs_qh_pw)(target_ulong rs, target_ulong rt, CPUMIPSState *env) { uint32_t rs2, rs0; @@ -1539,7 +1539,7 @@ target_ulong helper_precrq_rs_qh_pw(target_ulong rs, = target_ulong rt, return MIPSDSP_RETURN64_16(tempD, tempC, tempB, tempA); } =20 -target_ulong helper_precrq_pw_l(target_ulong rs, target_ulong rt) +target_ulong HELPER(precrq_pw_l)(target_ulong rs, target_ulong rt) { uint32_t tempB, tempA; =20 @@ -1550,7 +1550,7 @@ target_ulong helper_precrq_pw_l(target_ulong rs, targ= et_ulong rt) } #endif =20 -target_ulong helper_precrqu_s_qb_ph(target_ulong rs, target_ulong rt, +target_ulong HELPER(precrqu_s_qb_ph)(target_ulong rs, target_ulong rt, CPUMIPSState *env) { uint8_t tempD, tempC, tempB, tempA; @@ -1570,7 +1570,7 @@ target_ulong helper_precrqu_s_qb_ph(target_ulong rs, = target_ulong rt, } =20 #if defined(TARGET_MIPS64) -target_ulong helper_precrqu_s_ob_qh(target_ulong rs, target_ulong rt, +target_ulong HELPER(precrqu_s_ob_qh)(target_ulong rs, target_ulong rt, CPUMIPSState *env) { int i; @@ -1601,7 +1601,7 @@ target_ulong helper_precrqu_s_ob_qh(target_ulong rs, = target_ulong rt, } =20 #define PRECEQ_PW(name, a, b) \ -target_ulong helper_preceq_pw_##name(target_ulong rt) \ +target_ulong HELPER(preceq_pw_##name)(target_ulong rt) \ { \ uint16_t tempB, tempA; \ uint32_t tempBI, tempAI; \ @@ -1625,7 +1625,7 @@ PRECEQ_PW(qhra, 32, 0); #endif =20 #define PRECEQU_PH(name, a, b) \ -target_ulong helper_precequ_ph_##name(target_ulong rt) \ +target_ulong HELPER(precequ_ph_##name)(target_ulong rt) \ { \ uint16_t tempB, tempA; \ \ @@ -1647,7 +1647,7 @@ PRECEQU_PH(qbra, 16, 0); =20 #if defined(TARGET_MIPS64) #define PRECEQU_QH(name, a, b, c, d) \ -target_ulong helper_precequ_qh_##name(target_ulong rt) \ +target_ulong HELPER(precequ_qh_##name)(target_ulong rt) \ { \ uint16_t tempD, tempC, tempB, tempA; \ \ @@ -1674,7 +1674,7 @@ PRECEQU_QH(obra, 48, 32, 16, 0); #endif =20 #define PRECEU_PH(name, a, b) \ -target_ulong helper_preceu_ph_##name(target_ulong rt) \ +target_ulong HELPER(preceu_ph_##name)(target_ulong rt) \ { \ uint16_t tempB, tempA; \ \ @@ -1693,7 +1693,7 @@ PRECEU_PH(qbra, 16, 0); =20 #if defined(TARGET_MIPS64) #define PRECEU_QH(name, a, b, c, d) \ -target_ulong helper_preceu_qh_##name(target_ulong rt) \ +target_ulong HELPER(preceu_qh_##name)(target_ulong rt) \ { \ uint16_t tempD, tempC, tempB, tempA; \ \ @@ -1716,7 +1716,7 @@ PRECEU_QH(obra, 48, 32, 16, 0); =20 /** DSP GPR-Based Shift Sub-class insns **/ #define SHIFT_QB(name, func) \ -target_ulong helper_##name##_qb(target_ulong sa, target_ulong rt) \ +target_ulong HELPER(name##_qb)(target_ulong sa, target_ulong rt) \ { \ uint8_t rt3, rt2, rt1, rt0; \ \ @@ -1733,7 +1733,7 @@ target_ulong helper_##name##_qb(target_ulong sa, targ= et_ulong rt) \ } =20 #define SHIFT_QB_ENV(name, func) \ -target_ulong helper_##name##_qb(target_ulong sa, target_ulong rt,\ +target_ulong HELPER(name##_qb)(target_ulong sa, target_ulong rt, \ CPUMIPSState *env) \ { \ uint8_t rt3, rt2, rt1, rt0; \ @@ -1761,7 +1761,7 @@ SHIFT_QB(shra_r, rnd8_rashift); =20 #if defined(TARGET_MIPS64) #define SHIFT_OB(name, func) \ -target_ulong helper_##name##_ob(target_ulong rt, target_ulong sa) \ +target_ulong HELPER(name##_ob)(target_ulong rt, target_ulong sa) \ { \ int i; \ uint8_t rt_t[8]; \ @@ -1780,7 +1780,7 @@ target_ulong helper_##name##_ob(target_ulong rt, targ= et_ulong sa) \ } =20 #define SHIFT_OB_ENV(name, func) \ -target_ulong helper_##name##_ob(target_ulong rt, target_ulong sa, \ +target_ulong HELPER(name##_ob)(target_ulong rt, target_ulong sa, \ CPUMIPSState *env) \ { \ int i; \ @@ -1811,7 +1811,7 @@ SHIFT_OB(shra_r, rnd8_rashift); #endif =20 #define SHIFT_PH(name, func) \ -target_ulong helper_##name##_ph(target_ulong sa, target_ulong rt, \ +target_ulong HELPER(name##_ph)(target_ulong sa, target_ulong rt, \ CPUMIPSState *env) \ { \ uint16_t rth, rtl; \ @@ -1833,7 +1833,7 @@ SHIFT_PH(shll_s, sat16_lshift); =20 #if defined(TARGET_MIPS64) #define SHIFT_QH(name, func) \ -target_ulong helper_##name##_qh(target_ulong rt, target_ulong sa) \ +target_ulong HELPER(name##_qh)(target_ulong rt, target_ulong sa) \ { \ uint16_t rt3, rt2, rt1, rt0; \ \ @@ -1850,7 +1850,7 @@ target_ulong helper_##name##_qh(target_ulong rt, targ= et_ulong sa) \ } =20 #define SHIFT_QH_ENV(name, func) \ -target_ulong helper_##name##_qh(target_ulong rt, target_ulong sa, \ +target_ulong HELPER(name##_qh)(target_ulong rt, target_ulong sa, \ CPUMIPSState *env) \ { \ uint16_t rt3, rt2, rt1, rt0; \ @@ -1880,7 +1880,7 @@ SHIFT_QH(shra_r, rnd16_rashift); #endif =20 #define SHIFT_W(name, func) \ -target_ulong helper_##name##_w(target_ulong sa, target_ulong rt) \ +target_ulong HELPER(name##_w)(target_ulong sa, target_ulong rt) \ { \ uint32_t temp; \ \ @@ -1891,7 +1891,7 @@ target_ulong helper_##name##_w(target_ulong sa, targe= t_ulong rt) \ } =20 #define SHIFT_W_ENV(name, func) \ -target_ulong helper_##name##_w(target_ulong sa, target_ulong rt, \ +target_ulong HELPER(name##_w)(target_ulong sa, target_ulong rt, \ CPUMIPSState *env) \ { \ uint32_t temp; \ @@ -1910,7 +1910,7 @@ SHIFT_W(shra_r, rnd32_rashift); =20 #if defined(TARGET_MIPS64) #define SHIFT_PW(name, func) \ -target_ulong helper_##name##_pw(target_ulong rt, target_ulong sa) \ +target_ulong HELPER(name##_pw)(target_ulong rt, target_ulong sa) \ { \ uint32_t rt1, rt0; \ \ @@ -1924,7 +1924,7 @@ target_ulong helper_##name##_pw(target_ulong rt, targ= et_ulong sa) \ } =20 #define SHIFT_PW_ENV(name, func) \ -target_ulong helper_##name##_pw(target_ulong rt, target_ulong sa, \ +target_ulong HELPER(name##_pw)(target_ulong rt, target_ulong sa, \ CPUMIPSState *env) \ { \ uint32_t rt1, rt0; \ @@ -1950,7 +1950,7 @@ SHIFT_PW(shra_r, rnd32_rashift); #endif =20 #define SHIFT_PH(name, func) \ -target_ulong helper_##name##_ph(target_ulong sa, target_ulong rt) \ +target_ulong HELPER(name##_ph)(target_ulong sa, target_ulong rt) \ { \ uint16_t rth, rtl; \ \ @@ -1978,7 +1978,7 @@ SHIFT_PH(shra_r, rnd16_rashift); #define MUL_RETURN32_16_PH(name, func, \ rsmov1, rsmov2, rsfilter, \ rtmov1, rtmov2, rtfilter) \ -target_ulong helper_##name(target_ulong rs, target_ulong rt, \ +target_ulong HELPER(name)(target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ uint16_t rsB, rsA, rtB, rtA; \ @@ -2016,7 +2016,7 @@ MUL_RETURN32_16_PH(mulq_s_ph, sat16_mul_q15_q15, \ #undef MUL_RETURN32_16_PH =20 #define MUL_RETURN32_32_ph(name, func, movbits) \ -target_ulong helper_##name(target_ulong rs, target_ulong rt, \ +target_ulong HELPER(name)(target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ int16_t rsh, rth; \ @@ -2035,7 +2035,7 @@ MUL_RETURN32_32_ph(muleq_s_w_phr, mul_q15_q15_overflo= wflag21, 0); #undef MUL_RETURN32_32_ph =20 #define MUL_VOID_PH(name, use_ac_env) \ -void helper_##name(uint32_t ac, target_ulong rs, target_ulong rt, \ +void HELPER(name)(uint32_t ac, target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ int16_t rsh, rsl, rth, rtl; \ @@ -2071,7 +2071,7 @@ MUL_VOID_PH(mulsa_w_ph, 0); #define MUL_RETURN64_16_QH(name, func, \ rsmov1, rsmov2, rsmov3, rsmov4, rsfilter, \ rtmov1, rtmov2, rtmov3, rtmov4, rtfilter) \ -target_ulong helper_##name(target_ulong rs, target_ulong rt, \ +target_ulong HELPER(name)(target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ uint16_t rs3, rs2, rs1, rs0; \ @@ -2110,7 +2110,7 @@ MUL_RETURN64_16_QH(mulq_rs_qh, rndq15_mul_q15_q15, \ #define MUL_RETURN64_32_QH(name, \ rsmov1, rsmov2, \ rtmov1, rtmov2) \ -target_ulong helper_##name(target_ulong rs, target_ulong rt, \ +target_ulong HELPER(name)(target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ uint16_t rsB, rsA; \ @@ -2133,7 +2133,7 @@ MUL_RETURN64_32_QH(muleq_s_pw_qhr, 16, 0, 16, 0); =20 #undef MUL_RETURN64_32_QH =20 -void helper_mulsaq_s_w_qh(target_ulong rs, target_ulong rt, uint32_t ac, +void HELPER(mulsaq_s_w_qh)(target_ulong rs, target_ulong rt, uint32_t ac, CPUMIPSState *env) { int16_t rs3, rs2, rs1, rs0; @@ -2177,7 +2177,7 @@ void helper_mulsaq_s_w_qh(target_ulong rs, target_ulo= ng rt, uint32_t ac, #endif =20 #define DP_QB(name, func, is_add, rsmov1, rsmov2, rtmov1, rtmov2) \ -void helper_##name(uint32_t ac, target_ulong rs, target_ulong rt, \ +void HELPER(name)(uint32_t ac, target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ uint8_t rs3, rs2; \ @@ -2218,7 +2218,7 @@ DP_QB(dpsu_h_qbr, mul_u8_u8, 0, 8, 0, 8, 0); #define DP_OB(name, add_sub, \ rsmov1, rsmov2, rsmov3, rsmov4, \ rtmov1, rtmov2, rtmov3, rtmov4) \ -void helper_##name(target_ulong rs, target_ulong rt, uint32_t ac, \ +void HELPER(name)(target_ulong rs, target_ulong rt, uint32_t ac, \ CPUMIPSState *env) \ { \ uint8_t rsD, rsC, rsB, rsA; \ @@ -2281,7 +2281,7 @@ DP_OB(dpsu_h_obr, 0, 24, 16, 8, 0, 24, 16, 8, 0); #endif =20 #define DP_NOFUNC_PH(name, is_add, rsmov1, rsmov2, rtmov1, rtmov2) = \ -void helper_##name(uint32_t ac, target_ulong rs, target_ulong rt, = \ +void HELPER(name)(uint32_t ac, target_ulong rs, target_ulong rt, = \ CPUMIPSState *env) = \ { = \ int16_t rsB, rsA, rtB, rtA; = \ @@ -2316,7 +2316,7 @@ DP_NOFUNC_PH(dpsx_w_ph, 0, 16, 0, 0, 16); #undef DP_NOFUNC_PH =20 #define DP_HASFUNC_PH(name, is_add, rsmov1, rsmov2, rtmov1, rtmov2) \ -void helper_##name(uint32_t ac, target_ulong rs, target_ulong rt, \ +void HELPER(name)(uint32_t ac, target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ int16_t rsB, rsA, rtB, rtA; \ @@ -2355,7 +2355,7 @@ DP_HASFUNC_PH(dpsqx_s_w_ph, 0, 16, 0, 0, 16); #undef DP_HASFUNC_PH =20 #define DP_128OPERATION_PH(name, is_add) \ -void helper_##name(uint32_t ac, target_ulong rs, target_ulong rt, \ +void HELPER(name)(uint32_t ac, target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ int16_t rsh, rsl, rth, rtl; \ @@ -2402,7 +2402,7 @@ DP_128OPERATION_PH(dpsqx_sa_w_ph, 0); =20 #if defined(TARGET_MIPS64) #define DP_QH(name, is_add, use_ac_env) \ -void helper_##name(target_ulong rs, target_ulong rt, uint32_t ac, \ +void HELPER(name)(target_ulong rs, target_ulong rt, uint32_t ac, \ CPUMIPSState *env) \ { \ int32_t rs3, rs2, rs1, rs0; \ @@ -2470,7 +2470,7 @@ DP_QH(dpsq_s_w_qh, 0, 1); #endif =20 #define DP_L_W(name, is_add) \ -void helper_##name(uint32_t ac, target_ulong rs, target_ulong rt, \ +void HELPER(name)(uint32_t ac, target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ int32_t temp63; \ @@ -2515,7 +2515,7 @@ DP_L_W(dpsq_sa_l_w, 0); =20 #if defined(TARGET_MIPS64) #define DP_L_PW(name, func) \ -void helper_##name(target_ulong rs, target_ulong rt, uint32_t ac, \ +void HELPER(name)(target_ulong rs, target_ulong rt, uint32_t ac, \ CPUMIPSState *env) \ { \ int32_t rs1, rs0; \ @@ -2565,7 +2565,7 @@ DP_L_PW(dpsq_sa_l_pw, sat64_acc_sub_q63); =20 #undef DP_L_PW =20 -void helper_mulsaq_s_l_pw(target_ulong rs, target_ulong rt, uint32_t ac, +void HELPER(mulsaq_s_l_pw)(target_ulong rs, target_ulong rt, uint32_t ac, CPUMIPSState *env) { int32_t rs1, rs0; @@ -2625,7 +2625,7 @@ void helper_mulsaq_s_l_pw(target_ulong rs, target_ulo= ng rt, uint32_t ac, #endif =20 #define MAQ_S_W(name, mov) \ -void helper_##name(uint32_t ac, target_ulong rs, target_ulong rt, \ +void HELPER(name)(uint32_t ac, target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ int16_t rsh, rth; \ @@ -2650,7 +2650,7 @@ MAQ_S_W(maq_s_w_phr, 0); #undef MAQ_S_W =20 #define MAQ_SA_W(name, mov) \ -void helper_##name(uint32_t ac, target_ulong rs, target_ulong rt, \ +void HELPER(name)(uint32_t ac, target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ int16_t rsh, rth; \ @@ -2673,7 +2673,7 @@ MAQ_SA_W(maq_sa_w_phr, 0); #undef MAQ_SA_W =20 #define MULQ_W(name, addvar) \ -target_ulong helper_##name(target_ulong rs, target_ulong rt, \ +target_ulong HELPER(name)(target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ int32_t rs_t, rt_t; \ @@ -2703,7 +2703,7 @@ MULQ_W(mulq_rs_w, 0x80000000ull); #if defined(TARGET_MIPS64) =20 #define MAQ_S_W_QH(name, mov) \ -void helper_##name(target_ulong rs, target_ulong rt, uint32_t ac, \ +void HELPER(name)(target_ulong rs, target_ulong rt, uint32_t ac, \ CPUMIPSState *env) \ { \ int16_t rs_t, rt_t; \ @@ -2749,7 +2749,7 @@ MAQ_S_W_QH(maq_s_w_qhrr, 0); #undef MAQ_S_W_QH =20 #define MAQ_SA_W(name, mov) \ -void helper_##name(target_ulong rs, target_ulong rt, uint32_t ac, \ +void HELPER(name)(target_ulong rs, target_ulong rt, uint32_t ac, \ CPUMIPSState *env) \ { \ int16_t rs_t, rt_t; \ @@ -2780,7 +2780,7 @@ MAQ_SA_W(maq_sa_w_qhrr, 0); #undef MAQ_SA_W =20 #define MAQ_S_L_PW(name, mov) \ -void helper_##name(target_ulong rs, target_ulong rt, uint32_t ac, \ +void HELPER(name)(target_ulong rs, target_ulong rt, uint32_t ac, \ CPUMIPSState *env) \ { \ int32_t rs_t, rt_t; \ @@ -2822,7 +2822,7 @@ MAQ_S_L_PW(maq_s_l_pwr, 0); #undef MAQ_S_L_PW =20 #define DM_OPERATE(name, func, is_add, sigext) \ -void helper_##name(target_ulong rs, target_ulong rt, uint32_t ac, \ +void HELPER(name)(target_ulong rs, target_ulong rt, uint32_t ac, \ CPUMIPSState *env) \ { \ int32_t rs1, rs0; \ @@ -2900,7 +2900,7 @@ DM_OPERATE(dmsubu, mul_u32_u32, 0, 0); #endif =20 /** DSP Bit/Manipulation Sub-class insns **/ -target_ulong helper_bitrev(target_ulong rt) +target_ulong HELPER(bitrev)(target_ulong rt) { int32_t temp; uint32_t rd; @@ -2917,7 +2917,7 @@ target_ulong helper_bitrev(target_ulong rt) } =20 #define BIT_INSV(name, posfilter, ret_type) \ -target_ulong helper_##name(CPUMIPSState *env, target_ulong rs, \ +target_ulong HELPER(name)(CPUMIPSState *env, target_ulong rs, \ target_ulong rt) \ { \ uint32_t pos, size, msb, lsb; \ @@ -2952,7 +2952,7 @@ BIT_INSV(dinsv, 0x7F, target_long); =20 /** DSP Compare-Pick Sub-class insns **/ #define CMP_HAS_RET(name, func, split_num, filter, bit_size) \ -target_ulong helper_##name(target_ulong rs, target_ulong rt) \ +target_ulong HELPER(name)(target_ulong rs, target_ulong rt) \ { \ uint32_t rs_t, rt_t; \ uint8_t cc; \ @@ -2983,7 +2983,7 @@ CMP_HAS_RET(cmpgu_le_ob, cmpu_le, 8, MIPSDSP_Q0, 8); =20 =20 #define CMP_NO_RET(name, func, split_num, filter, bit_size) \ -void helper_##name(target_ulong rs, target_ulong rt, \ +void HELPER(name)(target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ int##bit_size##_t rs_t, rt_t; \ @@ -3028,7 +3028,7 @@ CMP_NO_RET(cmp_le_pw, cmp_le, 2, MIPSDSP_LLO, 32); #if defined(TARGET_MIPS64) =20 #define CMPGDU_OB(name) \ -target_ulong helper_cmpgdu_##name##_ob(target_ulong rs, target_ulong rt, \ +target_ulong HELPER(cmpgdu_##name##_ob)(target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ int i; \ @@ -3058,7 +3058,7 @@ CMPGDU_OB(le) #endif =20 #define PICK_INSN(name, split_num, filter, bit_size, ret32bit) \ -target_ulong helper_##name(target_ulong rs, target_ulong rt, \ +target_ulong HELPER(name)(target_ulong rs, target_ulong rt, \ CPUMIPSState *env) \ { \ uint32_t rs_t, rt_t; \ @@ -3094,7 +3094,7 @@ PICK_INSN(pick_pw, 2, MIPSDSP_LLO, 32, 0); #endif #undef PICK_INSN =20 -target_ulong helper_packrl_ph(target_ulong rs, target_ulong rt) +target_ulong HELPER(packrl_ph)(target_ulong rs, target_ulong rt) { uint32_t rsl, rth; =20 @@ -3105,7 +3105,7 @@ target_ulong helper_packrl_ph(target_ulong rs, target= _ulong rt) } =20 #if defined(TARGET_MIPS64) -target_ulong helper_packrl_pw(target_ulong rs, target_ulong rt) +target_ulong HELPER(packrl_pw)(target_ulong rs, target_ulong rt) { uint32_t rs0, rt1; =20 @@ -3117,7 +3117,7 @@ target_ulong helper_packrl_pw(target_ulong rs, target= _ulong rt) #endif =20 /** DSP Accumulator and DSPControl Access Sub-class insns **/ -target_ulong helper_extr_w(target_ulong ac, target_ulong shift, +target_ulong HELPER(extr_w)(target_ulong ac, target_ulong shift, CPUMIPSState *env) { int32_t tempI; @@ -3146,7 +3146,7 @@ target_ulong helper_extr_w(target_ulong ac, target_ul= ong shift, return (target_long)tempI; } =20 -target_ulong helper_extr_r_w(target_ulong ac, target_ulong shift, +target_ulong HELPER(extr_r_w)(target_ulong ac, target_ulong shift, CPUMIPSState *env) { int64_t tempDL[2]; @@ -3172,7 +3172,7 @@ target_ulong helper_extr_r_w(target_ulong ac, target_= ulong shift, return (target_long)(int32_t)(tempDL[0] >> 1); } =20 -target_ulong helper_extr_rs_w(target_ulong ac, target_ulong shift, +target_ulong HELPER(extr_rs_w)(target_ulong ac, target_ulong shift, CPUMIPSState *env) { int32_t tempI, temp64; @@ -3206,7 +3206,7 @@ target_ulong helper_extr_rs_w(target_ulong ac, target= _ulong shift, } =20 #if defined(TARGET_MIPS64) -target_ulong helper_dextr_w(target_ulong ac, target_ulong shift, +target_ulong HELPER(dextr_w)(target_ulong ac, target_ulong shift, CPUMIPSState *env) { uint64_t temp[3]; @@ -3218,7 +3218,7 @@ target_ulong helper_dextr_w(target_ulong ac, target_u= long shift, return (int64_t)(int32_t)(temp[0] >> 1); } =20 -target_ulong helper_dextr_r_w(target_ulong ac, target_ulong shift, +target_ulong HELPER(dextr_r_w)(target_ulong ac, target_ulong shift, CPUMIPSState *env) { uint64_t temp[3]; @@ -3245,7 +3245,7 @@ target_ulong helper_dextr_r_w(target_ulong ac, target= _ulong shift, return (int64_t)(int32_t)(temp[0] >> 1); } =20 -target_ulong helper_dextr_rs_w(target_ulong ac, target_ulong shift, +target_ulong HELPER(dextr_rs_w)(target_ulong ac, target_ulong shift, CPUMIPSState *env) { uint64_t temp[3]; @@ -3277,7 +3277,7 @@ target_ulong helper_dextr_rs_w(target_ulong ac, targe= t_ulong shift, return (int64_t)(int32_t)(temp[0] >> 1); } =20 -target_ulong helper_dextr_l(target_ulong ac, target_ulong shift, +target_ulong HELPER(dextr_l)(target_ulong ac, target_ulong shift, CPUMIPSState *env) { uint64_t temp[3]; @@ -3289,7 +3289,7 @@ target_ulong helper_dextr_l(target_ulong ac, target_u= long shift, return (temp[1] << 63) | (temp[0] >> 1); } =20 -target_ulong helper_dextr_r_l(target_ulong ac, target_ulong shift, +target_ulong HELPER(dextr_r_l)(target_ulong ac, target_ulong shift, CPUMIPSState *env) { uint64_t temp[3]; @@ -3316,7 +3316,7 @@ target_ulong helper_dextr_r_l(target_ulong ac, target= _ulong shift, return (temp[1] << 63) | (temp[0] >> 1); } =20 -target_ulong helper_dextr_rs_l(target_ulong ac, target_ulong shift, +target_ulong HELPER(dextr_rs_l)(target_ulong ac, target_ulong shift, CPUMIPSState *env) { uint64_t temp[3]; @@ -3351,7 +3351,7 @@ target_ulong helper_dextr_rs_l(target_ulong ac, targe= t_ulong shift, } #endif =20 -target_ulong helper_extr_s_h(target_ulong ac, target_ulong shift, +target_ulong HELPER(extr_s_h)(target_ulong ac, target_ulong shift, CPUMIPSState *env) { int64_t temp, acc; @@ -3376,7 +3376,7 @@ target_ulong helper_extr_s_h(target_ulong ac, target_= ulong shift, =20 =20 #if defined(TARGET_MIPS64) -target_ulong helper_dextr_s_h(target_ulong ac, target_ulong shift, +target_ulong HELPER(dextr_s_h)(target_ulong ac, target_ulong shift, CPUMIPSState *env) { int64_t temp[2]; @@ -3405,7 +3405,7 @@ target_ulong helper_dextr_s_h(target_ulong ac, target= _ulong shift, =20 #endif =20 -target_ulong helper_extp(target_ulong ac, target_ulong size, CPUMIPSState = *env) +target_ulong HELPER(extp)(target_ulong ac, target_ulong size, CPUMIPSState= *env) { int32_t start_pos; int sub; @@ -3429,7 +3429,7 @@ target_ulong helper_extp(target_ulong ac, target_ulon= g size, CPUMIPSState *env) return (target_ulong)temp; } =20 -target_ulong helper_extpdp(target_ulong ac, target_ulong size, +target_ulong HELPER(extpdp)(target_ulong ac, target_ulong size, CPUMIPSState *env) { int32_t start_pos; @@ -3457,7 +3457,8 @@ target_ulong helper_extpdp(target_ulong ac, target_ul= ong size, =20 =20 #if defined(TARGET_MIPS64) -target_ulong helper_dextp(target_ulong ac, target_ulong size, CPUMIPSState= *env) +target_ulong HELPER(dextp)(target_ulong ac, target_ulong size, + CPUMIPSState *env) { int start_pos; int len; @@ -3486,7 +3487,7 @@ target_ulong helper_dextp(target_ulong ac, target_ulo= ng size, CPUMIPSState *env) return temp; } =20 -target_ulong helper_dextpdp(target_ulong ac, target_ulong size, +target_ulong HELPER(dextpdp)(target_ulong ac, target_ulong size, CPUMIPSState *env) { int start_pos; @@ -3518,7 +3519,7 @@ target_ulong helper_dextpdp(target_ulong ac, target_u= long size, =20 #endif =20 -void helper_shilo(target_ulong ac, target_ulong rs, CPUMIPSState *env) +void HELPER(shilo)(target_ulong ac, target_ulong rs, CPUMIPSState *env) { int8_t rs5_0; uint64_t temp, acc; @@ -3544,7 +3545,7 @@ void helper_shilo(target_ulong ac, target_ulong rs, C= PUMIPSState *env) } =20 #if defined(TARGET_MIPS64) -void helper_dshilo(target_ulong shift, target_ulong ac, CPUMIPSState *env) +void HELPER(dshilo)(target_ulong shift, target_ulong ac, CPUMIPSState *env) { int8_t shift_t; uint64_t tempB, tempA; @@ -3570,7 +3571,7 @@ void helper_dshilo(target_ulong shift, target_ulong a= c, CPUMIPSState *env) } =20 #endif -void helper_mthlip(target_ulong ac, target_ulong rs, CPUMIPSState *env) +void HELPER(mthlip)(target_ulong ac, target_ulong rs, CPUMIPSState *env) { int32_t tempA, tempB, pos; =20 @@ -3588,7 +3589,7 @@ void helper_mthlip(target_ulong ac, target_ulong rs, = CPUMIPSState *env) } =20 #if defined(TARGET_MIPS64) -void helper_dmthlip(target_ulong rs, target_ulong ac, CPUMIPSState *env) +void HELPER(dmthlip)(target_ulong rs, target_ulong ac, CPUMIPSState *env) { uint8_t ac_t; uint8_t pos; @@ -3677,7 +3678,7 @@ void cpu_wrdsp(uint32_t rs, uint32_t mask_num, CPUMIP= SState *env) env->active_tc.DSPControl =3D dsp; } =20 -void helper_wrdsp(target_ulong rs, target_ulong mask_num, CPUMIPSState *en= v) +void HELPER(wrdsp)(target_ulong rs, target_ulong mask_num, CPUMIPSState *e= nv) { cpu_wrdsp(rs, mask_num, env); } @@ -3733,7 +3734,7 @@ uint32_t cpu_rddsp(uint32_t mask_num, CPUMIPSState *e= nv) return temp; } =20 -target_ulong helper_rddsp(target_ulong mask_num, CPUMIPSState *env) +target_ulong HELPER(rddsp)(target_ulong mask_num, CPUMIPSState *env) { return cpu_rddsp(mask_num, env); } diff --git a/target/mips/tcg/exception.c b/target/mips/tcg/exception.c index 630b8b809fa..8f555ae9912 100644 --- a/target/mips/tcg/exception.c +++ b/target/mips/tcg/exception.c @@ -44,18 +44,18 @@ target_ulong exception_resume_pc(CPUMIPSState *env) return bad_pc; } =20 -void helper_raise_exception_err(CPUMIPSState *env, uint32_t exception, +void HELPER(raise_exception_err)(CPUMIPSState *env, uint32_t exception, int error_code) { do_raise_exception_err(env, exception, error_code, 0); } =20 -void helper_raise_exception(CPUMIPSState *env, uint32_t exception) +void HELPER(raise_exception)(CPUMIPSState *env, uint32_t exception) { do_raise_exception(env, exception, GETPC()); } =20 -void helper_raise_exception_debug(CPUMIPSState *env) +void HELPER(raise_exception_debug)(CPUMIPSState *env) { do_raise_exception(env, EXCP_DEBUG, 0); } @@ -65,7 +65,7 @@ static void raise_exception(CPUMIPSState *env, uint32_t e= xception) do_raise_exception(env, exception, 0); } =20 -void helper_wait(CPUMIPSState *env) +void HELPER(wait)(CPUMIPSState *env) { CPUState *cs =3D env_cpu(env); =20 diff --git a/target/mips/tcg/fpu_helper.c b/target/mips/tcg/fpu_helper.c index 36af9808025..d6595da6482 100644 --- a/target/mips/tcg/fpu_helper.c +++ b/target/mips/tcg/fpu_helper.c @@ -36,7 +36,7 @@ #define FP_TO_INT32_OVERFLOW 0x7fffffff #define FP_TO_INT64_OVERFLOW 0x7fffffffffffffffULL =20 -target_ulong helper_cfc1(CPUMIPSState *env, uint32_t reg) +target_ulong HELPER(cfc1)(CPUMIPSState *env, uint32_t reg) { target_ulong arg1 =3D 0; =20 @@ -61,7 +61,7 @@ target_ulong helper_cfc1(CPUMIPSState *env, uint32_t reg) if (env->CP0_Config5 & (1 << CP0C5_UFE)) { arg1 =3D (env->CP0_Config5 >> CP0C5_FRE) & 1; } else { - helper_raise_exception(env, EXCP_RI); + HELPER(raise_exception)(env, EXCP_RI); } } break; @@ -84,7 +84,8 @@ target_ulong helper_cfc1(CPUMIPSState *env, uint32_t reg) return arg1; } =20 -void helper_ctc1(CPUMIPSState *env, target_ulong arg1, uint32_t fs, uint32= _t rt) +void HELPER(ctc1)(CPUMIPSState *env, target_ulong arg1, uint32_t fs, + uint32_t rt) { switch (fs) { case 1: @@ -120,7 +121,7 @@ void helper_ctc1(CPUMIPSState *env, target_ulong arg1, = uint32_t fs, uint32_t rt) env->CP0_Config5 &=3D ~(1 << CP0C5_FRE); compute_hflags(env); } else { - helper_raise_exception(env, EXCP_RI); + HELPER(raise_exception)(env, EXCP_RI); } break; case 6: @@ -132,7 +133,7 @@ void helper_ctc1(CPUMIPSState *env, target_ulong arg1, = uint32_t fs, uint32_t rt) env->CP0_Config5 |=3D (1 << CP0C5_FRE); compute_hflags(env); } else { - helper_raise_exception(env, EXCP_RI); + HELPER(raise_exception)(env, EXCP_RI); } break; case 25: @@ -230,21 +231,21 @@ static inline void update_fcr31(CPUMIPSState *env, ui= ntptr_t pc) */ =20 /* unary operations, modifying fp status */ -uint64_t helper_float_sqrt_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_sqrt_d)(CPUMIPSState *env, uint64_t fdt0) { fdt0 =3D float64_sqrt(fdt0, &env->active_fpu.fp_status); update_fcr31(env, GETPC()); return fdt0; } =20 -uint32_t helper_float_sqrt_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_sqrt_s)(CPUMIPSState *env, uint32_t fst0) { fst0 =3D float32_sqrt(fst0, &env->active_fpu.fp_status); update_fcr31(env, GETPC()); return fst0; } =20 -uint64_t helper_float_cvtd_s(CPUMIPSState *env, uint32_t fst0) +uint64_t HELPER(float_cvtd_s)(CPUMIPSState *env, uint32_t fst0) { uint64_t fdt2; =20 @@ -253,7 +254,7 @@ uint64_t helper_float_cvtd_s(CPUMIPSState *env, uint32_= t fst0) return fdt2; } =20 -uint64_t helper_float_cvtd_w(CPUMIPSState *env, uint32_t wt0) +uint64_t HELPER(float_cvtd_w)(CPUMIPSState *env, uint32_t wt0) { uint64_t fdt2; =20 @@ -262,7 +263,7 @@ uint64_t helper_float_cvtd_w(CPUMIPSState *env, uint32_= t wt0) return fdt2; } =20 -uint64_t helper_float_cvtd_l(CPUMIPSState *env, uint64_t dt0) +uint64_t HELPER(float_cvtd_l)(CPUMIPSState *env, uint64_t dt0) { uint64_t fdt2; =20 @@ -271,7 +272,7 @@ uint64_t helper_float_cvtd_l(CPUMIPSState *env, uint64_= t dt0) return fdt2; } =20 -uint64_t helper_float_cvt_l_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_cvt_l_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t dt2; =20 @@ -284,7 +285,7 @@ uint64_t helper_float_cvt_l_d(CPUMIPSState *env, uint64= _t fdt0) return dt2; } =20 -uint64_t helper_float_cvt_l_s(CPUMIPSState *env, uint32_t fst0) +uint64_t HELPER(float_cvt_l_s)(CPUMIPSState *env, uint32_t fst0) { uint64_t dt2; =20 @@ -297,7 +298,7 @@ uint64_t helper_float_cvt_l_s(CPUMIPSState *env, uint32= _t fst0) return dt2; } =20 -uint64_t helper_float_cvtps_pw(CPUMIPSState *env, uint64_t dt0) +uint64_t HELPER(float_cvtps_pw)(CPUMIPSState *env, uint64_t dt0) { uint32_t fst2; uint32_t fsth2; @@ -308,7 +309,7 @@ uint64_t helper_float_cvtps_pw(CPUMIPSState *env, uint6= 4_t dt0) return ((uint64_t)fsth2 << 32) | fst2; } =20 -uint64_t helper_float_cvtpw_ps(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_cvtpw_ps)(CPUMIPSState *env, uint64_t fdt0) { uint32_t wt2; uint32_t wth2; @@ -333,7 +334,7 @@ uint64_t helper_float_cvtpw_ps(CPUMIPSState *env, uint6= 4_t fdt0) return ((uint64_t)wth2 << 32) | wt2; } =20 -uint32_t helper_float_cvts_d(CPUMIPSState *env, uint64_t fdt0) +uint32_t HELPER(float_cvts_d)(CPUMIPSState *env, uint64_t fdt0) { uint32_t fst2; =20 @@ -342,7 +343,7 @@ uint32_t helper_float_cvts_d(CPUMIPSState *env, uint64_= t fdt0) return fst2; } =20 -uint32_t helper_float_cvts_w(CPUMIPSState *env, uint32_t wt0) +uint32_t HELPER(float_cvts_w)(CPUMIPSState *env, uint32_t wt0) { uint32_t fst2; =20 @@ -351,7 +352,7 @@ uint32_t helper_float_cvts_w(CPUMIPSState *env, uint32_= t wt0) return fst2; } =20 -uint32_t helper_float_cvts_l(CPUMIPSState *env, uint64_t dt0) +uint32_t HELPER(float_cvts_l)(CPUMIPSState *env, uint64_t dt0) { uint32_t fst2; =20 @@ -360,7 +361,7 @@ uint32_t helper_float_cvts_l(CPUMIPSState *env, uint64_= t dt0) return fst2; } =20 -uint32_t helper_float_cvts_pl(CPUMIPSState *env, uint32_t wt0) +uint32_t HELPER(float_cvts_pl)(CPUMIPSState *env, uint32_t wt0) { uint32_t wt2; =20 @@ -369,7 +370,7 @@ uint32_t helper_float_cvts_pl(CPUMIPSState *env, uint32= _t wt0) return wt2; } =20 -uint32_t helper_float_cvts_pu(CPUMIPSState *env, uint32_t wth0) +uint32_t HELPER(float_cvts_pu)(CPUMIPSState *env, uint32_t wth0) { uint32_t wt2; =20 @@ -378,7 +379,7 @@ uint32_t helper_float_cvts_pu(CPUMIPSState *env, uint32= _t wth0) return wt2; } =20 -uint32_t helper_float_cvt_w_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_cvt_w_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; =20 @@ -391,7 +392,7 @@ uint32_t helper_float_cvt_w_s(CPUMIPSState *env, uint32= _t fst0) return wt2; } =20 -uint32_t helper_float_cvt_w_d(CPUMIPSState *env, uint64_t fdt0) +uint32_t HELPER(float_cvt_w_d)(CPUMIPSState *env, uint64_t fdt0) { uint32_t wt2; =20 @@ -404,7 +405,7 @@ uint32_t helper_float_cvt_w_d(CPUMIPSState *env, uint64= _t fdt0) return wt2; } =20 -uint64_t helper_float_round_l_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_round_l_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t dt2; =20 @@ -420,7 +421,7 @@ uint64_t helper_float_round_l_d(CPUMIPSState *env, uint= 64_t fdt0) return dt2; } =20 -uint64_t helper_float_round_l_s(CPUMIPSState *env, uint32_t fst0) +uint64_t HELPER(float_round_l_s)(CPUMIPSState *env, uint32_t fst0) { uint64_t dt2; =20 @@ -436,7 +437,7 @@ uint64_t helper_float_round_l_s(CPUMIPSState *env, uint= 32_t fst0) return dt2; } =20 -uint32_t helper_float_round_w_d(CPUMIPSState *env, uint64_t fdt0) +uint32_t HELPER(float_round_w_d)(CPUMIPSState *env, uint64_t fdt0) { uint32_t wt2; =20 @@ -452,7 +453,7 @@ uint32_t helper_float_round_w_d(CPUMIPSState *env, uint= 64_t fdt0) return wt2; } =20 -uint32_t helper_float_round_w_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_round_w_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; =20 @@ -468,7 +469,7 @@ uint32_t helper_float_round_w_s(CPUMIPSState *env, uint= 32_t fst0) return wt2; } =20 -uint64_t helper_float_trunc_l_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_trunc_l_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t dt2; =20 @@ -482,7 +483,7 @@ uint64_t helper_float_trunc_l_d(CPUMIPSState *env, uint= 64_t fdt0) return dt2; } =20 -uint64_t helper_float_trunc_l_s(CPUMIPSState *env, uint32_t fst0) +uint64_t HELPER(float_trunc_l_s)(CPUMIPSState *env, uint32_t fst0) { uint64_t dt2; =20 @@ -495,7 +496,7 @@ uint64_t helper_float_trunc_l_s(CPUMIPSState *env, uint= 32_t fst0) return dt2; } =20 -uint32_t helper_float_trunc_w_d(CPUMIPSState *env, uint64_t fdt0) +uint32_t HELPER(float_trunc_w_d)(CPUMIPSState *env, uint64_t fdt0) { uint32_t wt2; =20 @@ -508,7 +509,7 @@ uint32_t helper_float_trunc_w_d(CPUMIPSState *env, uint= 64_t fdt0) return wt2; } =20 -uint32_t helper_float_trunc_w_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_trunc_w_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; =20 @@ -521,7 +522,7 @@ uint32_t helper_float_trunc_w_s(CPUMIPSState *env, uint= 32_t fst0) return wt2; } =20 -uint64_t helper_float_ceil_l_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_ceil_l_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t dt2; =20 @@ -536,7 +537,7 @@ uint64_t helper_float_ceil_l_d(CPUMIPSState *env, uint6= 4_t fdt0) return dt2; } =20 -uint64_t helper_float_ceil_l_s(CPUMIPSState *env, uint32_t fst0) +uint64_t HELPER(float_ceil_l_s)(CPUMIPSState *env, uint32_t fst0) { uint64_t dt2; =20 @@ -551,7 +552,7 @@ uint64_t helper_float_ceil_l_s(CPUMIPSState *env, uint3= 2_t fst0) return dt2; } =20 -uint32_t helper_float_ceil_w_d(CPUMIPSState *env, uint64_t fdt0) +uint32_t HELPER(float_ceil_w_d)(CPUMIPSState *env, uint64_t fdt0) { uint32_t wt2; =20 @@ -566,7 +567,7 @@ uint32_t helper_float_ceil_w_d(CPUMIPSState *env, uint6= 4_t fdt0) return wt2; } =20 -uint32_t helper_float_ceil_w_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_ceil_w_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; =20 @@ -581,7 +582,7 @@ uint32_t helper_float_ceil_w_s(CPUMIPSState *env, uint3= 2_t fst0) return wt2; } =20 -uint64_t helper_float_floor_l_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_floor_l_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t dt2; =20 @@ -596,7 +597,7 @@ uint64_t helper_float_floor_l_d(CPUMIPSState *env, uint= 64_t fdt0) return dt2; } =20 -uint64_t helper_float_floor_l_s(CPUMIPSState *env, uint32_t fst0) +uint64_t HELPER(float_floor_l_s)(CPUMIPSState *env, uint32_t fst0) { uint64_t dt2; =20 @@ -611,7 +612,7 @@ uint64_t helper_float_floor_l_s(CPUMIPSState *env, uint= 32_t fst0) return dt2; } =20 -uint32_t helper_float_floor_w_d(CPUMIPSState *env, uint64_t fdt0) +uint32_t HELPER(float_floor_w_d)(CPUMIPSState *env, uint64_t fdt0) { uint32_t wt2; =20 @@ -626,7 +627,7 @@ uint32_t helper_float_floor_w_d(CPUMIPSState *env, uint= 64_t fdt0) return wt2; } =20 -uint32_t helper_float_floor_w_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_floor_w_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; =20 @@ -641,7 +642,7 @@ uint32_t helper_float_floor_w_s(CPUMIPSState *env, uint= 32_t fst0) return wt2; } =20 -uint64_t helper_float_cvt_2008_l_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_cvt_2008_l_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t dt2; =20 @@ -656,7 +657,7 @@ uint64_t helper_float_cvt_2008_l_d(CPUMIPSState *env, u= int64_t fdt0) return dt2; } =20 -uint64_t helper_float_cvt_2008_l_s(CPUMIPSState *env, uint32_t fst0) +uint64_t HELPER(float_cvt_2008_l_s)(CPUMIPSState *env, uint32_t fst0) { uint64_t dt2; =20 @@ -671,7 +672,7 @@ uint64_t helper_float_cvt_2008_l_s(CPUMIPSState *env, u= int32_t fst0) return dt2; } =20 -uint32_t helper_float_cvt_2008_w_d(CPUMIPSState *env, uint64_t fdt0) +uint32_t HELPER(float_cvt_2008_w_d)(CPUMIPSState *env, uint64_t fdt0) { uint32_t wt2; =20 @@ -686,7 +687,7 @@ uint32_t helper_float_cvt_2008_w_d(CPUMIPSState *env, u= int64_t fdt0) return wt2; } =20 -uint32_t helper_float_cvt_2008_w_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_cvt_2008_w_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; =20 @@ -701,7 +702,7 @@ uint32_t helper_float_cvt_2008_w_s(CPUMIPSState *env, u= int32_t fst0) return wt2; } =20 -uint64_t helper_float_round_2008_l_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_round_2008_l_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t dt2; =20 @@ -719,7 +720,7 @@ uint64_t helper_float_round_2008_l_d(CPUMIPSState *env,= uint64_t fdt0) return dt2; } =20 -uint64_t helper_float_round_2008_l_s(CPUMIPSState *env, uint32_t fst0) +uint64_t HELPER(float_round_2008_l_s)(CPUMIPSState *env, uint32_t fst0) { uint64_t dt2; =20 @@ -737,7 +738,7 @@ uint64_t helper_float_round_2008_l_s(CPUMIPSState *env,= uint32_t fst0) return dt2; } =20 -uint32_t helper_float_round_2008_w_d(CPUMIPSState *env, uint64_t fdt0) +uint32_t HELPER(float_round_2008_w_d)(CPUMIPSState *env, uint64_t fdt0) { uint32_t wt2; =20 @@ -755,7 +756,7 @@ uint32_t helper_float_round_2008_w_d(CPUMIPSState *env,= uint64_t fdt0) return wt2; } =20 -uint32_t helper_float_round_2008_w_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_round_2008_w_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; =20 @@ -773,7 +774,7 @@ uint32_t helper_float_round_2008_w_s(CPUMIPSState *env,= uint32_t fst0) return wt2; } =20 -uint64_t helper_float_trunc_2008_l_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_trunc_2008_l_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t dt2; =20 @@ -788,7 +789,7 @@ uint64_t helper_float_trunc_2008_l_d(CPUMIPSState *env,= uint64_t fdt0) return dt2; } =20 -uint64_t helper_float_trunc_2008_l_s(CPUMIPSState *env, uint32_t fst0) +uint64_t HELPER(float_trunc_2008_l_s)(CPUMIPSState *env, uint32_t fst0) { uint64_t dt2; =20 @@ -803,7 +804,7 @@ uint64_t helper_float_trunc_2008_l_s(CPUMIPSState *env,= uint32_t fst0) return dt2; } =20 -uint32_t helper_float_trunc_2008_w_d(CPUMIPSState *env, uint64_t fdt0) +uint32_t HELPER(float_trunc_2008_w_d)(CPUMIPSState *env, uint64_t fdt0) { uint32_t wt2; =20 @@ -818,7 +819,7 @@ uint32_t helper_float_trunc_2008_w_d(CPUMIPSState *env,= uint64_t fdt0) return wt2; } =20 -uint32_t helper_float_trunc_2008_w_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_trunc_2008_w_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; =20 @@ -833,7 +834,7 @@ uint32_t helper_float_trunc_2008_w_s(CPUMIPSState *env,= uint32_t fst0) return wt2; } =20 -uint64_t helper_float_ceil_2008_l_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_ceil_2008_l_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t dt2; =20 @@ -850,7 +851,7 @@ uint64_t helper_float_ceil_2008_l_d(CPUMIPSState *env, = uint64_t fdt0) return dt2; } =20 -uint64_t helper_float_ceil_2008_l_s(CPUMIPSState *env, uint32_t fst0) +uint64_t HELPER(float_ceil_2008_l_s)(CPUMIPSState *env, uint32_t fst0) { uint64_t dt2; =20 @@ -867,7 +868,7 @@ uint64_t helper_float_ceil_2008_l_s(CPUMIPSState *env, = uint32_t fst0) return dt2; } =20 -uint32_t helper_float_ceil_2008_w_d(CPUMIPSState *env, uint64_t fdt0) +uint32_t HELPER(float_ceil_2008_w_d)(CPUMIPSState *env, uint64_t fdt0) { uint32_t wt2; =20 @@ -884,7 +885,7 @@ uint32_t helper_float_ceil_2008_w_d(CPUMIPSState *env, = uint64_t fdt0) return wt2; } =20 -uint32_t helper_float_ceil_2008_w_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_ceil_2008_w_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; =20 @@ -901,7 +902,7 @@ uint32_t helper_float_ceil_2008_w_s(CPUMIPSState *env, = uint32_t fst0) return wt2; } =20 -uint64_t helper_float_floor_2008_l_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_floor_2008_l_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t dt2; =20 @@ -918,7 +919,7 @@ uint64_t helper_float_floor_2008_l_d(CPUMIPSState *env,= uint64_t fdt0) return dt2; } =20 -uint64_t helper_float_floor_2008_l_s(CPUMIPSState *env, uint32_t fst0) +uint64_t HELPER(float_floor_2008_l_s)(CPUMIPSState *env, uint32_t fst0) { uint64_t dt2; =20 @@ -935,7 +936,7 @@ uint64_t helper_float_floor_2008_l_s(CPUMIPSState *env,= uint32_t fst0) return dt2; } =20 -uint32_t helper_float_floor_2008_w_d(CPUMIPSState *env, uint64_t fdt0) +uint32_t HELPER(float_floor_2008_w_d)(CPUMIPSState *env, uint64_t fdt0) { uint32_t wt2; =20 @@ -952,7 +953,7 @@ uint32_t helper_float_floor_2008_w_d(CPUMIPSState *env,= uint64_t fdt0) return wt2; } =20 -uint32_t helper_float_floor_2008_w_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_floor_2008_w_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; =20 @@ -971,17 +972,17 @@ uint32_t helper_float_floor_2008_w_s(CPUMIPSState *en= v, uint32_t fst0) =20 /* unary operations, not modifying fp status */ =20 -uint64_t helper_float_abs_d(uint64_t fdt0) +uint64_t HELPER(float_abs_d)(uint64_t fdt0) { return float64_abs(fdt0); } =20 -uint32_t helper_float_abs_s(uint32_t fst0) +uint32_t HELPER(float_abs_s)(uint32_t fst0) { return float32_abs(fst0); } =20 -uint64_t helper_float_abs_ps(uint64_t fdt0) +uint64_t HELPER(float_abs_ps)(uint64_t fdt0) { uint32_t wt0; uint32_t wth0; @@ -991,17 +992,17 @@ uint64_t helper_float_abs_ps(uint64_t fdt0) return ((uint64_t)wth0 << 32) | wt0; } =20 -uint64_t helper_float_chs_d(uint64_t fdt0) +uint64_t HELPER(float_chs_d)(uint64_t fdt0) { return float64_chs(fdt0); } =20 -uint32_t helper_float_chs_s(uint32_t fst0) +uint32_t HELPER(float_chs_s)(uint32_t fst0) { return float32_chs(fst0); } =20 -uint64_t helper_float_chs_ps(uint64_t fdt0) +uint64_t HELPER(float_chs_ps)(uint64_t fdt0) { uint32_t wt0; uint32_t wth0; @@ -1012,7 +1013,7 @@ uint64_t helper_float_chs_ps(uint64_t fdt0) } =20 /* MIPS specific unary operations */ -uint64_t helper_float_recip_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_recip_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t fdt2; =20 @@ -1021,7 +1022,7 @@ uint64_t helper_float_recip_d(CPUMIPSState *env, uint= 64_t fdt0) return fdt2; } =20 -uint32_t helper_float_recip_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_recip_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t fst2; =20 @@ -1030,7 +1031,7 @@ uint32_t helper_float_recip_s(CPUMIPSState *env, uint= 32_t fst0) return fst2; } =20 -uint64_t helper_float_rsqrt_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_rsqrt_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t fdt2; =20 @@ -1040,7 +1041,7 @@ uint64_t helper_float_rsqrt_d(CPUMIPSState *env, uint= 64_t fdt0) return fdt2; } =20 -uint32_t helper_float_rsqrt_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_rsqrt_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t fst2; =20 @@ -1050,7 +1051,7 @@ uint32_t helper_float_rsqrt_s(CPUMIPSState *env, uint= 32_t fst0) return fst2; } =20 -uint64_t helper_float_recip1_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_recip1_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t fdt2; =20 @@ -1059,7 +1060,7 @@ uint64_t helper_float_recip1_d(CPUMIPSState *env, uin= t64_t fdt0) return fdt2; } =20 -uint32_t helper_float_recip1_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_recip1_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t fst2; =20 @@ -1068,7 +1069,7 @@ uint32_t helper_float_recip1_s(CPUMIPSState *env, uin= t32_t fst0) return fst2; } =20 -uint64_t helper_float_recip1_ps(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_recip1_ps)(CPUMIPSState *env, uint64_t fdt0) { uint32_t fstl2; uint32_t fsth2; @@ -1080,7 +1081,7 @@ uint64_t helper_float_recip1_ps(CPUMIPSState *env, ui= nt64_t fdt0) return ((uint64_t)fsth2 << 32) | fstl2; } =20 -uint64_t helper_float_rsqrt1_d(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_rsqrt1_d)(CPUMIPSState *env, uint64_t fdt0) { uint64_t fdt2; =20 @@ -1090,7 +1091,7 @@ uint64_t helper_float_rsqrt1_d(CPUMIPSState *env, uin= t64_t fdt0) return fdt2; } =20 -uint32_t helper_float_rsqrt1_s(CPUMIPSState *env, uint32_t fst0) +uint32_t HELPER(float_rsqrt1_s)(CPUMIPSState *env, uint32_t fst0) { uint32_t fst2; =20 @@ -1100,7 +1101,7 @@ uint32_t helper_float_rsqrt1_s(CPUMIPSState *env, uin= t32_t fst0) return fst2; } =20 -uint64_t helper_float_rsqrt1_ps(CPUMIPSState *env, uint64_t fdt0) +uint64_t HELPER(float_rsqrt1_ps)(CPUMIPSState *env, uint64_t fdt0) { uint32_t fstl2; uint32_t fsth2; @@ -1113,7 +1114,7 @@ uint64_t helper_float_rsqrt1_ps(CPUMIPSState *env, ui= nt64_t fdt0) return ((uint64_t)fsth2 << 32) | fstl2; } =20 -uint64_t helper_float_rint_d(CPUMIPSState *env, uint64_t fs) +uint64_t HELPER(float_rint_d)(CPUMIPSState *env, uint64_t fs) { uint64_t fdret; =20 @@ -1122,7 +1123,7 @@ uint64_t helper_float_rint_d(CPUMIPSState *env, uint6= 4_t fs) return fdret; } =20 -uint32_t helper_float_rint_s(CPUMIPSState *env, uint32_t fs) +uint32_t HELPER(float_rint_s)(CPUMIPSState *env, uint32_t fs) { uint32_t fdret; =20 @@ -1171,7 +1172,7 @@ uint64_t float_class_d(uint64_t arg, float_status *st= atus) } } =20 -uint64_t helper_float_class_d(CPUMIPSState *env, uint64_t arg) +uint64_t HELPER(float_class_d)(CPUMIPSState *env, uint64_t arg) { return float_class_d(arg, &env->active_fpu.fp_status); } @@ -1205,15 +1206,15 @@ uint32_t float_class_s(uint32_t arg, float_status *= status) } } =20 -uint32_t helper_float_class_s(CPUMIPSState *env, uint32_t arg) +uint32_t HELPER(float_class_s)(CPUMIPSState *env, uint32_t arg) { return float_class_s(arg, &env->active_fpu.fp_status); } =20 /* binary operations */ =20 -uint64_t helper_float_add_d(CPUMIPSState *env, - uint64_t fdt0, uint64_t fdt1) +uint64_t HELPER(float_add_d)(CPUMIPSState *env, + uint64_t fdt0, uint64_t fdt1) { uint64_t dt2; =20 @@ -1222,8 +1223,8 @@ uint64_t helper_float_add_d(CPUMIPSState *env, return dt2; } =20 -uint32_t helper_float_add_s(CPUMIPSState *env, - uint32_t fst0, uint32_t fst1) +uint32_t HELPER(float_add_s)(CPUMIPSState *env, + uint32_t fst0, uint32_t fst1) { uint32_t wt2; =20 @@ -1232,8 +1233,8 @@ uint32_t helper_float_add_s(CPUMIPSState *env, return wt2; } =20 -uint64_t helper_float_add_ps(CPUMIPSState *env, - uint64_t fdt0, uint64_t fdt1) +uint64_t HELPER(float_add_ps)(CPUMIPSState *env, + uint64_t fdt0, uint64_t fdt1) { uint32_t fstl0 =3D fdt0 & 0XFFFFFFFF; uint32_t fsth0 =3D fdt0 >> 32; @@ -1248,8 +1249,8 @@ uint64_t helper_float_add_ps(CPUMIPSState *env, return ((uint64_t)wth2 << 32) | wtl2; } =20 -uint64_t helper_float_sub_d(CPUMIPSState *env, - uint64_t fdt0, uint64_t fdt1) +uint64_t HELPER(float_sub_d)(CPUMIPSState *env, + uint64_t fdt0, uint64_t fdt1) { uint64_t dt2; =20 @@ -1258,8 +1259,8 @@ uint64_t helper_float_sub_d(CPUMIPSState *env, return dt2; } =20 -uint32_t helper_float_sub_s(CPUMIPSState *env, - uint32_t fst0, uint32_t fst1) +uint32_t HELPER(float_sub_s)(CPUMIPSState *env, + uint32_t fst0, uint32_t fst1) { uint32_t wt2; =20 @@ -1268,8 +1269,8 @@ uint32_t helper_float_sub_s(CPUMIPSState *env, return wt2; } =20 -uint64_t helper_float_sub_ps(CPUMIPSState *env, - uint64_t fdt0, uint64_t fdt1) +uint64_t HELPER(float_sub_ps)(CPUMIPSState *env, + uint64_t fdt0, uint64_t fdt1) { uint32_t fstl0 =3D fdt0 & 0XFFFFFFFF; uint32_t fsth0 =3D fdt0 >> 32; @@ -1284,8 +1285,8 @@ uint64_t helper_float_sub_ps(CPUMIPSState *env, return ((uint64_t)wth2 << 32) | wtl2; } =20 -uint64_t helper_float_mul_d(CPUMIPSState *env, - uint64_t fdt0, uint64_t fdt1) +uint64_t HELPER(float_mul_d)(CPUMIPSState *env, + uint64_t fdt0, uint64_t fdt1) { uint64_t dt2; =20 @@ -1294,8 +1295,8 @@ uint64_t helper_float_mul_d(CPUMIPSState *env, return dt2; } =20 -uint32_t helper_float_mul_s(CPUMIPSState *env, - uint32_t fst0, uint32_t fst1) +uint32_t HELPER(float_mul_s)(CPUMIPSState *env, + uint32_t fst0, uint32_t fst1) { uint32_t wt2; =20 @@ -1304,8 +1305,8 @@ uint32_t helper_float_mul_s(CPUMIPSState *env, return wt2; } =20 -uint64_t helper_float_mul_ps(CPUMIPSState *env, - uint64_t fdt0, uint64_t fdt1) +uint64_t HELPER(float_mul_ps)(CPUMIPSState *env, + uint64_t fdt0, uint64_t fdt1) { uint32_t fstl0 =3D fdt0 & 0XFFFFFFFF; uint32_t fsth0 =3D fdt0 >> 32; @@ -1320,8 +1321,8 @@ uint64_t helper_float_mul_ps(CPUMIPSState *env, return ((uint64_t)wth2 << 32) | wtl2; } =20 -uint64_t helper_float_div_d(CPUMIPSState *env, - uint64_t fdt0, uint64_t fdt1) +uint64_t HELPER(float_div_d)(CPUMIPSState *env, + uint64_t fdt0, uint64_t fdt1) { uint64_t dt2; =20 @@ -1330,8 +1331,8 @@ uint64_t helper_float_div_d(CPUMIPSState *env, return dt2; } =20 -uint32_t helper_float_div_s(CPUMIPSState *env, - uint32_t fst0, uint32_t fst1) +uint32_t HELPER(float_div_s)(CPUMIPSState *env, + uint32_t fst0, uint32_t fst1) { uint32_t wt2; =20 @@ -1340,8 +1341,8 @@ uint32_t helper_float_div_s(CPUMIPSState *env, return wt2; } =20 -uint64_t helper_float_div_ps(CPUMIPSState *env, - uint64_t fdt0, uint64_t fdt1) +uint64_t HELPER(float_div_ps)(CPUMIPSState *env, + uint64_t fdt0, uint64_t fdt1) { uint32_t fstl0 =3D fdt0 & 0XFFFFFFFF; uint32_t fsth0 =3D fdt0 >> 32; @@ -1358,7 +1359,7 @@ uint64_t helper_float_div_ps(CPUMIPSState *env, =20 =20 /* MIPS specific binary operations */ -uint64_t helper_float_recip2_d(CPUMIPSState *env, uint64_t fdt0, uint64_t = fdt2) +uint64_t HELPER(float_recip2_d)(CPUMIPSState *env, uint64_t fdt0, uint64_t= fdt2) { fdt2 =3D float64_mul(fdt0, fdt2, &env->active_fpu.fp_status); fdt2 =3D float64_chs(float64_sub(fdt2, float64_one, @@ -1367,7 +1368,7 @@ uint64_t helper_float_recip2_d(CPUMIPSState *env, uin= t64_t fdt0, uint64_t fdt2) return fdt2; } =20 -uint32_t helper_float_recip2_s(CPUMIPSState *env, uint32_t fst0, uint32_t = fst2) +uint32_t HELPER(float_recip2_s)(CPUMIPSState *env, uint32_t fst0, uint32_t= fst2) { fst2 =3D float32_mul(fst0, fst2, &env->active_fpu.fp_status); fst2 =3D float32_chs(float32_sub(fst2, float32_one, @@ -1376,7 +1377,8 @@ uint32_t helper_float_recip2_s(CPUMIPSState *env, uin= t32_t fst0, uint32_t fst2) return fst2; } =20 -uint64_t helper_float_recip2_ps(CPUMIPSState *env, uint64_t fdt0, uint64_t= fdt2) +uint64_t HELPER(float_recip2_ps)(CPUMIPSState *env, uint64_t fdt0, + uint64_t fdt2) { uint32_t fstl0 =3D fdt0 & 0XFFFFFFFF; uint32_t fsth0 =3D fdt0 >> 32; @@ -1393,7 +1395,7 @@ uint64_t helper_float_recip2_ps(CPUMIPSState *env, ui= nt64_t fdt0, uint64_t fdt2) return ((uint64_t)fsth2 << 32) | fstl2; } =20 -uint64_t helper_float_rsqrt2_d(CPUMIPSState *env, uint64_t fdt0, uint64_t = fdt2) +uint64_t HELPER(float_rsqrt2_d)(CPUMIPSState *env, uint64_t fdt0, uint64_t= fdt2) { fdt2 =3D float64_mul(fdt0, fdt2, &env->active_fpu.fp_status); fdt2 =3D float64_sub(fdt2, float64_one, &env->active_fpu.fp_status); @@ -1403,7 +1405,7 @@ uint64_t helper_float_rsqrt2_d(CPUMIPSState *env, uin= t64_t fdt0, uint64_t fdt2) return fdt2; } =20 -uint32_t helper_float_rsqrt2_s(CPUMIPSState *env, uint32_t fst0, uint32_t = fst2) +uint32_t HELPER(float_rsqrt2_s)(CPUMIPSState *env, uint32_t fst0, uint32_t= fst2) { fst2 =3D float32_mul(fst0, fst2, &env->active_fpu.fp_status); fst2 =3D float32_sub(fst2, float32_one, &env->active_fpu.fp_status); @@ -1413,7 +1415,8 @@ uint32_t helper_float_rsqrt2_s(CPUMIPSState *env, uin= t32_t fst0, uint32_t fst2) return fst2; } =20 -uint64_t helper_float_rsqrt2_ps(CPUMIPSState *env, uint64_t fdt0, uint64_t= fdt2) +uint64_t HELPER(float_rsqrt2_ps)(CPUMIPSState *env, uint64_t fdt0, + uint64_t fdt2) { uint32_t fstl0 =3D fdt0 & 0XFFFFFFFF; uint32_t fsth0 =3D fdt0 >> 32; @@ -1432,7 +1435,7 @@ uint64_t helper_float_rsqrt2_ps(CPUMIPSState *env, ui= nt64_t fdt0, uint64_t fdt2) return ((uint64_t)fsth2 << 32) | fstl2; } =20 -uint64_t helper_float_addr_ps(CPUMIPSState *env, uint64_t fdt0, uint64_t f= dt1) +uint64_t HELPER(float_addr_ps)(CPUMIPSState *env, uint64_t fdt0, uint64_t = fdt1) { uint32_t fstl0 =3D fdt0 & 0XFFFFFFFF; uint32_t fsth0 =3D fdt0 >> 32; @@ -1447,7 +1450,7 @@ uint64_t helper_float_addr_ps(CPUMIPSState *env, uint= 64_t fdt0, uint64_t fdt1) return ((uint64_t)fsth2 << 32) | fstl2; } =20 -uint64_t helper_float_mulr_ps(CPUMIPSState *env, uint64_t fdt0, uint64_t f= dt1) +uint64_t HELPER(float_mulr_ps)(CPUMIPSState *env, uint64_t fdt0, uint64_t = fdt1) { uint32_t fstl0 =3D fdt0 & 0XFFFFFFFF; uint32_t fsth0 =3D fdt0 >> 32; @@ -1463,7 +1466,7 @@ uint64_t helper_float_mulr_ps(CPUMIPSState *env, uint= 64_t fdt0, uint64_t fdt1) } =20 =20 -uint32_t helper_float_max_s(CPUMIPSState *env, uint32_t fs, uint32_t ft) +uint32_t HELPER(float_max_s)(CPUMIPSState *env, uint32_t fs, uint32_t ft) { uint32_t fdret; =20 @@ -1473,7 +1476,7 @@ uint32_t helper_float_max_s(CPUMIPSState *env, uint32= _t fs, uint32_t ft) return fdret; } =20 -uint64_t helper_float_max_d(CPUMIPSState *env, uint64_t fs, uint64_t ft) +uint64_t HELPER(float_max_d)(CPUMIPSState *env, uint64_t fs, uint64_t ft) { uint64_t fdret; =20 @@ -1483,7 +1486,7 @@ uint64_t helper_float_max_d(CPUMIPSState *env, uint64= _t fs, uint64_t ft) return fdret; } =20 -uint32_t helper_float_maxa_s(CPUMIPSState *env, uint32_t fs, uint32_t ft) +uint32_t HELPER(float_maxa_s)(CPUMIPSState *env, uint32_t fs, uint32_t ft) { uint32_t fdret; =20 @@ -1493,7 +1496,7 @@ uint32_t helper_float_maxa_s(CPUMIPSState *env, uint3= 2_t fs, uint32_t ft) return fdret; } =20 -uint64_t helper_float_maxa_d(CPUMIPSState *env, uint64_t fs, uint64_t ft) +uint64_t HELPER(float_maxa_d)(CPUMIPSState *env, uint64_t fs, uint64_t ft) { uint64_t fdret; =20 @@ -1503,7 +1506,7 @@ uint64_t helper_float_maxa_d(CPUMIPSState *env, uint6= 4_t fs, uint64_t ft) return fdret; } =20 -uint32_t helper_float_min_s(CPUMIPSState *env, uint32_t fs, uint32_t ft) +uint32_t HELPER(float_min_s)(CPUMIPSState *env, uint32_t fs, uint32_t ft) { uint32_t fdret; =20 @@ -1513,7 +1516,7 @@ uint32_t helper_float_min_s(CPUMIPSState *env, uint32= _t fs, uint32_t ft) return fdret; } =20 -uint64_t helper_float_min_d(CPUMIPSState *env, uint64_t fs, uint64_t ft) +uint64_t HELPER(float_min_d)(CPUMIPSState *env, uint64_t fs, uint64_t ft) { uint64_t fdret; =20 @@ -1523,7 +1526,7 @@ uint64_t helper_float_min_d(CPUMIPSState *env, uint64= _t fs, uint64_t ft) return fdret; } =20 -uint32_t helper_float_mina_s(CPUMIPSState *env, uint32_t fs, uint32_t ft) +uint32_t HELPER(float_mina_s)(CPUMIPSState *env, uint32_t fs, uint32_t ft) { uint32_t fdret; =20 @@ -1533,7 +1536,7 @@ uint32_t helper_float_mina_s(CPUMIPSState *env, uint3= 2_t fs, uint32_t ft) return fdret; } =20 -uint64_t helper_float_mina_d(CPUMIPSState *env, uint64_t fs, uint64_t ft) +uint64_t HELPER(float_mina_d)(CPUMIPSState *env, uint64_t fs, uint64_t ft) { uint64_t fdret; =20 @@ -1546,8 +1549,8 @@ uint64_t helper_float_mina_d(CPUMIPSState *env, uint6= 4_t fs, uint64_t ft) =20 /* ternary operations */ =20 -uint64_t helper_float_madd_d(CPUMIPSState *env, uint64_t fst0, - uint64_t fst1, uint64_t fst2) +uint64_t HELPER(float_madd_d)(CPUMIPSState *env, uint64_t fst0, + uint64_t fst1, uint64_t fst2) { fst0 =3D float64_mul(fst0, fst1, &env->active_fpu.fp_status); fst0 =3D float64_add(fst0, fst2, &env->active_fpu.fp_status); @@ -1556,8 +1559,8 @@ uint64_t helper_float_madd_d(CPUMIPSState *env, uint6= 4_t fst0, return fst0; } =20 -uint32_t helper_float_madd_s(CPUMIPSState *env, uint32_t fst0, - uint32_t fst1, uint32_t fst2) +uint32_t HELPER(float_madd_s)(CPUMIPSState *env, uint32_t fst0, + uint32_t fst1, uint32_t fst2) { fst0 =3D float32_mul(fst0, fst1, &env->active_fpu.fp_status); fst0 =3D float32_add(fst0, fst2, &env->active_fpu.fp_status); @@ -1566,8 +1569,8 @@ uint32_t helper_float_madd_s(CPUMIPSState *env, uint3= 2_t fst0, return fst0; } =20 -uint64_t helper_float_madd_ps(CPUMIPSState *env, uint64_t fdt0, - uint64_t fdt1, uint64_t fdt2) +uint64_t HELPER(float_madd_ps)(CPUMIPSState *env, uint64_t fdt0, + uint64_t fdt1, uint64_t fdt2) { uint32_t fstl0 =3D fdt0 & 0XFFFFFFFF; uint32_t fsth0 =3D fdt0 >> 32; @@ -1585,7 +1588,7 @@ uint64_t helper_float_madd_ps(CPUMIPSState *env, uint= 64_t fdt0, return ((uint64_t)fsth0 << 32) | fstl0; } =20 -uint64_t helper_float_msub_d(CPUMIPSState *env, uint64_t fst0, +uint64_t HELPER(float_msub_d)(CPUMIPSState *env, uint64_t fst0, uint64_t fst1, uint64_t fst2) { fst0 =3D float64_mul(fst0, fst1, &env->active_fpu.fp_status); @@ -1595,7 +1598,7 @@ uint64_t helper_float_msub_d(CPUMIPSState *env, uint6= 4_t fst0, return fst0; } =20 -uint32_t helper_float_msub_s(CPUMIPSState *env, uint32_t fst0, +uint32_t HELPER(float_msub_s)(CPUMIPSState *env, uint32_t fst0, uint32_t fst1, uint32_t fst2) { fst0 =3D float32_mul(fst0, fst1, &env->active_fpu.fp_status); @@ -1605,7 +1608,7 @@ uint32_t helper_float_msub_s(CPUMIPSState *env, uint3= 2_t fst0, return fst0; } =20 -uint64_t helper_float_msub_ps(CPUMIPSState *env, uint64_t fdt0, +uint64_t HELPER(float_msub_ps)(CPUMIPSState *env, uint64_t fdt0, uint64_t fdt1, uint64_t fdt2) { uint32_t fstl0 =3D fdt0 & 0XFFFFFFFF; @@ -1624,7 +1627,7 @@ uint64_t helper_float_msub_ps(CPUMIPSState *env, uint= 64_t fdt0, return ((uint64_t)fsth0 << 32) | fstl0; } =20 -uint64_t helper_float_nmadd_d(CPUMIPSState *env, uint64_t fst0, +uint64_t HELPER(float_nmadd_d)(CPUMIPSState *env, uint64_t fst0, uint64_t fst1, uint64_t fst2) { fst0 =3D float64_mul(fst0, fst1, &env->active_fpu.fp_status); @@ -1635,7 +1638,7 @@ uint64_t helper_float_nmadd_d(CPUMIPSState *env, uint= 64_t fst0, return fst0; } =20 -uint32_t helper_float_nmadd_s(CPUMIPSState *env, uint32_t fst0, +uint32_t HELPER(float_nmadd_s)(CPUMIPSState *env, uint32_t fst0, uint32_t fst1, uint32_t fst2) { fst0 =3D float32_mul(fst0, fst1, &env->active_fpu.fp_status); @@ -1646,7 +1649,7 @@ uint32_t helper_float_nmadd_s(CPUMIPSState *env, uint= 32_t fst0, return fst0; } =20 -uint64_t helper_float_nmadd_ps(CPUMIPSState *env, uint64_t fdt0, +uint64_t HELPER(float_nmadd_ps)(CPUMIPSState *env, uint64_t fdt0, uint64_t fdt1, uint64_t fdt2) { uint32_t fstl0 =3D fdt0 & 0XFFFFFFFF; @@ -1667,7 +1670,7 @@ uint64_t helper_float_nmadd_ps(CPUMIPSState *env, uin= t64_t fdt0, return ((uint64_t)fsth0 << 32) | fstl0; } =20 -uint64_t helper_float_nmsub_d(CPUMIPSState *env, uint64_t fst0, +uint64_t HELPER(float_nmsub_d)(CPUMIPSState *env, uint64_t fst0, uint64_t fst1, uint64_t fst2) { fst0 =3D float64_mul(fst0, fst1, &env->active_fpu.fp_status); @@ -1678,7 +1681,7 @@ uint64_t helper_float_nmsub_d(CPUMIPSState *env, uint= 64_t fst0, return fst0; } =20 -uint32_t helper_float_nmsub_s(CPUMIPSState *env, uint32_t fst0, +uint32_t HELPER(float_nmsub_s)(CPUMIPSState *env, uint32_t fst0, uint32_t fst1, uint32_t fst2) { fst0 =3D float32_mul(fst0, fst1, &env->active_fpu.fp_status); @@ -1689,7 +1692,7 @@ uint32_t helper_float_nmsub_s(CPUMIPSState *env, uint= 32_t fst0, return fst0; } =20 -uint64_t helper_float_nmsub_ps(CPUMIPSState *env, uint64_t fdt0, +uint64_t HELPER(float_nmsub_ps)(CPUMIPSState *env, uint64_t fdt0, uint64_t fdt1, uint64_t fdt2) { uint32_t fstl0 =3D fdt0 & 0XFFFFFFFF; @@ -1711,7 +1714,7 @@ uint64_t helper_float_nmsub_ps(CPUMIPSState *env, uin= t64_t fdt0, } =20 =20 -uint32_t helper_float_maddf_s(CPUMIPSState *env, uint32_t fs, +uint32_t HELPER(float_maddf_s)(CPUMIPSState *env, uint32_t fs, uint32_t ft, uint32_t fd) { uint32_t fdret; @@ -1723,7 +1726,7 @@ uint32_t helper_float_maddf_s(CPUMIPSState *env, uint= 32_t fs, return fdret; } =20 -uint64_t helper_float_maddf_d(CPUMIPSState *env, uint64_t fs, +uint64_t HELPER(float_maddf_d)(CPUMIPSState *env, uint64_t fs, uint64_t ft, uint64_t fd) { uint64_t fdret; @@ -1735,7 +1738,7 @@ uint64_t helper_float_maddf_d(CPUMIPSState *env, uint= 64_t fs, return fdret; } =20 -uint32_t helper_float_msubf_s(CPUMIPSState *env, uint32_t fs, +uint32_t HELPER(float_msubf_s)(CPUMIPSState *env, uint32_t fs, uint32_t ft, uint32_t fd) { uint32_t fdret; @@ -1747,7 +1750,7 @@ uint32_t helper_float_msubf_s(CPUMIPSState *env, uint= 32_t fs, return fdret; } =20 -uint64_t helper_float_msubf_d(CPUMIPSState *env, uint64_t fs, +uint64_t HELPER(float_msubf_d)(CPUMIPSState *env, uint64_t fs, uint64_t ft, uint64_t fd) { uint64_t fdret; @@ -1762,7 +1765,7 @@ uint64_t helper_float_msubf_d(CPUMIPSState *env, uint= 64_t fs, =20 /* compare operations */ #define FOP_COND_D(op, cond) \ -void helper_cmp_d_ ## op(CPUMIPSState *env, uint64_t fdt0, \ +void HELPER(cmp_d_ ## op)(CPUMIPSState *env, uint64_t fdt0, \ uint64_t fdt1, int cc) \ { \ int c; \ @@ -1773,7 +1776,7 @@ void helper_cmp_d_ ## op(CPUMIPSState *env, uint64_t = fdt0, \ else \ CLEAR_FP_COND(cc, env->active_fpu); \ } \ -void helper_cmpabs_d_ ## op(CPUMIPSState *env, uint64_t fdt0, \ +void HELPER(cmpabs_d_ ## op)(CPUMIPSState *env, uint64_t fdt0, \ uint64_t fdt1, int cc) \ { \ int c; \ @@ -1841,7 +1844,7 @@ FOP_COND_D(ngt, float64_unordered(fdt1, fdt0, &env->active_fpu.fp_status)) =20 #define FOP_COND_S(op, cond) \ -void helper_cmp_s_ ## op(CPUMIPSState *env, uint32_t fst0, \ +void HELPER(cmp_s_ ## op)(CPUMIPSState *env, uint32_t fst0, \ uint32_t fst1, int cc) \ { \ int c; \ @@ -1852,7 +1855,7 @@ void helper_cmp_s_ ## op(CPUMIPSState *env, uint32_t = fst0, \ else \ CLEAR_FP_COND(cc, env->active_fpu); \ } \ -void helper_cmpabs_s_ ## op(CPUMIPSState *env, uint32_t fst0, \ +void HELPER(cmpabs_s_ ## op)(CPUMIPSState *env, uint32_t fst0, \ uint32_t fst1, int cc) \ { \ int c; \ @@ -1920,7 +1923,7 @@ FOP_COND_S(ngt, float32_unordered(fst1, fst0, &env->active_fpu.fp_status)) =20 #define FOP_COND_PS(op, condl, condh) \ -void helper_cmp_ps_ ## op(CPUMIPSState *env, uint64_t fdt0, \ +void HELPER(cmp_ps_ ## op)(CPUMIPSState *env, uint64_t fdt0, \ uint64_t fdt1, int cc) \ { \ uint32_t fst0, fsth0, fst1, fsth1; \ @@ -1941,7 +1944,7 @@ void helper_cmp_ps_ ## op(CPUMIPSState *env, uint64_t= fdt0, \ else \ CLEAR_FP_COND(cc + 1, env->active_fpu); \ } \ -void helper_cmpabs_ps_ ## op(CPUMIPSState *env, uint64_t fdt0, \ +void HELPER(cmpabs_ps_ ## op)(CPUMIPSState *env, uint64_t fdt0, \ uint64_t fdt1, int cc) \ { \ uint32_t fst0, fsth0, fst1, fsth1; \ @@ -2062,7 +2065,7 @@ FOP_COND_PS(ngt, float32_unordered(fst1, fst0, =20 /* R6 compare operations */ #define FOP_CONDN_D(op, cond) \ -uint64_t helper_r6_cmp_d_ ## op(CPUMIPSState *env, uint64_t fdt0, \ +uint64_t HELPER(r6_cmp_d_ ## op)(CPUMIPSState *env, uint64_t fdt0, \ uint64_t fdt1) \ { \ uint64_t c; \ @@ -2157,7 +2160,7 @@ FOP_CONDN_D(sne, (float64_lt(fdt1, fdt0, &env->active_fpu.fp_status))) =20 #define FOP_CONDN_S(op, cond) \ -uint32_t helper_r6_cmp_s_ ## op(CPUMIPSState *env, uint32_t fst0, \ +uint32_t HELPER(r6_cmp_s_ ## op)(CPUMIPSState *env, uint32_t fst0, \ uint32_t fst1) \ { \ uint64_t c; \ diff --git a/target/mips/tcg/ldst_helper.c b/target/mips/tcg/ldst_helper.c index 1b25466b496..13bf71ca228 100644 --- a/target/mips/tcg/ldst_helper.c +++ b/target/mips/tcg/ldst_helper.c @@ -32,7 +32,7 @@ #include "exec/tlb-flags.h" =20 #define HELPER_LD_ATOMIC(name, insn, almask, do_cast) = \ -target_ulong helper_##name(CPUMIPSState *env, target_ulong arg, = \ +target_ulong HELPER(name)(CPUMIPSState *env, target_ulong arg, = \ uint32_t memop_idx) = \ { = \ MemOpIdx oi =3D memop_idx; = \ @@ -73,7 +73,7 @@ static inline target_ulong get_lmask(CPUMIPSState *env, return value; } =20 -void helper_swl(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, +void HELPER(swl)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, int mem_idx) { target_ulong lmask =3D get_lmask(env, arg2, 32); @@ -97,7 +97,7 @@ void helper_swl(CPUMIPSState *env, target_ulong arg1, tar= get_ulong arg2, } } =20 -void helper_swr(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, +void HELPER(swr)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, int mem_idx) { target_ulong lmask =3D get_lmask(env, arg2, 32); @@ -127,7 +127,7 @@ void helper_swr(CPUMIPSState *env, target_ulong arg1, t= arget_ulong arg2, * or fault handling won't work. */ =20 -void helper_sdl(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, +void HELPER(sdl)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, int mem_idx) { target_ulong lmask =3D get_lmask(env, arg2, 64); @@ -171,7 +171,7 @@ void helper_sdl(CPUMIPSState *env, target_ulong arg1, t= arget_ulong arg2, } } =20 -void helper_sdr(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, +void HELPER(sdr)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, int mem_idx) { target_ulong lmask =3D get_lmask(env, arg2, 64); @@ -218,7 +218,7 @@ void helper_sdr(CPUMIPSState *env, target_ulong arg1, t= arget_ulong arg2, =20 static const int multiple_regs[] =3D { 16, 17, 18, 19, 20, 21, 22, 23, 30 = }; =20 -void helper_lwm(CPUMIPSState *env, target_ulong addr, target_ulong reglist, +void HELPER(lwm)(CPUMIPSState *env, target_ulong addr, target_ulong reglis= t, uint32_t memop_idx) { MemOpIdx oi =3D memop_idx; @@ -239,7 +239,7 @@ void helper_lwm(CPUMIPSState *env, target_ulong addr, t= arget_ulong reglist, } } =20 -void helper_swm(CPUMIPSState *env, target_ulong addr, target_ulong reglist, +void HELPER(swm)(CPUMIPSState *env, target_ulong addr, target_ulong reglis= t, uint32_t memop_idx) { MemOpIdx oi =3D memop_idx; @@ -261,7 +261,7 @@ void helper_swm(CPUMIPSState *env, target_ulong addr, t= arget_ulong reglist, } =20 #if defined(TARGET_MIPS64) -void helper_ldm(CPUMIPSState *env, target_ulong addr, target_ulong reglist, +void HELPER(ldm)(CPUMIPSState *env, target_ulong addr, target_ulong reglis= t, uint32_t memop_idx) { MemOpIdx oi =3D memop_idx; @@ -282,7 +282,7 @@ void helper_ldm(CPUMIPSState *env, target_ulong addr, t= arget_ulong reglist, } } =20 -void helper_sdm(CPUMIPSState *env, target_ulong addr, target_ulong reglist, +void HELPER(sdm)(CPUMIPSState *env, target_ulong addr, target_ulong reglis= t, uint32_t memop_idx) { MemOpIdx oi =3D memop_idx; diff --git a/target/mips/tcg/lmmi_helper.c b/target/mips/tcg/lmmi_helper.c index 2c8732525ce..acda1b69be7 100644 --- a/target/mips/tcg/lmmi_helper.c +++ b/target/mips/tcg/lmmi_helper.c @@ -53,7 +53,7 @@ typedef union { (x < -0x80000000ll ? -0x80000000ll : x > 0x7fffffff ? 0x7fffffff : x) #define SATUW(x) (x > 0xffffffffull ? 0xffffffffull : x) =20 -uint64_t helper_paddsb(uint64_t fs, uint64_t ft) +uint64_t HELPER(paddsb)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -67,7 +67,7 @@ uint64_t helper_paddsb(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_paddusb(uint64_t fs, uint64_t ft) +uint64_t HELPER(paddusb)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -81,7 +81,7 @@ uint64_t helper_paddusb(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_paddsh(uint64_t fs, uint64_t ft) +uint64_t HELPER(paddsh)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -95,7 +95,7 @@ uint64_t helper_paddsh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_paddush(uint64_t fs, uint64_t ft) +uint64_t HELPER(paddush)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -109,7 +109,7 @@ uint64_t helper_paddush(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_paddb(uint64_t fs, uint64_t ft) +uint64_t HELPER(paddb)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -122,7 +122,7 @@ uint64_t helper_paddb(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_paddh(uint64_t fs, uint64_t ft) +uint64_t HELPER(paddh)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -135,7 +135,7 @@ uint64_t helper_paddh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_paddw(uint64_t fs, uint64_t ft) +uint64_t HELPER(paddw)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -148,7 +148,7 @@ uint64_t helper_paddw(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psubsb(uint64_t fs, uint64_t ft) +uint64_t HELPER(psubsb)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -162,7 +162,7 @@ uint64_t helper_psubsb(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psubusb(uint64_t fs, uint64_t ft) +uint64_t HELPER(psubusb)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -176,7 +176,7 @@ uint64_t helper_psubusb(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psubsh(uint64_t fs, uint64_t ft) +uint64_t HELPER(psubsh)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -190,7 +190,7 @@ uint64_t helper_psubsh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psubush(uint64_t fs, uint64_t ft) +uint64_t HELPER(psubush)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -204,7 +204,7 @@ uint64_t helper_psubush(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psubb(uint64_t fs, uint64_t ft) +uint64_t HELPER(psubb)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -217,7 +217,7 @@ uint64_t helper_psubb(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psubh(uint64_t fs, uint64_t ft) +uint64_t HELPER(psubh)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -230,7 +230,7 @@ uint64_t helper_psubh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psubw(uint64_t fs, uint64_t ft) +uint64_t HELPER(psubw)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned int i; @@ -243,7 +243,7 @@ uint64_t helper_psubw(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pshufh(uint64_t fs, uint64_t ft) +uint64_t HELPER(pshufh)(uint64_t fs, uint64_t ft) { unsigned host =3D BYTE_ORDER_XOR(3); LMIValue vd, vs; @@ -257,7 +257,7 @@ uint64_t helper_pshufh(uint64_t fs, uint64_t ft) return vd.d; } =20 -uint64_t helper_packsswh(uint64_t fs, uint64_t ft) +uint64_t HELPER(packsswh)(uint64_t fs, uint64_t ft) { uint64_t fd =3D 0; int64_t tmp; @@ -281,7 +281,7 @@ uint64_t helper_packsswh(uint64_t fs, uint64_t ft) return fd; } =20 -uint64_t helper_packsshb(uint64_t fs, uint64_t ft) +uint64_t HELPER(packsshb)(uint64_t fs, uint64_t ft) { uint64_t fd =3D 0; unsigned int i; @@ -300,7 +300,7 @@ uint64_t helper_packsshb(uint64_t fs, uint64_t ft) return fd; } =20 -uint64_t helper_packushb(uint64_t fs, uint64_t ft) +uint64_t HELPER(packushb)(uint64_t fs, uint64_t ft) { uint64_t fd =3D 0; unsigned int i; @@ -319,17 +319,17 @@ uint64_t helper_packushb(uint64_t fs, uint64_t ft) return fd; } =20 -uint64_t helper_punpcklwd(uint64_t fs, uint64_t ft) +uint64_t HELPER(punpcklwd)(uint64_t fs, uint64_t ft) { return (fs & 0xffffffff) | (ft << 32); } =20 -uint64_t helper_punpckhwd(uint64_t fs, uint64_t ft) +uint64_t HELPER(punpckhwd)(uint64_t fs, uint64_t ft) { return (fs >> 32) | (ft & ~0xffffffffull); } =20 -uint64_t helper_punpcklhw(uint64_t fs, uint64_t ft) +uint64_t HELPER(punpcklhw)(uint64_t fs, uint64_t ft) { unsigned host =3D BYTE_ORDER_XOR(3); LMIValue vd, vs, vt; @@ -344,7 +344,7 @@ uint64_t helper_punpcklhw(uint64_t fs, uint64_t ft) return vd.d; } =20 -uint64_t helper_punpckhhw(uint64_t fs, uint64_t ft) +uint64_t HELPER(punpckhhw)(uint64_t fs, uint64_t ft) { unsigned host =3D BYTE_ORDER_XOR(3); LMIValue vd, vs, vt; @@ -359,7 +359,7 @@ uint64_t helper_punpckhhw(uint64_t fs, uint64_t ft) return vd.d; } =20 -uint64_t helper_punpcklbh(uint64_t fs, uint64_t ft) +uint64_t HELPER(punpcklbh)(uint64_t fs, uint64_t ft) { unsigned host =3D BYTE_ORDER_XOR(7); LMIValue vd, vs, vt; @@ -378,7 +378,7 @@ uint64_t helper_punpcklbh(uint64_t fs, uint64_t ft) return vd.d; } =20 -uint64_t helper_punpckhbh(uint64_t fs, uint64_t ft) +uint64_t HELPER(punpckhbh)(uint64_t fs, uint64_t ft) { unsigned host =3D BYTE_ORDER_XOR(7); LMIValue vd, vs, vt; @@ -397,7 +397,7 @@ uint64_t helper_punpckhbh(uint64_t fs, uint64_t ft) return vd.d; } =20 -uint64_t helper_pavgh(uint64_t fs, uint64_t ft) +uint64_t HELPER(pavgh)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -410,7 +410,7 @@ uint64_t helper_pavgh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pavgb(uint64_t fs, uint64_t ft) +uint64_t HELPER(pavgb)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -423,7 +423,7 @@ uint64_t helper_pavgb(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pmaxsh(uint64_t fs, uint64_t ft) +uint64_t HELPER(pmaxsh)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -436,7 +436,7 @@ uint64_t helper_pmaxsh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pminsh(uint64_t fs, uint64_t ft) +uint64_t HELPER(pminsh)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -449,7 +449,7 @@ uint64_t helper_pminsh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pmaxub(uint64_t fs, uint64_t ft) +uint64_t HELPER(pmaxub)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -462,7 +462,7 @@ uint64_t helper_pmaxub(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pminub(uint64_t fs, uint64_t ft) +uint64_t HELPER(pminub)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -475,7 +475,7 @@ uint64_t helper_pminub(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pcmpeqw(uint64_t fs, uint64_t ft) +uint64_t HELPER(pcmpeqw)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -488,7 +488,7 @@ uint64_t helper_pcmpeqw(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pcmpgtw(uint64_t fs, uint64_t ft) +uint64_t HELPER(pcmpgtw)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -501,7 +501,7 @@ uint64_t helper_pcmpgtw(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pcmpeqh(uint64_t fs, uint64_t ft) +uint64_t HELPER(pcmpeqh)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -514,7 +514,7 @@ uint64_t helper_pcmpeqh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pcmpgth(uint64_t fs, uint64_t ft) +uint64_t HELPER(pcmpgth)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -527,7 +527,7 @@ uint64_t helper_pcmpgth(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pcmpeqb(uint64_t fs, uint64_t ft) +uint64_t HELPER(pcmpeqb)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -540,7 +540,7 @@ uint64_t helper_pcmpeqb(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pcmpgtb(uint64_t fs, uint64_t ft) +uint64_t HELPER(pcmpgtb)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -553,7 +553,7 @@ uint64_t helper_pcmpgtb(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psllw(uint64_t fs, uint64_t ft) +uint64_t HELPER(psllw)(uint64_t fs, uint64_t ft) { LMIValue vs; unsigned i; @@ -569,7 +569,7 @@ uint64_t helper_psllw(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psrlw(uint64_t fs, uint64_t ft) +uint64_t HELPER(psrlw)(uint64_t fs, uint64_t ft) { LMIValue vs; unsigned i; @@ -585,7 +585,7 @@ uint64_t helper_psrlw(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psraw(uint64_t fs, uint64_t ft) +uint64_t HELPER(psraw)(uint64_t fs, uint64_t ft) { LMIValue vs; unsigned i; @@ -601,7 +601,7 @@ uint64_t helper_psraw(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psllh(uint64_t fs, uint64_t ft) +uint64_t HELPER(psllh)(uint64_t fs, uint64_t ft) { LMIValue vs; unsigned i; @@ -617,7 +617,7 @@ uint64_t helper_psllh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psrlh(uint64_t fs, uint64_t ft) +uint64_t HELPER(psrlh)(uint64_t fs, uint64_t ft) { LMIValue vs; unsigned i; @@ -633,7 +633,7 @@ uint64_t helper_psrlh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_psrah(uint64_t fs, uint64_t ft) +uint64_t HELPER(psrah)(uint64_t fs, uint64_t ft) { LMIValue vs; unsigned i; @@ -649,7 +649,7 @@ uint64_t helper_psrah(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pmullh(uint64_t fs, uint64_t ft) +uint64_t HELPER(pmullh)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -662,7 +662,7 @@ uint64_t helper_pmullh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pmulhh(uint64_t fs, uint64_t ft) +uint64_t HELPER(pmulhh)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -676,7 +676,7 @@ uint64_t helper_pmulhh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pmulhuh(uint64_t fs, uint64_t ft) +uint64_t HELPER(pmulhuh)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -690,7 +690,7 @@ uint64_t helper_pmulhuh(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_pmaddhw(uint64_t fs, uint64_t ft) +uint64_t HELPER(pmaddhw)(uint64_t fs, uint64_t ft) { unsigned host =3D BYTE_ORDER_XOR(3); LMIValue vs, vt; @@ -706,7 +706,7 @@ uint64_t helper_pmaddhw(uint64_t fs, uint64_t ft) return ((uint64_t)p1 << 32) | p0; } =20 -uint64_t helper_pasubub(uint64_t fs, uint64_t ft) +uint64_t HELPER(pasubub)(uint64_t fs, uint64_t ft) { LMIValue vs, vt; unsigned i; @@ -720,7 +720,7 @@ uint64_t helper_pasubub(uint64_t fs, uint64_t ft) return vs.d; } =20 -uint64_t helper_biadd(uint64_t fs) +uint64_t HELPER(biadd)(uint64_t fs) { unsigned i, fd; =20 @@ -730,7 +730,7 @@ uint64_t helper_biadd(uint64_t fs) return fd & 0xffff; } =20 -uint64_t helper_pmovmskb(uint64_t fs) +uint64_t HELPER(pmovmskb)(uint64_t fs) { unsigned fd =3D 0; =20 diff --git a/target/mips/tcg/msa_helper.c b/target/mips/tcg/msa_helper.c index f554b3d10ee..fb76524ba08 100644 --- a/target/mips/tcg/msa_helper.c +++ b/target/mips/tcg/msa_helper.c @@ -96,7 +96,7 @@ static inline int64_t msa_nloc_df(uint32_t df, int64_t ar= g) return msa_nlzc_df(df, UNSIGNED((~arg), df)); } =20 -void helper_msa_nloc_b(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_nloc_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -119,7 +119,7 @@ void helper_msa_nloc_b(CPUMIPSState *env, uint32_t wd, = uint32_t ws) pwd->b[15] =3D msa_nloc_df(DF_BYTE, pws->b[15]); } =20 -void helper_msa_nloc_h(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_nloc_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -134,7 +134,7 @@ void helper_msa_nloc_h(CPUMIPSState *env, uint32_t wd, = uint32_t ws) pwd->h[7] =3D msa_nloc_df(DF_HALF, pws->h[7]); } =20 -void helper_msa_nloc_w(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_nloc_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -145,7 +145,7 @@ void helper_msa_nloc_w(CPUMIPSState *env, uint32_t wd, = uint32_t ws) pwd->w[3] =3D msa_nloc_df(DF_WORD, pws->w[3]); } =20 -void helper_msa_nloc_d(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_nloc_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -154,7 +154,7 @@ void helper_msa_nloc_d(CPUMIPSState *env, uint32_t wd, = uint32_t ws) pwd->d[1] =3D msa_nloc_df(DF_DOUBLE, pws->d[1]); } =20 -void helper_msa_nlzc_b(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_nlzc_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -177,7 +177,7 @@ void helper_msa_nlzc_b(CPUMIPSState *env, uint32_t wd, = uint32_t ws) pwd->b[15] =3D msa_nlzc_df(DF_BYTE, pws->b[15]); } =20 -void helper_msa_nlzc_h(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_nlzc_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -192,7 +192,7 @@ void helper_msa_nlzc_h(CPUMIPSState *env, uint32_t wd, = uint32_t ws) pwd->h[7] =3D msa_nlzc_df(DF_HALF, pws->h[7]); } =20 -void helper_msa_nlzc_w(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_nlzc_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -203,7 +203,7 @@ void helper_msa_nlzc_w(CPUMIPSState *env, uint32_t wd, = uint32_t ws) pwd->w[3] =3D msa_nlzc_df(DF_WORD, pws->w[3]); } =20 -void helper_msa_nlzc_d(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_nlzc_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -228,7 +228,7 @@ static inline int64_t msa_pcnt_df(uint32_t df, int64_t = arg) return x; } =20 -void helper_msa_pcnt_b(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_pcnt_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -251,7 +251,7 @@ void helper_msa_pcnt_b(CPUMIPSState *env, uint32_t wd, = uint32_t ws) pwd->b[15] =3D msa_pcnt_df(DF_BYTE, pws->b[15]); } =20 -void helper_msa_pcnt_h(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_pcnt_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -266,7 +266,7 @@ void helper_msa_pcnt_h(CPUMIPSState *env, uint32_t wd, = uint32_t ws) pwd->h[7] =3D msa_pcnt_df(DF_HALF, pws->h[7]); } =20 -void helper_msa_pcnt_w(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_pcnt_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -277,7 +277,7 @@ void helper_msa_pcnt_w(CPUMIPSState *env, uint32_t wd, = uint32_t ws) pwd->w[3] =3D msa_pcnt_df(DF_WORD, pws->w[3]); } =20 -void helper_msa_pcnt_d(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_pcnt_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -324,7 +324,7 @@ static inline int64_t msa_binsl_df(uint32_t df, } } =20 -void helper_msa_binsl_b(CPUMIPSState *env, +void HELPER(msa_binsl_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -349,7 +349,7 @@ void helper_msa_binsl_b(CPUMIPSState *env, pwd->b[15] =3D msa_binsl_df(DF_BYTE, pwd->b[15], pws->b[15], pwt->b[15= ]); } =20 -void helper_msa_binsl_h(CPUMIPSState *env, +void HELPER(msa_binsl_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -366,7 +366,7 @@ void helper_msa_binsl_h(CPUMIPSState *env, pwd->h[7] =3D msa_binsl_df(DF_HALF, pwd->h[7], pws->h[7], pwt->h[7]= ); } =20 -void helper_msa_binsl_w(CPUMIPSState *env, +void HELPER(msa_binsl_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -379,7 +379,7 @@ void helper_msa_binsl_w(CPUMIPSState *env, pwd->w[3] =3D msa_binsl_df(DF_WORD, pwd->w[3], pws->w[3], pwt->w[3]= ); } =20 -void helper_msa_binsl_d(CPUMIPSState *env, +void HELPER(msa_binsl_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -405,7 +405,7 @@ static inline int64_t msa_binsr_df(uint32_t df, } } =20 -void helper_msa_binsr_b(CPUMIPSState *env, +void HELPER(msa_binsr_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -430,7 +430,7 @@ void helper_msa_binsr_b(CPUMIPSState *env, pwd->b[15] =3D msa_binsr_df(DF_BYTE, pwd->b[15], pws->b[15], pwt->b[15= ]); } =20 -void helper_msa_binsr_h(CPUMIPSState *env, +void HELPER(msa_binsr_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -447,7 +447,7 @@ void helper_msa_binsr_h(CPUMIPSState *env, pwd->h[7] =3D msa_binsr_df(DF_HALF, pwd->h[7], pws->h[7], pwt->h[7]= ); } =20 -void helper_msa_binsr_w(CPUMIPSState *env, +void HELPER(msa_binsr_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -460,7 +460,7 @@ void helper_msa_binsr_w(CPUMIPSState *env, pwd->w[3] =3D msa_binsr_df(DF_WORD, pwd->w[3], pws->w[3], pwt->w[3]= ); } =20 -void helper_msa_binsr_d(CPUMIPSState *env, +void HELPER(msa_binsr_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -471,7 +471,8 @@ void helper_msa_binsr_d(CPUMIPSState *env, pwd->d[1] =3D msa_binsr_df(DF_DOUBLE, pwd->d[1], pws->d[1], pwt->d[= 1]); } =20 -void helper_msa_bmnz_v(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bmnz_v)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -483,7 +484,7 @@ void helper_msa_bmnz_v(CPUMIPSState *env, uint32_t wd, = uint32_t ws, uint32_t wt) ((pwd->d[1] & (~pwt->d[1])) | (pws->d[1] & pwt->d[1])), DF_DOUBLE); } =20 -void helper_msa_bmz_v(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_= t wt) +void HELPER(msa_bmz_v)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -495,7 +496,8 @@ void helper_msa_bmz_v(CPUMIPSState *env, uint32_t wd, u= int32_t ws, uint32_t wt) ((pwd->d[1] & pwt->d[1]) | (pws->d[1] & (~pwt->d[1]))), DF_DOUBLE); } =20 -void helper_msa_bsel_v(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bsel_v)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -534,7 +536,8 @@ static inline int64_t msa_bclr_df(uint32_t df, int64_t = arg1, int64_t arg2) return UNSIGNED(arg1 & (~(1LL << b_arg2)), df); } =20 -void helper_msa_bclr_b(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bclr_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -558,7 +561,8 @@ void helper_msa_bclr_b(CPUMIPSState *env, uint32_t wd, = uint32_t ws, uint32_t wt) pwd->b[15] =3D msa_bclr_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_bclr_h(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bclr_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -574,7 +578,8 @@ void helper_msa_bclr_h(CPUMIPSState *env, uint32_t wd, = uint32_t ws, uint32_t wt) pwd->h[7] =3D msa_bclr_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_bclr_w(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bclr_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -586,7 +591,8 @@ void helper_msa_bclr_w(CPUMIPSState *env, uint32_t wd, = uint32_t ws, uint32_t wt) pwd->w[3] =3D msa_bclr_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_bclr_d(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bclr_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -602,7 +608,8 @@ static inline int64_t msa_bneg_df(uint32_t df, int64_t = arg1, int64_t arg2) return UNSIGNED(arg1 ^ (1LL << b_arg2), df); } =20 -void helper_msa_bneg_b(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bneg_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -626,7 +633,8 @@ void helper_msa_bneg_b(CPUMIPSState *env, uint32_t wd, = uint32_t ws, uint32_t wt) pwd->b[15] =3D msa_bneg_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_bneg_h(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bneg_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -642,7 +650,8 @@ void helper_msa_bneg_h(CPUMIPSState *env, uint32_t wd, = uint32_t ws, uint32_t wt) pwd->h[7] =3D msa_bneg_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_bneg_w(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bneg_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -654,7 +663,8 @@ void helper_msa_bneg_w(CPUMIPSState *env, uint32_t wd, = uint32_t ws, uint32_t wt) pwd->w[3] =3D msa_bneg_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_bneg_d(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bneg_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -671,7 +681,8 @@ static inline int64_t msa_bset_df(uint32_t df, int64_t = arg1, return UNSIGNED(arg1 | (1LL << b_arg2), df); } =20 -void helper_msa_bset_b(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bset_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -695,7 +706,8 @@ void helper_msa_bset_b(CPUMIPSState *env, uint32_t wd, = uint32_t ws, uint32_t wt) pwd->b[15] =3D msa_bset_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_bset_h(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bset_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -711,7 +723,8 @@ void helper_msa_bset_h(CPUMIPSState *env, uint32_t wd, = uint32_t ws, uint32_t wt) pwd->h[7] =3D msa_bset_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_bset_w(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bset_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -723,7 +736,8 @@ void helper_msa_bset_w(CPUMIPSState *env, uint32_t wd, = uint32_t ws, uint32_t wt) pwd->w[3] =3D msa_bset_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_bset_d(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) +void HELPER(msa_bset_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, + uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -818,7 +832,7 @@ static inline int64_t msa_add_a_df(uint32_t df, int64_t= arg1, int64_t arg2) return abs_arg1 + abs_arg2; } =20 -void helper_msa_add_a_b(CPUMIPSState *env, +void HELPER(msa_add_a_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -843,7 +857,7 @@ void helper_msa_add_a_b(CPUMIPSState *env, pwd->b[15] =3D msa_add_a_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_add_a_h(CPUMIPSState *env, +void HELPER(msa_add_a_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -860,7 +874,7 @@ void helper_msa_add_a_h(CPUMIPSState *env, pwd->h[7] =3D msa_add_a_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_add_a_w(CPUMIPSState *env, +void HELPER(msa_add_a_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -873,7 +887,7 @@ void helper_msa_add_a_w(CPUMIPSState *env, pwd->w[3] =3D msa_add_a_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_add_a_d(CPUMIPSState *env, +void HELPER(msa_add_a_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -897,7 +911,7 @@ static inline int64_t msa_adds_a_df(uint32_t df, int64_= t arg1, int64_t arg2) } } =20 -void helper_msa_adds_a_b(CPUMIPSState *env, +void HELPER(msa_adds_a_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -922,7 +936,7 @@ void helper_msa_adds_a_b(CPUMIPSState *env, pwd->b[15] =3D msa_adds_a_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_adds_a_h(CPUMIPSState *env, +void HELPER(msa_adds_a_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -939,7 +953,7 @@ void helper_msa_adds_a_h(CPUMIPSState *env, pwd->h[7] =3D msa_adds_a_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_adds_a_w(CPUMIPSState *env, +void HELPER(msa_adds_a_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -952,7 +966,7 @@ void helper_msa_adds_a_w(CPUMIPSState *env, pwd->w[3] =3D msa_adds_a_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_adds_a_d(CPUMIPSState *env, +void HELPER(msa_adds_a_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -975,7 +989,7 @@ static inline int64_t msa_adds_s_df(uint32_t df, int64_= t arg1, int64_t arg2) } } =20 -void helper_msa_adds_s_b(CPUMIPSState *env, +void HELPER(msa_adds_s_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1000,7 +1014,7 @@ void helper_msa_adds_s_b(CPUMIPSState *env, pwd->b[15] =3D msa_adds_s_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_adds_s_h(CPUMIPSState *env, +void HELPER(msa_adds_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1017,7 +1031,7 @@ void helper_msa_adds_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_adds_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_adds_s_w(CPUMIPSState *env, +void HELPER(msa_adds_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1030,7 +1044,7 @@ void helper_msa_adds_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_adds_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_adds_s_d(CPUMIPSState *env, +void HELPER(msa_adds_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1050,7 +1064,7 @@ static inline uint64_t msa_adds_u_df(uint32_t df, uin= t64_t arg1, uint64_t arg2) return (u_arg1 < max_uint - u_arg2) ? u_arg1 + u_arg2 : max_uint; } =20 -void helper_msa_adds_u_b(CPUMIPSState *env, +void HELPER(msa_adds_u_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1075,7 +1089,7 @@ void helper_msa_adds_u_b(CPUMIPSState *env, pwd->b[15] =3D msa_adds_u_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_adds_u_h(CPUMIPSState *env, +void HELPER(msa_adds_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1092,7 +1106,7 @@ void helper_msa_adds_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_adds_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_adds_u_w(CPUMIPSState *env, +void HELPER(msa_adds_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1105,7 +1119,7 @@ void helper_msa_adds_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_adds_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_adds_u_d(CPUMIPSState *env, +void HELPER(msa_adds_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1122,7 +1136,7 @@ static inline int64_t msa_addv_df(uint32_t df, int64_= t arg1, int64_t arg2) return arg1 + arg2; } =20 -void helper_msa_addv_b(CPUMIPSState *env, +void HELPER(msa_addv_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1147,7 +1161,7 @@ void helper_msa_addv_b(CPUMIPSState *env, pwd->b[15] =3D msa_addv_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_addv_h(CPUMIPSState *env, +void HELPER(msa_addv_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1164,7 +1178,7 @@ void helper_msa_addv_h(CPUMIPSState *env, pwd->h[7] =3D msa_addv_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_addv_w(CPUMIPSState *env, +void HELPER(msa_addv_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1177,7 +1191,7 @@ void helper_msa_addv_w(CPUMIPSState *env, pwd->w[3] =3D msa_addv_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_addv_d(CPUMIPSState *env, +void HELPER(msa_addv_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1207,7 +1221,7 @@ static inline int64_t msa_hadd_s_df(uint32_t df, int6= 4_t arg1, int64_t arg2) return SIGNED_ODD(arg1, df) + SIGNED_EVEN(arg2, df); } =20 -void helper_msa_hadd_s_h(CPUMIPSState *env, +void HELPER(msa_hadd_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1224,7 +1238,7 @@ void helper_msa_hadd_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_hadd_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_hadd_s_w(CPUMIPSState *env, +void HELPER(msa_hadd_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1237,7 +1251,7 @@ void helper_msa_hadd_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_hadd_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_hadd_s_d(CPUMIPSState *env, +void HELPER(msa_hadd_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1254,7 +1268,7 @@ static inline int64_t msa_hadd_u_df(uint32_t df, int6= 4_t arg1, int64_t arg2) return UNSIGNED_ODD(arg1, df) + UNSIGNED_EVEN(arg2, df); } =20 -void helper_msa_hadd_u_h(CPUMIPSState *env, +void HELPER(msa_hadd_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1271,7 +1285,7 @@ void helper_msa_hadd_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_hadd_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_hadd_u_w(CPUMIPSState *env, +void HELPER(msa_hadd_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1284,7 +1298,7 @@ void helper_msa_hadd_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_hadd_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_hadd_u_d(CPUMIPSState *env, +void HELPER(msa_hadd_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1326,7 +1340,7 @@ static inline int64_t msa_ave_s_df(uint32_t df, int64= _t arg1, int64_t arg2) return (arg1 >> 1) + (arg2 >> 1) + (arg1 & arg2 & 1); } =20 -void helper_msa_ave_s_b(CPUMIPSState *env, +void HELPER(msa_ave_s_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1351,7 +1365,7 @@ void helper_msa_ave_s_b(CPUMIPSState *env, pwd->b[15] =3D msa_ave_s_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_ave_s_h(CPUMIPSState *env, +void HELPER(msa_ave_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1368,7 +1382,7 @@ void helper_msa_ave_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_ave_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_ave_s_w(CPUMIPSState *env, +void HELPER(msa_ave_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1381,7 +1395,7 @@ void helper_msa_ave_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_ave_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_ave_s_d(CPUMIPSState *env, +void HELPER(msa_ave_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1400,7 +1414,7 @@ static inline uint64_t msa_ave_u_df(uint32_t df, uint= 64_t arg1, uint64_t arg2) return (u_arg1 >> 1) + (u_arg2 >> 1) + (u_arg1 & u_arg2 & 1); } =20 -void helper_msa_ave_u_b(CPUMIPSState *env, +void HELPER(msa_ave_u_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1425,7 +1439,7 @@ void helper_msa_ave_u_b(CPUMIPSState *env, pwd->b[15] =3D msa_ave_u_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_ave_u_h(CPUMIPSState *env, +void HELPER(msa_ave_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1442,7 +1456,7 @@ void helper_msa_ave_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_ave_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_ave_u_w(CPUMIPSState *env, +void HELPER(msa_ave_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1455,7 +1469,7 @@ void helper_msa_ave_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_ave_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_ave_u_d(CPUMIPSState *env, +void HELPER(msa_ave_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1472,7 +1486,7 @@ static inline int64_t msa_aver_s_df(uint32_t df, int6= 4_t arg1, int64_t arg2) return (arg1 >> 1) + (arg2 >> 1) + ((arg1 | arg2) & 1); } =20 -void helper_msa_aver_s_b(CPUMIPSState *env, +void HELPER(msa_aver_s_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1497,7 +1511,7 @@ void helper_msa_aver_s_b(CPUMIPSState *env, pwd->b[15] =3D msa_aver_s_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_aver_s_h(CPUMIPSState *env, +void HELPER(msa_aver_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1514,7 +1528,7 @@ void helper_msa_aver_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_aver_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_aver_s_w(CPUMIPSState *env, +void HELPER(msa_aver_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1527,7 +1541,7 @@ void helper_msa_aver_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_aver_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_aver_s_d(CPUMIPSState *env, +void HELPER(msa_aver_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1546,7 +1560,7 @@ static inline uint64_t msa_aver_u_df(uint32_t df, uin= t64_t arg1, uint64_t arg2) return (u_arg1 >> 1) + (u_arg2 >> 1) + ((u_arg1 | u_arg2) & 1); } =20 -void helper_msa_aver_u_b(CPUMIPSState *env, +void HELPER(msa_aver_u_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1571,7 +1585,7 @@ void helper_msa_aver_u_b(CPUMIPSState *env, pwd->b[15] =3D msa_aver_u_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_aver_u_h(CPUMIPSState *env, +void HELPER(msa_aver_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1588,7 +1602,7 @@ void helper_msa_aver_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_aver_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_aver_u_w(CPUMIPSState *env, +void HELPER(msa_aver_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1601,7 +1615,7 @@ void helper_msa_aver_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_aver_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_aver_u_d(CPUMIPSState *env, +void HELPER(msa_aver_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1651,7 +1665,7 @@ static inline int8_t msa_ceq_b(int8_t arg1, int8_t ar= g2) return arg1 =3D=3D arg2 ? -1 : 0; } =20 -void helper_msa_ceq_b(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_= t wt) +void HELPER(msa_ceq_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -1680,7 +1694,7 @@ static inline int16_t msa_ceq_h(int16_t arg1, int16_t= arg2) return arg1 =3D=3D arg2 ? -1 : 0; } =20 -void helper_msa_ceq_h(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_= t wt) +void HELPER(msa_ceq_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -1701,7 +1715,7 @@ static inline int32_t msa_ceq_w(int32_t arg1, int32_t= arg2) return arg1 =3D=3D arg2 ? -1 : 0; } =20 -void helper_msa_ceq_w(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_= t wt) +void HELPER(msa_ceq_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -1718,7 +1732,7 @@ static inline int64_t msa_ceq_d(int64_t arg1, int64_t= arg2) return arg1 =3D=3D arg2 ? -1 : 0; } =20 -void helper_msa_ceq_d(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_= t wt) +void HELPER(msa_ceq_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -1733,7 +1747,7 @@ static inline int64_t msa_cle_s_df(uint32_t df, int64= _t arg1, int64_t arg2) return arg1 <=3D arg2 ? -1 : 0; } =20 -void helper_msa_cle_s_b(CPUMIPSState *env, +void HELPER(msa_cle_s_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1758,7 +1772,7 @@ void helper_msa_cle_s_b(CPUMIPSState *env, pwd->b[15] =3D msa_cle_s_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_cle_s_h(CPUMIPSState *env, +void HELPER(msa_cle_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1775,7 +1789,7 @@ void helper_msa_cle_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_cle_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_cle_s_w(CPUMIPSState *env, +void HELPER(msa_cle_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1788,7 +1802,7 @@ void helper_msa_cle_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_cle_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_cle_s_d(CPUMIPSState *env, +void HELPER(msa_cle_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1806,7 +1820,7 @@ static inline int64_t msa_cle_u_df(uint32_t df, int64= _t arg1, int64_t arg2) return u_arg1 <=3D u_arg2 ? -1 : 0; } =20 -void helper_msa_cle_u_b(CPUMIPSState *env, +void HELPER(msa_cle_u_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1831,7 +1845,7 @@ void helper_msa_cle_u_b(CPUMIPSState *env, pwd->b[15] =3D msa_cle_u_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_cle_u_h(CPUMIPSState *env, +void HELPER(msa_cle_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1848,7 +1862,7 @@ void helper_msa_cle_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_cle_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_cle_u_w(CPUMIPSState *env, +void HELPER(msa_cle_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1861,7 +1875,7 @@ void helper_msa_cle_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_cle_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_cle_u_d(CPUMIPSState *env, +void HELPER(msa_cle_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1882,7 +1896,7 @@ static inline int8_t msa_clt_s_b(int8_t arg1, int8_t = arg2) return arg1 < arg2 ? -1 : 0; } =20 -void helper_msa_clt_s_b(CPUMIPSState *env, +void HELPER(msa_clt_s_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1912,7 +1926,7 @@ static inline int16_t msa_clt_s_h(int16_t arg1, int16= _t arg2) return arg1 < arg2 ? -1 : 0; } =20 -void helper_msa_clt_s_h(CPUMIPSState *env, +void HELPER(msa_clt_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1934,7 +1948,7 @@ static inline int32_t msa_clt_s_w(int32_t arg1, int32= _t arg2) return arg1 < arg2 ? -1 : 0; } =20 -void helper_msa_clt_s_w(CPUMIPSState *env, +void HELPER(msa_clt_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1952,7 +1966,7 @@ static inline int64_t msa_clt_s_d(int64_t arg1, int64= _t arg2) return arg1 < arg2 ? -1 : 0; } =20 -void helper_msa_clt_s_d(CPUMIPSState *env, +void HELPER(msa_clt_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1970,7 +1984,7 @@ static inline int64_t msa_clt_u_df(uint32_t df, int64= _t arg1, int64_t arg2) return u_arg1 < u_arg2 ? -1 : 0; } =20 -void helper_msa_clt_u_b(CPUMIPSState *env, +void HELPER(msa_clt_u_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -1995,7 +2009,7 @@ void helper_msa_clt_u_b(CPUMIPSState *env, pwd->b[15] =3D msa_clt_u_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_clt_u_h(CPUMIPSState *env, +void HELPER(msa_clt_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2012,7 +2026,7 @@ void helper_msa_clt_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_clt_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_clt_u_w(CPUMIPSState *env, +void HELPER(msa_clt_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2025,7 +2039,7 @@ void helper_msa_clt_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_clt_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_clt_u_d(CPUMIPSState *env, +void HELPER(msa_clt_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2063,7 +2077,7 @@ static inline int64_t msa_div_s_df(uint32_t df, int64= _t arg1, int64_t arg2) : arg1 >=3D 0 ? -1 : 1; } =20 -void helper_msa_div_s_b(CPUMIPSState *env, +void HELPER(msa_div_s_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2088,7 +2102,7 @@ void helper_msa_div_s_b(CPUMIPSState *env, pwd->b[15] =3D msa_div_s_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_div_s_h(CPUMIPSState *env, +void HELPER(msa_div_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2105,7 +2119,7 @@ void helper_msa_div_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_div_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_div_s_w(CPUMIPSState *env, +void HELPER(msa_div_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2118,7 +2132,7 @@ void helper_msa_div_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_div_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_div_s_d(CPUMIPSState *env, +void HELPER(msa_div_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2136,7 +2150,7 @@ static inline int64_t msa_div_u_df(uint32_t df, int64= _t arg1, int64_t arg2) return arg2 ? u_arg1 / u_arg2 : -1; } =20 -void helper_msa_div_u_b(CPUMIPSState *env, +void HELPER(msa_div_u_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2161,7 +2175,7 @@ void helper_msa_div_u_b(CPUMIPSState *env, pwd->b[15] =3D msa_div_u_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_div_u_h(CPUMIPSState *env, +void HELPER(msa_div_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2178,7 +2192,7 @@ void helper_msa_div_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_div_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_div_u_w(CPUMIPSState *env, +void HELPER(msa_div_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2191,7 +2205,7 @@ void helper_msa_div_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_div_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_div_u_d(CPUMIPSState *env, +void HELPER(msa_div_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2253,7 +2267,7 @@ static inline int64_t msa_dotp_s_df(uint32_t df, int6= 4_t arg1, int64_t arg2) return (even_arg1 * even_arg2) + (odd_arg1 * odd_arg2); } =20 -void helper_msa_dotp_s_h(CPUMIPSState *env, +void HELPER(msa_dotp_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2270,7 +2284,7 @@ void helper_msa_dotp_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_dotp_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_dotp_s_w(CPUMIPSState *env, +void HELPER(msa_dotp_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2283,7 +2297,7 @@ void helper_msa_dotp_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_dotp_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_dotp_s_d(CPUMIPSState *env, +void HELPER(msa_dotp_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2306,7 +2320,7 @@ static inline int64_t msa_dotp_u_df(uint32_t df, int6= 4_t arg1, int64_t arg2) return (even_arg1 * even_arg2) + (odd_arg1 * odd_arg2); } =20 -void helper_msa_dotp_u_h(CPUMIPSState *env, +void HELPER(msa_dotp_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2323,7 +2337,7 @@ void helper_msa_dotp_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_dotp_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_dotp_u_w(CPUMIPSState *env, +void HELPER(msa_dotp_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2336,7 +2350,7 @@ void helper_msa_dotp_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_dotp_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_dotp_u_d(CPUMIPSState *env, +void HELPER(msa_dotp_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2360,7 +2374,7 @@ static inline int64_t msa_dpadd_s_df(uint32_t df, int= 64_t dest, int64_t arg1, return dest + (even_arg1 * even_arg2) + (odd_arg1 * odd_arg2); } =20 -void helper_msa_dpadd_s_h(CPUMIPSState *env, +void HELPER(msa_dpadd_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2377,7 +2391,7 @@ void helper_msa_dpadd_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_dpadd_s_df(DF_HALF, pwd->h[7], pws->h[7], pwt->h[= 7]); } =20 -void helper_msa_dpadd_s_w(CPUMIPSState *env, +void HELPER(msa_dpadd_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2390,7 +2404,7 @@ void helper_msa_dpadd_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_dpadd_s_df(DF_WORD, pwd->w[3], pws->w[3], pwt->w[= 3]); } =20 -void helper_msa_dpadd_s_d(CPUMIPSState *env, +void HELPER(msa_dpadd_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2414,7 +2428,7 @@ static inline int64_t msa_dpadd_u_df(uint32_t df, int= 64_t dest, int64_t arg1, return dest + (even_arg1 * even_arg2) + (odd_arg1 * odd_arg2); } =20 -void helper_msa_dpadd_u_h(CPUMIPSState *env, +void HELPER(msa_dpadd_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2431,7 +2445,7 @@ void helper_msa_dpadd_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_dpadd_u_df(DF_HALF, pwd->h[7], pws->h[7], pwt->h[= 7]); } =20 -void helper_msa_dpadd_u_w(CPUMIPSState *env, +void HELPER(msa_dpadd_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2444,7 +2458,7 @@ void helper_msa_dpadd_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_dpadd_u_df(DF_WORD, pwd->w[3], pws->w[3], pwt->w[= 3]); } =20 -void helper_msa_dpadd_u_d(CPUMIPSState *env, +void HELPER(msa_dpadd_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2468,7 +2482,7 @@ static inline int64_t msa_dpsub_s_df(uint32_t df, int= 64_t dest, int64_t arg1, return dest - ((even_arg1 * even_arg2) + (odd_arg1 * odd_arg2)); } =20 -void helper_msa_dpsub_s_h(CPUMIPSState *env, +void HELPER(msa_dpsub_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2485,7 +2499,7 @@ void helper_msa_dpsub_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_dpsub_s_df(DF_HALF, pwd->h[7], pws->h[7], pwt->h[= 7]); } =20 -void helper_msa_dpsub_s_w(CPUMIPSState *env, +void HELPER(msa_dpsub_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2498,7 +2512,7 @@ void helper_msa_dpsub_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_dpsub_s_df(DF_WORD, pwd->w[3], pws->w[3], pwt->w[= 3]); } =20 -void helper_msa_dpsub_s_d(CPUMIPSState *env, +void HELPER(msa_dpsub_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2522,7 +2536,7 @@ static inline int64_t msa_dpsub_u_df(uint32_t df, int= 64_t dest, int64_t arg1, return dest - ((even_arg1 * even_arg2) + (odd_arg1 * odd_arg2)); } =20 -void helper_msa_dpsub_u_h(CPUMIPSState *env, +void HELPER(msa_dpsub_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2539,7 +2553,7 @@ void helper_msa_dpsub_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_dpsub_u_df(DF_HALF, pwd->h[7], pws->h[7], pwt->h[= 7]); } =20 -void helper_msa_dpsub_u_w(CPUMIPSState *env, +void HELPER(msa_dpsub_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2552,7 +2566,7 @@ void helper_msa_dpsub_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_dpsub_u_df(DF_WORD, pwd->w[3], pws->w[3], pwt->w[= 3]); } =20 -void helper_msa_dpsub_u_d(CPUMIPSState *env, +void HELPER(msa_dpsub_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2603,7 +2617,7 @@ static inline int64_t msa_max_a_df(uint32_t df, int64= _t arg1, int64_t arg2) return abs_arg1 > abs_arg2 ? arg1 : arg2; } =20 -void helper_msa_max_a_b(CPUMIPSState *env, +void HELPER(msa_max_a_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2628,7 +2642,7 @@ void helper_msa_max_a_b(CPUMIPSState *env, pwd->b[15] =3D msa_max_a_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_max_a_h(CPUMIPSState *env, +void HELPER(msa_max_a_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2645,7 +2659,7 @@ void helper_msa_max_a_h(CPUMIPSState *env, pwd->h[7] =3D msa_max_a_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_max_a_w(CPUMIPSState *env, +void HELPER(msa_max_a_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2658,7 +2672,7 @@ void helper_msa_max_a_w(CPUMIPSState *env, pwd->w[3] =3D msa_max_a_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_max_a_d(CPUMIPSState *env, +void HELPER(msa_max_a_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2675,7 +2689,7 @@ static inline int64_t msa_max_s_df(uint32_t df, int64= _t arg1, int64_t arg2) return arg1 > arg2 ? arg1 : arg2; } =20 -void helper_msa_max_s_b(CPUMIPSState *env, +void HELPER(msa_max_s_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2700,7 +2714,7 @@ void helper_msa_max_s_b(CPUMIPSState *env, pwd->b[15] =3D msa_max_s_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_max_s_h(CPUMIPSState *env, +void HELPER(msa_max_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2717,7 +2731,7 @@ void helper_msa_max_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_max_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_max_s_w(CPUMIPSState *env, +void HELPER(msa_max_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2730,7 +2744,7 @@ void helper_msa_max_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_max_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_max_s_d(CPUMIPSState *env, +void HELPER(msa_max_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2749,7 +2763,7 @@ static inline int64_t msa_max_u_df(uint32_t df, int64= _t arg1, int64_t arg2) return u_arg1 > u_arg2 ? arg1 : arg2; } =20 -void helper_msa_max_u_b(CPUMIPSState *env, +void HELPER(msa_max_u_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2774,7 +2788,7 @@ void helper_msa_max_u_b(CPUMIPSState *env, pwd->b[15] =3D msa_max_u_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_max_u_h(CPUMIPSState *env, +void HELPER(msa_max_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2791,7 +2805,7 @@ void helper_msa_max_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_max_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_max_u_w(CPUMIPSState *env, +void HELPER(msa_max_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2804,7 +2818,7 @@ void helper_msa_max_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_max_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_max_u_d(CPUMIPSState *env, +void HELPER(msa_max_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2823,7 +2837,7 @@ static inline int64_t msa_min_a_df(uint32_t df, int64= _t arg1, int64_t arg2) return abs_arg1 < abs_arg2 ? arg1 : arg2; } =20 -void helper_msa_min_a_b(CPUMIPSState *env, +void HELPER(msa_min_a_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2848,7 +2862,7 @@ void helper_msa_min_a_b(CPUMIPSState *env, pwd->b[15] =3D msa_min_a_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_min_a_h(CPUMIPSState *env, +void HELPER(msa_min_a_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2865,7 +2879,7 @@ void helper_msa_min_a_h(CPUMIPSState *env, pwd->h[7] =3D msa_min_a_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_min_a_w(CPUMIPSState *env, +void HELPER(msa_min_a_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2878,7 +2892,7 @@ void helper_msa_min_a_w(CPUMIPSState *env, pwd->w[3] =3D msa_min_a_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_min_a_d(CPUMIPSState *env, +void HELPER(msa_min_a_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2895,7 +2909,7 @@ static inline int64_t msa_min_s_df(uint32_t df, int64= _t arg1, int64_t arg2) return arg1 < arg2 ? arg1 : arg2; } =20 -void helper_msa_min_s_b(CPUMIPSState *env, +void HELPER(msa_min_s_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2920,7 +2934,7 @@ void helper_msa_min_s_b(CPUMIPSState *env, pwd->b[15] =3D msa_min_s_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_min_s_h(CPUMIPSState *env, +void HELPER(msa_min_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2937,7 +2951,7 @@ void helper_msa_min_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_min_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_min_s_w(CPUMIPSState *env, +void HELPER(msa_min_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2950,7 +2964,7 @@ void helper_msa_min_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_min_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_min_s_d(CPUMIPSState *env, +void HELPER(msa_min_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2969,7 +2983,7 @@ static inline int64_t msa_min_u_df(uint32_t df, int64= _t arg1, int64_t arg2) return u_arg1 < u_arg2 ? arg1 : arg2; } =20 -void helper_msa_min_u_b(CPUMIPSState *env, +void HELPER(msa_min_u_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -2994,7 +3008,7 @@ void helper_msa_min_u_b(CPUMIPSState *env, pwd->b[15] =3D msa_min_u_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_min_u_h(CPUMIPSState *env, +void HELPER(msa_min_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3011,7 +3025,7 @@ void helper_msa_min_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_min_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_min_u_w(CPUMIPSState *env, +void HELPER(msa_min_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3024,7 +3038,7 @@ void helper_msa_min_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_min_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_min_u_d(CPUMIPSState *env, +void HELPER(msa_min_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3060,7 +3074,7 @@ static inline int64_t msa_mod_s_df(uint32_t df, int64= _t arg1, int64_t arg2) return arg2 ? arg1 % arg2 : arg1; } =20 -void helper_msa_mod_s_b(CPUMIPSState *env, +void HELPER(msa_mod_s_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3085,7 +3099,7 @@ void helper_msa_mod_s_b(CPUMIPSState *env, pwd->b[15] =3D msa_mod_s_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_mod_s_h(CPUMIPSState *env, +void HELPER(msa_mod_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3102,7 +3116,7 @@ void helper_msa_mod_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_mod_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_mod_s_w(CPUMIPSState *env, +void HELPER(msa_mod_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3115,7 +3129,7 @@ void helper_msa_mod_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_mod_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_mod_s_d(CPUMIPSState *env, +void HELPER(msa_mod_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3133,7 +3147,7 @@ static inline int64_t msa_mod_u_df(uint32_t df, int64= _t arg1, int64_t arg2) return u_arg2 ? u_arg1 % u_arg2 : u_arg1; } =20 -void helper_msa_mod_u_b(CPUMIPSState *env, +void HELPER(msa_mod_u_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3158,7 +3172,7 @@ void helper_msa_mod_u_b(CPUMIPSState *env, pwd->b[15] =3D msa_mod_u_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_mod_u_h(CPUMIPSState *env, +void HELPER(msa_mod_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3175,7 +3189,7 @@ void helper_msa_mod_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_mod_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_mod_u_w(CPUMIPSState *env, +void HELPER(msa_mod_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3188,7 +3202,7 @@ void helper_msa_mod_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_mod_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_mod_u_d(CPUMIPSState *env, +void HELPER(msa_mod_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3226,7 +3240,7 @@ static inline int64_t msa_maddv_df(uint32_t df, int64= _t dest, int64_t arg1, return dest + arg1 * arg2; } =20 -void helper_msa_maddv_b(CPUMIPSState *env, +void HELPER(msa_maddv_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3251,7 +3265,7 @@ void helper_msa_maddv_b(CPUMIPSState *env, pwd->b[15] =3D msa_maddv_df(DF_BYTE, pwd->b[15], pws->b[15], pwt->b[15= ]); } =20 -void helper_msa_maddv_h(CPUMIPSState *env, +void HELPER(msa_maddv_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3268,7 +3282,7 @@ void helper_msa_maddv_h(CPUMIPSState *env, pwd->h[7] =3D msa_maddv_df(DF_HALF, pwd->h[7], pws->h[7], pwt->h[7]= ); } =20 -void helper_msa_maddv_w(CPUMIPSState *env, +void HELPER(msa_maddv_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3281,7 +3295,7 @@ void helper_msa_maddv_w(CPUMIPSState *env, pwd->w[3] =3D msa_maddv_df(DF_WORD, pwd->w[3], pws->w[3], pwt->w[3]= ); } =20 -void helper_msa_maddv_d(CPUMIPSState *env, +void HELPER(msa_maddv_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3298,7 +3312,7 @@ static inline int64_t msa_msubv_df(uint32_t df, int64= _t dest, int64_t arg1, return dest - arg1 * arg2; } =20 -void helper_msa_msubv_b(CPUMIPSState *env, +void HELPER(msa_msubv_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3323,7 +3337,7 @@ void helper_msa_msubv_b(CPUMIPSState *env, pwd->b[15] =3D msa_msubv_df(DF_BYTE, pwd->b[15], pws->b[15], pwt->b[15= ]); } =20 -void helper_msa_msubv_h(CPUMIPSState *env, +void HELPER(msa_msubv_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3340,7 +3354,7 @@ void helper_msa_msubv_h(CPUMIPSState *env, pwd->h[7] =3D msa_msubv_df(DF_HALF, pwd->h[7], pws->h[7], pwt->h[7]= ); } =20 -void helper_msa_msubv_w(CPUMIPSState *env, +void HELPER(msa_msubv_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3353,7 +3367,7 @@ void helper_msa_msubv_w(CPUMIPSState *env, pwd->w[3] =3D msa_msubv_df(DF_WORD, pwd->w[3], pws->w[3], pwt->w[3]= ); } =20 -void helper_msa_msubv_d(CPUMIPSState *env, +void HELPER(msa_msubv_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3370,7 +3384,7 @@ static inline int64_t msa_mulv_df(uint32_t df, int64_= t arg1, int64_t arg2) return arg1 * arg2; } =20 -void helper_msa_mulv_b(CPUMIPSState *env, +void HELPER(msa_mulv_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3395,7 +3409,7 @@ void helper_msa_mulv_b(CPUMIPSState *env, pwd->b[15] =3D msa_mulv_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_mulv_h(CPUMIPSState *env, +void HELPER(msa_mulv_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3412,7 +3426,7 @@ void helper_msa_mulv_h(CPUMIPSState *env, pwd->h[7] =3D msa_mulv_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_mulv_w(CPUMIPSState *env, +void HELPER(msa_mulv_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3425,7 +3439,7 @@ void helper_msa_mulv_w(CPUMIPSState *env, pwd->w[3] =3D msa_mulv_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_mulv_d(CPUMIPSState *env, +void HELPER(msa_mulv_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3487,7 +3501,7 @@ static inline int64_t msa_asub_s_df(uint32_t df, int6= 4_t arg1, int64_t arg2) (uint64_t)(arg2 - arg1) : (uint64_t)(arg1 - arg2); } =20 -void helper_msa_asub_s_b(CPUMIPSState *env, +void HELPER(msa_asub_s_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3512,7 +3526,7 @@ void helper_msa_asub_s_b(CPUMIPSState *env, pwd->b[15] =3D msa_asub_s_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_asub_s_h(CPUMIPSState *env, +void HELPER(msa_asub_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3529,7 +3543,7 @@ void helper_msa_asub_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_asub_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_asub_s_w(CPUMIPSState *env, +void HELPER(msa_asub_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3542,7 +3556,7 @@ void helper_msa_asub_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_asub_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_asub_s_d(CPUMIPSState *env, +void HELPER(msa_asub_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3563,7 +3577,7 @@ static inline uint64_t msa_asub_u_df(uint32_t df, uin= t64_t arg1, uint64_t arg2) (uint64_t)(u_arg2 - u_arg1) : (uint64_t)(u_arg1 - u_arg2); } =20 -void helper_msa_asub_u_b(CPUMIPSState *env, +void HELPER(msa_asub_u_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3588,7 +3602,7 @@ void helper_msa_asub_u_b(CPUMIPSState *env, pwd->b[15] =3D msa_asub_u_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_asub_u_h(CPUMIPSState *env, +void HELPER(msa_asub_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3605,7 +3619,7 @@ void helper_msa_asub_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_asub_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_asub_u_w(CPUMIPSState *env, +void HELPER(msa_asub_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3618,7 +3632,7 @@ void helper_msa_asub_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_asub_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_asub_u_d(CPUMIPSState *env, +void HELPER(msa_asub_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3635,7 +3649,7 @@ static inline int64_t msa_hsub_s_df(uint32_t df, int6= 4_t arg1, int64_t arg2) return SIGNED_ODD(arg1, df) - SIGNED_EVEN(arg2, df); } =20 -void helper_msa_hsub_s_h(CPUMIPSState *env, +void HELPER(msa_hsub_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3652,7 +3666,7 @@ void helper_msa_hsub_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_hsub_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_hsub_s_w(CPUMIPSState *env, +void HELPER(msa_hsub_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3665,7 +3679,7 @@ void helper_msa_hsub_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_hsub_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_hsub_s_d(CPUMIPSState *env, +void HELPER(msa_hsub_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3682,7 +3696,7 @@ static inline int64_t msa_hsub_u_df(uint32_t df, int6= 4_t arg1, int64_t arg2) return UNSIGNED_ODD(arg1, df) - UNSIGNED_EVEN(arg2, df); } =20 -void helper_msa_hsub_u_h(CPUMIPSState *env, +void HELPER(msa_hsub_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3699,7 +3713,7 @@ void helper_msa_hsub_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_hsub_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_hsub_u_w(CPUMIPSState *env, +void HELPER(msa_hsub_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3712,7 +3726,7 @@ void helper_msa_hsub_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_hsub_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_hsub_u_d(CPUMIPSState *env, +void HELPER(msa_hsub_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3735,7 +3749,7 @@ static inline int64_t msa_subs_s_df(uint32_t df, int6= 4_t arg1, int64_t arg2) } } =20 -void helper_msa_subs_s_b(CPUMIPSState *env, +void HELPER(msa_subs_s_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3760,7 +3774,7 @@ void helper_msa_subs_s_b(CPUMIPSState *env, pwd->b[15] =3D msa_subs_s_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_subs_s_h(CPUMIPSState *env, +void HELPER(msa_subs_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3777,7 +3791,7 @@ void helper_msa_subs_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_subs_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_subs_s_w(CPUMIPSState *env, +void HELPER(msa_subs_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3790,7 +3804,7 @@ void helper_msa_subs_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_subs_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_subs_s_d(CPUMIPSState *env, +void HELPER(msa_subs_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3809,7 +3823,7 @@ static inline int64_t msa_subs_u_df(uint32_t df, int6= 4_t arg1, int64_t arg2) return (u_arg1 > u_arg2) ? u_arg1 - u_arg2 : 0; } =20 -void helper_msa_subs_u_b(CPUMIPSState *env, +void HELPER(msa_subs_u_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3834,7 +3848,7 @@ void helper_msa_subs_u_b(CPUMIPSState *env, pwd->b[15] =3D msa_subs_u_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_subs_u_h(CPUMIPSState *env, +void HELPER(msa_subs_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3851,7 +3865,7 @@ void helper_msa_subs_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_subs_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_subs_u_w(CPUMIPSState *env, +void HELPER(msa_subs_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3864,7 +3878,7 @@ void helper_msa_subs_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_subs_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_subs_u_d(CPUMIPSState *env, +void HELPER(msa_subs_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3893,7 +3907,7 @@ static inline int64_t msa_subsus_u_df(uint32_t df, in= t64_t arg1, int64_t arg2) } } =20 -void helper_msa_subsus_u_b(CPUMIPSState *env, +void HELPER(msa_subsus_u_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3918,7 +3932,7 @@ void helper_msa_subsus_u_b(CPUMIPSState *env, pwd->b[15] =3D msa_subsus_u_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_subsus_u_h(CPUMIPSState *env, +void HELPER(msa_subsus_u_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3935,7 +3949,7 @@ void helper_msa_subsus_u_h(CPUMIPSState *env, pwd->h[7] =3D msa_subsus_u_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_subsus_u_w(CPUMIPSState *env, +void HELPER(msa_subsus_u_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3948,7 +3962,7 @@ void helper_msa_subsus_u_w(CPUMIPSState *env, pwd->w[3] =3D msa_subsus_u_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_subsus_u_d(CPUMIPSState *env, +void HELPER(msa_subsus_u_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -3977,7 +3991,7 @@ static inline int64_t msa_subsuu_s_df(uint32_t df, in= t64_t arg1, int64_t arg2) } } =20 -void helper_msa_subsuu_s_b(CPUMIPSState *env, +void HELPER(msa_subsuu_s_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4002,7 +4016,7 @@ void helper_msa_subsuu_s_b(CPUMIPSState *env, pwd->b[15] =3D msa_subsuu_s_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_subsuu_s_h(CPUMIPSState *env, +void HELPER(msa_subsuu_s_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4019,7 +4033,7 @@ void helper_msa_subsuu_s_h(CPUMIPSState *env, pwd->h[7] =3D msa_subsuu_s_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_subsuu_s_w(CPUMIPSState *env, +void HELPER(msa_subsuu_s_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4032,7 +4046,7 @@ void helper_msa_subsuu_s_w(CPUMIPSState *env, pwd->w[3] =3D msa_subsuu_s_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_subsuu_s_d(CPUMIPSState *env, +void HELPER(msa_subsuu_s_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4049,7 +4063,7 @@ static inline int64_t msa_subv_df(uint32_t df, int64_= t arg1, int64_t arg2) return arg1 - arg2; } =20 -void helper_msa_subv_b(CPUMIPSState *env, +void HELPER(msa_subv_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4074,7 +4088,7 @@ void helper_msa_subv_b(CPUMIPSState *env, pwd->b[15] =3D msa_subv_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_subv_h(CPUMIPSState *env, +void HELPER(msa_subv_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4091,7 +4105,7 @@ void helper_msa_subv_h(CPUMIPSState *env, pwd->h[7] =3D msa_subv_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_subv_w(CPUMIPSState *env, +void HELPER(msa_subv_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4104,7 +4118,7 @@ void helper_msa_subv_w(CPUMIPSState *env, pwd->w[3] =3D msa_subv_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_subv_d(CPUMIPSState *env, +void HELPER(msa_subv_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4141,7 +4155,7 @@ void helper_msa_subv_d(CPUMIPSState *env, */ =20 =20 -void helper_msa_ilvev_b(CPUMIPSState *env, +void HELPER(msa_ilvev_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4185,7 +4199,7 @@ void helper_msa_ilvev_b(CPUMIPSState *env, #endif } =20 -void helper_msa_ilvev_h(CPUMIPSState *env, +void HELPER(msa_ilvev_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4213,7 +4227,7 @@ void helper_msa_ilvev_h(CPUMIPSState *env, #endif } =20 -void helper_msa_ilvev_w(CPUMIPSState *env, +void HELPER(msa_ilvev_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4233,7 +4247,7 @@ void helper_msa_ilvev_w(CPUMIPSState *env, #endif } =20 -void helper_msa_ilvev_d(CPUMIPSState *env, +void HELPER(msa_ilvev_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4245,7 +4259,7 @@ void helper_msa_ilvev_d(CPUMIPSState *env, } =20 =20 -void helper_msa_ilvod_b(CPUMIPSState *env, +void HELPER(msa_ilvod_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4289,7 +4303,7 @@ void helper_msa_ilvod_b(CPUMIPSState *env, #endif } =20 -void helper_msa_ilvod_h(CPUMIPSState *env, +void HELPER(msa_ilvod_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4317,7 +4331,7 @@ void helper_msa_ilvod_h(CPUMIPSState *env, #endif } =20 -void helper_msa_ilvod_w(CPUMIPSState *env, +void HELPER(msa_ilvod_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4337,7 +4351,7 @@ void helper_msa_ilvod_w(CPUMIPSState *env, #endif } =20 -void helper_msa_ilvod_d(CPUMIPSState *env, +void HELPER(msa_ilvod_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4349,7 +4363,7 @@ void helper_msa_ilvod_d(CPUMIPSState *env, } =20 =20 -void helper_msa_ilvl_b(CPUMIPSState *env, +void HELPER(msa_ilvl_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4393,7 +4407,7 @@ void helper_msa_ilvl_b(CPUMIPSState *env, #endif } =20 -void helper_msa_ilvl_h(CPUMIPSState *env, +void HELPER(msa_ilvl_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4421,7 +4435,7 @@ void helper_msa_ilvl_h(CPUMIPSState *env, #endif } =20 -void helper_msa_ilvl_w(CPUMIPSState *env, +void HELPER(msa_ilvl_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4441,7 +4455,7 @@ void helper_msa_ilvl_w(CPUMIPSState *env, #endif } =20 -void helper_msa_ilvl_d(CPUMIPSState *env, +void HELPER(msa_ilvl_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4453,7 +4467,7 @@ void helper_msa_ilvl_d(CPUMIPSState *env, } =20 =20 -void helper_msa_ilvr_b(CPUMIPSState *env, +void HELPER(msa_ilvr_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4497,7 +4511,7 @@ void helper_msa_ilvr_b(CPUMIPSState *env, #endif } =20 -void helper_msa_ilvr_h(CPUMIPSState *env, +void HELPER(msa_ilvr_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4525,7 +4539,7 @@ void helper_msa_ilvr_h(CPUMIPSState *env, #endif } =20 -void helper_msa_ilvr_w(CPUMIPSState *env, +void HELPER(msa_ilvr_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4545,7 +4559,7 @@ void helper_msa_ilvr_w(CPUMIPSState *env, #endif } =20 -void helper_msa_ilvr_d(CPUMIPSState *env, +void HELPER(msa_ilvr_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4570,7 +4584,7 @@ void helper_msa_ilvr_d(CPUMIPSState *env, */ =20 =20 -void helper_msa_and_v(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_= t wt) +void HELPER(msa_and_v)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -4580,7 +4594,7 @@ void helper_msa_and_v(CPUMIPSState *env, uint32_t wd,= uint32_t ws, uint32_t wt) pwd->d[1] =3D pws->d[1] & pwt->d[1]; } =20 -void helper_msa_nor_v(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_= t wt) +void HELPER(msa_nor_v)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -4590,7 +4604,7 @@ void helper_msa_nor_v(CPUMIPSState *env, uint32_t wd,= uint32_t ws, uint32_t wt) pwd->d[1] =3D ~(pws->d[1] | pwt->d[1]); } =20 -void helper_msa_or_v(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t= wt) +void HELPER(msa_or_v)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_= t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -4600,7 +4614,7 @@ void helper_msa_or_v(CPUMIPSState *env, uint32_t wd, = uint32_t ws, uint32_t wt) pwd->d[1] =3D pws->d[1] | pwt->d[1]; } =20 -void helper_msa_xor_v(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_= t wt) +void HELPER(msa_xor_v)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32= _t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -4626,7 +4640,7 @@ static inline void msa_move_v(wr_t *pwd, wr_t *pws) pwd->d[1] =3D pws->d[1]; } =20 -void helper_msa_move_v(CPUMIPSState *env, uint32_t wd, uint32_t ws) +void HELPER(msa_move_v)(CPUMIPSState *env, uint32_t wd, uint32_t ws) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); @@ -4656,7 +4670,7 @@ void helper_msa_move_v(CPUMIPSState *env, uint32_t wd= , uint32_t ws) */ =20 =20 -void helper_msa_pckev_b(CPUMIPSState *env, +void HELPER(msa_pckev_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4700,7 +4714,7 @@ void helper_msa_pckev_b(CPUMIPSState *env, #endif } =20 -void helper_msa_pckev_h(CPUMIPSState *env, +void HELPER(msa_pckev_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4728,7 +4742,7 @@ void helper_msa_pckev_h(CPUMIPSState *env, #endif } =20 -void helper_msa_pckev_w(CPUMIPSState *env, +void HELPER(msa_pckev_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4748,7 +4762,7 @@ void helper_msa_pckev_w(CPUMIPSState *env, #endif } =20 -void helper_msa_pckev_d(CPUMIPSState *env, +void HELPER(msa_pckev_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4760,7 +4774,7 @@ void helper_msa_pckev_d(CPUMIPSState *env, } =20 =20 -void helper_msa_pckod_b(CPUMIPSState *env, +void HELPER(msa_pckod_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4805,7 +4819,7 @@ void helper_msa_pckod_b(CPUMIPSState *env, =20 } =20 -void helper_msa_pckod_h(CPUMIPSState *env, +void HELPER(msa_pckod_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4833,7 +4847,7 @@ void helper_msa_pckod_h(CPUMIPSState *env, #endif } =20 -void helper_msa_pckod_w(CPUMIPSState *env, +void HELPER(msa_pckod_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4853,7 +4867,7 @@ void helper_msa_pckod_w(CPUMIPSState *env, #endif } =20 -void helper_msa_pckod_d(CPUMIPSState *env, +void HELPER(msa_pckod_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4900,7 +4914,7 @@ static inline int64_t msa_sll_df(uint32_t df, int64_t= arg1, int64_t arg2) return arg1 << b_arg2; } =20 -void helper_msa_sll_b(CPUMIPSState *env, +void HELPER(msa_sll_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4925,7 +4939,7 @@ void helper_msa_sll_b(CPUMIPSState *env, pwd->b[15] =3D msa_sll_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_sll_h(CPUMIPSState *env, +void HELPER(msa_sll_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4942,7 +4956,7 @@ void helper_msa_sll_h(CPUMIPSState *env, pwd->h[7] =3D msa_sll_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_sll_w(CPUMIPSState *env, +void HELPER(msa_sll_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4955,7 +4969,7 @@ void helper_msa_sll_w(CPUMIPSState *env, pwd->w[3] =3D msa_sll_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_sll_d(CPUMIPSState *env, +void HELPER(msa_sll_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4973,7 +4987,7 @@ static inline int64_t msa_sra_df(uint32_t df, int64_t= arg1, int64_t arg2) return arg1 >> b_arg2; } =20 -void helper_msa_sra_b(CPUMIPSState *env, +void HELPER(msa_sra_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -4998,7 +5012,7 @@ void helper_msa_sra_b(CPUMIPSState *env, pwd->b[15] =3D msa_sra_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_sra_h(CPUMIPSState *env, +void HELPER(msa_sra_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5015,7 +5029,7 @@ void helper_msa_sra_h(CPUMIPSState *env, pwd->h[7] =3D msa_sra_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_sra_w(CPUMIPSState *env, +void HELPER(msa_sra_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5028,7 +5042,7 @@ void helper_msa_sra_w(CPUMIPSState *env, pwd->w[3] =3D msa_sra_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_sra_d(CPUMIPSState *env, +void HELPER(msa_sra_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5051,7 +5065,7 @@ static inline int64_t msa_srar_df(uint32_t df, int64_= t arg1, int64_t arg2) } } =20 -void helper_msa_srar_b(CPUMIPSState *env, +void HELPER(msa_srar_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5076,7 +5090,7 @@ void helper_msa_srar_b(CPUMIPSState *env, pwd->b[15] =3D msa_srar_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_srar_h(CPUMIPSState *env, +void HELPER(msa_srar_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5093,7 +5107,7 @@ void helper_msa_srar_h(CPUMIPSState *env, pwd->h[7] =3D msa_srar_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_srar_w(CPUMIPSState *env, +void HELPER(msa_srar_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5106,7 +5120,7 @@ void helper_msa_srar_w(CPUMIPSState *env, pwd->w[3] =3D msa_srar_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_srar_d(CPUMIPSState *env, +void HELPER(msa_srar_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5125,7 +5139,7 @@ static inline int64_t msa_srl_df(uint32_t df, int64_t= arg1, int64_t arg2) return u_arg1 >> b_arg2; } =20 -void helper_msa_srl_b(CPUMIPSState *env, +void HELPER(msa_srl_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5150,7 +5164,7 @@ void helper_msa_srl_b(CPUMIPSState *env, pwd->b[15] =3D msa_srl_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_srl_h(CPUMIPSState *env, +void HELPER(msa_srl_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5167,7 +5181,7 @@ void helper_msa_srl_h(CPUMIPSState *env, pwd->h[7] =3D msa_srl_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_srl_w(CPUMIPSState *env, +void HELPER(msa_srl_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5180,7 +5194,7 @@ void helper_msa_srl_w(CPUMIPSState *env, pwd->w[3] =3D msa_srl_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_srl_d(CPUMIPSState *env, +void HELPER(msa_srl_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5204,7 +5218,7 @@ static inline int64_t msa_srlr_df(uint32_t df, int64_= t arg1, int64_t arg2) } } =20 -void helper_msa_srlr_b(CPUMIPSState *env, +void HELPER(msa_srlr_b)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5229,7 +5243,7 @@ void helper_msa_srlr_b(CPUMIPSState *env, pwd->b[15] =3D msa_srlr_df(DF_BYTE, pws->b[15], pwt->b[15]); } =20 -void helper_msa_srlr_h(CPUMIPSState *env, +void HELPER(msa_srlr_h)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5246,7 +5260,7 @@ void helper_msa_srlr_h(CPUMIPSState *env, pwd->h[7] =3D msa_srlr_df(DF_HALF, pws->h[7], pwt->h[7]); } =20 -void helper_msa_srlr_w(CPUMIPSState *env, +void HELPER(msa_srlr_w)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5259,7 +5273,7 @@ void helper_msa_srlr_w(CPUMIPSState *env, pwd->w[3] =3D msa_srlr_df(DF_WORD, pws->w[3], pwt->w[3]); } =20 -void helper_msa_srlr_d(CPUMIPSState *env, +void HELPER(msa_srlr_d)(CPUMIPSState *env, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5272,7 +5286,7 @@ void helper_msa_srlr_d(CPUMIPSState *env, =20 =20 #define MSA_FN_IMM8(FUNC, DEST, OPERATION) \ -void helper_msa_ ## FUNC(CPUMIPSState *env, uint32_t wd, uint32_t ws, \ +void HELPER(msa_ ## FUNC)(CPUMIPSState *env, uint32_t wd, uint32_t ws, \ uint32_t i8) \ { \ wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); \ @@ -5310,7 +5324,7 @@ MSA_FN_IMM8(bseli_b, pwd->b[i], =20 #define SHF_POS(i, imm) (((i) & 0xfc) + (((imm) >> (2 * ((i) & 0x03))) & 0= x03)) =20 -void helper_msa_shf_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_shf_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t imm) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5341,7 +5355,7 @@ void helper_msa_shf_df(CPUMIPSState *env, uint32_t df= , uint32_t wd, } =20 #define MSA_BINOP_IMM_DF(helper, func) \ -void helper_msa_ ## helper ## _df(CPUMIPSState *env, uint32_t df, \ +void HELPER(msa_ ## helper ## _df)(CPUMIPSState *env, uint32_t df, \ uint32_t wd, uint32_t ws, int32_t u5) \ { \ wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); \ @@ -5387,7 +5401,7 @@ MSA_BINOP_IMM_DF(mini_s, min_s) MSA_BINOP_IMM_DF(mini_u, min_u) #undef MSA_BINOP_IMM_DF =20 -void helper_msa_ldi_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_ldi_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, int32_t s10) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5434,8 +5448,8 @@ static inline int64_t msa_sat_u_df(uint32_t df, int64= _t arg, uint32_t m) } =20 #define MSA_BINOP_IMMU_DF(helper, func) \ -void helper_msa_ ## helper ## _df(CPUMIPSState *env, uint32_t df, uint32_t= wd, \ - uint32_t ws, uint32_t u5) \ +void HELPER(msa_ ## helper ## _df)(CPUMIPSState *env, uint32_t df, \ + uint32_t wd, uint32_t ws, uint32_t u5) \ { \ wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); \ wr_t *pws =3D &(env->active_fpu.fpr[ws].wr); \ @@ -5480,7 +5494,7 @@ MSA_BINOP_IMMU_DF(srlri, srlr) #undef MSA_BINOP_IMMU_DF =20 #define MSA_TEROP_IMMU_DF(helper, func) \ -void helper_msa_ ## helper ## _df(CPUMIPSState *env, uint32_t df, \ +void HELPER(msa_ ## helper ## _df)(CPUMIPSState *env, uint32_t df, \ uint32_t wd, uint32_t ws, uint32_t u5) \ { \ wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); \ @@ -5587,7 +5601,7 @@ static inline int64_t msa_mulr_q_df(uint32_t df, int6= 4_t arg1, int64_t arg2) } =20 #define MSA_BINOP_DF(func) \ -void helper_msa_ ## func ## _df(CPUMIPSState *env, uint32_t df, \ +void HELPER(msa_ ## func ## _df)(CPUMIPSState *env, uint32_t df, \ uint32_t wd, uint32_t ws, uint32_t wt) \ { \ wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); \ @@ -5642,7 +5656,7 @@ MSA_BINOP_DF(mul_q) MSA_BINOP_DF(mulr_q) #undef MSA_BINOP_DF =20 -void helper_msa_sld_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_sld_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t rt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5710,7 +5724,7 @@ static inline int64_t msa_msubr_q_df(uint32_t df, int= 64_t dest, int64_t arg1, } =20 #define MSA_TEROP_DF(func) \ -void helper_msa_ ## func ## _df(CPUMIPSState *env, uint32_t df, uint32_t w= d, \ +void HELPER(msa_ ## func ## _df)(CPUMIPSState *env, uint32_t df, uint32_t = wd, \ uint32_t ws, uint32_t wt) = \ { = \ wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); = \ @@ -5817,7 +5831,7 @@ static inline void msa_splat_df(uint32_t df, wr_t *pw= d, } } =20 -void helper_msa_splat_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_splat_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t rt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5849,7 +5863,7 @@ void helper_msa_splat_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, } while (0) =20 #define MSA_FN_DF(FUNC) \ -void helper_msa_##FUNC(CPUMIPSState *env, uint32_t df, uint32_t wd, \ +void HELPER(msa_##FUNC)(CPUMIPSState *env, uint32_t df, uint32_t wd, \ uint32_t ws, uint32_t wt) \ { \ wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); \ @@ -5906,7 +5920,7 @@ MSA_FN_DF(vshf_df) #undef MSA_FN_DF =20 =20 -void helper_msa_sldi_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_sldi_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t n) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5915,7 +5929,7 @@ void helper_msa_sldi_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, msa_sld_df(df, pwd, pws, n); } =20 -void helper_msa_splati_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_splati_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t n) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -5924,7 +5938,7 @@ void helper_msa_splati_df(CPUMIPSState *env, uint32_t= df, uint32_t wd, msa_splat_df(df, pwd, pws, n); } =20 -void helper_msa_copy_s_b(CPUMIPSState *env, uint32_t rd, +void HELPER(msa_copy_s_b)(CPUMIPSState *env, uint32_t rd, uint32_t ws, uint32_t n) { n %=3D 16; @@ -5938,7 +5952,7 @@ void helper_msa_copy_s_b(CPUMIPSState *env, uint32_t = rd, env->active_tc.gpr[rd] =3D (int8_t)env->active_fpu.fpr[ws].wr.b[n]; } =20 -void helper_msa_copy_s_h(CPUMIPSState *env, uint32_t rd, +void HELPER(msa_copy_s_h)(CPUMIPSState *env, uint32_t rd, uint32_t ws, uint32_t n) { n %=3D 8; @@ -5952,7 +5966,7 @@ void helper_msa_copy_s_h(CPUMIPSState *env, uint32_t = rd, env->active_tc.gpr[rd] =3D (int16_t)env->active_fpu.fpr[ws].wr.h[n]; } =20 -void helper_msa_copy_s_w(CPUMIPSState *env, uint32_t rd, +void HELPER(msa_copy_s_w)(CPUMIPSState *env, uint32_t rd, uint32_t ws, uint32_t n) { n %=3D 4; @@ -5966,14 +5980,14 @@ void helper_msa_copy_s_w(CPUMIPSState *env, uint32_= t rd, env->active_tc.gpr[rd] =3D (int32_t)env->active_fpu.fpr[ws].wr.w[n]; } =20 -void helper_msa_copy_s_d(CPUMIPSState *env, uint32_t rd, +void HELPER(msa_copy_s_d)(CPUMIPSState *env, uint32_t rd, uint32_t ws, uint32_t n) { n %=3D 2; env->active_tc.gpr[rd] =3D (int64_t)env->active_fpu.fpr[ws].wr.d[n]; } =20 -void helper_msa_copy_u_b(CPUMIPSState *env, uint32_t rd, +void HELPER(msa_copy_u_b)(CPUMIPSState *env, uint32_t rd, uint32_t ws, uint32_t n) { n %=3D 16; @@ -5987,7 +6001,7 @@ void helper_msa_copy_u_b(CPUMIPSState *env, uint32_t = rd, env->active_tc.gpr[rd] =3D (uint8_t)env->active_fpu.fpr[ws].wr.b[n]; } =20 -void helper_msa_copy_u_h(CPUMIPSState *env, uint32_t rd, +void HELPER(msa_copy_u_h)(CPUMIPSState *env, uint32_t rd, uint32_t ws, uint32_t n) { n %=3D 8; @@ -6001,7 +6015,7 @@ void helper_msa_copy_u_h(CPUMIPSState *env, uint32_t = rd, env->active_tc.gpr[rd] =3D (uint16_t)env->active_fpu.fpr[ws].wr.h[n]; } =20 -void helper_msa_copy_u_w(CPUMIPSState *env, uint32_t rd, +void HELPER(msa_copy_u_w)(CPUMIPSState *env, uint32_t rd, uint32_t ws, uint32_t n) { n %=3D 4; @@ -6015,7 +6029,7 @@ void helper_msa_copy_u_w(CPUMIPSState *env, uint32_t = rd, env->active_tc.gpr[rd] =3D (uint32_t)env->active_fpu.fpr[ws].wr.w[n]; } =20 -void helper_msa_insert_b(CPUMIPSState *env, uint32_t wd, +void HELPER(msa_insert_b)(CPUMIPSState *env, uint32_t wd, uint32_t rs_num, uint32_t n) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6031,7 +6045,7 @@ void helper_msa_insert_b(CPUMIPSState *env, uint32_t = wd, pwd->b[n] =3D (int8_t)rs; } =20 -void helper_msa_insert_h(CPUMIPSState *env, uint32_t wd, +void HELPER(msa_insert_h)(CPUMIPSState *env, uint32_t wd, uint32_t rs_num, uint32_t n) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6047,7 +6061,7 @@ void helper_msa_insert_h(CPUMIPSState *env, uint32_t = wd, pwd->h[n] =3D (int16_t)rs; } =20 -void helper_msa_insert_w(CPUMIPSState *env, uint32_t wd, +void HELPER(msa_insert_w)(CPUMIPSState *env, uint32_t wd, uint32_t rs_num, uint32_t n) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6063,7 +6077,7 @@ void helper_msa_insert_w(CPUMIPSState *env, uint32_t = wd, pwd->w[n] =3D (int32_t)rs; } =20 -void helper_msa_insert_d(CPUMIPSState *env, uint32_t wd, +void HELPER(msa_insert_d)(CPUMIPSState *env, uint32_t wd, uint32_t rs_num, uint32_t n) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6072,7 +6086,7 @@ void helper_msa_insert_d(CPUMIPSState *env, uint32_t = wd, pwd->d[n] =3D (int64_t)rs; } =20 -void helper_msa_insve_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_insve_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t n) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6096,7 +6110,7 @@ void helper_msa_insve_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, } } =20 -void helper_msa_ctcmsa(CPUMIPSState *env, target_ulong elm, uint32_t cd) +void HELPER(msa_ctcmsa)(CPUMIPSState *env, target_ulong elm, uint32_t cd) { switch (cd) { case 0: @@ -6113,7 +6127,7 @@ void helper_msa_ctcmsa(CPUMIPSState *env, target_ulon= g elm, uint32_t cd) } } =20 -target_ulong helper_msa_cfcmsa(CPUMIPSState *env, uint32_t cs) +target_ulong HELPER(msa_cfcmsa)(CPUMIPSState *env, uint32_t cs) { switch (cs) { case 0: @@ -6124,7 +6138,7 @@ target_ulong helper_msa_cfcmsa(CPUMIPSState *env, uin= t32_t cs) return 0; } =20 -void helper_msa_fill_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fill_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t rs) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6867,7 +6881,7 @@ static inline void compare_ne(CPUMIPSState *env, wr_t= *pwd, wr_t *pws, msa_move_v(pwd, pwx); } =20 -void helper_msa_fcaf_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fcaf_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6876,7 +6890,7 @@ void helper_msa_fcaf_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_af(env, pwd, pws, pwt, df, 1, GETPC()); } =20 -void helper_msa_fcun_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fcun_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6885,7 +6899,7 @@ void helper_msa_fcun_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_un(env, pwd, pws, pwt, df, 1, GETPC()); } =20 -void helper_msa_fceq_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fceq_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6894,7 +6908,7 @@ void helper_msa_fceq_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_eq(env, pwd, pws, pwt, df, 1, GETPC()); } =20 -void helper_msa_fcueq_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fcueq_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6903,7 +6917,7 @@ void helper_msa_fcueq_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, compare_ueq(env, pwd, pws, pwt, df, 1, GETPC()); } =20 -void helper_msa_fclt_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fclt_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6912,7 +6926,7 @@ void helper_msa_fclt_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_lt(env, pwd, pws, pwt, df, 1, GETPC()); } =20 -void helper_msa_fcult_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fcult_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6921,7 +6935,7 @@ void helper_msa_fcult_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, compare_ult(env, pwd, pws, pwt, df, 1, GETPC()); } =20 -void helper_msa_fcle_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fcle_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6930,7 +6944,7 @@ void helper_msa_fcle_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_le(env, pwd, pws, pwt, df, 1, GETPC()); } =20 -void helper_msa_fcule_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fcule_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6939,7 +6953,7 @@ void helper_msa_fcule_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, compare_ule(env, pwd, pws, pwt, df, 1, GETPC()); } =20 -void helper_msa_fsaf_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fsaf_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6948,7 +6962,7 @@ void helper_msa_fsaf_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_af(env, pwd, pws, pwt, df, 0, GETPC()); } =20 -void helper_msa_fsun_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fsun_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6957,7 +6971,7 @@ void helper_msa_fsun_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_un(env, pwd, pws, pwt, df, 0, GETPC()); } =20 -void helper_msa_fseq_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fseq_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6966,7 +6980,7 @@ void helper_msa_fseq_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_eq(env, pwd, pws, pwt, df, 0, GETPC()); } =20 -void helper_msa_fsueq_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fsueq_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6975,7 +6989,7 @@ void helper_msa_fsueq_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, compare_ueq(env, pwd, pws, pwt, df, 0, GETPC()); } =20 -void helper_msa_fslt_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fslt_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6984,7 +6998,7 @@ void helper_msa_fslt_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_lt(env, pwd, pws, pwt, df, 0, GETPC()); } =20 -void helper_msa_fsult_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fsult_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -6993,7 +7007,7 @@ void helper_msa_fsult_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, compare_ult(env, pwd, pws, pwt, df, 0, GETPC()); } =20 -void helper_msa_fsle_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fsle_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -7002,7 +7016,7 @@ void helper_msa_fsle_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_le(env, pwd, pws, pwt, df, 0, GETPC()); } =20 -void helper_msa_fsule_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fsule_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -7011,7 +7025,7 @@ void helper_msa_fsule_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, compare_ule(env, pwd, pws, pwt, df, 0, GETPC()); } =20 -void helper_msa_fcor_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fcor_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -7020,7 +7034,7 @@ void helper_msa_fcor_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_or(env, pwd, pws, pwt, df, 1, GETPC()); } =20 -void helper_msa_fcune_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fcune_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -7029,7 +7043,7 @@ void helper_msa_fcune_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, compare_une(env, pwd, pws, pwt, df, 1, GETPC()); } =20 -void helper_msa_fcne_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fcne_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -7038,7 +7052,7 @@ void helper_msa_fcne_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_ne(env, pwd, pws, pwt, df, 1, GETPC()); } =20 -void helper_msa_fsor_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fsor_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -7047,7 +7061,7 @@ void helper_msa_fsor_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, compare_or(env, pwd, pws, pwt, df, 0, GETPC()); } =20 -void helper_msa_fsune_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fsune_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -7056,7 +7070,7 @@ void helper_msa_fsune_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, compare_une(env, pwd, pws, pwt, df, 0, GETPC()); } =20 -void helper_msa_fsne_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fsne_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -7086,7 +7100,7 @@ void helper_msa_fsne_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, } = \ } while (0) =20 -void helper_msa_fadd_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fadd_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t wx, *pwx =3D &wx; @@ -7116,7 +7130,7 @@ void helper_msa_fadd_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_fsub_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fsub_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t wx, *pwx =3D &wx; @@ -7146,7 +7160,7 @@ void helper_msa_fsub_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_fmul_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fmul_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t wx, *pwx =3D &wx; @@ -7177,7 +7191,7 @@ void helper_msa_fmul_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_fdiv_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fdiv_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t wx, *pwx =3D &wx; @@ -7222,7 +7236,7 @@ void helper_msa_fdiv_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, } = \ } while (0) =20 -void helper_msa_fmadd_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fmadd_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t wx, *pwx =3D &wx; @@ -7255,7 +7269,7 @@ void helper_msa_fmadd_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_fmsub_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fmsub_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t wx, *pwx =3D &wx; @@ -7290,7 +7304,7 @@ void helper_msa_fmsub_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_fexp2_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fexp2_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t wx, *pwx =3D &wx; @@ -7341,7 +7355,7 @@ void helper_msa_fexp2_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, } = \ } while (0) =20 -void helper_msa_fexdo_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fexdo_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t wx, *pwx =3D &wx; @@ -7394,7 +7408,7 @@ void helper_msa_fexdo_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, } = \ } while (0) =20 -void helper_msa_ftq_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_ftq_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { wr_t wx, *pwx =3D &wx; @@ -7463,7 +7477,7 @@ void helper_msa_ftq_df(CPUMIPSState *env, uint32_t df= , uint32_t wd, X =3D (as =3D=3D at || xd =3D=3D float## BITS ##_abs(xs)) ? xs : x= t; \ } while (0) =20 -void helper_msa_fmin_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fmin_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { float_status *status =3D &env->active_tc.msa_fp_status; @@ -7537,7 +7551,7 @@ void helper_msa_fmin_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_fmin_a_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fmin_a_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { float_status *status =3D &env->active_tc.msa_fp_status; @@ -7565,7 +7579,7 @@ void helper_msa_fmin_a_df(CPUMIPSState *env, uint32_t= df, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_fmax_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fmax_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { float_status *status =3D &env->active_tc.msa_fp_status; @@ -7639,7 +7653,7 @@ void helper_msa_fmax_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_fmax_a_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fmax_a_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws, uint32_t wt) { float_status *status =3D &env->active_tc.msa_fp_status; @@ -7667,7 +7681,7 @@ void helper_msa_fmax_a_df(CPUMIPSState *env, uint32_t= df, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_fclass_df(CPUMIPSState *env, uint32_t df, +void HELPER(msa_fclass_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { float_status *status =3D &env->active_tc.msa_fp_status; @@ -7703,7 +7717,7 @@ void helper_msa_fclass_df(CPUMIPSState *env, uint32_t= df, } = \ } while (0) =20 -void helper_msa_ftrunc_s_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_ftrunc_s_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -7733,7 +7747,7 @@ void helper_msa_ftrunc_s_df(CPUMIPSState *env, uint32= _t df, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_ftrunc_u_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_ftrunc_u_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -7763,7 +7777,7 @@ void helper_msa_ftrunc_u_df(CPUMIPSState *env, uint32= _t df, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_fsqrt_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fsqrt_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -7810,7 +7824,7 @@ void helper_msa_fsqrt_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, } = \ } while (0) =20 -void helper_msa_frsqrt_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_frsqrt_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -7842,7 +7856,7 @@ void helper_msa_frsqrt_df(CPUMIPSState *env, uint32_t= df, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_frcp_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_frcp_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -7872,7 +7886,7 @@ void helper_msa_frcp_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_frint_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_frint_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -7926,7 +7940,7 @@ void helper_msa_frint_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, } = \ } while (0) =20 -void helper_msa_flog2_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_flog2_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -7956,7 +7970,7 @@ void helper_msa_flog2_df(CPUMIPSState *env, uint32_t = df, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_fexupl_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fexupl_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -7992,7 +8006,7 @@ void helper_msa_fexupl_df(CPUMIPSState *env, uint32_t= df, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_fexupr_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_fexupr_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -8028,7 +8042,7 @@ void helper_msa_fexupr_df(CPUMIPSState *env, uint32_t= df, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_ffql_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_ffql_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -8054,7 +8068,7 @@ void helper_msa_ffql_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_ffqr_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_ffqr_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -8080,7 +8094,7 @@ void helper_msa_ffqr_df(CPUMIPSState *env, uint32_t d= f, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_ftint_s_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_ftint_s_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -8110,7 +8124,7 @@ void helper_msa_ftint_s_df(CPUMIPSState *env, uint32_= t df, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_ftint_u_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_ftint_u_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -8146,7 +8160,7 @@ void helper_msa_ftint_u_df(CPUMIPSState *env, uint32_= t df, uint32_t wd, #define float64_from_int64 int64_to_float64 #define float64_from_uint64 uint64_to_float64 =20 -void helper_msa_ffint_s_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_ffint_s_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -8176,7 +8190,7 @@ void helper_msa_ffint_s_df(CPUMIPSState *env, uint32_= t df, uint32_t wd, msa_move_v(pwd, pwx); } =20 -void helper_msa_ffint_u_df(CPUMIPSState *env, uint32_t df, uint32_t wd, +void HELPER(msa_ffint_u_df)(CPUMIPSState *env, uint32_t df, uint32_t wd, uint32_t ws) { wr_t wx, *pwx =3D &wx; @@ -8223,7 +8237,7 @@ static inline uint64_t bswap32x2(uint64_t x) return ror64(bswap64(x), 32); } =20 -void helper_msa_ld_b(CPUMIPSState *env, uint32_t wd, +void HELPER(msa_ld_b)(CPUMIPSState *env, uint32_t wd, target_ulong addr) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -8237,7 +8251,7 @@ void helper_msa_ld_b(CPUMIPSState *env, uint32_t wd, pwd->d[1] =3D d1; } =20 -void helper_msa_ld_h(CPUMIPSState *env, uint32_t wd, +void HELPER(msa_ld_h)(CPUMIPSState *env, uint32_t wd, target_ulong addr) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -8258,7 +8272,7 @@ void helper_msa_ld_h(CPUMIPSState *env, uint32_t wd, pwd->d[1] =3D d1; } =20 -void helper_msa_ld_w(CPUMIPSState *env, uint32_t wd, +void HELPER(msa_ld_w)(CPUMIPSState *env, uint32_t wd, target_ulong addr) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -8279,7 +8293,7 @@ void helper_msa_ld_w(CPUMIPSState *env, uint32_t wd, pwd->d[1] =3D d1; } =20 -void helper_msa_ld_d(CPUMIPSState *env, uint32_t wd, +void HELPER(msa_ld_d)(CPUMIPSState *env, uint32_t wd, target_ulong addr) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -8310,7 +8324,7 @@ static inline void ensure_writable_pages(CPUMIPSState= *env, } } =20 -void helper_msa_st_b(CPUMIPSState *env, uint32_t wd, +void HELPER(msa_st_b)(CPUMIPSState *env, uint32_t wd, target_ulong addr) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -8324,7 +8338,7 @@ void helper_msa_st_b(CPUMIPSState *env, uint32_t wd, cpu_stq_le_data_ra(env, addr + 8, pwd->d[1], ra); } =20 -void helper_msa_st_h(CPUMIPSState *env, uint32_t wd, +void HELPER(msa_st_h)(CPUMIPSState *env, uint32_t wd, target_ulong addr) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -8345,7 +8359,7 @@ void helper_msa_st_h(CPUMIPSState *env, uint32_t wd, cpu_stq_le_data_ra(env, addr + 8, d1, ra); } =20 -void helper_msa_st_w(CPUMIPSState *env, uint32_t wd, +void HELPER(msa_st_w)(CPUMIPSState *env, uint32_t wd, target_ulong addr) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); @@ -8366,7 +8380,7 @@ void helper_msa_st_w(CPUMIPSState *env, uint32_t wd, cpu_stq_le_data_ra(env, addr + 8, d1, ra); } =20 -void helper_msa_st_d(CPUMIPSState *env, uint32_t wd, +void HELPER(msa_st_d)(CPUMIPSState *env, uint32_t wd, target_ulong addr) { wr_t *pwd =3D &(env->active_fpu.fpr[wd].wr); diff --git a/target/mips/tcg/octeon_crypto.c b/target/mips/tcg/octeon_crypt= o.c index 118397e6322..b061c91ef9c 100644 --- a/target/mips/tcg/octeon_crypto.c +++ b/target/mips/tcg/octeon_crypto.c @@ -1329,7 +1329,7 @@ static void octeon_aes_decrypt_common(MIPSOcteonCrypt= oState *crypto, bool cbc) } } =20 -void helper_octeon_cp2_mt_aes_enc_cbc1(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_aes_enc_cbc1)(CPUMIPSState *env, uint64_t value) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; =20 @@ -1337,7 +1337,7 @@ void helper_octeon_cp2_mt_aes_enc_cbc1(CPUMIPSState *= env, uint64_t value) octeon_aes_encrypt_common(crypto, true); } =20 -void helper_octeon_cp2_mt_aes_enc1(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_aes_enc1)(CPUMIPSState *env, uint64_t value) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; =20 @@ -1345,7 +1345,7 @@ void helper_octeon_cp2_mt_aes_enc1(CPUMIPSState *env,= uint64_t value) octeon_aes_encrypt_common(crypto, false); } =20 -void helper_octeon_cp2_mt_aes_dec_cbc1(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_aes_dec_cbc1)(CPUMIPSState *env, uint64_t value) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; =20 @@ -1353,7 +1353,7 @@ void helper_octeon_cp2_mt_aes_dec_cbc1(CPUMIPSState *= env, uint64_t value) octeon_aes_decrypt_common(crypto, true); } =20 -void helper_octeon_cp2_mt_aes_dec1(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_aes_dec1)(CPUMIPSState *env, uint64_t value) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; =20 @@ -1452,7 +1452,7 @@ static void octeon_sms4_crypt_common(MIPSOcteonCrypto= State *crypto, } } =20 -void helper_octeon_cp2_mt_sms4_enc_cbc1(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_sms4_enc_cbc1)(CPUMIPSState *env, uint64_t value) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; =20 @@ -1460,7 +1460,7 @@ void helper_octeon_cp2_mt_sms4_enc_cbc1(CPUMIPSState = *env, uint64_t value) octeon_sms4_crypt_common(crypto, true, true); } =20 -void helper_octeon_cp2_mt_sms4_enc1(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_sms4_enc1)(CPUMIPSState *env, uint64_t value) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; =20 @@ -1468,7 +1468,7 @@ void helper_octeon_cp2_mt_sms4_enc1(CPUMIPSState *env= , uint64_t value) octeon_sms4_crypt_common(crypto, true, false); } =20 -void helper_octeon_cp2_mt_sms4_dec_cbc1(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_sms4_dec_cbc1)(CPUMIPSState *env, uint64_t value) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; =20 @@ -1476,7 +1476,7 @@ void helper_octeon_cp2_mt_sms4_dec_cbc1(CPUMIPSState = *env, uint64_t value) octeon_sms4_crypt_common(crypto, false, true); } =20 -void helper_octeon_cp2_mt_sms4_dec1(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_sms4_dec1)(CPUMIPSState *env, uint64_t value) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; =20 @@ -1912,32 +1912,32 @@ static void octeon_kasumi_crypt_common(MIPSOcteonCr= yptoState *crypto, crypto->des3_result =3D block; } =20 -void helper_octeon_cp2_mt_des3_enc_cbc(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_des3_enc_cbc)(CPUMIPSState *env, uint64_t value) { octeon_3des_crypt_common(&env->octeon_crypto, value, true, true); } =20 -void helper_octeon_cp2_mt_kas_enc_cbc(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_kas_enc_cbc)(CPUMIPSState *env, uint64_t value) { octeon_kasumi_crypt_common(&env->octeon_crypto, value, true); } =20 -void helper_octeon_cp2_mt_des3_enc(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_des3_enc)(CPUMIPSState *env, uint64_t value) { octeon_3des_crypt_common(&env->octeon_crypto, value, true, false); } =20 -void helper_octeon_cp2_mt_kas_enc(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_kas_enc)(CPUMIPSState *env, uint64_t value) { octeon_kasumi_crypt_common(&env->octeon_crypto, value, false); } =20 -void helper_octeon_cp2_mt_des3_dec_cbc(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_des3_dec_cbc)(CPUMIPSState *env, uint64_t value) { octeon_3des_crypt_common(&env->octeon_crypto, value, false, true); } =20 -void helper_octeon_cp2_mt_des3_dec(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_des3_dec)(CPUMIPSState *env, uint64_t value) { octeon_3des_crypt_common(&env->octeon_crypto, value, false, false); } @@ -2053,68 +2053,68 @@ static void octeon_camellia_fl_layer(MIPSOcteonCryp= toState *crypto, camellia_fl(state, key); } =20 -void helper_octeon_cp2_mt_camellia_fl(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_camellia_fl)(CPUMIPSState *env, uint64_t value) { octeon_camellia_fl_layer(&env->octeon_crypto, value, false); } =20 -void helper_octeon_cp2_mt_camellia_flinv(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_camellia_flinv)(CPUMIPSState *env, uint64_t valu= e) { octeon_camellia_fl_layer(&env->octeon_crypto, value, true); } =20 -void helper_octeon_cp2_mt_camellia_round(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_camellia_round)(CPUMIPSState *env, uint64_t valu= e) { octeon_camellia_round(&env->octeon_crypto, value); } =20 -void helper_octeon_cp2_mt_snow3g_start(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_snow3g_start)(CPUMIPSState *env, uint64_t value) { octeon_snow3g_start(&env->octeon_crypto, value); } =20 -void helper_octeon_cp2_mt_snow3g_more(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_snow3g_more)(CPUMIPSState *env, uint64_t value) { (void)value; octeon_snow3g_more(&env->octeon_crypto); } =20 -void helper_octeon_cp2_mt_zuc_start(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_zuc_start)(CPUMIPSState *env, uint64_t value) { octeon_zuc_start(&env->octeon_crypto, value); } =20 -void helper_octeon_cp2_mt_zuc_more(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_zuc_more)(CPUMIPSState *env, uint64_t value) { octeon_zuc_more(&env->octeon_crypto, value); } =20 -void helper_octeon_cp2_mt_hsh_startsha1_compat(CPUMIPSState *env, +void HELPER(octeon_cp2_mt_hsh_startsha1_compat)(CPUMIPSState *env, uint64_t value) { octeon_hsh_set_pair(env->octeon_crypto.hsh_dat, 7, value); octeon_sha1_transform(&env->octeon_crypto); } =20 -void helper_octeon_cp2_mt_hsh_startmd5(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_hsh_startmd5)(CPUMIPSState *env, uint64_t value) { octeon_hsh_set_pair(env->octeon_crypto.hsh_dat, 7, value); octeon_md5_transform(&env->octeon_crypto); } =20 -void helper_octeon_cp2_mt_hsh_startsha256(CPUMIPSState *env, uint64_t valu= e) +void HELPER(octeon_cp2_mt_hsh_startsha256)(CPUMIPSState *env, uint64_t val= ue) { octeon_hsh_set_pair(env->octeon_crypto.hsh_dat, 7, value); octeon_sha256_transform(&env->octeon_crypto); } =20 -void helper_octeon_cp2_mt_hsh_startsha(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_hsh_startsha)(CPUMIPSState *env, uint64_t value) { octeon_hsh_set_pair(env->octeon_crypto.hsh_dat, 7, value); octeon_sha1_transform(&env->octeon_crypto); } =20 -void helper_octeon_cp2_mt_hsh_startsha512(CPUMIPSState *env, uint64_t valu= e) +void HELPER(octeon_cp2_mt_hsh_startsha512)(CPUMIPSState *env, uint64_t val= ue) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; =20 @@ -2122,7 +2122,7 @@ void helper_octeon_cp2_mt_hsh_startsha512(CPUMIPSStat= e *env, uint64_t value) octeon_sha512_transform(crypto); } =20 -uint64_t helper_octeon_cp2_mf_crc_iv_reflect(CPUMIPSState *env) +uint64_t HELPER(octeon_cp2_mf_crc_iv_reflect)(CPUMIPSState *env) { return octeon_crc_reflect32_by_byte(env->octeon_crypto.crc_iv); } @@ -2141,7 +2141,7 @@ static void octeon_gfm_xormul1_common(MIPSOcteonCrypt= oState *crypto, } } =20 -void helper_octeon_cp2_mt_gfm_xormul1_reflect(CPUMIPSState *env, +void HELPER(octeon_cp2_mt_gfm_xormul1_reflect)(CPUMIPSState *env, uint64_t value) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; @@ -2149,84 +2149,84 @@ void helper_octeon_cp2_mt_gfm_xormul1_reflect(CPUMI= PSState *env, octeon_gfm_xormul1_common(crypto, revbit64(value)); } =20 -void helper_octeon_cp2_mt_gfm_xormul1(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_gfm_xormul1)(CPUMIPSState *env, uint64_t value) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; =20 octeon_gfm_xormul1_common(crypto, value); } =20 -void helper_octeon_cp2_mt_sha3_startop(CPUMIPSState *env) +void HELPER(octeon_cp2_mt_sha3_startop)(CPUMIPSState *env) { octeon_sha3_permute(&env->octeon_crypto); } =20 -void helper_octeon_cp2_mt_crc_write_iv_reflect(CPUMIPSState *env, +void HELPER(octeon_cp2_mt_crc_write_iv_reflect)(CPUMIPSState *env, uint64_t value) { env->octeon_crypto.crc_iv =3D octeon_crc_reflect32_by_byte((uint32_t)value); } =20 -void helper_octeon_cp2_mt_crc_write_polynomial_reflect(CPUMIPSState *env, +void HELPER(octeon_cp2_mt_crc_write_polynomial_reflect)(CPUMIPSState *env, uint64_t value) { env->octeon_crypto.crc_poly =3D octeon_crc_reflect32_by_byte((uint32_t)value); } =20 -void helper_octeon_cp2_mt_crc_write_byte(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_crc_write_byte)(CPUMIPSState *env, uint64_t valu= e) { octeon_crc_update_normal(&env->octeon_crypto, value, 1); } =20 -void helper_octeon_cp2_mt_crc_write_half(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_crc_write_half)(CPUMIPSState *env, uint64_t valu= e) { octeon_crc_update_normal(&env->octeon_crypto, value, 2); } =20 -void helper_octeon_cp2_mt_crc_write_word(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_crc_write_word)(CPUMIPSState *env, uint64_t valu= e) { octeon_crc_update_normal(&env->octeon_crypto, value, 4); } =20 -void helper_octeon_cp2_mt_crc_write_dword(CPUMIPSState *env, uint64_t valu= e) +void HELPER(octeon_cp2_mt_crc_write_dword)(CPUMIPSState *env, uint64_t val= ue) { octeon_crc_update_normal(&env->octeon_crypto, value, 8); } =20 -void helper_octeon_cp2_mt_crc_write_var(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_crc_write_var)(CPUMIPSState *env, uint64_t value) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; =20 octeon_crc_update_normal(crypto, value, MIN(8U, crypto->crc_len & 0xf)= ); } =20 -void helper_octeon_cp2_mt_crc_write_byte_reflect(CPUMIPSState *env, +void HELPER(octeon_cp2_mt_crc_write_byte_reflect)(CPUMIPSState *env, uint64_t value) { octeon_crc_update_reflect(&env->octeon_crypto, value, 1); } =20 -void helper_octeon_cp2_mt_crc_write_half_reflect(CPUMIPSState *env, +void HELPER(octeon_cp2_mt_crc_write_half_reflect)(CPUMIPSState *env, uint64_t value) { octeon_crc_update_reflect(&env->octeon_crypto, value, 2); } =20 -void helper_octeon_cp2_mt_crc_write_word_reflect(CPUMIPSState *env, +void HELPER(octeon_cp2_mt_crc_write_word_reflect)(CPUMIPSState *env, uint64_t value) { octeon_crc_update_reflect(&env->octeon_crypto, value, 4); } =20 -void helper_octeon_cp2_mt_crc_write_dword_reflect(CPUMIPSState *env, +void HELPER(octeon_cp2_mt_crc_write_dword_reflect)(CPUMIPSState *env, uint64_t value) { octeon_crc_update_reflect(&env->octeon_crypto, value, 8); } =20 -void helper_octeon_cp2_mt_crc_write_var_reflect(CPUMIPSState *env, +void HELPER(octeon_cp2_mt_crc_write_var_reflect)(CPUMIPSState *env, uint64_t value) { MIPSOcteonCryptoState *crypto =3D &env->octeon_crypto; @@ -2234,42 +2234,42 @@ void helper_octeon_cp2_mt_crc_write_var_reflect(CPU= MIPSState *env, octeon_crc_update_reflect(crypto, value, MIN(8U, crypto->crc_len & 0xf= )); } =20 -void helper_octeon_cp2_mt_llm_read_addr0(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_llm_read_addr0)(CPUMIPSState *env, uint64_t valu= e) { octeon_llm_read(&env->octeon_crypto, 0, value, false); } =20 -void helper_octeon_cp2_mt_llm_write_addr0(CPUMIPSState *env, uint64_t valu= e) +void HELPER(octeon_cp2_mt_llm_write_addr0)(CPUMIPSState *env, uint64_t val= ue) { octeon_llm_write(&env->octeon_crypto, 0, value, false); } =20 -void helper_octeon_cp2_mt_llm_read64_addr0(CPUMIPSState *env, uint64_t val= ue) +void HELPER(octeon_cp2_mt_llm_read64_addr0)(CPUMIPSState *env, uint64_t va= lue) { octeon_llm_read(&env->octeon_crypto, 0, value, true); } =20 -void helper_octeon_cp2_mt_llm_write64_addr0(CPUMIPSState *env, uint64_t va= lue) +void HELPER(octeon_cp2_mt_llm_write64_addr0)(CPUMIPSState *env, uint64_t v= alue) { octeon_llm_write(&env->octeon_crypto, 0, value, true); } =20 -void helper_octeon_cp2_mt_llm_read_addr1(CPUMIPSState *env, uint64_t value) +void HELPER(octeon_cp2_mt_llm_read_addr1)(CPUMIPSState *env, uint64_t valu= e) { octeon_llm_read(&env->octeon_crypto, 1, value, false); } =20 -void helper_octeon_cp2_mt_llm_write_addr1(CPUMIPSState *env, uint64_t valu= e) +void HELPER(octeon_cp2_mt_llm_write_addr1)(CPUMIPSState *env, uint64_t val= ue) { octeon_llm_write(&env->octeon_crypto, 1, value, false); } =20 -void helper_octeon_cp2_mt_llm_read64_addr1(CPUMIPSState *env, uint64_t val= ue) +void HELPER(octeon_cp2_mt_llm_read64_addr1)(CPUMIPSState *env, uint64_t va= lue) { octeon_llm_read(&env->octeon_crypto, 1, value, true); } =20 -void helper_octeon_cp2_mt_llm_write64_addr1(CPUMIPSState *env, uint64_t va= lue) +void HELPER(octeon_cp2_mt_llm_write64_addr1)(CPUMIPSState *env, uint64_t v= alue) { octeon_llm_write(&env->octeon_crypto, 1, value, true); } diff --git a/target/mips/tcg/op_helper.c b/target/mips/tcg/op_helper.c index df1b5c37347..c3f0c05bc31 100644 --- a/target/mips/tcg/op_helper.c +++ b/target/mips/tcg/op_helper.c @@ -40,18 +40,18 @@ static inline target_ulong bitswap(target_ulong v) } =20 #ifdef TARGET_MIPS64 -target_ulong helper_dbitswap(target_ulong rt) +target_ulong HELPER(dbitswap)(target_ulong rt) { return bitswap(rt); } #endif =20 -target_ulong helper_bitswap(target_ulong rt) +target_ulong HELPER(bitswap)(target_ulong rt) { return (int32_t)bitswap(rt); } =20 -target_ulong helper_rotx(target_ulong rs, uint32_t shift, uint32_t shiftx, +target_ulong HELPER(rotx)(target_ulong rs, uint32_t shift, uint32_t shiftx, uint32_t stripe) { int i; @@ -146,7 +146,7 @@ target_ulong helper_rotx(target_ulong rs, uint32_t shif= t, uint32_t shiftx, } =20 /* these crc32 functions are based on target/loongarch/tcg/op_helper.c */ -target_ulong helper_crc32(target_ulong val, target_ulong m, uint32_t sz) +target_ulong HELPER(crc32)(target_ulong val, target_ulong m, uint32_t sz) { uint8_t buf[8]; target_ulong mask =3D ((sz * 8) =3D=3D 64) ? @@ -158,7 +158,7 @@ target_ulong helper_crc32(target_ulong val, target_ulon= g m, uint32_t sz) return (int32_t) (crc32(val ^ 0xffffffff, buf, sz) ^ 0xffffffff); } =20 -target_ulong helper_crc32c(target_ulong val, target_ulong m, uint32_t sz) +target_ulong HELPER(crc32c)(target_ulong val, target_ulong m, uint32_t sz) { uint8_t buf[8]; target_ulong mask =3D ((sz * 8) =3D=3D 64) ? @@ -169,7 +169,7 @@ target_ulong helper_crc32c(target_ulong val, target_ulo= ng m, uint32_t sz) return (int32_t) (crc32c(val, buf, sz) ^ 0xffffffff); } =20 -void helper_fork(target_ulong arg1, target_ulong arg2) +void HELPER(fork)(target_ulong arg1, target_ulong arg2) { /* * arg1 =3D rt, arg2 =3D rs @@ -177,7 +177,7 @@ void helper_fork(target_ulong arg1, target_ulong arg2) */ } =20 -target_ulong helper_yield(CPUMIPSState *env, target_ulong arg) +target_ulong HELPER(yield)(CPUMIPSState *env, target_ulong arg) { target_long arg1 =3D arg; =20 @@ -216,19 +216,19 @@ static inline void check_hwrena(CPUMIPSState *env, in= t reg, uintptr_t pc) do_raise_exception(env, EXCP_RI, pc); } =20 -target_ulong helper_rdhwr_cpunum(CPUMIPSState *env) +target_ulong HELPER(rdhwr_cpunum)(CPUMIPSState *env) { check_hwrena(env, 0, GETPC()); return env->CP0_EBase & 0x3ff; } =20 -target_ulong helper_rdhwr_synci_step(CPUMIPSState *env) +target_ulong HELPER(rdhwr_synci_step)(CPUMIPSState *env) { check_hwrena(env, 1, GETPC()); return env->SYNCI_Step; } =20 -target_ulong helper_rdhwr_cc(CPUMIPSState *env) +target_ulong HELPER(rdhwr_cc)(CPUMIPSState *env) { check_hwrena(env, 2, GETPC()); #ifdef CONFIG_USER_ONLY @@ -238,31 +238,31 @@ target_ulong helper_rdhwr_cc(CPUMIPSState *env) #endif } =20 -target_ulong helper_rdhwr_ccres(CPUMIPSState *env) +target_ulong HELPER(rdhwr_ccres)(CPUMIPSState *env) { check_hwrena(env, 3, GETPC()); return env->CCRes; } =20 -target_ulong helper_rdhwr_performance(CPUMIPSState *env) +target_ulong HELPER(rdhwr_performance)(CPUMIPSState *env) { check_hwrena(env, 4, GETPC()); return env->CP0_Performance0; } =20 -target_ulong helper_rdhwr_xnp(CPUMIPSState *env) +target_ulong HELPER(rdhwr_xnp)(CPUMIPSState *env) { check_hwrena(env, 5, GETPC()); return (env->CP0_Config5 >> CP0C5_XNP) & 1; } =20 -target_ulong helper_rdhwr_chord(CPUMIPSState *env) +target_ulong HELPER(rdhwr_chord)(CPUMIPSState *env) { check_hwrena(env, 30, GETPC()); return env->octeon_crypto.chord; } =20 -target_ulong helper_rdhwr_cvmcount(CPUMIPSState *env) +target_ulong HELPER(rdhwr_cvmcount)(CPUMIPSState *env) { check_hwrena(env, 31, GETPC()); #ifdef CONFIG_USER_ONLY @@ -272,7 +272,7 @@ target_ulong helper_rdhwr_cvmcount(CPUMIPSState *env) #endif } =20 -void helper_pmon(CPUMIPSState *env, int function) +void HELPER(pmon)(CPUMIPSState *env, int function) { function /=3D 2; switch (function) { @@ -300,7 +300,7 @@ void helper_pmon(CPUMIPSState *env, int function) } =20 #ifdef TARGET_MIPS64 -target_ulong helper_lcsr_cpucfg(CPUMIPSState *env, target_ulong rs) +target_ulong HELPER(lcsr_cpucfg)(CPUMIPSState *env, target_ulong rs) { switch (rs) { case 0: diff --git a/target/mips/tcg/system/cp0_helper.c b/target/mips/tcg/system/c= p0_helper.c index ba6b487b751..ceffcc37323 100644 --- a/target/mips/tcg/system/cp0_helper.c +++ b/target/mips/tcg/system/cp0_helper.c @@ -227,35 +227,35 @@ uint32_t cpu_mips_get_random(CPUMIPSState *env) } =20 /* CP0 helpers */ -target_ulong helper_mfc0_mvpcontrol(CPUMIPSState *env) +target_ulong HELPER(mfc0_mvpcontrol)(CPUMIPSState *env) { MIPSCPU *cpu =3D env_archcpu(env); return cpu->mvp->CP0_MVPControl; } =20 -target_ulong helper_mfc0_mvpconf0(CPUMIPSState *env) +target_ulong HELPER(mfc0_mvpconf0)(CPUMIPSState *env) { MIPSCPU *cpu =3D env_archcpu(env); return cpu->mvp->CP0_MVPConf0; } =20 -target_ulong helper_mfc0_mvpconf1(CPUMIPSState *env) +target_ulong HELPER(mfc0_mvpconf1)(CPUMIPSState *env) { MIPSCPU *cpu =3D env_archcpu(env); return cpu->mvp->CP0_MVPConf1; } =20 -target_ulong helper_mfc0_random(CPUMIPSState *env) +target_ulong HELPER(mfc0_random)(CPUMIPSState *env) { return (int32_t)cpu_mips_get_random(env); } =20 -target_ulong helper_mfc0_tcstatus(CPUMIPSState *env) +target_ulong HELPER(mfc0_tcstatus)(CPUMIPSState *env) { return env->active_tc.CP0_TCStatus; } =20 -target_ulong helper_mftc0_tcstatus(CPUMIPSState *env) +target_ulong HELPER(mftc0_tcstatus)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -267,12 +267,12 @@ target_ulong helper_mftc0_tcstatus(CPUMIPSState *env) } } =20 -target_ulong helper_mfc0_tcbind(CPUMIPSState *env) +target_ulong HELPER(mfc0_tcbind)(CPUMIPSState *env) { return env->active_tc.CP0_TCBind; } =20 -target_ulong helper_mftc0_tcbind(CPUMIPSState *env) +target_ulong HELPER(mftc0_tcbind)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -284,12 +284,12 @@ target_ulong helper_mftc0_tcbind(CPUMIPSState *env) } } =20 -target_ulong helper_mfc0_tcrestart(CPUMIPSState *env) +target_ulong HELPER(mfc0_tcrestart)(CPUMIPSState *env) { return env->active_tc.PC; } =20 -target_ulong helper_mftc0_tcrestart(CPUMIPSState *env) +target_ulong HELPER(mftc0_tcrestart)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -301,12 +301,12 @@ target_ulong helper_mftc0_tcrestart(CPUMIPSState *env) } } =20 -target_ulong helper_mfc0_tchalt(CPUMIPSState *env) +target_ulong HELPER(mfc0_tchalt)(CPUMIPSState *env) { return env->active_tc.CP0_TCHalt; } =20 -target_ulong helper_mftc0_tchalt(CPUMIPSState *env) +target_ulong HELPER(mftc0_tchalt)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -318,12 +318,12 @@ target_ulong helper_mftc0_tchalt(CPUMIPSState *env) } } =20 -target_ulong helper_mfc0_tccontext(CPUMIPSState *env) +target_ulong HELPER(mfc0_tccontext)(CPUMIPSState *env) { return env->active_tc.CP0_TCContext; } =20 -target_ulong helper_mftc0_tccontext(CPUMIPSState *env) +target_ulong HELPER(mftc0_tccontext)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -335,12 +335,12 @@ target_ulong helper_mftc0_tccontext(CPUMIPSState *env) } } =20 -target_ulong helper_mfc0_tcschedule(CPUMIPSState *env) +target_ulong HELPER(mfc0_tcschedule)(CPUMIPSState *env) { return env->active_tc.CP0_TCSchedule; } =20 -target_ulong helper_mftc0_tcschedule(CPUMIPSState *env) +target_ulong HELPER(mftc0_tcschedule)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -352,12 +352,12 @@ target_ulong helper_mftc0_tcschedule(CPUMIPSState *en= v) } } =20 -target_ulong helper_mfc0_tcschefback(CPUMIPSState *env) +target_ulong HELPER(mfc0_tcschefback)(CPUMIPSState *env) { return env->active_tc.CP0_TCScheFBack; } =20 -target_ulong helper_mftc0_tcschefback(CPUMIPSState *env) +target_ulong HELPER(mftc0_tcschefback)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -369,12 +369,12 @@ target_ulong helper_mftc0_tcschefback(CPUMIPSState *e= nv) } } =20 -target_ulong helper_mfc0_count(CPUMIPSState *env) +target_ulong HELPER(mfc0_count)(CPUMIPSState *env) { return (int32_t)cpu_mips_get_count(env); } =20 -target_ulong helper_mftc0_entryhi(CPUMIPSState *env) +target_ulong HELPER(mftc0_entryhi)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -382,7 +382,7 @@ target_ulong helper_mftc0_entryhi(CPUMIPSState *env) return other->CP0_EntryHi; } =20 -target_ulong helper_mftc0_cause(CPUMIPSState *env) +target_ulong HELPER(mftc0_cause)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -390,7 +390,7 @@ target_ulong helper_mftc0_cause(CPUMIPSState *env) return other->CP0_Cause; } =20 -target_ulong helper_mftc0_status(CPUMIPSState *env) +target_ulong HELPER(mftc0_status)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -398,37 +398,37 @@ target_ulong helper_mftc0_status(CPUMIPSState *env) return other->CP0_Status; } =20 -target_ulong helper_mfc0_lladdr(CPUMIPSState *env) +target_ulong HELPER(mfc0_lladdr)(CPUMIPSState *env) { return (int32_t)(env->CP0_LLAddr >> env->CP0_LLAddr_shift); } =20 -target_ulong helper_mfc0_maar(CPUMIPSState *env) +target_ulong HELPER(mfc0_maar)(CPUMIPSState *env) { return (int32_t) env->CP0_MAAR[env->CP0_MAARI]; } =20 -target_ulong helper_mfhc0_maar(CPUMIPSState *env) +target_ulong HELPER(mfhc0_maar)(CPUMIPSState *env) { return env->CP0_MAAR[env->CP0_MAARI] >> 32; } =20 -target_ulong helper_mfc0_watchlo(CPUMIPSState *env, uint32_t sel) +target_ulong HELPER(mfc0_watchlo)(CPUMIPSState *env, uint32_t sel) { return (int32_t)env->CP0_WatchLo[sel]; } =20 -target_ulong helper_mfc0_watchhi(CPUMIPSState *env, uint32_t sel) +target_ulong HELPER(mfc0_watchhi)(CPUMIPSState *env, uint32_t sel) { return (int32_t) env->CP0_WatchHi[sel]; } =20 -target_ulong helper_mfhc0_watchhi(CPUMIPSState *env, uint32_t sel) +target_ulong HELPER(mfhc0_watchhi)(CPUMIPSState *env, uint32_t sel) { return env->CP0_WatchHi[sel] >> 32; } =20 -target_ulong helper_mfc0_debug(CPUMIPSState *env) +target_ulong HELPER(mfc0_debug)(CPUMIPSState *env) { target_ulong t0 =3D env->CP0_Debug; if (env->hflags & MIPS_HFLAG_DM) { @@ -438,7 +438,7 @@ target_ulong helper_mfc0_debug(CPUMIPSState *env) return t0; } =20 -target_ulong helper_mftc0_debug(CPUMIPSState *env) +target_ulong HELPER(mftc0_debug)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); int32_t tcstatus; @@ -456,54 +456,54 @@ target_ulong helper_mftc0_debug(CPUMIPSState *env) } =20 #if defined(TARGET_MIPS64) -target_ulong helper_dmfc0_tcrestart(CPUMIPSState *env) +target_ulong HELPER(dmfc0_tcrestart)(CPUMIPSState *env) { return env->active_tc.PC; } =20 -target_ulong helper_dmfc0_tchalt(CPUMIPSState *env) +target_ulong HELPER(dmfc0_tchalt)(CPUMIPSState *env) { return env->active_tc.CP0_TCHalt; } =20 -target_ulong helper_dmfc0_tccontext(CPUMIPSState *env) +target_ulong HELPER(dmfc0_tccontext)(CPUMIPSState *env) { return env->active_tc.CP0_TCContext; } =20 -target_ulong helper_dmfc0_tcschedule(CPUMIPSState *env) +target_ulong HELPER(dmfc0_tcschedule)(CPUMIPSState *env) { return env->active_tc.CP0_TCSchedule; } =20 -target_ulong helper_dmfc0_tcschefback(CPUMIPSState *env) +target_ulong HELPER(dmfc0_tcschefback)(CPUMIPSState *env) { return env->active_tc.CP0_TCScheFBack; } =20 -target_ulong helper_dmfc0_lladdr(CPUMIPSState *env) +target_ulong HELPER(dmfc0_lladdr)(CPUMIPSState *env) { return env->CP0_LLAddr >> env->CP0_LLAddr_shift; } =20 -target_ulong helper_dmfc0_maar(CPUMIPSState *env) +target_ulong HELPER(dmfc0_maar)(CPUMIPSState *env) { return env->CP0_MAAR[env->CP0_MAARI]; } =20 -target_ulong helper_dmfc0_watchlo(CPUMIPSState *env, uint32_t sel) +target_ulong HELPER(dmfc0_watchlo)(CPUMIPSState *env, uint32_t sel) { return env->CP0_WatchLo[sel]; } =20 -target_ulong helper_dmfc0_watchhi(CPUMIPSState *env, uint32_t sel) +target_ulong HELPER(dmfc0_watchhi)(CPUMIPSState *env, uint32_t sel) { return env->CP0_WatchHi[sel]; } =20 #endif /* TARGET_MIPS64 */ =20 -void helper_mtc0_index(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_index)(CPUMIPSState *env, target_ulong arg1) { uint32_t index_p =3D env->CP0_Index & 0x80000000; uint32_t tlb_index =3D arg1 & 0x7fffffff; @@ -515,7 +515,7 @@ void helper_mtc0_index(CPUMIPSState *env, target_ulong = arg1) } } =20 -void helper_mtc0_mvpcontrol(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_mvpcontrol)(CPUMIPSState *env, target_ulong arg1) { MIPSCPU *cpu =3D env_archcpu(env); uint32_t mask =3D 0; @@ -535,7 +535,7 @@ void helper_mtc0_mvpcontrol(CPUMIPSState *env, target_u= long arg1) cpu->mvp->CP0_MVPControl =3D newval; } =20 -void helper_mtc0_vpecontrol(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_vpecontrol)(CPUMIPSState *env, target_ulong arg1) { uint32_t mask; uint32_t newval; @@ -554,7 +554,7 @@ void helper_mtc0_vpecontrol(CPUMIPSState *env, target_u= long arg1) env->CP0_VPEControl =3D newval; } =20 -void helper_mttc0_vpecontrol(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_vpecontrol)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -570,7 +570,7 @@ void helper_mttc0_vpecontrol(CPUMIPSState *env, target_= ulong arg1) other->CP0_VPEControl =3D newval; } =20 -target_ulong helper_mftc0_vpecontrol(CPUMIPSState *env) +target_ulong HELPER(mftc0_vpecontrol)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -578,7 +578,7 @@ target_ulong helper_mftc0_vpecontrol(CPUMIPSState *env) return other->CP0_VPEControl; } =20 -target_ulong helper_mftc0_vpeconf0(CPUMIPSState *env) +target_ulong HELPER(mftc0_vpeconf0)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -586,7 +586,7 @@ target_ulong helper_mftc0_vpeconf0(CPUMIPSState *env) return other->CP0_VPEConf0; } =20 -void helper_mtc0_vpeconf0(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_vpeconf0)(CPUMIPSState *env, target_ulong arg1) { uint32_t mask =3D 0; uint32_t newval; @@ -604,7 +604,7 @@ void helper_mtc0_vpeconf0(CPUMIPSState *env, target_ulo= ng arg1) env->CP0_VPEConf0 =3D newval; } =20 -void helper_mttc0_vpeconf0(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_vpeconf0)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -618,7 +618,7 @@ void helper_mttc0_vpeconf0(CPUMIPSState *env, target_ul= ong arg1) other->CP0_VPEConf0 =3D newval; } =20 -void helper_mtc0_vpeconf1(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_vpeconf1)(CPUMIPSState *env, target_ulong arg1) { MIPSCPU *cpu =3D env_archcpu(env); uint32_t mask =3D 0; @@ -637,20 +637,20 @@ void helper_mtc0_vpeconf1(CPUMIPSState *env, target_u= long arg1) env->CP0_VPEConf1 =3D newval; } =20 -void helper_mtc0_yqmask(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_yqmask)(CPUMIPSState *env, target_ulong arg1) { /* Yield qualifier inputs not implemented. */ env->CP0_YQMask =3D 0x00000000; } =20 -void helper_mtc0_vpeopt(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_vpeopt)(CPUMIPSState *env, target_ulong arg1) { env->CP0_VPEOpt =3D arg1 & 0x0000ffff; } =20 #define MTC0_ENTRYLO_MASK(env) ((env->PAMask >> 6) & 0x3FFFFFFF) =20 -void helper_mtc0_entrylo0(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_entrylo0)(CPUMIPSState *env, target_ulong arg1) { /* 1k pages not implemented */ target_ulong rxi =3D arg1 & (env->CP0_PageGrain & (3u << CP0PG_XIE)); @@ -661,14 +661,14 @@ void helper_mtc0_entrylo0(CPUMIPSState *env, target_u= long arg1) #if defined(TARGET_MIPS64) #define DMTC0_ENTRYLO_MASK(env) (env->PAMask >> 6) =20 -void helper_dmtc0_entrylo0(CPUMIPSState *env, uint64_t arg1) +void HELPER(dmtc0_entrylo0)(CPUMIPSState *env, uint64_t arg1) { uint64_t rxi =3D arg1 & ((env->CP0_PageGrain & (3ull << CP0PG_XIE)) <<= 32); env->CP0_EntryLo0 =3D (arg1 & DMTC0_ENTRYLO_MASK(env)) | rxi; } #endif =20 -void helper_mtc0_tcstatus(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_tcstatus)(CPUMIPSState *env, target_ulong arg1) { uint32_t mask =3D env->CP0_TCStatus_rw_bitmask; uint32_t newval; @@ -679,7 +679,7 @@ void helper_mtc0_tcstatus(CPUMIPSState *env, target_ulo= ng arg1) sync_c0_tcstatus(env, env->current_tc, newval); } =20 -void helper_mttc0_tcstatus(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_tcstatus)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -692,7 +692,7 @@ void helper_mttc0_tcstatus(CPUMIPSState *env, target_ul= ong arg1) sync_c0_tcstatus(other, other_tc, arg1); } =20 -void helper_mtc0_tcbind(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_tcbind)(CPUMIPSState *env, target_ulong arg1) { MIPSCPU *cpu =3D env_archcpu(env); uint32_t mask =3D (1 << CP0TCBd_TBE); @@ -705,7 +705,7 @@ void helper_mtc0_tcbind(CPUMIPSState *env, target_ulong= arg1) env->active_tc.CP0_TCBind =3D newval; } =20 -void helper_mttc0_tcbind(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_tcbind)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); uint32_t mask =3D (1 << CP0TCBd_TBE); @@ -725,7 +725,7 @@ void helper_mttc0_tcbind(CPUMIPSState *env, target_ulon= g arg1) } } =20 -void helper_mtc0_tcrestart(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_tcrestart)(CPUMIPSState *env, target_ulong arg1) { env->active_tc.PC =3D arg1; env->active_tc.CP0_TCStatus &=3D ~(1 << CP0TCSt_TDS); @@ -734,7 +734,7 @@ void helper_mtc0_tcrestart(CPUMIPSState *env, target_ul= ong arg1) /* MIPS16 not implemented. */ } =20 -void helper_mttc0_tcrestart(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_tcrestart)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -754,7 +754,7 @@ void helper_mttc0_tcrestart(CPUMIPSState *env, target_u= long arg1) } } =20 -void helper_mtc0_tchalt(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_tchalt)(CPUMIPSState *env, target_ulong arg1) { MIPSCPU *cpu =3D env_archcpu(env); =20 @@ -768,7 +768,7 @@ void helper_mtc0_tchalt(CPUMIPSState *env, target_ulong= arg1) } } =20 -void helper_mttc0_tchalt(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_tchalt)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -789,12 +789,12 @@ void helper_mttc0_tchalt(CPUMIPSState *env, target_ul= ong arg1) } } =20 -void helper_mtc0_tccontext(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_tccontext)(CPUMIPSState *env, target_ulong arg1) { env->active_tc.CP0_TCContext =3D arg1; } =20 -void helper_mttc0_tccontext(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_tccontext)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -806,12 +806,12 @@ void helper_mttc0_tccontext(CPUMIPSState *env, target= _ulong arg1) } } =20 -void helper_mtc0_tcschedule(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_tcschedule)(CPUMIPSState *env, target_ulong arg1) { env->active_tc.CP0_TCSchedule =3D arg1; } =20 -void helper_mttc0_tcschedule(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_tcschedule)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -823,12 +823,12 @@ void helper_mttc0_tcschedule(CPUMIPSState *env, targe= t_ulong arg1) } } =20 -void helper_mtc0_tcschefback(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_tcschefback)(CPUMIPSState *env, target_ulong arg1) { env->active_tc.CP0_TCScheFBack =3D arg1; } =20 -void helper_mttc0_tcschefback(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_tcschefback)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -840,7 +840,7 @@ void helper_mttc0_tcschefback(CPUMIPSState *env, target= _ulong arg1) } } =20 -void helper_mtc0_entrylo1(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_entrylo1)(CPUMIPSState *env, target_ulong arg1) { /* 1k pages not implemented */ target_ulong rxi =3D arg1 & (env->CP0_PageGrain & (3u << CP0PG_XIE)); @@ -849,19 +849,19 @@ void helper_mtc0_entrylo1(CPUMIPSState *env, target_u= long arg1) } =20 #if defined(TARGET_MIPS64) -void helper_dmtc0_entrylo1(CPUMIPSState *env, uint64_t arg1) +void HELPER(dmtc0_entrylo1)(CPUMIPSState *env, uint64_t arg1) { uint64_t rxi =3D arg1 & ((env->CP0_PageGrain & (3ull << CP0PG_XIE)) <<= 32); env->CP0_EntryLo1 =3D (arg1 & DMTC0_ENTRYLO_MASK(env)) | rxi; } #endif =20 -void helper_mtc0_context(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_context)(CPUMIPSState *env, target_ulong arg1) { env->CP0_Context =3D (env->CP0_Context & 0x007FFFFF) | (arg1 & ~0x007F= FFFF); } =20 -void helper_mtc0_memorymapid(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_memorymapid)(CPUMIPSState *env, target_ulong arg1) { int32_t old; old =3D env->CP0_MemoryMapID; @@ -887,12 +887,12 @@ uint32_t compute_pagemask(uint32_t val) } } =20 -void helper_mtc0_pagemask(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_pagemask)(CPUMIPSState *env, target_ulong arg1) { env->CP0_PageMask =3D compute_pagemask(arg1); } =20 -void helper_mtc0_pagegrain(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_pagegrain)(CPUMIPSState *env, target_ulong arg1) { /* SmartMIPS not implemented */ /* 1k pages not implemented */ @@ -902,7 +902,7 @@ void helper_mtc0_pagegrain(CPUMIPSState *env, target_ul= ong arg1) restore_pamask(env); } =20 -void helper_mtc0_segctl0(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_segctl0)(CPUMIPSState *env, target_ulong arg1) { CPUState *cs =3D env_cpu(env); =20 @@ -910,7 +910,7 @@ void helper_mtc0_segctl0(CPUMIPSState *env, target_ulon= g arg1) tlb_flush(cs); } =20 -void helper_mtc0_segctl1(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_segctl1)(CPUMIPSState *env, target_ulong arg1) { CPUState *cs =3D env_cpu(env); =20 @@ -918,7 +918,7 @@ void helper_mtc0_segctl1(CPUMIPSState *env, target_ulon= g arg1) tlb_flush(cs); } =20 -void helper_mtc0_segctl2(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_segctl2)(CPUMIPSState *env, target_ulong arg1) { CPUState *cs =3D env_cpu(env); =20 @@ -926,7 +926,7 @@ void helper_mtc0_segctl2(CPUMIPSState *env, target_ulon= g arg1) tlb_flush(cs); } =20 -void helper_mtc0_pwfield(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_pwfield)(CPUMIPSState *env, target_ulong arg1) { #if defined(TARGET_MIPS64) uint64_t mask =3D 0x3F3FFFFFFFULL; @@ -988,7 +988,7 @@ void helper_mtc0_pwfield(CPUMIPSState *env, target_ulon= g arg1) #endif } =20 -void helper_mtc0_pwsize(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_pwsize)(CPUMIPSState *env, target_ulong arg1) { #if defined(TARGET_MIPS64) env->CP0_PWSize =3D arg1 & 0x3F7FFFFFFFULL; @@ -997,7 +997,7 @@ void helper_mtc0_pwsize(CPUMIPSState *env, target_ulong= arg1) #endif } =20 -void helper_mtc0_wired(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_wired)(CPUMIPSState *env, target_ulong arg1) { if (env->insn_flags & ISA_MIPS_R6) { if (arg1 < env->tlb->nb_tlb) { @@ -1008,7 +1008,7 @@ void helper_mtc0_wired(CPUMIPSState *env, target_ulon= g arg1) } } =20 -void helper_mtc0_pwctl(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_pwctl)(CPUMIPSState *env, target_ulong arg1) { #if defined(TARGET_MIPS64) /* PWEn =3D 0. Hardware page table walking is not implemented. */ @@ -1018,32 +1018,32 @@ void helper_mtc0_pwctl(CPUMIPSState *env, target_ul= ong arg1) #endif } =20 -void helper_mtc0_srsconf0(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_srsconf0)(CPUMIPSState *env, target_ulong arg1) { env->CP0_SRSConf0 |=3D arg1 & env->CP0_SRSConf0_rw_bitmask; } =20 -void helper_mtc0_srsconf1(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_srsconf1)(CPUMIPSState *env, target_ulong arg1) { env->CP0_SRSConf1 |=3D arg1 & env->CP0_SRSConf1_rw_bitmask; } =20 -void helper_mtc0_srsconf2(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_srsconf2)(CPUMIPSState *env, target_ulong arg1) { env->CP0_SRSConf2 |=3D arg1 & env->CP0_SRSConf2_rw_bitmask; } =20 -void helper_mtc0_srsconf3(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_srsconf3)(CPUMIPSState *env, target_ulong arg1) { env->CP0_SRSConf3 |=3D arg1 & env->CP0_SRSConf3_rw_bitmask; } =20 -void helper_mtc0_srsconf4(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_srsconf4)(CPUMIPSState *env, target_ulong arg1) { env->CP0_SRSConf4 |=3D arg1 & env->CP0_SRSConf4_rw_bitmask; } =20 -void helper_mtc0_hwrena(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_hwrena)(CPUMIPSState *env, target_ulong arg1) { uint32_t mask =3D 0x0000000F; =20 @@ -1067,12 +1067,12 @@ void helper_mtc0_hwrena(CPUMIPSState *env, target_u= long arg1) env->CP0_HWREna =3D arg1 & mask; } =20 -void helper_mtc0_count(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_count)(CPUMIPSState *env, target_ulong arg1) { cpu_mips_store_count(env, arg1); } =20 -void helper_mtc0_entryhi(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_entryhi)(CPUMIPSState *env, target_ulong arg1) { target_ulong old, val, mask; mask =3D (TARGET_PAGE_MASK << 1) | env->CP0_EntryHi_ASID_mask; @@ -1107,7 +1107,7 @@ void helper_mtc0_entryhi(CPUMIPSState *env, target_ul= ong arg1) } } =20 -void helper_mttc0_entryhi(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_entryhi)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1116,12 +1116,12 @@ void helper_mttc0_entryhi(CPUMIPSState *env, target= _ulong arg1) sync_c0_entryhi(other, other_tc); } =20 -void helper_mtc0_compare(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_compare)(CPUMIPSState *env, target_ulong arg1) { cpu_mips_store_compare(env, arg1); } =20 -void helper_mtc0_status(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_status)(CPUMIPSState *env, target_ulong arg1) { uint32_t val, old; =20 @@ -1154,7 +1154,7 @@ void helper_mtc0_status(CPUMIPSState *env, target_ulo= ng arg1) } } =20 -void helper_mttc0_status(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_status)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); uint32_t mask =3D env->CP0_Status_rw_bitmask & ~0xf1000018; @@ -1164,23 +1164,23 @@ void helper_mttc0_status(CPUMIPSState *env, target_= ulong arg1) sync_c0_status(env, other, other_tc); } =20 -void helper_mtc0_intctl(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_intctl)(CPUMIPSState *env, target_ulong arg1) { env->CP0_IntCtl =3D (env->CP0_IntCtl & ~0x000003e0) | (arg1 & 0x000003= e0); } =20 -void helper_mtc0_srsctl(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_srsctl)(CPUMIPSState *env, target_ulong arg1) { uint32_t mask =3D (0xf << CP0SRSCtl_ESS) | (0xf << CP0SRSCtl_PSS); env->CP0_SRSCtl =3D (env->CP0_SRSCtl & ~mask) | (arg1 & mask); } =20 -void helper_mtc0_cause(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_cause)(CPUMIPSState *env, target_ulong arg1) { cpu_mips_store_cause(env, arg1); } =20 -void helper_mttc0_cause(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_cause)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1188,7 +1188,7 @@ void helper_mttc0_cause(CPUMIPSState *env, target_ulo= ng arg1) cpu_mips_store_cause(other, arg1); } =20 -target_ulong helper_mftc0_epc(CPUMIPSState *env) +target_ulong HELPER(mftc0_epc)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1196,7 +1196,7 @@ target_ulong helper_mftc0_epc(CPUMIPSState *env) return other->CP0_EPC; } =20 -target_ulong helper_mftc0_ebase(CPUMIPSState *env) +target_ulong HELPER(mftc0_ebase)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1204,7 +1204,7 @@ target_ulong helper_mftc0_ebase(CPUMIPSState *env) return other->CP0_EBase; } =20 -void helper_mtc0_ebase(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_ebase)(CPUMIPSState *env, target_ulong arg1) { target_ulong mask =3D 0x3FFFF000 | env->CP0_EBaseWG_rw_bitmask; if (arg1 & env->CP0_EBaseWG_rw_bitmask) { @@ -1213,7 +1213,7 @@ void helper_mtc0_ebase(CPUMIPSState *env, target_ulon= g arg1) env->CP0_EBase =3D (env->CP0_EBase & ~mask) | (arg1 & mask); } =20 -void helper_mttc0_ebase(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_ebase)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1224,7 +1224,7 @@ void helper_mttc0_ebase(CPUMIPSState *env, target_ulo= ng arg1) other->CP0_EBase =3D (other->CP0_EBase & ~mask) | (arg1 & mask); } =20 -target_ulong helper_mftc0_configx(CPUMIPSState *env, target_ulong idx) +target_ulong HELPER(mftc0_configx)(CPUMIPSState *env, target_ulong idx) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1243,18 +1243,18 @@ target_ulong helper_mftc0_configx(CPUMIPSState *env= , target_ulong idx) return 0; } =20 -void helper_mtc0_config0(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_config0)(CPUMIPSState *env, target_ulong arg1) { env->CP0_Config0 =3D (env->CP0_Config0 & 0x81FFFFF8) | (arg1 & 0x00000= 007); } =20 -void helper_mtc0_config2(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_config2)(CPUMIPSState *env, target_ulong arg1) { /* tertiary/secondary caches not implemented */ env->CP0_Config2 =3D (env->CP0_Config2 & 0x8FFF0FFF); } =20 -void helper_mtc0_config3(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_config3)(CPUMIPSState *env, target_ulong arg1) { if (env->insn_flags & ASE_MICROMIPS) { env->CP0_Config3 =3D (env->CP0_Config3 & ~(1 << CP0C3_ISA_ON_EXC))= | @@ -1262,13 +1262,13 @@ void helper_mtc0_config3(CPUMIPSState *env, target_= ulong arg1) } } =20 -void helper_mtc0_config4(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_config4)(CPUMIPSState *env, target_ulong arg1) { env->CP0_Config4 =3D (env->CP0_Config4 & (~env->CP0_Config4_rw_bitmask= )) | (arg1 & env->CP0_Config4_rw_bitmask); } =20 -void helper_mtc0_config5(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_config5)(CPUMIPSState *env, target_ulong arg1) { env->CP0_Config5 =3D (env->CP0_Config5 & (~env->CP0_Config5_rw_bitmask= )) | (arg1 & env->CP0_Config5_rw_bitmask); @@ -1277,7 +1277,7 @@ void helper_mtc0_config5(CPUMIPSState *env, target_ul= ong arg1) compute_hflags(env); } =20 -void helper_mtc0_lladdr(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_lladdr)(CPUMIPSState *env, target_ulong arg1) { target_long mask =3D env->CP0_LLAddr_rw_bitmask; arg1 =3D arg1 << env->CP0_LLAddr_shift; @@ -1287,19 +1287,19 @@ void helper_mtc0_lladdr(CPUMIPSState *env, target_u= long arg1) #define MTC0_MAAR_MASK(env) \ ((0x1ULL << 63) | ((env->PAMask >> 4) & ~0xFFFull) | 0x3) =20 -void helper_mtc0_maar(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_maar)(CPUMIPSState *env, target_ulong arg1) { env->CP0_MAAR[env->CP0_MAARI] =3D arg1 & MTC0_MAAR_MASK(env); } =20 -void helper_mthc0_maar(CPUMIPSState *env, target_ulong arg1) +void HELPER(mthc0_maar)(CPUMIPSState *env, target_ulong arg1) { env->CP0_MAAR[env->CP0_MAARI] =3D (((uint64_t) arg1 << 32) & MTC0_MAAR_MASK(env)) | (env->CP0_MAAR[env->CP0_MAARI] & 0x00000000ffffffffULL); } =20 -void helper_mtc0_maari(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_maari)(CPUMIPSState *env, target_ulong arg1) { int index =3D arg1 & 0x3f; if (index =3D=3D 0x3f) { @@ -1317,7 +1317,7 @@ void helper_mtc0_maari(CPUMIPSState *env, target_ulon= g arg1) */ } =20 -void helper_mtc0_watchlo(CPUMIPSState *env, target_ulong arg1, uint32_t se= l) +void HELPER(mtc0_watchlo)(CPUMIPSState *env, target_ulong arg1, uint32_t s= el) { /* * Watch exceptions for instructions, data loads, data stores @@ -1326,7 +1326,7 @@ void helper_mtc0_watchlo(CPUMIPSState *env, target_ul= ong arg1, uint32_t sel) env->CP0_WatchLo[sel] =3D (arg1 & ~0x7); } =20 -void helper_mtc0_watchhi(CPUMIPSState *env, target_ulong arg1, uint32_t se= l) +void HELPER(mtc0_watchhi)(CPUMIPSState *env, target_ulong arg1, uint32_t s= el) { uint64_t mask =3D 0x40000FF8 | (env->CP0_EntryHi_ASID_mask << CP0WH_AS= ID); uint64_t m_bit =3D env->CP0_WatchHi[sel] & (1 << CP0WH_M); /* read-onl= y */ @@ -1337,24 +1337,24 @@ void helper_mtc0_watchhi(CPUMIPSState *env, target_= ulong arg1, uint32_t sel) env->CP0_WatchHi[sel] &=3D ~(env->CP0_WatchHi[sel] & arg1 & 0x7); } =20 -void helper_mthc0_watchhi(CPUMIPSState *env, target_ulong arg1, uint32_t s= el) +void HELPER(mthc0_watchhi)(CPUMIPSState *env, target_ulong arg1, uint32_t = sel) { env->CP0_WatchHi[sel] =3D ((uint64_t) (arg1) << 32) | (env->CP0_WatchHi[sel] & 0x00000000ffffffffULL= ); } =20 -void helper_mtc0_xcontext(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_xcontext)(CPUMIPSState *env, target_ulong arg1) { target_ulong mask =3D (1ULL << (env->SEGBITS - 7)) - 1; env->CP0_XContext =3D (env->CP0_XContext & mask) | (arg1 & ~mask); } =20 -void helper_mtc0_framemask(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_framemask)(CPUMIPSState *env, target_ulong arg1) { env->CP0_Framemask =3D arg1; /* XXX */ } =20 -void helper_mtc0_debug(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_debug)(CPUMIPSState *env, target_ulong arg1) { env->CP0_Debug =3D (env->CP0_Debug & 0x8C03FC1F) | (arg1 & 0x13300120); if (arg1 & (1 << CP0DB_DM)) { @@ -1364,7 +1364,7 @@ void helper_mtc0_debug(CPUMIPSState *env, target_ulon= g arg1) } } =20 -void helper_mttc0_debug(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttc0_debug)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); uint32_t val =3D arg1 & ((1 << CP0DB_SSt) | (1 << CP0DB_Halt)); @@ -1381,12 +1381,12 @@ void helper_mttc0_debug(CPUMIPSState *env, target_u= long arg1) (arg1 & ~((1 << CP0DB_SSt) | (1 << CP0DB_Halt))); } =20 -void helper_mtc0_performance0(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_performance0)(CPUMIPSState *env, target_ulong arg1) { env->CP0_Performance0 =3D arg1 & 0x000007ff; } =20 -void helper_mtc0_errctl(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_errctl)(CPUMIPSState *env, target_ulong arg1) { int32_t wst =3D arg1 & (1 << CP0EC_WST); int32_t spr =3D arg1 & (1 << CP0EC_SPR); @@ -1401,7 +1401,7 @@ void helper_mtc0_errctl(CPUMIPSState *env, target_ulo= ng arg1) } } =20 -void helper_mtc0_taglo(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_taglo)(CPUMIPSState *env, target_ulong arg1) { if (env->hflags & MIPS_HFLAG_ITC_CACHE) { /* @@ -1415,23 +1415,23 @@ void helper_mtc0_taglo(CPUMIPSState *env, target_ul= ong arg1) } } =20 -void helper_mtc0_datalo(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_datalo)(CPUMIPSState *env, target_ulong arg1) { env->CP0_DataLo =3D arg1; /* XXX */ } =20 -void helper_mtc0_taghi(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_taghi)(CPUMIPSState *env, target_ulong arg1) { env->CP0_TagHi =3D arg1; /* XXX */ } =20 -void helper_mtc0_datahi(CPUMIPSState *env, target_ulong arg1) +void HELPER(mtc0_datahi)(CPUMIPSState *env, target_ulong arg1) { env->CP0_DataHi =3D arg1; /* XXX */ } =20 /* MIPS MT functions */ -target_ulong helper_mftgpr(CPUMIPSState *env, uint32_t sel) +target_ulong HELPER(mftgpr)(CPUMIPSState *env, uint32_t sel) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1443,7 +1443,7 @@ target_ulong helper_mftgpr(CPUMIPSState *env, uint32_= t sel) } } =20 -target_ulong helper_mftlo(CPUMIPSState *env, uint32_t sel) +target_ulong HELPER(mftlo)(CPUMIPSState *env, uint32_t sel) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1455,7 +1455,7 @@ target_ulong helper_mftlo(CPUMIPSState *env, uint32_t= sel) } } =20 -target_ulong helper_mfthi(CPUMIPSState *env, uint32_t sel) +target_ulong HELPER(mfthi)(CPUMIPSState *env, uint32_t sel) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1467,7 +1467,7 @@ target_ulong helper_mfthi(CPUMIPSState *env, uint32_t= sel) } } =20 -target_ulong helper_mftacx(CPUMIPSState *env, uint32_t sel) +target_ulong HELPER(mftacx)(CPUMIPSState *env, uint32_t sel) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1479,7 +1479,7 @@ target_ulong helper_mftacx(CPUMIPSState *env, uint32_= t sel) } } =20 -target_ulong helper_mftdsp(CPUMIPSState *env) +target_ulong HELPER(mftdsp)(CPUMIPSState *env) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1491,7 +1491,7 @@ target_ulong helper_mftdsp(CPUMIPSState *env) } } =20 -void helper_mttgpr(CPUMIPSState *env, target_ulong arg1, uint32_t sel) +void HELPER(mttgpr)(CPUMIPSState *env, target_ulong arg1, uint32_t sel) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1503,7 +1503,7 @@ void helper_mttgpr(CPUMIPSState *env, target_ulong ar= g1, uint32_t sel) } } =20 -void helper_mttlo(CPUMIPSState *env, target_ulong arg1, uint32_t sel) +void HELPER(mttlo)(CPUMIPSState *env, target_ulong arg1, uint32_t sel) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1515,7 +1515,7 @@ void helper_mttlo(CPUMIPSState *env, target_ulong arg= 1, uint32_t sel) } } =20 -void helper_mtthi(CPUMIPSState *env, target_ulong arg1, uint32_t sel) +void HELPER(mtthi)(CPUMIPSState *env, target_ulong arg1, uint32_t sel) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1527,7 +1527,7 @@ void helper_mtthi(CPUMIPSState *env, target_ulong arg= 1, uint32_t sel) } } =20 -void helper_mttacx(CPUMIPSState *env, target_ulong arg1, uint32_t sel) +void HELPER(mttacx)(CPUMIPSState *env, target_ulong arg1, uint32_t sel) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1539,7 +1539,7 @@ void helper_mttacx(CPUMIPSState *env, target_ulong ar= g1, uint32_t sel) } } =20 -void helper_mttdsp(CPUMIPSState *env, target_ulong arg1) +void HELPER(mttdsp)(CPUMIPSState *env, target_ulong arg1) { int other_tc =3D env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); CPUMIPSState *other =3D mips_cpu_map_tc(env, &other_tc); @@ -1552,19 +1552,19 @@ void helper_mttdsp(CPUMIPSState *env, target_ulong = arg1) } =20 /* MIPS MT functions */ -target_ulong helper_dmt(void) +target_ulong HELPER(dmt)(void) { /* TODO */ return 0; } =20 -target_ulong helper_emt(void) +target_ulong HELPER(emt)(void) { /* TODO */ return 0; } =20 -target_ulong helper_dvpe(CPUMIPSState *env) +target_ulong HELPER(dvpe)(CPUMIPSState *env) { MIPSCPU *cpu =3D env_archcpu(env); target_ulong prev =3D cpu->mvp->CP0_MVPControl; @@ -1584,7 +1584,7 @@ target_ulong helper_dvpe(CPUMIPSState *env) return prev; } =20 -target_ulong helper_evpe(CPUMIPSState *env) +target_ulong HELPER(evpe)(CPUMIPSState *env) { MIPSCPU *cpu =3D env_archcpu(env); target_ulong prev =3D cpu->mvp->CP0_MVPControl; @@ -1608,7 +1608,7 @@ target_ulong helper_evpe(CPUMIPSState *env) } =20 /* R6 Multi-threading */ -target_ulong helper_dvp(CPUMIPSState *env) +target_ulong HELPER(dvp)(CPUMIPSState *env) { target_ulong prev =3D env->CP0_VPControl; =20 @@ -1627,7 +1627,7 @@ target_ulong helper_dvp(CPUMIPSState *env) return prev; } =20 -target_ulong helper_evp(CPUMIPSState *env) +target_ulong HELPER(evp)(CPUMIPSState *env) { target_ulong prev =3D env->CP0_VPControl; =20 diff --git a/target/mips/tcg/system/lcsr_helper.c b/target/mips/tcg/system/= lcsr_helper.c index 25e03572fe9..5d7e5cb5422 100644 --- a/target/mips/tcg/system/lcsr_helper.c +++ b/target/mips/tcg/system/lcsr_helper.c @@ -13,26 +13,26 @@ #define GET_MEMTXATTRS(cas) \ ((MemTxAttrs){.requester_id =3D env_cpu(cas)->cpu_index}) =20 -uint64_t helper_lcsr_rdcsr(CPUMIPSState *env, target_ulong r_addr) +uint64_t HELPER(lcsr_rdcsr)(CPUMIPSState *env, target_ulong r_addr) { return address_space_ldl(&env->iocsr.as, r_addr, GET_MEMTXATTRS(env), NULL); } =20 -uint64_t helper_lcsr_drdcsr(CPUMIPSState *env, target_ulong r_addr) +uint64_t HELPER(lcsr_drdcsr)(CPUMIPSState *env, target_ulong r_addr) { return address_space_ldq(&env->iocsr.as, r_addr, GET_MEMTXATTRS(env), NULL); } =20 -void helper_lcsr_wrcsr(CPUMIPSState *env, target_ulong w_addr, +void HELPER(lcsr_wrcsr)(CPUMIPSState *env, target_ulong w_addr, target_ulong val) { address_space_stl(&env->iocsr.as, w_addr, val, GET_MEMTXATTRS(env), NULL); } =20 -void helper_lcsr_dwrcsr(CPUMIPSState *env, target_ulong w_addr, +void HELPER(lcsr_dwrcsr)(CPUMIPSState *env, target_ulong w_addr, target_ulong val) { address_space_stq(&env->iocsr.as, w_addr, diff --git a/target/mips/tcg/system/special_helper.c b/target/mips/tcg/syst= em/special_helper.c index b54cbe88a38..cc46542806e 100644 --- a/target/mips/tcg/system/special_helper.c +++ b/target/mips/tcg/system/special_helper.c @@ -26,7 +26,7 @@ #include "internal.h" =20 /* Specials */ -target_ulong helper_di(CPUMIPSState *env) +target_ulong HELPER(di)(CPUMIPSState *env) { target_ulong t0 =3D env->CP0_Status; =20 @@ -34,7 +34,7 @@ target_ulong helper_di(CPUMIPSState *env) return t0; } =20 -target_ulong helper_ei(CPUMIPSState *env) +target_ulong HELPER(ei)(CPUMIPSState *env) { target_ulong t0 =3D env->CP0_Status; =20 @@ -115,19 +115,19 @@ static inline void exception_return(CPUMIPSState *env) debug_post_eret(env); } =20 -void helper_eret(CPUMIPSState *env) +void HELPER(eret)(CPUMIPSState *env) { exception_return(env); env->CP0_LLAddr =3D 1; env->lladdr =3D 1; } =20 -void helper_eretnc(CPUMIPSState *env) +void HELPER(eretnc)(CPUMIPSState *env) { exception_return(env); } =20 -void helper_deret(CPUMIPSState *env) +void HELPER(deret)(CPUMIPSState *env) { debug_pre_eret(env); =20 @@ -139,7 +139,7 @@ void helper_deret(CPUMIPSState *env) debug_post_eret(env); } =20 -void helper_cache(CPUMIPSState *env, target_ulong addr, uint32_t op) +void HELPER(cache)(CPUMIPSState *env, target_ulong addr, uint32_t op) { static const char *const type_name[] =3D { "Primary Instruction", diff --git a/target/mips/tcg/system/tlb_helper.c b/target/mips/tcg/system/t= lb_helper.c index 4398c6f80b4..0ff0c9c8717 100644 --- a/target/mips/tcg/system/tlb_helper.c +++ b/target/mips/tcg/system/tlb_helper.c @@ -273,32 +273,32 @@ static void r4k_helper_tlbr(CPUMIPSState *env) } } =20 -void helper_tlbwi(CPUMIPSState *env) +void HELPER(tlbwi)(CPUMIPSState *env) { env->tlb->helper_tlbwi(env); } =20 -void helper_tlbwr(CPUMIPSState *env) +void HELPER(tlbwr)(CPUMIPSState *env) { env->tlb->helper_tlbwr(env); } =20 -void helper_tlbp(CPUMIPSState *env) +void HELPER(tlbp)(CPUMIPSState *env) { env->tlb->helper_tlbp(env); } =20 -void helper_tlbr(CPUMIPSState *env) +void HELPER(tlbr)(CPUMIPSState *env) { env->tlb->helper_tlbr(env); } =20 -void helper_tlbinv(CPUMIPSState *env) +void HELPER(tlbinv)(CPUMIPSState *env) { env->tlb->helper_tlbinv(env); } =20 -void helper_tlbinvf(CPUMIPSState *env) +void HELPER(tlbinvf)(CPUMIPSState *env) { env->tlb->helper_tlbinvf(env); } @@ -338,7 +338,7 @@ static void global_invalidate_tlb(CPUMIPSState *env, cpu_mips_tlb_flush(env); } =20 -void helper_ginvt(CPUMIPSState *env, target_ulong arg, uint32_t type) +void HELPER(ginvt)(CPUMIPSState *env, target_ulong arg, uint32_t type) { bool invAll =3D type =3D=3D 0; bool invVA =3D type =3D=3D 1; diff --git a/target/mips/tcg/vr54xx_helper.c b/target/mips/tcg/vr54xx_helpe= r.c index 2255bd11163..6c47fa7edb4 100644 --- a/target/mips/tcg/vr54xx_helper.c +++ b/target/mips/tcg/vr54xx_helper.c @@ -44,97 +44,97 @@ static inline target_ulong set_HI_LOT0(CPUMIPSState *en= v, uint64_t HILO) } =20 /* Multiplication variants of the vr54xx. */ -target_ulong helper_muls(CPUMIPSState *env, target_ulong arg1, - target_ulong arg2) +target_ulong HELPER(muls)(CPUMIPSState *env, target_ulong arg1, + target_ulong arg2) { return set_HI_LOT0(env, 0 - ((int64_t)(int32_t)arg1 * (int64_t)(int32_t)arg2)); } =20 -target_ulong helper_mulsu(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(mulsu)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HI_LOT0(env, 0 - (uint64_t)(uint32_t)arg1 * (uint64_t)(uint32_t)arg2); } =20 -target_ulong helper_macc(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(macc)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HI_LOT0(env, (int64_t)get_HILO(env) + (int64_t)(int32_t)arg= 1 * (int64_t)(int32_t)arg= 2); } =20 -target_ulong helper_macchi(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(macchi)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HIT0_LO(env, (int64_t)get_HILO(env) + (int64_t)(int32_t)arg= 1 * (int64_t)(int32_t)arg2); } =20 -target_ulong helper_maccu(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(maccu)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HI_LOT0(env, (uint64_t)get_HILO(env) + (uint64_t)(uint32_t)= arg1 * (uint64_t)(uint32_t)= arg2); } =20 -target_ulong helper_macchiu(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(macchiu)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HIT0_LO(env, (uint64_t)get_HILO(env) + (uint64_t)(uint32_t)= arg1 * (uint64_t)(uint32_t)= arg2); } =20 -target_ulong helper_msac(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(msac)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HI_LOT0(env, (int64_t)get_HILO(env) - (int64_t)(int32_t)arg= 1 * (int64_t)(int32_t)arg= 2); } =20 -target_ulong helper_msachi(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(msachi)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HIT0_LO(env, (int64_t)get_HILO(env) - (int64_t)(int32_t)arg= 1 * (int64_t)(int32_t)arg= 2); } =20 -target_ulong helper_msacu(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(msacu)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HI_LOT0(env, (uint64_t)get_HILO(env) - (uint64_t)(uint32_t)= arg1 * (uint64_t)(uint32_t)= arg2); } =20 -target_ulong helper_msachiu(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(msachiu)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HIT0_LO(env, (uint64_t)get_HILO(env) - (uint64_t)(uint32_t)= arg1 * (uint64_t)(uint32_t)= arg2); } =20 -target_ulong helper_mulhi(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(mulhi)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HIT0_LO(env, (int64_t)(int32_t)arg1 * (int64_t)(int32_t)arg= 2); } =20 -target_ulong helper_mulhiu(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(mulhiu)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HIT0_LO(env, (uint64_t)(uint32_t)arg1 * (uint64_t)(uint32_t)arg2); } =20 -target_ulong helper_mulshi(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(mulshi)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HIT0_LO(env, 0 - (int64_t)(int32_t)arg1 * (int64_t)(int32_t)arg2); } =20 -target_ulong helper_mulshiu(CPUMIPSState *env, target_ulong arg1, +target_ulong HELPER(mulshiu)(CPUMIPSState *env, target_ulong arg1, target_ulong arg2) { return set_HIT0_LO(env, 0 - (uint64_t)(uint32_t)arg1 * --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445060; cv=none; d=zohomail.com; s=zohoarc; b=JjCy3Ci4ncUMfcnVa3x8S4ByeCDc5hKt87S/b5YGZvCMjizznpx4l7vLxK/1XYfHpiQlHsapGGUAbRMjI/cg6Q6eAZvxybHSQRNy+JNPWPxnWgnKDnGdcTA/HVrogLnj4A8JVV3sXNaDrGnAHKQerXP62OU4iJWSYzYNz50q/hk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445060; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=irSmgaM/rsiPlEIkAridA2WskR48AC2QOOh7qcVX+Rw=; b=iPbWT8CaiXcFoaSn5bqFP+AReLhm67Redpw7x0hJfSvQC59I4oBPu3XnpyirthTXE5XNj4NWw+ZhedJD616G/TTmmsiXUUW6iTdk6SfUPY3G9gAxiMUmAWLW3WhYKLEjsBrtNv/+1rivqtYf3EpfbxAuFzHd9pZLa+BN/Pb1+Oc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792445060858409.85095864839366; Mon, 19 Oct 2026 14:24:20 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunH-0001eS-GS; Mon, 19 Oct 2026 17:21:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunD-0001dM-P3 for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:15 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunC-0005h0-26 for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:15 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJJuRI2604726 for ; Mon, 19 Oct 2026 21:21:13 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdr4a0psj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:13 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ac0ae43900so2371291a91.0 for ; Mon, 19 Oct 2026 14:21:12 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=irSmgaM/rsi PlEIkAridA2WskR48AC2QOOh7qcVX+Rw=; b=QNy+O04LlSmY5DPrLlZm+0CIsXt cMLtBi0UsWe/aWXHuP9hHBEogsodS472EN3obDy77yyaxVG99Zmn+ljN+VzVkypv l8cAx14Zzn5TueB90HaL+gch1mRb42y3S1u4s8F+LM/9+d1HHpWSN4QCLSkK6pr4 6J9mzGNEnAp2Y4IitSjmlWwU//0YxEZLlX305i6JG+pMWEHoop+rlUFsZKTBDO3w hZOztGvZg7p7gFunGP0sebtvQf7S332S+0PCoPChFTkBgfzaQtcxLQznqWkufhyC ul72I3CZFIkUw3z+rRJHypGFAPBw765vIty4wMFPDZhhJ4L+BRu0tSUtxMA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444872; x=1793049672; 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:content-type; bh=irSmgaM/rsiPlEIkAridA2WskR48AC2QOOh7qcVX+Rw=; b=dWagQM5TxhV9PfYIRFaS+AOPHDv6/hNG81fG/1fd8+GTljOqK92AWEgn693Vlm9XRf wIAWdwvwJiM3oYcERSdcQxusnS6NHpdbJtgdX430WL9DBrjPjDkaVBcUMlNRET/n5tvf gcjXUnMU09eUWMFSN7TLAiiynQGsoa0o1z2yBZNJ7PiYmGV0OkdDXjicMa6wAy/8B2Kl P4b+xXrb4Vbp53PcmMUB5WmiZ4dXHGqubWWKEOukMY9WuW0ihNqOqMNiuE41YW1b4q7H u1yh5hRguP8EqwPY46JA9igoMZBTCga51t70HithBBYh8qq3PHSH0L8/BDQ73z9Kn/aW MmGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444872; x=1793049672; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=irSmgaM/rsiPlEIkAridA2WskR48AC2QOOh7qcVX+Rw=; b=06vFSMZ2LP+vYQIPKKF86/FgZKRn0gCMbhNZxXotH+e7PV41iGgcQT0WSrdYYTM5Lf zbUvRiQF4RqYLO7swLlkuLDNWhK7V3yKTPIVsiws/XQXxNctorjBrIbqqvvw+xQh3Oja OT8l4eQ8zP9LtCelMDyV4Jz4XM5y8SUrcQsyhWaob4dRL56ME4tzFnF+pdghQ2pvwsLd MXi2OsiNV6KdI77qvgavzDRa4u9Q3II/CKCx8pGyU0dTA92onSMhaX+o9cGB+Xw1yeDZ X9aoP4P7gWzCcM3ACOkzzcQZl8rJiU+/pkz7USZMZLW0riQ10DOwJx8ZENLgDDt+52vN hoaQ== X-Gm-Message-State: AFq9FYKI72wwLwncg/ZpRFP7aengppx/bWXY641ME6ZuQT+DZGP557kI iMBMzkGbJ5ntChn3/AthIB+D2u8JwkHQt6rf+/Qev5e262i70D51oyxbUM+eYQPU8nm6+uUnv9h 3mglANzrNIhlPiTJhePZNrU+JR42rCN7QyRihFg0rZ0mwKQlNtFmuopYTMTG5is0/IA== X-Gm-Gg: AYBFou0ApdZpfLJG+koqvq9mP6GVZ3Jhe8l+7/euq7p/dfD4VVzkY25Zj/PYdaMD3ui qi02PkTYujnh/pjhDDzm754gtFMAvXOblYtIrB+xlg5k/ks0WfLchM0Zj3P6ByhwpIt4yYjkQPL G0eP4aDCEkn+IcJJl7Zo2kjdihehi/Uqcgx8Hq4z1b4EPut5R4jzImn4fGNLcuJXxE1euFLdU8X ghKLjGmp9aMpiJMy7Uje7SPPcNmXeiPX+pBb9XQ/HY/g3qpJIuGp66HUBAIIapKB3v6PVZM4umY N/0KPL7leQaSNasmv5hP7G2OCUJV0U1Ol82HZ0DFIxUcLt8TtE6OSehLf9ymHhyTMdjYCftU1st r2Jh3vK7SkUEyeE09X9Q04s/B3/EIovVA+HogFGnQKiirZ1VW/2BpAlQXVzLtFko= X-Received: by 2002:a17:90b:164c:b0:3ac:9259:1234 with SMTP id 98e67ed59e1d1-3aceefae3d2mr6717778a91.39.1792444872001; Mon, 19 Oct 2026 14:21:12 -0700 (PDT) X-Received: by 2002:a17:90b:164c:b0:3ac:9259:1234 with SMTP id 98e67ed59e1d1-3aceefae3d2mr6717763a91.39.1792444871564; Mon, 19 Oct 2026 14:21:11 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 10/26] target/or1k: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:29 +0000 Message-ID: <20261019212046.149572-11-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX7+eu7DAIS5g9 JHTdRYUXlpD3HEzc27rMkzKb1xPFoDz5KuSjoMoHUuf2RfGg4DWEcMFKBzKTLw6kA6vA+H29/gX QUSDrPm6ywJIN8UPuWAX326MOWXGoyo= X-Authority-Analysis: v=2.4 cv=Zt54uN7G c=1 sm=1 tr=0 ts=6ad689c9 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=2zBZdOuuqlq0y1Zj7RQA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-ORIG-GUID: t3eviD__z5ts1OZs8K6LWgc0N_hRr0R1 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfXyFZFbIiqNidY derVjQg7amRlp7m51vJp7UKkPdeddKqW2VBrIQvT0JAtQ4Qq8yLuJ1ECANj/N+a93nuTYK3VafL Xo8bKar4v5XrfxBDiJtCPP+/zLOc42iTGZ78+8esPQ9P8pUe8SlJiHR3GjFyRIJKN4UgAlLak8W +HjlcmLwUvpYH98qU6lKRMi2i+DySVEa5jwNZOPtrk0S+9lcD5wh9RYgXKXut+y2l29xTLeHKh8 LNpLvdbb94ELlzY5tuP8vRmhdfEKAxSbz3gbCxvcKLPqJAw3a03ypSyJc3P7c7mvVLAZ7P51PvA ZoECDYleai2NpQKEcpP/b3CUMM7lFQFuQfDRTVLICto61+gpzUy2L33h7JKK4UZK8nxpGCpYGFg ZZ9mQ4bUaQeUN0puNyEL+W7OhgXeUNdBjnP5qHRoNcu2SAVTcE4upxOzr/2yAYWeVNf0aBceo3E LcduiOVt94/rniv8U+w== X-Proofpoint-GUID: t3eviD__z5ts1OZs8K6LWgc0N_hRr0R1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 phishscore=0 impostorscore=0 adultscore=0 priorityscore=1501 suspectscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445061899158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/or1k/fpu_helper.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/target/or1k/fpu_helper.c b/target/or1k/fpu_helper.c index e680606d4da..3c2aff64e9a 100644 --- a/target/or1k/fpu_helper.c +++ b/target/or1k/fpu_helper.c @@ -114,10 +114,10 @@ uint32_t HELPER(dtos)(CPUOpenRISCState *env, uint64_t= val) } =20 #define FLOAT_CALC(name) \ -uint64_t helper_float_ ## name ## _d(CPUOpenRISCState *env, \ +uint64_t HELPER(float_ ## name ## _d)(CPUOpenRISCState *env, \ uint64_t fdt0, uint64_t fdt1) \ { return float64_ ## name(fdt0, fdt1, &env->fp_status); } \ -uint32_t helper_float_ ## name ## _s(CPUOpenRISCState *env, \ +uint32_t HELPER(float_ ## name ## _s)(CPUOpenRISCState *env, \ uint32_t fdt0, uint32_t fdt1) \ { return float32_ ## name(fdt0, fdt1, &env->fp_status); } =20 @@ -129,7 +129,7 @@ FLOAT_CALC(rem) #undef FLOAT_CALC =20 =20 -uint64_t helper_float_madd_d(CPUOpenRISCState *env, uint64_t a, +uint64_t HELPER(float_madd_d)(CPUOpenRISCState *env, uint64_t a, uint64_t b, uint64_t c) { /* Note that or1ksim doesn't use fused operation. */ @@ -137,7 +137,7 @@ uint64_t helper_float_madd_d(CPUOpenRISCState *env, uin= t64_t a, return float64_add(a, b, &env->fp_status); } =20 -uint32_t helper_float_madd_s(CPUOpenRISCState *env, uint32_t a, +uint32_t HELPER(float_madd_s)(CPUOpenRISCState *env, uint32_t a, uint32_t b, uint32_t c) { /* Note that or1ksim doesn't use fused operation. */ @@ -147,10 +147,10 @@ uint32_t helper_float_madd_s(CPUOpenRISCState *env, u= int32_t a, =20 =20 #define FLOAT_CMP(name, impl) \ -uint32_t helper_float_ ## name ## _d(CPUOpenRISCState *env, \ +uint32_t HELPER(float_ ## name ## _d)(CPUOpenRISCState *env, \ uint64_t fdt0, uint64_t fdt1) \ { return float64_ ## impl(fdt0, fdt1, &env->fp_status); } \ -uint32_t helper_float_ ## name ## _s(CPUOpenRISCState *env, \ +uint32_t HELPER(float_ ## name ## _s)(CPUOpenRISCState *env, \ uint32_t fdt0, uint32_t fdt1) \ { return float32_ ## impl(fdt0, fdt1, &env->fp_status); } =20 @@ -161,13 +161,13 @@ FLOAT_CMP(un, unordered_quiet) #undef FLOAT_CMP =20 #define FLOAT_UCMP(name, expr) \ -uint32_t helper_float_ ## name ## _d(CPUOpenRISCState *env, \ +uint32_t HELPER(float_ ## name ## _d)(CPUOpenRISCState *env, \ uint64_t fdt0, uint64_t fdt1) \ { \ FloatRelation r =3D float64_compare_quiet(fdt0, fdt1, &env->fp_status)= ; \ return expr; \ } \ -uint32_t helper_float_ ## name ## _s(CPUOpenRISCState *env, \ +uint32_t HELPER(float_ ## name ## _s)(CPUOpenRISCState *env, \ uint32_t fdt0, uint32_t fdt1) \ { \ FloatRelation r =3D float32_compare_quiet(fdt0, fdt1, &env->fp_status)= ; \ --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792444995; cv=none; d=zohomail.com; s=zohoarc; b=G5h7fO8R1PbDHncmjTOMi6dpUahuEI4oSO9sN3qr6ok+4s+EkPO0fMsiY3e+wRucxSAYYnyvHyB2LKlxTH1gS3UQ4KSpoKsZ08MEEyIg9IvpaJ381qlGeYmik+e32G6NqBLd4RvbC+Sq8b44FmoKP4XCehYpVY/Kd/d4+qq7bj8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792444995; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=jCARm0mkWgmnM+Xfip7Sv2saa/dwFKM86/UVDur0xNs=; b=LtcMtRIjMt1+6QZSsd8HDcizKfpB5U468yvg5SX9u3ZI211siip4jj7GD3TQ+tApMQqCPWTBh3jXVTZavxQeAkzdcIDoA6ZbSxQwn5F5EiogG4ZBz9mbMRhGKwBdepG2Q/0iulYB4+8+fO5eUI+LZo8vhiZ8ITJIjmIUzIju/3k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792444995177921.5660512178181; Mon, 19 Oct 2026 14:23:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunR-0001hP-LW; Mon, 19 Oct 2026 17:21:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunL-0001g1-79 for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:23 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunG-0005hg-GB for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:22 -0400 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJKAKX2157940 for ; Mon, 19 Oct 2026 21:21:17 GMT Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf65kahm-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:16 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3ac77c3ff6aso3442878a91.0 for ; Mon, 19 Oct 2026 14:21:16 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=jCARm0mkWgm nM+Xfip7Sv2saa/dwFKM86/UVDur0xNs=; b=TUL4+1FxSDn7abVPMWQbZwWsPmu k9O+mjlBZNIcgxhdKQgaj/QEerROQh5eWiSCQfXo7Xnyk8Z5uwlNl9ZBwLjDhV4J 8TjhPIGn06eY0KfbgRo53p03ZqiXwrJ1pvNXbPKxznkptPW6qb9GCcyec/SuHYas 9CQHBzVCN1L+n/4yW9qV2MvUs1dNodzpbvRu/iByuYMd34WduPkcSVwuCKPe1ony bijoKexwExDpvvL+A0Ln0pseNB3PDSsfutTfWlPIy3flXmvMZEP5VdxHGxuyvmJ3 e1G0UETc24cAMZbwYI2ipqbN0yXLY0B0svohGdOTlfPs9LBlOpSv/FqAkyg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444876; x=1793049676; 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:content-type; bh=jCARm0mkWgmnM+Xfip7Sv2saa/dwFKM86/UVDur0xNs=; b=IPgy6zqGPH/A8v+xZpbQlUTDgJJfbjGrMJIYm5VDTeZrfR0Ew2OMZlN8C4SZgf0ds7 H1jE9+fd/1m25N7iBhykWU/rhfskaFEX5HZlHSfo9TbpkcfOvcU8ycHNQcrLqePVIVuX oqc4aiM7HzXWZniYsItOzQ0zmKCyDPR5pZnxYb+EkLMkcHGksdqJfF3W28GNq/ofpcr1 l4LODb13Iut0Ot3Vxk5Q7IcoQgSs1n0IKbGGM+KyWYrY+fsF0w6d7dF+i1bhK6t1vbsN jm0x+77zT68fb2VmiYU5j8mauWsS4qvmNSJZKZorOt4gzq7pAwYXh5XH2jThtIn7aI20 wJPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444876; x=1793049676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=jCARm0mkWgmnM+Xfip7Sv2saa/dwFKM86/UVDur0xNs=; b=MrNFHQmTuFP+DmEZxHxtv4e/xTC/O1yeMULkJh3abbtEOJefJQVR+dSSyJv2IIQtDd xLnWL2l0HsAre51dGz7KWR4vZAhgEVUz0bBEbJq1FgyNv6n0At55Vsdmrhh0XiUSMcN5 33oQeRqteZqCNwkuLIg3snMw5yFsRl9GoOmfm826ctRyCeIlMGuZBlNUmOcok/zn5wWe 8mC6VenbyxLFpUf47oYtTiAHxVRB2RT7BAdx2pxxl43xj6K/ERRkb/MXtSbbKuOcY29S Ulrb9/eDPiOnwNZ79PP3QPiNWaR5WiQkxvnPKI6BBN/Dl1LdpNa9Dhjt00RYhm+cfzPf d55g== X-Gm-Message-State: AFq9FYLwTwYZpQIYQF+ZYsPwdMRaXeznJxxooujAwoON0x0UnnAICLW+ RN8+166ukV+A3wrF23msyUEa9+i+WtR1j6Y7UYPt9im04k+aUxMLKNQ0k1Bf+XoAlSo0BtmsHy6 xvmbLJTf+Sg4FUZs9mhmm5gGa34Nk3EovUGTXsQwyiLylnnMSmqe3uoTD+fZ0s/XfHw== X-Gm-Gg: AYBFou0AwoQ/ukxKMqW0Yv6dzBYnm5WNf2PKErnSWfwjKzIbCy+pViNpMxWYusFEj/R t8zaGGWo4uvwckpgnoTYPmf1Zt95Z/GRpkWT4dilRMXlqHXSXeW5FL1CTSMXyi+C7XM1zLB4ro/ I6HCtC/34r0qlkcNHuJn9DF4YJpvWY4C66EXlyl4zMy5oGB2EGNcUadNtt2R66ejnnBc6bhy8w4 YdDxDa1niCS5ktozJGe0KeH2xccgH3i2QewSii7+sEVSuCVhWgcyBTnhHtNBvmNFpiWt4nkyqm3 CyRwWSsljVRo3sSgxFzs66DWj9vRdHQVIcA0YQc6PyEVcTPWSZV43UOnY0477P/X93fIAfU5L6B FHnfXTd1j7XmGpx7VRddA89BhYteg00cRncGRNyNTluWwFDveotvhC4u5l5pOFmE= X-Received: by 2002:a17:90b:2ccb:b0:3ab:884b:65a8 with SMTP id 98e67ed59e1d1-3acef17932fmr7210941a91.26.1792444874474; Mon, 19 Oct 2026 14:21:14 -0700 (PDT) X-Received: by 2002:a17:90b:2ccb:b0:3ab:884b:65a8 with SMTP id 98e67ed59e1d1-3acef17932fmr7210897a91.26.1792444872688; Mon, 19 Oct 2026 14:21:12 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 11/26] target/ppc: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:30 +0000 Message-ID: <20261019212046.149572-12-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX2bzNWS39lJ5Q Wm1P4sPG+8oTrQ48Zvod7wGi+VhP/scRe8odbNv4uZtHAKrxSmTqIVwnriA7ADpJ9BAKCx+0U7x E4tNflRQemKJIhyEcjda05tJzVCmd20= X-Proofpoint-ORIG-GUID: kyT2YjdFdxC40vPKvh8uYlXlCwBgGjlx X-Authority-Analysis: v=2.4 cv=Y5ptIReN c=1 sm=1 tr=0 ts=6ad689cd cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=o1BgDBNy9eMT-Y5ZzvsA:9 a=O8hF6Hzn-FEA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX8OunM9ctkuUb eRsOGhwY9tLdVqykIpT1d3XREwvrKxipUnF0vxND2t5/Zdkt/tPM8Akm1/TBApk77N2ZN98fdn1 kuTVKXIXRvFPBeuuC8PRB2hNNBxlYPAWQVljDEybHuEfFVToaILt1w023a2ylAhSK7Xb/0ZhbPS vSMH0GP2urujJiTMZWNxsoeQyltt91fka4aP3FuT/y7S58sglbg/+JQfKYpxtYS6udqkgDRXjzf 4FY+77GM5J3RVAQC5qg5gEjLwIRJMyC9OWWr00/bkbr0hrevAEFb5X9omFy00aye0C7nrdVoCWH Z+lwIIqmMKqEgDlJZAY2oi4ME6lfCAysV0hlsdP7jfJlPmgVJH7Tf8rYx5Vg/WX1FAH0yyA/IdP B+MV1O7Nid6td8Ph6gHw+AEU1qftUJeOzHALBD2IXrLZKscgeNQF1boVAGNa4AZEzAcAd5sp6WL VkN80KbwY8EHxkkwHKA== X-Proofpoint-GUID: kyT2YjdFdxC40vPKvh8uYlXlCwBgGjlx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 phishscore=0 bulkscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792444996743158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/ppc/dfp_helper.c | 52 ++-- target/ppc/fpu_helper.c | 396 ++++++++++++++-------------- target/ppc/int_helper.c | 292 ++++++++++---------- target/ppc/internal.h | 7 +- target/ppc/mem_helper.c | 28 +- target/ppc/misc_helper.c | 56 ++-- target/ppc/mmu-hash64.c | 18 +- target/ppc/mmu_helper.c | 70 ++--- target/ppc/power8-pmu.c | 14 +- target/ppc/tcg-excp_helper.c | 56 ++-- target/ppc/timebase_helper.c | 54 ++-- target/ppc/translate/vsx-impl.c.inc | 2 +- 12 files changed, 526 insertions(+), 519 deletions(-) diff --git a/target/ppc/dfp_helper.c b/target/ppc/dfp_helper.c index ecc3f793267..b529e1cb486 100644 --- a/target/ppc/dfp_helper.c +++ b/target/ppc/dfp_helper.c @@ -427,7 +427,7 @@ static inline int dfp_get_digit(decNumber *dn, int n) } =20 #define DFP_HELPER_TAB(op, dnop, postprocs, size) = \ -void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, = \ +void HELPER(op)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, = \ ppc_fprp_t *b) = \ { = \ struct PPC_DFP dfp; = \ @@ -493,7 +493,7 @@ DFP_HELPER_TAB(DDIV, decNumberDivide, DIV_PPs, 64) DFP_HELPER_TAB(DDIVQ, decNumberDivide, DIV_PPs, 128) =20 #define DFP_HELPER_BF_AB(op, dnop, postprocs, size) = \ -uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, ppc_fprp_t *b) = \ +uint32_t HELPER(op)(CPUPPCState *env, ppc_fprp_t *a, ppc_fprp_t *b) = \ { = \ struct PPC_DFP dfp; = \ dfp_prepare_decimal##size(&dfp, a, b, env); = \ @@ -525,7 +525,7 @@ DFP_HELPER_BF_AB(DCMPO, decNumberCompare, CMPO_PPs, 64) DFP_HELPER_BF_AB(DCMPOQ, decNumberCompare, CMPO_PPs, 128) =20 #define DFP_HELPER_TSTDC(op, size) \ -uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, uint32_t dcm) \ +uint32_t HELPER(op)(CPUPPCState *env, ppc_fprp_t *a, uint32_t dcm) \ { \ struct PPC_DFP dfp; \ int match =3D 0; = \ @@ -553,7 +553,7 @@ DFP_HELPER_TSTDC(DTSTDC, 64) DFP_HELPER_TSTDC(DTSTDCQ, 128) =20 #define DFP_HELPER_TSTDG(op, size) \ -uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, uint32_t dcm) \ +uint32_t HELPER(op)(CPUPPCState *env, ppc_fprp_t *a, uint32_t dcm) \ { \ struct PPC_DFP dfp; \ int minexp, maxexp, nzero_digits, nzero_idx, is_negative, is_zero, \ @@ -608,7 +608,7 @@ DFP_HELPER_TSTDG(DTSTDG, 64) DFP_HELPER_TSTDG(DTSTDGQ, 128) =20 #define DFP_HELPER_TSTEX(op, size) \ -uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, ppc_fprp_t *b) \ +uint32_t HELPER(op)(CPUPPCState *env, ppc_fprp_t *a, ppc_fprp_t *b) \ { \ struct PPC_DFP dfp; \ int expa, expb, a_is_special, b_is_special; \ @@ -640,7 +640,7 @@ DFP_HELPER_TSTEX(DTSTEX, 64) DFP_HELPER_TSTEX(DTSTEXQ, 128) =20 #define DFP_HELPER_TSTSF(op, size) \ -uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, ppc_fprp_t *b) \ +uint32_t HELPER(op)(CPUPPCState *env, ppc_fprp_t *a, ppc_fprp_t *b) \ { \ struct PPC_DFP dfp; \ unsigned k; \ @@ -677,7 +677,7 @@ DFP_HELPER_TSTSF(DTSTSF, 64) DFP_HELPER_TSTSF(DTSTSFQ, 128) =20 #define DFP_HELPER_TSTSFI(op, size) \ -uint32_t helper_##op(CPUPPCState *env, uint32_t a, ppc_fprp_t *b) \ +uint32_t HELPER(op)(CPUPPCState *env, uint32_t a, ppc_fprp_t *b) \ { \ struct PPC_DFP dfp; \ unsigned uim; \ @@ -737,7 +737,7 @@ static void dfp_quantize(uint8_t rmc, struct PPC_DFP *d= fp) } =20 #define DFP_HELPER_QUAI(op, size) \ -void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b, \ +void HELPER(op)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b, \ uint32_t te, uint32_t rmc) \ { \ struct PPC_DFP dfp; \ @@ -758,7 +758,7 @@ DFP_HELPER_QUAI(DQUAI, 64) DFP_HELPER_QUAI(DQUAIQ, 128) =20 #define DFP_HELPER_QUA(op, size) \ -void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \ +void HELPER(op)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \ ppc_fprp_t *b, uint32_t rmc) \ { \ struct PPC_DFP dfp; \ @@ -830,7 +830,7 @@ static void _dfp_reround(uint8_t rmc, int32_t ref_sig, = int32_t xmax, } =20 #define DFP_HELPER_RRND(op, size) \ -void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \ +void HELPER(op)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \ ppc_fprp_t *b, uint32_t rmc) \ { \ struct PPC_DFP dfp; \ @@ -854,7 +854,7 @@ DFP_HELPER_RRND(DRRND, 64) DFP_HELPER_RRND(DRRNDQ, 128) =20 #define DFP_HELPER_RINT(op, postprocs, size) = \ -void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b, = \ +void HELPER(op)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b, = \ uint32_t r, uint32_t rmc) = \ { = \ struct PPC_DFP dfp; = \ @@ -888,7 +888,7 @@ static void RINTN_PPs(struct PPC_DFP *dfp) DFP_HELPER_RINT(DRINTN, RINTN_PPs, 64) DFP_HELPER_RINT(DRINTNQ, RINTN_PPs, 128) =20 -void helper_DCTDP(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) +void HELPER(DCTDP)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) { struct PPC_DFP dfp; ppc_vsr_t vb; @@ -904,7 +904,7 @@ void helper_DCTDP(CPUPPCState *env, ppc_fprp_t *t, ppc_= fprp_t *b) dfp_set_FPRF_from_FRT(&dfp); } =20 -void helper_DCTQPQ(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) +void HELPER(DCTQPQ)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) { struct PPC_DFP dfp; ppc_vsr_t vb; @@ -919,7 +919,7 @@ void helper_DCTQPQ(CPUPPCState *env, ppc_fprp_t *t, ppc= _fprp_t *b) set_dfp128(t, &dfp.vt); } =20 -void helper_DRSP(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) +void HELPER(DRSP)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) { struct PPC_DFP dfp; uint32_t t_short =3D 0; @@ -937,7 +937,7 @@ void helper_DRSP(CPUPPCState *env, ppc_fprp_t *t, ppc_f= prp_t *b) set_dfp64(t, &vt); } =20 -void helper_DRDPQ(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) +void HELPER(DRDPQ)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) { struct PPC_DFP dfp; dfp_prepare_decimal128(&dfp, 0, b, env); @@ -956,7 +956,7 @@ void helper_DRDPQ(CPUPPCState *env, ppc_fprp_t *t, ppc_= fprp_t *b) } =20 #define DFP_HELPER_CFFIX(op, size) = \ -void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) = \ +void HELPER(op)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) = \ { = \ struct PPC_DFP dfp; = \ ppc_vsr_t vb; = \ @@ -978,7 +978,7 @@ static void CFFIX_PPs(struct PPC_DFP *dfp) DFP_HELPER_CFFIX(DCFFIX, 64) DFP_HELPER_CFFIX(DCFFIXQ, 128) =20 -void helper_DCFFIXQQ(CPUPPCState *env, ppc_fprp_t *t, ppc_avr_t *b) +void HELPER(DCFFIXQQ)(CPUPPCState *env, ppc_fprp_t *t, ppc_avr_t *b) { struct PPC_DFP dfp; =20 @@ -991,7 +991,7 @@ void helper_DCFFIXQQ(CPUPPCState *env, ppc_fprp_t *t, p= pc_avr_t *b) } =20 #define DFP_HELPER_CTFIX(op, size) = \ -void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) = \ +void HELPER(op)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) = \ { = \ struct PPC_DFP dfp; = \ dfp_prepare_decimal##size(&dfp, 0, b, env); = \ @@ -1028,7 +1028,7 @@ void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc= _fprp_t *b) \ DFP_HELPER_CTFIX(DCTFIX, 64) DFP_HELPER_CTFIX(DCTFIXQ, 128) =20 -void helper_DCTFIXQQ(CPUPPCState *env, ppc_avr_t *t, ppc_fprp_t *b) +void HELPER(DCTFIXQQ)(CPUPPCState *env, ppc_avr_t *t, ppc_fprp_t *b) { struct PPC_DFP dfp; dfp_prepare_decimal128(&dfp, 0, b, env); @@ -1103,7 +1103,7 @@ static inline void dfp_set_sign_128(ppc_vsr_t *t, uin= t8_t sgn) } =20 #define DFP_HELPER_DEDPD(op, size) \ -void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b, \ +void HELPER(op)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b, \ uint32_t sp) \ { \ struct PPC_DFP dfp; \ @@ -1168,7 +1168,7 @@ static inline void dfp_invalid_op_vxcvi_128(struct PP= C_DFP *dfp) } =20 #define DFP_HELPER_ENBCD(op, size) = \ -void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b, = \ +void HELPER(op)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b, = \ uint32_t s) = \ { = \ struct PPC_DFP dfp; = \ @@ -1228,7 +1228,7 @@ DFP_HELPER_ENBCD(DENBCD, 64) DFP_HELPER_ENBCD(DENBCDQ, 128) =20 #define DFP_HELPER_XEX(op, size) \ -void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) \ +void HELPER(op)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) \ { \ struct PPC_DFP dfp; \ ppc_vsr_t vt; \ @@ -1274,7 +1274,7 @@ static void dfp_set_raw_exp_128(ppc_vsr_t *t, uint64_= t raw) } =20 #define DFP_HELPER_IEX(op, size) \ -void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \ +void HELPER(op)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \ ppc_fprp_t *b) \ { \ struct PPC_DFP dfp; \ @@ -1368,7 +1368,7 @@ static void dfp_clear_lmd_from_g5msb(uint64_t *t) } =20 #define DFP_HELPER_SHIFT(op, size, shift_left) \ -void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \ +void HELPER(op)(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \ uint32_t sh) \ { \ struct PPC_DFP dfp; \ @@ -1417,7 +1417,7 @@ DFP_HELPER_SHIFT(DSCLIQ, 128, 1) DFP_HELPER_SHIFT(DSCRI, 64, 0) DFP_HELPER_SHIFT(DSCRIQ, 128, 0) =20 -target_ulong helper_CDTBCD(target_ulong s) +target_ulong HELPER(CDTBCD)(target_ulong s) { uint64_t res =3D 0; uint32_t dec32, declets; @@ -1443,7 +1443,7 @@ target_ulong helper_CDTBCD(target_ulong s) return res; } =20 -target_ulong helper_CBCDTD(target_ulong s) +target_ulong HELPER(CBCDTD)(target_ulong s) { uint64_t res =3D 0; uint32_t dec32; diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c index c1bdde9e104..b2ca14a1584 100644 --- a/target/ppc/fpu_helper.c +++ b/target/ppc/fpu_helper.c @@ -60,7 +60,7 @@ static inline bool fp_exceptions_enabled(CPUPPCState *env) * This is the non-arithmatic conversion that happens e.g. on loads. * In the Power ISA pseudocode, this is called DOUBLE. */ -uint64_t helper_todouble(uint32_t arg) +uint64_t HELPER(todouble)(uint32_t arg) { uint32_t abs_arg =3D arg & 0x7fffffff; uint64_t ret; @@ -104,7 +104,7 @@ uint64_t helper_todouble(uint32_t arg) * This is the non-arithmatic conversion that happens e.g. on stores. * In the Power ISA pseudocode, this is called SINGLE. */ -uint32_t helper_tosingle(uint64_t arg) +uint32_t HELPER(tosingle)(uint64_t arg) { int exp =3D extract64(arg, 52, 11); uint32_t ret; @@ -141,7 +141,7 @@ static inline int ppc_float64_get_unbiased_exp(float64 = f) } =20 #define COMPUTE_FPRF(tp) \ -void helper_compute_fprf_##tp(CPUPPCState *env, tp arg) \ +void HELPER(compute_fprf_##tp)(CPUPPCState *env, tp arg) \ { \ bool neg =3D tp##_is_neg(arg); \ target_ulong fprf; \ @@ -354,7 +354,7 @@ static inline void float_inexact_excp(CPUPPCState *env) } } =20 -void helper_fpscr_clrbit(CPUPPCState *env, uint32_t bit) +void HELPER(fpscr_clrbit)(CPUPPCState *env, uint32_t bit) { uint32_t mask =3D 1u << bit; if (env->fpscr & mask) { @@ -362,7 +362,7 @@ void helper_fpscr_clrbit(CPUPPCState *env, uint32_t bit) } } =20 -void helper_fpscr_setbit(CPUPPCState *env, uint32_t bit) +void HELPER(fpscr_setbit)(CPUPPCState *env, uint32_t bit) { uint32_t mask =3D 1u << bit; if (!(env->fpscr & mask)) { @@ -370,7 +370,7 @@ void helper_fpscr_setbit(CPUPPCState *env, uint32_t bit) } } =20 -void helper_store_fpscr(CPUPPCState *env, uint64_t val, uint32_t nibbles) +void HELPER(store_fpscr)(CPUPPCState *env, uint64_t val, uint32_t nibbles) { target_ulong mask =3D 0; int i; @@ -434,7 +434,7 @@ static void do_fpscr_check_status(CPUPPCState *env, uin= tptr_t raddr) } } =20 -void helper_fpscr_check_status(CPUPPCState *env) +void HELPER(fpscr_check_status)(CPUPPCState *env) { do_fpscr_check_status(env, GETPC()); } @@ -468,12 +468,12 @@ static void do_float_check_status(CPUPPCState *env, b= ool change_fi, } } =20 -void helper_float_check_status(CPUPPCState *env) +void HELPER(float_check_status)(CPUPPCState *env) { do_float_check_status(env, true, GETPC()); } =20 -void helper_reset_fpstatus(CPUPPCState *env) +void HELPER(reset_fpstatus)(CPUPPCState *env) { set_float_exception_flags(0, &env->fp_status); } @@ -552,7 +552,7 @@ static uint64_t float_invalid_cvt(CPUPPCState *env, int= flags, } =20 #define FPU_FCTI(op, cvt, nanval) \ -uint64_t helper_##op(CPUPPCState *env, float64 arg) \ +uint64_t HELPER(op)(CPUPPCState *env, float64 arg) \ { \ uint64_t ret =3D float64_to_##cvt(arg, &env->fp_status); \ int flags =3D get_float_exception_flags(&env->fp_status); \ @@ -572,7 +572,7 @@ FPU_FCTI(FCTIDU, uint64, 0x0000000000000000ULL) FPU_FCTI(FCTIDUZ, uint64_round_to_zero, 0x0000000000000000ULL) =20 #define FPU_FCFI(op, cvtr, is_single) \ -uint64_t helper_##op(CPUPPCState *env, uint64_t arg) \ +uint64_t HELPER(op)(CPUPPCState *env, uint64_t arg) \ { \ CPU_DoubleU farg; \ \ @@ -613,22 +613,22 @@ static uint64_t do_fri(CPUPPCState *env, uint64_t arg, return arg; } =20 -uint64_t helper_FRIN(CPUPPCState *env, uint64_t arg) +uint64_t HELPER(FRIN)(CPUPPCState *env, uint64_t arg) { return do_fri(env, arg, float_round_ties_away); } =20 -uint64_t helper_FRIZ(CPUPPCState *env, uint64_t arg) +uint64_t HELPER(FRIZ)(CPUPPCState *env, uint64_t arg) { return do_fri(env, arg, float_round_to_zero); } =20 -uint64_t helper_FRIP(CPUPPCState *env, uint64_t arg) +uint64_t HELPER(FRIP)(CPUPPCState *env, uint64_t arg) { return do_fri(env, arg, float_round_up); } =20 -uint64_t helper_FRIM(CPUPPCState *env, uint64_t arg) +uint64_t HELPER(FRIM)(CPUPPCState *env, uint64_t arg) { return do_fri(env, arg, float_round_down); } @@ -668,10 +668,10 @@ static uint64_t do_fmadds(CPUPPCState *env, float64 a= , float64 b, } =20 #define FPU_FMADD(op, madd_flags) \ - uint64_t helper_##op(CPUPPCState *env, uint64_t arg1, \ + uint64_t HELPER(op)(CPUPPCState *env, uint64_t arg1, \ uint64_t arg2, uint64_t arg3) \ { return do_fmadd(env, arg1, arg2, arg3, madd_flags, GETPC()); } \ - uint64_t helper_##op##S(CPUPPCState *env, uint64_t arg1, \ + uint64_t HELPER(op##S)(CPUPPCState *env, uint64_t arg1, \ uint64_t arg2, uint64_t arg3) \ { return do_fmadds(env, arg1, arg2, arg3, madd_flags, GETPC()); } =20 @@ -694,10 +694,10 @@ static uint64_t do_frsp(CPUPPCState *env, uint64_t ar= g, uintptr_t retaddr) if (unlikely(flags & float_flag_invalid_snan)) { float_invalid_op_vxsnan(env, retaddr); } - return helper_todouble(f32); + return HELPER(todouble)(f32); } =20 -uint64_t helper_FRSP(CPUPPCState *env, uint64_t arg) +uint64_t HELPER(FRSP)(CPUPPCState *env, uint64_t arg) { return do_frsp(env, arg, GETPC()); } @@ -713,7 +713,7 @@ static void float_invalid_op_sqrt(CPUPPCState *env, int= flags, } =20 #define FPU_FSQRT(name, op) = \ -float64 helper_##name(CPUPPCState *env, float64 arg) = \ +float64 HELPER(name)(CPUPPCState *env, float64 arg) = \ { = \ float64 ret =3D op(arg, &env->fp_status); = \ int flags =3D get_float_exception_flags(&env->fp_status); = \ @@ -729,7 +729,7 @@ FPU_FSQRT(FSQRT, float64_sqrt) FPU_FSQRT(FSQRTS, float64r32_sqrt) =20 #define FPU_FRE(name, op) = \ -float64 helper_##name(CPUPPCState *env, float64 arg) = \ +float64 HELPER(name)(CPUPPCState *env, float64 arg) = \ { = \ /* "Estimate" the reciprocal with actual division. */ = \ float64 ret =3D op(float64_one, arg, &env->fp_status); = \ @@ -748,7 +748,7 @@ float64 helper_##name(CPUPPCState *env, float64 arg) = \ } =20 #define FPU_FRSQRTE(name, op) = \ -float64 helper_##name(CPUPPCState *env, float64 arg) = \ +float64 HELPER(name)(CPUPPCState *env, float64 arg) = \ { = \ /* "Estimate" the reciprocal with actual division. */ = \ float64 rets =3D float64_sqrt(arg, &env->fp_status); = \ @@ -767,7 +767,7 @@ float64 helper_##name(CPUPPCState *env, float64 arg) = \ } =20 #define FPU_HELPER(name, op, flags_handler) = \ -float64 helper_##name(CPUPPCState *env, float64 arg1, float64 arg2) = \ +float64 HELPER(name)(CPUPPCState *env, float64 arg1, float64 arg2) = \ { = \ float64 ret =3D op(arg1, arg2, &env->fp_status); = \ int flags =3D get_float_exception_flags(&env->fp_status); = \ @@ -790,7 +790,7 @@ FPU_HELPER(FDIV, float64_div, div_flags_handler) FPU_HELPER(FDIVS, float64r32_div, div_flags_handler) =20 /* fsel - fsel. */ -uint64_t helper_FSEL(uint64_t a, uint64_t b, uint64_t c) +uint64_t HELPER(FSEL)(uint64_t a, uint64_t b, uint64_t c) { CPU_DoubleU fa; =20 @@ -804,7 +804,7 @@ uint64_t helper_FSEL(uint64_t a, uint64_t b, uint64_t c) } } =20 -uint32_t helper_FTDIV(uint64_t fra, uint64_t frb) +uint32_t HELPER(FTDIV)(uint64_t fra, uint64_t frb) { int fe_flag =3D 0; int fg_flag =3D 0; @@ -840,7 +840,7 @@ uint32_t helper_FTDIV(uint64_t fra, uint64_t frb) return 0x8 | (fg_flag ? 4 : 0) | (fe_flag ? 2 : 0); } =20 -uint32_t helper_FTSQRT(uint64_t frb) +uint32_t HELPER(FTSQRT)(uint64_t frb) { int fe_flag =3D 0; int fg_flag =3D 0; @@ -871,7 +871,7 @@ uint32_t helper_FTSQRT(uint64_t frb) return 0x8 | (fg_flag ? 4 : 0) | (fe_flag ? 2 : 0); } =20 -void helper_FCMPU(CPUPPCState *env, uint64_t arg1, uint64_t arg2, +void HELPER(FCMPU)(CPUPPCState *env, uint64_t arg1, uint64_t arg2, uint32_t crfD) { CPU_DoubleU farg1, farg2; @@ -902,7 +902,7 @@ void helper_FCMPU(CPUPPCState *env, uint64_t arg1, uint= 64_t arg2, } } =20 -void helper_FCMPO(CPUPPCState *env, uint64_t arg1, uint64_t arg2, +void HELPER(FCMPO)(CPUPPCState *env, uint64_t arg1, uint64_t arg2, uint32_t crfD) { CPU_DoubleU farg1, farg2; @@ -1063,7 +1063,7 @@ static inline uint32_t efsctuf(CPUPPCState *env, uint= 32_t val) } =20 #define HELPER_SPE_SINGLE_CONV(name) \ - uint32_t helper_e##name(CPUPPCState *env, uint32_t val) \ + uint32_t HELPER(e##name)(CPUPPCState *env, uint32_t val) \ { \ return e##name(env, val); \ } @@ -1089,7 +1089,7 @@ HELPER_SPE_SINGLE_CONV(fsctsf); HELPER_SPE_SINGLE_CONV(fsctuf); =20 #define HELPER_SPE_VECTOR_CONV(name) \ - uint64_t helper_ev##name(CPUPPCState *env, uint64_t val) \ + uint64_t HELPER(ev##name)(CPUPPCState *env, uint64_t val) \ { \ return ((uint64_t)e##name(env, val >> 32) << 32) | \ (uint64_t)e##name(env, val); \ @@ -1157,7 +1157,7 @@ static inline uint32_t efsdiv(CPUPPCState *env, uint3= 2_t op1, uint32_t op2) } =20 #define HELPER_SPE_SINGLE_ARITH(name) \ - uint32_t helper_e##name(CPUPPCState *env, uint32_t op1, uint32_t op2) \ + uint32_t HELPER(e##name)(CPUPPCState *env, uint32_t op1, uint32_t op2)= \ { \ return e##name(env, op1, op2); \ } @@ -1171,7 +1171,7 @@ HELPER_SPE_SINGLE_ARITH(fsmul); HELPER_SPE_SINGLE_ARITH(fsdiv); =20 #define HELPER_SPE_VECTOR_ARITH(name) \ - uint64_t helper_ev##name(CPUPPCState *env, uint64_t op1, uint64_t op2)= \ + uint64_t HELPER(ev##name)(CPUPPCState *env, uint64_t op1, uint64_t op2= ) \ { \ return ((uint64_t)e##name(env, op1 >> 32, op2 >> 32) << 32) | \ (uint64_t)e##name(env, op1, op2); \ @@ -1232,7 +1232,7 @@ static inline uint32_t efststeq(CPUPPCState *env, uin= t32_t op1, uint32_t op2) } =20 #define HELPER_SINGLE_SPE_CMP(name) \ - uint32_t helper_e##name(CPUPPCState *env, uint32_t op1, uint32_t op2) \ + uint32_t HELPER(e##name)(CPUPPCState *env, uint32_t op1, uint32_t op2)= \ { \ return e##name(env, op1, op2); \ } @@ -1255,7 +1255,7 @@ static inline uint32_t evcmp_merge(int t0, int t1) } =20 #define HELPER_VECTOR_SPE_CMP(name) \ - uint32_t helper_ev##name(CPUPPCState *env, uint64_t op1, uint64_t op2)= \ + uint32_t HELPER(ev##name)(CPUPPCState *env, uint64_t op1, uint64_t op2= ) \ { \ return evcmp_merge(e##name(env, op1 >> 32, op2 >> 32), \ e##name(env, op1, op2)); \ @@ -1274,7 +1274,7 @@ HELPER_VECTOR_SPE_CMP(fscmpgt); HELPER_VECTOR_SPE_CMP(fscmpeq); =20 /* Double-precision floating-point conversion */ -uint64_t helper_efdcfsi(CPUPPCState *env, uint32_t val) +uint64_t HELPER(efdcfsi)(CPUPPCState *env, uint32_t val) { CPU_DoubleU u; =20 @@ -1283,7 +1283,7 @@ uint64_t helper_efdcfsi(CPUPPCState *env, uint32_t va= l) return u.ll; } =20 -uint64_t helper_efdcfsid(CPUPPCState *env, uint64_t val) +uint64_t HELPER(efdcfsid)(CPUPPCState *env, uint64_t val) { CPU_DoubleU u; =20 @@ -1292,7 +1292,7 @@ uint64_t helper_efdcfsid(CPUPPCState *env, uint64_t v= al) return u.ll; } =20 -uint64_t helper_efdcfui(CPUPPCState *env, uint32_t val) +uint64_t HELPER(efdcfui)(CPUPPCState *env, uint32_t val) { CPU_DoubleU u; =20 @@ -1301,7 +1301,7 @@ uint64_t helper_efdcfui(CPUPPCState *env, uint32_t va= l) return u.ll; } =20 -uint64_t helper_efdcfuid(CPUPPCState *env, uint64_t val) +uint64_t HELPER(efdcfuid)(CPUPPCState *env, uint64_t val) { CPU_DoubleU u; =20 @@ -1310,7 +1310,7 @@ uint64_t helper_efdcfuid(CPUPPCState *env, uint64_t v= al) return u.ll; } =20 -uint32_t helper_efdctsi(CPUPPCState *env, uint64_t val) +uint32_t HELPER(efdctsi)(CPUPPCState *env, uint64_t val) { CPU_DoubleU u; =20 @@ -1323,7 +1323,7 @@ uint32_t helper_efdctsi(CPUPPCState *env, uint64_t va= l) return float64_to_int32(u.d, &env->vec_status); } =20 -uint32_t helper_efdctui(CPUPPCState *env, uint64_t val) +uint32_t HELPER(efdctui)(CPUPPCState *env, uint64_t val) { CPU_DoubleU u; =20 @@ -1336,7 +1336,7 @@ uint32_t helper_efdctui(CPUPPCState *env, uint64_t va= l) return float64_to_uint32(u.d, &env->vec_status); } =20 -uint32_t helper_efdctsiz(CPUPPCState *env, uint64_t val) +uint32_t HELPER(efdctsiz)(CPUPPCState *env, uint64_t val) { CPU_DoubleU u; =20 @@ -1349,7 +1349,7 @@ uint32_t helper_efdctsiz(CPUPPCState *env, uint64_t v= al) return float64_to_int32_round_to_zero(u.d, &env->vec_status); } =20 -uint64_t helper_efdctsidz(CPUPPCState *env, uint64_t val) +uint64_t HELPER(efdctsidz)(CPUPPCState *env, uint64_t val) { CPU_DoubleU u; =20 @@ -1362,7 +1362,7 @@ uint64_t helper_efdctsidz(CPUPPCState *env, uint64_t = val) return float64_to_int64_round_to_zero(u.d, &env->vec_status); } =20 -uint32_t helper_efdctuiz(CPUPPCState *env, uint64_t val) +uint32_t HELPER(efdctuiz)(CPUPPCState *env, uint64_t val) { CPU_DoubleU u; =20 @@ -1375,7 +1375,7 @@ uint32_t helper_efdctuiz(CPUPPCState *env, uint64_t v= al) return float64_to_uint32_round_to_zero(u.d, &env->vec_status); } =20 -uint64_t helper_efdctuidz(CPUPPCState *env, uint64_t val) +uint64_t HELPER(efdctuidz)(CPUPPCState *env, uint64_t val) { CPU_DoubleU u; =20 @@ -1388,7 +1388,7 @@ uint64_t helper_efdctuidz(CPUPPCState *env, uint64_t = val) return float64_to_uint64_round_to_zero(u.d, &env->vec_status); } =20 -uint64_t helper_efdcfsf(CPUPPCState *env, uint32_t val) +uint64_t HELPER(efdcfsf)(CPUPPCState *env, uint32_t val) { CPU_DoubleU u; float64 tmp; @@ -1400,7 +1400,7 @@ uint64_t helper_efdcfsf(CPUPPCState *env, uint32_t va= l) return u.ll; } =20 -uint64_t helper_efdcfuf(CPUPPCState *env, uint32_t val) +uint64_t HELPER(efdcfuf)(CPUPPCState *env, uint32_t val) { CPU_DoubleU u; float64 tmp; @@ -1412,7 +1412,7 @@ uint64_t helper_efdcfuf(CPUPPCState *env, uint32_t va= l) return u.ll; } =20 -uint32_t helper_efdctsf(CPUPPCState *env, uint64_t val) +uint32_t HELPER(efdctsf)(CPUPPCState *env, uint64_t val) { CPU_DoubleU u; float64 tmp; @@ -1428,7 +1428,7 @@ uint32_t helper_efdctsf(CPUPPCState *env, uint64_t va= l) return float64_to_int32(u.d, &env->vec_status); } =20 -uint32_t helper_efdctuf(CPUPPCState *env, uint64_t val) +uint32_t HELPER(efdctuf)(CPUPPCState *env, uint64_t val) { CPU_DoubleU u; float64 tmp; @@ -1444,7 +1444,7 @@ uint32_t helper_efdctuf(CPUPPCState *env, uint64_t va= l) return float64_to_uint32(u.d, &env->vec_status); } =20 -uint32_t helper_efscfd(CPUPPCState *env, uint64_t val) +uint32_t HELPER(efscfd)(CPUPPCState *env, uint64_t val) { CPU_DoubleU u1; CPU_FloatU u2; @@ -1455,7 +1455,7 @@ uint32_t helper_efscfd(CPUPPCState *env, uint64_t val) return u2.l; } =20 -uint64_t helper_efdcfs(CPUPPCState *env, uint32_t val) +uint64_t HELPER(efdcfs)(CPUPPCState *env, uint32_t val) { CPU_DoubleU u2; CPU_FloatU u1; @@ -1467,7 +1467,7 @@ uint64_t helper_efdcfs(CPUPPCState *env, uint32_t val) } =20 /* Double precision fixed-point arithmetic */ -uint64_t helper_efdadd(CPUPPCState *env, uint64_t op1, uint64_t op2) +uint64_t HELPER(efdadd)(CPUPPCState *env, uint64_t op1, uint64_t op2) { CPU_DoubleU u1, u2; =20 @@ -1477,7 +1477,7 @@ uint64_t helper_efdadd(CPUPPCState *env, uint64_t op1= , uint64_t op2) return u1.ll; } =20 -uint64_t helper_efdsub(CPUPPCState *env, uint64_t op1, uint64_t op2) +uint64_t HELPER(efdsub)(CPUPPCState *env, uint64_t op1, uint64_t op2) { CPU_DoubleU u1, u2; =20 @@ -1487,7 +1487,7 @@ uint64_t helper_efdsub(CPUPPCState *env, uint64_t op1= , uint64_t op2) return u1.ll; } =20 -uint64_t helper_efdmul(CPUPPCState *env, uint64_t op1, uint64_t op2) +uint64_t HELPER(efdmul)(CPUPPCState *env, uint64_t op1, uint64_t op2) { CPU_DoubleU u1, u2; =20 @@ -1497,7 +1497,7 @@ uint64_t helper_efdmul(CPUPPCState *env, uint64_t op1= , uint64_t op2) return u1.ll; } =20 -uint64_t helper_efddiv(CPUPPCState *env, uint64_t op1, uint64_t op2) +uint64_t HELPER(efddiv)(CPUPPCState *env, uint64_t op1, uint64_t op2) { CPU_DoubleU u1, u2; =20 @@ -1508,7 +1508,7 @@ uint64_t helper_efddiv(CPUPPCState *env, uint64_t op1= , uint64_t op2) } =20 /* Double precision floating point helpers */ -uint32_t helper_efdtstlt(CPUPPCState *env, uint64_t op1, uint64_t op2) +uint32_t HELPER(efdtstlt)(CPUPPCState *env, uint64_t op1, uint64_t op2) { CPU_DoubleU u1, u2; =20 @@ -1517,7 +1517,7 @@ uint32_t helper_efdtstlt(CPUPPCState *env, uint64_t o= p1, uint64_t op2) return float64_lt(u1.d, u2.d, &env->vec_status) ? 4 : 0; } =20 -uint32_t helper_efdtstgt(CPUPPCState *env, uint64_t op1, uint64_t op2) +uint32_t HELPER(efdtstgt)(CPUPPCState *env, uint64_t op1, uint64_t op2) { CPU_DoubleU u1, u2; =20 @@ -1526,7 +1526,7 @@ uint32_t helper_efdtstgt(CPUPPCState *env, uint64_t o= p1, uint64_t op2) return float64_le(u1.d, u2.d, &env->vec_status) ? 0 : 4; } =20 -uint32_t helper_efdtsteq(CPUPPCState *env, uint64_t op1, uint64_t op2) +uint32_t HELPER(efdtsteq)(CPUPPCState *env, uint64_t op1, uint64_t op2) { CPU_DoubleU u1, u2; =20 @@ -1535,22 +1535,22 @@ uint32_t helper_efdtsteq(CPUPPCState *env, uint64_t= op1, uint64_t op2) return float64_eq_quiet(u1.d, u2.d, &env->vec_status) ? 4 : 0; } =20 -uint32_t helper_efdcmplt(CPUPPCState *env, uint64_t op1, uint64_t op2) +uint32_t HELPER(efdcmplt)(CPUPPCState *env, uint64_t op1, uint64_t op2) { /* XXX: TODO: test special values (NaN, infinites, ...) */ - return helper_efdtstlt(env, op1, op2); + return HELPER(efdtstlt)(env, op1, op2); } =20 -uint32_t helper_efdcmpgt(CPUPPCState *env, uint64_t op1, uint64_t op2) +uint32_t HELPER(efdcmpgt)(CPUPPCState *env, uint64_t op1, uint64_t op2) { /* XXX: TODO: test special values (NaN, infinites, ...) */ - return helper_efdtstgt(env, op1, op2); + return HELPER(efdtstgt)(env, op1, op2); } =20 -uint32_t helper_efdcmpeq(CPUPPCState *env, uint64_t op1, uint64_t op2) +uint32_t HELPER(efdcmpeq)(CPUPPCState *env, uint64_t op1, uint64_t op2) { /* XXX: TODO: test special values (NaN, infinites, ...) */ - return helper_efdtsteq(env, op1, op2); + return HELPER(efdtsteq)(env, op1, op2); } =20 #define float64_to_float64(x, env) x @@ -1566,13 +1566,13 @@ uint32_t helper_efdcmpeq(CPUPPCState *env, uint64_t= op1, uint64_t op2) * sfifprf - set FI and FPRF */ #define VSX_ADD_SUB(name, op, nels, tp, fld, sfifprf, r2sp) = \ -void helper_##name(CPUPPCState *env, ppc_vsr_t *xt, = \ +void HELPER(name)(CPUPPCState *env, ppc_vsr_t *xt, = \ ppc_vsr_t *xa, ppc_vsr_t *xb) = \ { = \ ppc_vsr_t t =3D { }; = \ int i; = \ = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ = \ for (i =3D 0; i < nels; i++) { = \ float_status tstat =3D env->fp_status; = \ @@ -1590,7 +1590,7 @@ void helper_##name(CPUPPCState *env, ppc_vsr_t *xt, = \ } = \ = \ if (sfifprf) { = \ - helper_compute_fprf_float64(env, t.fld); = \ + HELPER(compute_fprf_float64)(env, t.fld); = \ } = \ } = \ *xt =3D t; = \ @@ -1606,13 +1606,13 @@ VSX_ADD_SUB(XSSUBSP, sub, 1, float64, VsrD(0), 1, 1) VSX_ADD_SUB(XVSUBDP, sub, 2, float64, VsrD(i), 0, 0) VSX_ADD_SUB(XVSUBSP, sub, 4, float32, VsrW(i), 0, 0) =20 -void helper_xsaddqp(CPUPPCState *env, uint32_t opcode, +void HELPER(xsaddqp)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xt, ppc_vsr_t *xa, ppc_vsr_t *xb) { ppc_vsr_t t =3D *xt; float_status tstat; =20 - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); =20 tstat =3D env->fp_status; if (unlikely(Rc(opcode) !=3D 0)) { @@ -1627,7 +1627,7 @@ void helper_xsaddqp(CPUPPCState *env, uint32_t opcode, float_invalid_op_addsub(env, tstat.float_exception_flags, 1, GETPC= ()); } =20 - helper_compute_fprf_float128(env, t.f128); + HELPER(compute_fprf_float128)(env, t.f128); =20 *xt =3D t; do_float_check_status(env, true, GETPC()); @@ -1642,13 +1642,13 @@ void helper_xsaddqp(CPUPPCState *env, uint32_t opco= de, * sfifprf - set FI and FPRF */ #define VSX_MUL(op, nels, tp, fld, sfifprf, r2sp) = \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, = \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, = \ ppc_vsr_t *xa, ppc_vsr_t *xb) = \ { = \ ppc_vsr_t t =3D { }; = \ int i; = \ = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ = \ for (i =3D 0; i < nels; i++) { = \ float_status tstat =3D env->fp_status; = \ @@ -1666,7 +1666,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, = \ } = \ = \ if (sfifprf) { = \ - helper_compute_fprf_float64(env, t.fld); = \ + HELPER(compute_fprf_float64)(env, t.fld); = \ } = \ } = \ = \ @@ -1679,13 +1679,13 @@ VSX_MUL(XSMULSP, 1, float64, VsrD(0), 1, 1) VSX_MUL(XVMULDP, 2, float64, VsrD(i), 0, 0) VSX_MUL(XVMULSP, 4, float32, VsrW(i), 0, 0) =20 -void helper_xsmulqp(CPUPPCState *env, uint32_t opcode, +void HELPER(xsmulqp)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xt, ppc_vsr_t *xa, ppc_vsr_t *xb) { ppc_vsr_t t =3D *xt; float_status tstat; =20 - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); tstat =3D env->fp_status; if (unlikely(Rc(opcode) !=3D 0)) { set_float_rounding_mode(float_round_to_odd, &tstat); @@ -1698,7 +1698,7 @@ void helper_xsmulqp(CPUPPCState *env, uint32_t opcode, if (unlikely(tstat.float_exception_flags & float_flag_invalid)) { float_invalid_op_mul(env, tstat.float_exception_flags, 1, GETPC()); } - helper_compute_fprf_float128(env, t.f128); + HELPER(compute_fprf_float128)(env, t.f128); =20 *xt =3D t; do_float_check_status(env, true, GETPC()); @@ -1713,13 +1713,13 @@ void helper_xsmulqp(CPUPPCState *env, uint32_t opco= de, * sfifprf - set FI and FPRF */ #define VSX_DIV(op, nels, tp, fld, sfifprf, r2sp) = \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, = \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, = \ ppc_vsr_t *xa, ppc_vsr_t *xb) = \ { = \ ppc_vsr_t t =3D { }; = \ int i; = \ = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ = \ for (i =3D 0; i < nels; i++) { = \ float_status tstat =3D env->fp_status; = \ @@ -1740,7 +1740,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, = \ } = \ = \ if (sfifprf) { = \ - helper_compute_fprf_float64(env, t.fld); = \ + HELPER(compute_fprf_float64)(env, t.fld); = \ } = \ } = \ = \ @@ -1753,13 +1753,13 @@ VSX_DIV(XSDIVSP, 1, float64, VsrD(0), 1, 1) VSX_DIV(XVDIVDP, 2, float64, VsrD(i), 0, 0) VSX_DIV(XVDIVSP, 4, float32, VsrW(i), 0, 0) =20 -void helper_xsdivqp(CPUPPCState *env, uint32_t opcode, +void HELPER(xsdivqp)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xt, ppc_vsr_t *xa, ppc_vsr_t *xb) { ppc_vsr_t t =3D *xt; float_status tstat; =20 - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); tstat =3D env->fp_status; if (unlikely(Rc(opcode) !=3D 0)) { set_float_rounding_mode(float_round_to_odd, &tstat); @@ -1776,7 +1776,7 @@ void helper_xsdivqp(CPUPPCState *env, uint32_t opcode, float_zero_divide_excp(env, GETPC()); } =20 - helper_compute_fprf_float128(env, t.f128); + HELPER(compute_fprf_float128)(env, t.f128); *xt =3D t; do_float_check_status(env, true, GETPC()); } @@ -1790,12 +1790,12 @@ void helper_xsdivqp(CPUPPCState *env, uint32_t opco= de, * sfifprf - set FI and FPRF */ #define VSX_RE(op, nels, tp, fld, sfifprf, r2sp) = \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) = \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) = \ { = \ ppc_vsr_t t =3D { }; = \ int i; = \ = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ = \ for (i =3D 0; i < nels; i++) { = \ if (unlikely(tp##_is_signaling_nan(xb->fld, &env->fp_status))) { = \ @@ -1808,7 +1808,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc= _vsr_t *xb) \ } = \ = \ if (sfifprf) { = \ - helper_compute_fprf_float64(env, t.fld); = \ + HELPER(compute_fprf_float64)(env, t.fld); = \ } = \ } = \ = \ @@ -1830,12 +1830,12 @@ VSX_RE(xvresp, 4, float32, VsrW(i), 0, 0) * sfifprf - set FI and FPRF */ #define VSX_SQRT(op, nels, tp, fld, sfifprf, r2sp) = \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) = \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) = \ { = \ ppc_vsr_t t =3D { }; = \ int i; = \ = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ = \ for (i =3D 0; i < nels; i++) { = \ float_status tstat =3D env->fp_status; = \ @@ -1853,7 +1853,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc= _vsr_t *xb) \ } = \ = \ if (sfifprf) { = \ - helper_compute_fprf_float64(env, t.fld); = \ + HELPER(compute_fprf_float64)(env, t.fld); = \ } = \ } = \ = \ @@ -1875,12 +1875,12 @@ VSX_SQRT(xvsqrtsp, 4, float32, VsrW(i), 0, 0) * sfifprf - set FI and FPRF */ #define VSX_RSQRTE(op, nels, tp, fld, sfifprf, r2sp) = \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) = \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) = \ { = \ ppc_vsr_t t =3D { }; = \ int i; = \ = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ = \ for (i =3D 0; i < nels; i++) { = \ float_status tstat =3D env->fp_status; = \ @@ -1897,7 +1897,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc= _vsr_t *xb) \ } = \ = \ if (sfifprf) { = \ - helper_compute_fprf_float64(env, t.fld); = \ + HELPER(compute_fprf_float64)(env, t.fld); = \ } = \ } = \ = \ @@ -1921,7 +1921,7 @@ VSX_RSQRTE(xvrsqrtesp, 4, float32, VsrW(i), 0, 0) * nbits - number of fraction bits */ #define VSX_TDIV(op, nels, tp, fld, emin, emax, nbits) \ -void helper_##op(CPUPPCState *env, uint32_t opcode, \ +void HELPER(op)(CPUPPCState *env, uint32_t opcode, \ ppc_vsr_t *xa, ppc_vsr_t *xb) \ { \ int i; \ @@ -1978,7 +1978,7 @@ VSX_TDIV(xvtdivsp, 4, float32, VsrW(i), -126, 127, 23) * nbits - number of fraction bits */ #define VSX_TSQRT(op, nels, tp, fld, emin, nbits) \ -void helper_##op(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xb) \ +void HELPER(op)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xb) \ { \ int i; \ int fe_flag =3D 0; \ @@ -2031,13 +2031,13 @@ VSX_TSQRT(xvtsqrtsp, 4, float32, VsrW(i), -126, 23) * sfifprf - set FI and FPRF */ #define VSX_MADD(op, nels, tp, fld, maddflgs, sfifprf) = \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, = \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, = \ ppc_vsr_t *s1, ppc_vsr_t *s2, ppc_vsr_t *s3) = \ { = \ ppc_vsr_t t =3D { }; = \ int i; = \ = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ = \ for (i =3D 0; i < nels; i++) { = \ float_status tstat =3D env->fp_status; = \ @@ -2051,7 +2051,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, = \ } = \ = \ if (sfifprf) { = \ - helper_compute_fprf_float64(env, t.fld); = \ + HELPER(compute_fprf_float64)(env, t.fld); = \ } = \ } = \ *xt =3D t; = \ @@ -2085,12 +2085,12 @@ VSX_MADD(xvnmsubsp, 4, float32, VsrW(i), NMSUB_FLGS= , 0) * ro - round to odd */ #define VSX_MADDQ(op, maddflgs, ro) = \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *s1, ppc_vsr_t= *s2,\ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *s1, ppc_vsr_t = *s2, \ ppc_vsr_t *s3) = \ { = \ ppc_vsr_t t =3D *xt; = \ = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ = \ float_status tstat =3D env->fp_status; = \ set_float_exception_flags(0, &tstat); = \ @@ -2105,7 +2105,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc= _vsr_t *s1, ppc_vsr_t *s2,\ false, GETPC()); = \ } = \ = \ - helper_compute_fprf_float128(env, t.f128); = \ + HELPER(compute_fprf_float128)(env, t.f128); = \ *xt =3D t; = \ do_float_check_status(env, true, GETPC()); = \ } @@ -2128,13 +2128,13 @@ VSX_MADDQ(XSNMSUBQPO, NMSUB_FLGS, 0) * svxvc - set VXVC bit */ #define VSX_SCALAR_CMP(op, tp, cmp, fld, svxvc) = \ - void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, = \ + void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, = \ ppc_vsr_t *xa, ppc_vsr_t *xb) = \ { = \ int flags; = \ bool r, vxvc; = \ = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ = \ if (svxvc) { = \ r =3D tp##_##cmp(xb->fld, xa->fld, &env->fp_status); = \ @@ -2166,7 +2166,7 @@ VSX_SCALAR_CMP(XSCMPEQQP, float128, eq, f128, 0) VSX_SCALAR_CMP(XSCMPGEQP, float128, le, f128, 1) VSX_SCALAR_CMP(XSCMPGTQP, float128, lt, f128, 1) =20 -void helper_xscmpexpdp(CPUPPCState *env, uint32_t opcode, +void HELPER(xscmpexpdp)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xa, ppc_vsr_t *xb) { int64_t exp_a, exp_b; @@ -2195,7 +2195,7 @@ void helper_xscmpexpdp(CPUPPCState *env, uint32_t opc= ode, do_float_check_status(env, false, GETPC()); } =20 -void helper_xscmpexpqp(CPUPPCState *env, uint32_t opcode, +void HELPER(xscmpexpqp)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xa, ppc_vsr_t *xb) { int64_t exp_a, exp_b; @@ -2230,7 +2230,7 @@ static inline void do_scalar_cmp(CPUPPCState *env, pp= c_vsr_t *xa, ppc_vsr_t *xb, uint32_t cc; bool vxsnan_flag =3D false, vxvc_flag =3D false; =20 - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); =20 switch (float64_compare(xa->VsrD(0), xb->VsrD(0), &env->fp_status)) { case float_relation_less: @@ -2277,13 +2277,13 @@ static inline void do_scalar_cmp(CPUPPCState *env, = ppc_vsr_t *xa, ppc_vsr_t *xb, do_float_check_status(env, false, GETPC()); } =20 -void helper_xscmpodp(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xa, +void HELPER(xscmpodp)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xa, ppc_vsr_t *xb) { do_scalar_cmp(env, xa, xb, BF(opcode), true); } =20 -void helper_xscmpudp(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xa, +void HELPER(xscmpudp)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xa, ppc_vsr_t *xb) { do_scalar_cmp(env, xa, xb, BF(opcode), false); @@ -2295,7 +2295,7 @@ static inline void do_scalar_cmpq(CPUPPCState *env, p= pc_vsr_t *xa, uint32_t cc; bool vxsnan_flag =3D false, vxvc_flag =3D false; =20 - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); =20 switch (float128_compare(xa->f128, xb->f128, &env->fp_status)) { case float_relation_less: @@ -2342,13 +2342,13 @@ static inline void do_scalar_cmpq(CPUPPCState *env,= ppc_vsr_t *xa, do_float_check_status(env, false, GETPC()); } =20 -void helper_xscmpoqp(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xa, +void HELPER(xscmpoqp)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xa, ppc_vsr_t *xb) { do_scalar_cmpq(env, xa, xb, BF(opcode), true); } =20 -void helper_xscmpuqp(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xa, +void HELPER(xscmpuqp)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xa, ppc_vsr_t *xb) { do_scalar_cmpq(env, xa, xb, BF(opcode), false); @@ -2363,7 +2363,7 @@ void helper_xscmpuqp(CPUPPCState *env, uint32_t opcod= e, ppc_vsr_t *xa, * fld - vsr_t field (VsrD(*) or VsrW(*)) */ #define VSX_MAX_MIN(name, op, nels, tp, fld) = \ -void helper_##name(CPUPPCState *env, ppc_vsr_t *xt, = \ +void HELPER(name)(CPUPPCState *env, ppc_vsr_t *xt, = \ ppc_vsr_t *xa, ppc_vsr_t *xb) = \ { = \ ppc_vsr_t t =3D { }; = \ @@ -2389,13 +2389,13 @@ VSX_MAX_MIN(XVMINDP, minnum, 2, float64, VsrD(i)) VSX_MAX_MIN(XVMINSP, minnum, 4, float32, VsrW(i)) =20 #define VSX_MAX_MINC(name, max, tp, fld) = \ -void helper_##name(CPUPPCState *env, = \ +void HELPER(name)(CPUPPCState *env, = \ ppc_vsr_t *xt, ppc_vsr_t *xa, ppc_vsr_t *xb) = \ { = \ ppc_vsr_t t =3D { }; = \ bool first; = \ = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ = \ if (max) { = \ first =3D tp##_le_quiet(xb->fld, xa->fld, &env->fp_status); = \ @@ -2421,7 +2421,7 @@ VSX_MAX_MINC(XSMAXCQP, true, float128, f128); VSX_MAX_MINC(XSMINCQP, false, float128, f128); =20 #define VSX_MAX_MINJ(name, max) = \ -void helper_##name(CPUPPCState *env, = \ +void HELPER(name)(CPUPPCState *env, = \ ppc_vsr_t *xt, ppc_vsr_t *xa, ppc_vsr_t *xb) = \ { = \ ppc_vsr_t t =3D { }; = \ @@ -2486,7 +2486,7 @@ VSX_MAX_MINJ(XSMINJDP, 0); * exp - expected result of comparison */ #define VSX_CMP(op, nels, tp, fld, cmp, svxvc, exp) \ -uint32_t helper_##op(CPUPPCState *env, ppc_vsr_t *xt, \ +uint32_t HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, \ ppc_vsr_t *xa, ppc_vsr_t *xb) \ { \ ppc_vsr_t t =3D *xt; = \ @@ -2495,7 +2495,7 @@ uint32_t helper_##op(CPUPPCState *env, ppc_vsr_t *xt,= \ int all_true =3D 1; = \ int all_false =3D 1; = \ \ - helper_reset_fpstatus(env); \ + HELPER(reset_fpstatus)(env); \ \ for (i =3D 0; i < nels; i++) { = \ if (unlikely(tp##_is_any_nan(xa->fld) || \ @@ -2545,12 +2545,12 @@ VSX_CMP(XVCMPNESP, 4, float32, VsrW(i), eq, 0, 0) * sfifprf - set FI and FPRF */ #define VSX_CVT_FP_TO_FP(op, nels, stp, ttp, sfld, tfld, sfifprf) \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ { \ ppc_vsr_t t =3D { }; \ int i; \ \ - helper_reset_fpstatus(env); \ + HELPER(reset_fpstatus)(env); \ \ for (i =3D 0; i < nels; i++) { \ t.tfld =3D stp##_to_##ttp(xb->sfld, &env->fp_status); \ @@ -2560,7 +2560,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc= _vsr_t *xb) \ t.tfld =3D ttp##_snan_to_qnan(t.tfld); \ } \ if (sfifprf) { \ - helper_compute_fprf_##ttp(env, t.tfld); \ + HELPER(compute_fprf_##ttp)(env, t.tfld); \ } \ } \ \ @@ -2572,12 +2572,12 @@ VSX_CVT_FP_TO_FP(xscvspdp, 1, float32, float64, Vsr= W(0), VsrD(0), 1) VSX_CVT_FP_TO_FP(xvcvspdp, 2, float32, float64, VsrW(2 * i), VsrD(i), 0) =20 #define VSX_CVT_FP_TO_FP2(op, nels, stp, ttp, sfifprf) \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ { \ ppc_vsr_t t =3D { }; \ int i; \ \ - helper_reset_fpstatus(env); \ + HELPER(reset_fpstatus)(env); \ \ for (i =3D 0; i < nels; i++) { \ t.VsrW(2 * i) =3D stp##_to_##ttp(xb->VsrD(i), &env->fp_status); \ @@ -2587,7 +2587,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc= _vsr_t *xb) \ t.VsrW(2 * i) =3D ttp##_snan_to_qnan(t.VsrW(2 * i)); \ } \ if (sfifprf) { \ - helper_compute_fprf_##ttp(env, t.VsrW(2 * i)); \ + HELPER(compute_fprf_##ttp)(env, t.VsrW(2 * i)); \ } \ t.VsrW(2 * i + 1) =3D t.VsrW(2 * i); \ } \ @@ -2610,13 +2610,13 @@ VSX_CVT_FP_TO_FP2(xscvdpsp, 1, float64, float32, 1) * sfprf - set FPRF */ #define VSX_CVT_FP_TO_FP_VECTOR(op, nels, stp, ttp, sfld, tfld, sfprf) \ -void helper_##op(CPUPPCState *env, uint32_t opcode, \ +void HELPER(op)(CPUPPCState *env, uint32_t opcode, \ ppc_vsr_t *xt, ppc_vsr_t *xb) \ { \ ppc_vsr_t t =3D *xt; \ int i; \ \ - helper_reset_fpstatus(env); \ + HELPER(reset_fpstatus)(env); \ \ for (i =3D 0; i < nels; i++) { \ t.tfld =3D stp##_to_##ttp(xb->sfld, &env->fp_status); \ @@ -2626,7 +2626,7 @@ void helper_##op(CPUPPCState *env, uint32_t opcode, = \ t.tfld =3D ttp##_snan_to_qnan(t.tfld); \ } \ if (sfprf) { \ - helper_compute_fprf_##ttp(env, t.tfld); \ + HELPER(compute_fprf_##ttp)(env, t.tfld); \ } \ } \ \ @@ -2648,12 +2648,12 @@ VSX_CVT_FP_TO_FP_VECTOR(xscvdpqp, 1, float64, float= 128, VsrD(0), f128, 1) * sfifprf - set FI and FPRF */ #define VSX_CVT_FP_TO_FP_HP(op, nels, stp, ttp, sfld, tfld, sfifprf) \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ { \ ppc_vsr_t t =3D { }; \ int i; \ \ - helper_reset_fpstatus(env); \ + HELPER(reset_fpstatus)(env); \ \ for (i =3D 0; i < nels; i++) { \ t.tfld =3D stp##_to_##ttp(xb->sfld, 1, &env->fp_status); \ @@ -2663,7 +2663,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc= _vsr_t *xb) \ t.tfld =3D ttp##_snan_to_qnan(t.tfld); \ } \ if (sfifprf) { \ - helper_compute_fprf_##ttp(env, t.tfld); \ + HELPER(compute_fprf_##ttp)(env, t.tfld); \ } \ } \ \ @@ -2676,12 +2676,12 @@ VSX_CVT_FP_TO_FP_HP(xscvhpdp, 1, float16, float64, = VsrH(3), VsrD(0), 1) VSX_CVT_FP_TO_FP_HP(xvcvsphp, 4, float32, float16, VsrW(i), VsrH(2 * i + = 1), 0) VSX_CVT_FP_TO_FP_HP(xvcvhpsp, 4, float16, float32, VsrH(2 * i + 1), VsrW(i= ), 0) =20 -void helper_XVCVSPBF16(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) +void HELPER(XVCVSPBF16)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) { ppc_vsr_t t =3D { }; int i, status; =20 - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); =20 for (i =3D 0; i < 4; i++) { t.VsrH(2 * i + 1) =3D float32_to_bfloat16(xb->VsrW(i), &env->fp_st= atus); @@ -2696,13 +2696,13 @@ void helper_XVCVSPBF16(CPUPPCState *env, ppc_vsr_t = *xt, ppc_vsr_t *xb) do_float_check_status(env, false, GETPC()); } =20 -void helper_XSCVQPDP(CPUPPCState *env, uint32_t ro, ppc_vsr_t *xt, +void HELPER(XSCVQPDP)(CPUPPCState *env, uint32_t ro, ppc_vsr_t *xt, ppc_vsr_t *xb) { ppc_vsr_t t =3D { }; float_status tstat; =20 - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); =20 tstat =3D env->fp_status; if (ro !=3D 0) { @@ -2715,17 +2715,17 @@ void helper_XSCVQPDP(CPUPPCState *env, uint32_t ro,= ppc_vsr_t *xt, float_invalid_op_vxsnan(env, GETPC()); t.VsrD(0) =3D float64_snan_to_qnan(t.VsrD(0)); } - helper_compute_fprf_float64(env, t.VsrD(0)); + HELPER(compute_fprf_float64)(env, t.VsrD(0)); =20 *xt =3D t; do_float_check_status(env, true, GETPC()); } =20 -uint64_t helper_xscvdpspn(CPUPPCState *env, uint64_t xb) +uint64_t HELPER(xscvdpspn)(CPUPPCState *env, uint64_t xb) { uint64_t result, sign, exp, frac; =20 - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); float_status tstat =3D env->fp_status; set_float_exception_flags(0, &tstat); =20 @@ -2762,9 +2762,9 @@ uint64_t helper_xscvdpspn(CPUPPCState *env, uint64_t = xb) return (result << 32) | result; } =20 -uint64_t helper_XSCVSPDPN(uint64_t xb) +uint64_t HELPER(XSCVSPDPN)(uint64_t xb) { - return helper_todouble(xb >> 32); + return HELPER(todouble)(xb >> 32); } =20 /* @@ -2779,14 +2779,14 @@ uint64_t helper_XSCVSPDPN(uint64_t xb) * rnan - resulting NaN */ #define VSX_CVT_FP_TO_INT(op, nels, stp, ttp, sfld, tfld, sfi, rnan) = \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) = \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) = \ { = \ int all_flags =3D 0; = \ ppc_vsr_t t =3D { }; = \ int i, flags; = \ = \ for (i =3D 0; i < nels; i++) { = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ t.tfld =3D stp##_to_##ttp##_round_to_zero(xb->sfld, &env->fp_statu= s); \ flags =3D env->fp_status.float_exception_flags; = \ all_flags |=3D flags; = \ @@ -2816,12 +2816,12 @@ VSX_CVT_FP_TO_INT(xvcvspuxds, 2, float32, uint64, V= srW(2 * i), VsrD(i), \ VSX_CVT_FP_TO_INT(xvcvspuxws, 4, float32, uint32, VsrW(i), VsrW(i), false,= 0U) =20 #define VSX_CVT_FP_TO_INT128(op, tp, rnan) = \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) = \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) = \ { = \ ppc_vsr_t t; = \ int flags; = \ = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ t.s128 =3D float128_to_##tp##_round_to_zero(xb->f128, &env->fp_status)= ; \ flags =3D get_float_exception_flags(&env->fp_status); = \ if (unlikely(flags & float_flag_invalid)) { = \ @@ -2846,14 +2846,14 @@ VSX_CVT_FP_TO_INT128(XSCVQPSQZ, int128, 0x800000000= 0000000ULL); * is required by this version of the architecture. */ #define VSX_CVT_FP_TO_INT2(op, nels, stp, ttp, sfi, rnan) = \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) = \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) = \ { = \ int all_flags =3D 0; = \ ppc_vsr_t t =3D { }; = \ int i, flags; = \ = \ for (i =3D 0; i < nels; i++) { = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ t.VsrW(2 * i) =3D stp##_to_##ttp##_round_to_zero(xb->VsrD(i), = \ &env->fp_status); = \ flags =3D env->fp_status.float_exception_flags; = \ @@ -2885,13 +2885,13 @@ VSX_CVT_FP_TO_INT2(xvcvdpuxws, 2, float64, uint32, = false, 0U) * rnan - resulting NaN */ #define VSX_CVT_FP_TO_INT_VECTOR(op, stp, ttp, sfld, tfld, rnan) = \ -void helper_##op(CPUPPCState *env, uint32_t opcode, = \ +void HELPER(op)(CPUPPCState *env, uint32_t opcode, = \ ppc_vsr_t *xt, ppc_vsr_t *xb) = \ { = \ ppc_vsr_t t =3D { }; = \ int flags; = \ = \ - helper_reset_fpstatus(env); = \ + HELPER(reset_fpstatus)(env); = \ = \ t.tfld =3D stp##_to_##ttp##_round_to_zero(xb->sfld, &env->fp_status); = \ flags =3D get_float_exception_flags(&env->fp_status); = \ @@ -2922,12 +2922,12 @@ VSX_CVT_FP_TO_INT_VECTOR(xscvqpuwz, float128, uint3= 2, f128, VsrD(0), 0x0ULL) * sfifprf - set FI and FPRF */ #define VSX_CVT_INT_TO_FP(op, nels, stp, ttp, sfld, tfld, sfifprf, r2sp)\ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ { \ ppc_vsr_t t =3D { }; \ int i; \ \ - helper_reset_fpstatus(env); \ + HELPER(reset_fpstatus)(env); \ \ for (i =3D 0; i < nels; i++) { \ t.tfld =3D stp##_to_##ttp(xb->sfld, &env->fp_status); \ @@ -2935,7 +2935,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc= _vsr_t *xb) \ t.tfld =3D do_frsp(env, t.tfld, GETPC()); \ } \ if (sfifprf) { \ - helper_compute_fprf_float64(env, t.tfld); \ + HELPER(compute_fprf_float64)(env, t.tfld); \ } \ } \ \ @@ -2955,7 +2955,7 @@ VSX_CVT_INT_TO_FP(xvcvsxwsp, 4, int32, float32, VsrW(= i), VsrW(i), 0, 0) VSX_CVT_INT_TO_FP(xvcvuxwsp, 4, uint32, float32, VsrW(i), VsrW(i), 0, 0) =20 #define VSX_CVT_INT_TO_FP2(op, stp, ttp) \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ { \ ppc_vsr_t t =3D { }; \ int i; \ @@ -2973,11 +2973,11 @@ VSX_CVT_INT_TO_FP2(xvcvsxdsp, int64, float32) VSX_CVT_INT_TO_FP2(xvcvuxdsp, uint64, float32) =20 #define VSX_CVT_INT128_TO_FP(op, tp) \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb)\ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ { \ - helper_reset_fpstatus(env); \ + HELPER(reset_fpstatus)(env); \ xt->f128 =3D tp##_to_float128(xb->s128, &env->fp_status); \ - helper_compute_fprf_float128(env, xt->f128); \ + HELPER(compute_fprf_float128)(env, xt->f128); \ do_float_check_status(env, true, GETPC()); \ } =20 @@ -2993,14 +2993,14 @@ VSX_CVT_INT128_TO_FP(XSCVSQQP, int128); * tfld - target vsr_t field */ #define VSX_CVT_INT_TO_FP_VECTOR(op, stp, ttp, sfld, tfld) \ -void helper_##op(CPUPPCState *env, uint32_t opcode, \ +void HELPER(op)(CPUPPCState *env, uint32_t opcode, \ ppc_vsr_t *xt, ppc_vsr_t *xb) \ { \ ppc_vsr_t t =3D *xt; \ \ - helper_reset_fpstatus(env); \ + HELPER(reset_fpstatus)(env); \ t.tfld =3D stp##_to_##ttp(xb->sfld, &env->fp_status); \ - helper_compute_fprf_##ttp(env, t.tfld); \ + HELPER(compute_fprf_##ttp)(env, t.tfld); \ \ *xt =3D t; \ do_float_check_status(env, true, GETPC()); \ @@ -3026,13 +3026,13 @@ VSX_CVT_INT_TO_FP_VECTOR(xscvudqp, uint64, float128= , VsrD(0), f128) * sfifprf - set FI and FPRF */ #define VSX_ROUND(op, nels, tp, fld, rmode, sfifprf) \ -void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ +void HELPER(op)(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) \ { \ ppc_vsr_t t =3D { }; \ int i; \ FloatRoundMode curr_rounding_mode; \ \ - helper_reset_fpstatus(env); \ + HELPER(reset_fpstatus)(env); \ \ if (rmode !=3D FLOAT_ROUND_CURRENT) { \ curr_rounding_mode =3D get_float_rounding_mode(&env->fp_status); \ @@ -3048,7 +3048,7 @@ void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, ppc= _vsr_t *xb) \ t.fld =3D tp##_round_to_int(xb->fld, &env->fp_status); \ } \ if (sfifprf) { \ - helper_compute_fprf_float64(env, t.fld); \ + HELPER(compute_fprf_float64)(env, t.fld); \ } \ } \ \ @@ -3084,18 +3084,18 @@ VSX_ROUND(xvrspim, 4, float32, VsrW(i), float_round= _down, 0) VSX_ROUND(xvrspip, 4, float32, VsrW(i), float_round_up, 0) VSX_ROUND(xvrspiz, 4, float32, VsrW(i), float_round_to_zero, 0) =20 -uint64_t helper_xsrsp(CPUPPCState *env, uint64_t xb) +uint64_t HELPER(xsrsp)(CPUPPCState *env, uint64_t xb) { - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); =20 uint64_t xt =3D do_frsp(env, xb, GETPC()); =20 - helper_compute_fprf_float64(env, xt); + HELPER(compute_fprf_float64)(env, xt); do_float_check_status(env, true, GETPC()); return xt; } =20 -void helper_XVXSIGSP(ppc_vsr_t *xt, ppc_vsr_t *xb) +void HELPER(XVXSIGSP)(ppc_vsr_t *xt, ppc_vsr_t *xb) { ppc_vsr_t t =3D { }; uint32_t exp, i, fraction; @@ -3134,7 +3134,7 @@ VSX_TSTDC(float64) VSX_TSTDC(float128) #undef VSX_TSTDC =20 -void helper_XVTSTDCDP(ppc_vsr_t *t, ppc_vsr_t *b, uint64_t dcmx, uint32_t = v) +void HELPER(XVTSTDCDP)(ppc_vsr_t *t, ppc_vsr_t *b, uint64_t dcmx, uint32_t= v) { int i; for (i =3D 0; i < 2; i++) { @@ -3142,7 +3142,7 @@ void helper_XVTSTDCDP(ppc_vsr_t *t, ppc_vsr_t *b, uin= t64_t dcmx, uint32_t v) } } =20 -void helper_XVTSTDCSP(ppc_vsr_t *t, ppc_vsr_t *b, uint64_t dcmx, uint32_t = v) +void HELPER(XVTSTDCSP)(ppc_vsr_t *t, ppc_vsr_t *b, uint64_t dcmx, uint32_t= v) { int i; for (i =3D 0; i < 4; i++) { @@ -3152,7 +3152,7 @@ void helper_XVTSTDCSP(ppc_vsr_t *t, ppc_vsr_t *b, uin= t64_t dcmx, uint32_t v) =20 static bool not_SP_value(float64 val) { - return val !=3D helper_todouble(helper_tosingle(val)); + return val !=3D HELPER(todouble)(HELPER(tosingle)(val)); } =20 /* @@ -3162,7 +3162,7 @@ static bool not_SP_value(float64 val) * TP - type (float64 or float128) */ #define VSX_XS_TSTDC(NAME, FLD, TP) = \ - void helper_##NAME(CPUPPCState *env, uint32_t bf, = \ + void HELPER(NAME)(CPUPPCState *env, uint32_t bf, = \ uint32_t dcmx, ppc_vsr_t *b) = \ { = \ uint32_t cc, match, sign =3D TP##_is_neg(b->FLD); = \ @@ -3177,7 +3177,7 @@ VSX_XS_TSTDC(XSTSTDCDP, VsrD(0), float64) VSX_XS_TSTDC(XSTSTDCQP, f128, float128) #undef VSX_XS_TSTDC =20 -void helper_XSTSTDCSP(CPUPPCState *env, uint32_t bf, +void HELPER(XSTSTDCSP)(CPUPPCState *env, uint32_t bf, uint32_t dcmx, ppc_vsr_t *b) { uint32_t cc, match, sign =3D float64_is_neg(b->VsrD(0)); @@ -3190,7 +3190,7 @@ void helper_XSTSTDCSP(CPUPPCState *env, uint32_t bf, env->crf[bf] =3D cc; } =20 -void helper_xsrqpi(CPUPPCState *env, uint32_t opcode, +void HELPER(xsrqpi)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xt, ppc_vsr_t *xb) { ppc_vsr_t t =3D { }; @@ -3200,7 +3200,7 @@ void helper_xsrqpi(CPUPPCState *env, uint32_t opcode, uint8_t rmode =3D 0; float_status tstat; =20 - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); =20 if (r =3D=3D 0 && rmc =3D=3D 0) { rmode =3D float_round_ties_away; @@ -3239,12 +3239,12 @@ void helper_xsrqpi(CPUPPCState *env, uint32_t opcod= e, env->fp_status.float_exception_flags &=3D ~float_flag_inexact; } =20 - helper_compute_fprf_float128(env, t.f128); + HELPER(compute_fprf_float128)(env, t.f128); do_float_check_status(env, true, GETPC()); *xt =3D t; } =20 -void helper_xsrqpxp(CPUPPCState *env, uint32_t opcode, +void HELPER(xsrqpxp)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xt, ppc_vsr_t *xb) { ppc_vsr_t t =3D { }; @@ -3254,7 +3254,7 @@ void helper_xsrqpxp(CPUPPCState *env, uint32_t opcode, floatx80 round_res; float_status tstat; =20 - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); =20 if (r =3D=3D 0 && rmc =3D=3D 0) { rmode =3D float_round_ties_away; @@ -3291,18 +3291,18 @@ void helper_xsrqpxp(CPUPPCState *env, uint32_t opco= de, t.f128 =3D float128_snan_to_qnan(t.f128); } =20 - helper_compute_fprf_float128(env, t.f128); + HELPER(compute_fprf_float128)(env, t.f128); *xt =3D t; do_float_check_status(env, true, GETPC()); } =20 -void helper_xssqrtqp(CPUPPCState *env, uint32_t opcode, +void HELPER(xssqrtqp)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xt, ppc_vsr_t *xb) { ppc_vsr_t t =3D { }; float_status tstat; =20 - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); =20 tstat =3D env->fp_status; if (unlikely(Rc(opcode) !=3D 0)) { @@ -3317,18 +3317,18 @@ void helper_xssqrtqp(CPUPPCState *env, uint32_t opc= ode, float_invalid_op_sqrt(env, tstat.float_exception_flags, 1, GETPC()= ); } =20 - helper_compute_fprf_float128(env, t.f128); + HELPER(compute_fprf_float128)(env, t.f128); *xt =3D t; do_float_check_status(env, true, GETPC()); } =20 -void helper_xssubqp(CPUPPCState *env, uint32_t opcode, +void HELPER(xssubqp)(CPUPPCState *env, uint32_t opcode, ppc_vsr_t *xt, ppc_vsr_t *xa, ppc_vsr_t *xb) { ppc_vsr_t t =3D *xt; float_status tstat; =20 - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); =20 tstat =3D env->fp_status; if (unlikely(Rc(opcode) !=3D 0)) { @@ -3343,7 +3343,7 @@ void helper_xssubqp(CPUPPCState *env, uint32_t opcode, float_invalid_op_addsub(env, tstat.float_exception_flags, 1, GETPC= ()); } =20 - helper_compute_fprf_float128(env, t.f128); + HELPER(compute_fprf_float128)(env, t.f128); *xt =3D t; do_float_check_status(env, true, GETPC()); } @@ -3491,7 +3491,7 @@ static void vsxger(CPUPPCState *env, ppc_vsr_t *a, pp= c_vsr_t *b, float_status *excp_ptr =3D &env->fp_status; op_flags =3D (neg_acc ^ neg_mul) ? float_muladd_negate_c : 0; op_flags |=3D (neg_mul) ? float_muladd_negate_result : 0; - helper_reset_fpstatus(env); + HELPER(reset_fpstatus)(env); for (i =3D 0, xmsk_bit =3D 1 << 3; i < 4; i++, xmsk_bit >>=3D 1) { for (j =3D 0, ymsk_bit =3D 1 << 3; j < 4; j++, ymsk_bit >>=3D 1) { if ((xmsk_bit & xmsk) && (ymsk_bit & ymsk)) { @@ -3509,77 +3509,77 @@ static void vsxger(CPUPPCState *env, ppc_vsr_t *a, = ppc_vsr_t *b, } =20 QEMU_FLATTEN -void helper_XVBF16GER2(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVBF16GER2)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger16(env, a, b, at, mask, false, false, false, extract_bf16); } =20 QEMU_FLATTEN -void helper_XVBF16GER2PP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVBF16GER2PP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger16(env, a, b, at, mask, true, false, false, extract_bf16); } =20 QEMU_FLATTEN -void helper_XVBF16GER2PN(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVBF16GER2PN)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger16(env, a, b, at, mask, true, false, true, extract_bf16); } =20 QEMU_FLATTEN -void helper_XVBF16GER2NP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVBF16GER2NP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger16(env, a, b, at, mask, true, true, false, extract_bf16); } =20 QEMU_FLATTEN -void helper_XVBF16GER2NN(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVBF16GER2NN)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger16(env, a, b, at, mask, true, true, true, extract_bf16); } =20 QEMU_FLATTEN -void helper_XVF16GER2(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF16GER2)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger16(env, a, b, at, mask, false, false, false, extract_hf16); } =20 QEMU_FLATTEN -void helper_XVF16GER2PP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF16GER2PP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger16(env, a, b, at, mask, true, false, false, extract_hf16); } =20 QEMU_FLATTEN -void helper_XVF16GER2PN(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF16GER2PN)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger16(env, a, b, at, mask, true, false, true, extract_hf16); } =20 QEMU_FLATTEN -void helper_XVF16GER2NP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF16GER2NP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger16(env, a, b, at, mask, true, true, false, extract_hf16); } =20 QEMU_FLATTEN -void helper_XVF16GER2NN(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF16GER2NN)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger16(env, a, b, at, mask, true, true, true, extract_hf16); } =20 QEMU_FLATTEN -void helper_XVF32GER(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF32GER)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger(env, a, b, at, mask, false, false, false, vsxger_mul32, @@ -3587,7 +3587,7 @@ void helper_XVF32GER(CPUPPCState *env, ppc_vsr_t *a, = ppc_vsr_t *b, } =20 QEMU_FLATTEN -void helper_XVF32GERPP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF32GERPP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger(env, a, b, at, mask, true, false, false, vsxger_mul32, @@ -3595,7 +3595,7 @@ void helper_XVF32GERPP(CPUPPCState *env, ppc_vsr_t *a= , ppc_vsr_t *b, } =20 QEMU_FLATTEN -void helper_XVF32GERPN(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF32GERPN)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger(env, a, b, at, mask, true, false, true, vsxger_mul32, @@ -3603,7 +3603,7 @@ void helper_XVF32GERPN(CPUPPCState *env, ppc_vsr_t *a= , ppc_vsr_t *b, } =20 QEMU_FLATTEN -void helper_XVF32GERNP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF32GERNP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger(env, a, b, at, mask, true, true, false, vsxger_mul32, @@ -3611,7 +3611,7 @@ void helper_XVF32GERNP(CPUPPCState *env, ppc_vsr_t *a= , ppc_vsr_t *b, } =20 QEMU_FLATTEN -void helper_XVF32GERNN(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF32GERNN)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger(env, a, b, at, mask, true, true, true, vsxger_mul32, @@ -3619,7 +3619,7 @@ void helper_XVF32GERNN(CPUPPCState *env, ppc_vsr_t *a= , ppc_vsr_t *b, } =20 QEMU_FLATTEN -void helper_XVF64GER(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF64GER)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger(env, a, b, at, mask, false, false, false, vsxger_mul64, @@ -3627,7 +3627,7 @@ void helper_XVF64GER(CPUPPCState *env, ppc_vsr_t *a, = ppc_vsr_t *b, } =20 QEMU_FLATTEN -void helper_XVF64GERPP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF64GERPP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger(env, a, b, at, mask, true, false, false, vsxger_mul64, @@ -3635,7 +3635,7 @@ void helper_XVF64GERPP(CPUPPCState *env, ppc_vsr_t *a= , ppc_vsr_t *b, } =20 QEMU_FLATTEN -void helper_XVF64GERPN(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF64GERPN)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger(env, a, b, at, mask, true, false, true, vsxger_mul64, @@ -3643,7 +3643,7 @@ void helper_XVF64GERPN(CPUPPCState *env, ppc_vsr_t *a= , ppc_vsr_t *b, } =20 QEMU_FLATTEN -void helper_XVF64GERNP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF64GERNP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger(env, a, b, at, mask, true, true, false, vsxger_mul64, @@ -3651,7 +3651,7 @@ void helper_XVF64GERNP(CPUPPCState *env, ppc_vsr_t *a= , ppc_vsr_t *b, } =20 QEMU_FLATTEN -void helper_XVF64GERNN(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVF64GERNN)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { vsxger(env, a, b, at, mask, true, true, true, vsxger_mul64, diff --git a/target/ppc/int_helper.c b/target/ppc/int_helper.c index 86346f5b9ae..7d01be9d5fb 100644 --- a/target/ppc/int_helper.c +++ b/target/ppc/int_helper.c @@ -44,7 +44,7 @@ static inline void helper_update_ov_legacy(CPUPPCState *e= nv, int ov) } } =20 -target_ulong helper_DIVWEU(CPUPPCState *env, target_ulong ra, target_ulong= rb, +target_ulong HELPER(DIVWEU)(CPUPPCState *env, target_ulong ra, target_ulon= g rb, uint32_t oe) { uint64_t rt =3D 0; @@ -71,7 +71,7 @@ target_ulong helper_DIVWEU(CPUPPCState *env, target_ulong= ra, target_ulong rb, return (target_ulong)rt; } =20 -target_ulong helper_DIVWE(CPUPPCState *env, target_ulong ra, target_ulong = rb, +target_ulong HELPER(DIVWE)(CPUPPCState *env, target_ulong ra, target_ulong= rb, uint32_t oe) { int64_t rt =3D 0; @@ -101,7 +101,7 @@ target_ulong helper_DIVWE(CPUPPCState *env, target_ulon= g ra, target_ulong rb, =20 #if defined(TARGET_PPC64) =20 -uint64_t helper_DIVDEU(CPUPPCState *env, uint64_t ra, uint64_t rb, uint32_= t oe) +uint64_t HELPER(DIVDEU)(CPUPPCState *env, uint64_t ra, uint64_t rb, uint32= _t oe) { uint64_t rt =3D 0; int overflow =3D 0; @@ -120,7 +120,8 @@ uint64_t helper_DIVDEU(CPUPPCState *env, uint64_t ra, u= int64_t rb, uint32_t oe) return rt; } =20 -uint64_t helper_DIVDE(CPUPPCState *env, uint64_t rau, uint64_t rbu, uint32= _t oe) +uint64_t HELPER(DIVDE)(CPUPPCState *env, uint64_t rau, uint64_t rbu, + uint32_t oe) { uint64_t rt =3D 0; int64_t ra =3D (int64_t)rau; @@ -159,7 +160,7 @@ uint64_t helper_DIVDE(CPUPPCState *env, uint64_t rau, u= int64_t rbu, uint32_t oe) /* When you XOR the pattern and there is a match, that byte will be zero */ #define hasvalue(x, n) (haszero((x) ^ pattern(n))) =20 -uint32_t helper_CMPEQB(target_ulong ra, target_ulong rb) +uint32_t HELPER(CMPEQB)(target_ulong ra, target_ulong rb) { return hasvalue(rb, ra) ? CRF_GT : 0; } @@ -171,7 +172,7 @@ uint32_t helper_CMPEQB(target_ulong ra, target_ulong rb) /* * Return a random number. */ -uint64_t helper_DARN32(void) +uint64_t HELPER(DARN32)(void) { Error *err =3D NULL; uint32_t ret; @@ -186,7 +187,7 @@ uint64_t helper_DARN32(void) return ret; } =20 -uint64_t helper_DARN64(void) +uint64_t HELPER(DARN64)(void) { Error *err =3D NULL; uint64_t ret; @@ -201,7 +202,7 @@ uint64_t helper_DARN64(void) return ret; } =20 -uint64_t helper_BPERMD(uint64_t rs, uint64_t rb) +uint64_t HELPER(BPERMD)(uint64_t rs, uint64_t rb) { int i; uint64_t ra =3D 0; @@ -219,7 +220,7 @@ uint64_t helper_BPERMD(uint64_t rs, uint64_t rb) =20 #endif =20 -target_ulong helper_CMPB(target_ulong rs, target_ulong rb) +target_ulong HELPER(CMPB)(target_ulong rs, target_ulong rb) { target_ulong mask =3D 0xff; target_ulong ra =3D 0; @@ -235,7 +236,7 @@ target_ulong helper_CMPB(target_ulong rs, target_ulong = rb) } =20 /* shift right arithmetic helper */ -target_ulong helper_SRAW(CPUPPCState *env, target_ulong value, +target_ulong HELPER(SRAW)(CPUPPCState *env, target_ulong value, target_ulong shift) { int32_t ret; @@ -261,7 +262,7 @@ target_ulong helper_SRAW(CPUPPCState *env, target_ulong= value, } =20 #if defined(TARGET_PPC64) -target_ulong helper_SRAD(CPUPPCState *env, target_ulong value, +target_ulong HELPER(SRAD)(CPUPPCState *env, target_ulong value, target_ulong shift) { int64_t ret; @@ -288,7 +289,7 @@ target_ulong helper_SRAD(CPUPPCState *env, target_ulong= value, #endif =20 #if defined(TARGET_PPC64) -target_ulong helper_POPCNTB(target_ulong val) +target_ulong HELPER(POPCNTB)(target_ulong val) { /* Note that we don't fold past bytes */ val =3D (val & 0x5555555555555555ULL) + ((val >> 1) & @@ -300,7 +301,7 @@ target_ulong helper_POPCNTB(target_ulong val) return val; } =20 -target_ulong helper_POPCNTW(target_ulong val) +target_ulong HELPER(POPCNTW)(target_ulong val) { /* Note that we don't fold past words. */ val =3D (val & 0x5555555555555555ULL) + ((val >> 1) & @@ -316,7 +317,7 @@ target_ulong helper_POPCNTW(target_ulong val) return val; } #else -target_ulong helper_POPCNTB(target_ulong val) +target_ulong HELPER(POPCNTB)(target_ulong val) { /* Note that we don't fold past bytes */ val =3D (val & 0x55555555) + ((val >> 1) & 0x55555555); @@ -326,7 +327,7 @@ target_ulong helper_POPCNTB(target_ulong val) } #endif =20 -uint64_t helper_CFUGED(uint64_t src, uint64_t mask) +uint64_t HELPER(CFUGED)(uint64_t src, uint64_t mask) { /* * Instead of processing the mask bit-by-bit from the most significant= to @@ -388,7 +389,7 @@ uint64_t helper_CFUGED(uint64_t src, uint64_t mask) return left | (right >> n); } =20 -uint64_t helper_PDEPD(uint64_t src, uint64_t mask) +uint64_t HELPER(PDEPD)(uint64_t src, uint64_t mask) { int i, o; uint64_t result =3D 0; @@ -406,7 +407,7 @@ uint64_t helper_PDEPD(uint64_t src, uint64_t mask) return result; } =20 -uint64_t helper_PEXTD(uint64_t src, uint64_t mask) +uint64_t HELPER(PEXTD)(uint64_t src, uint64_t mask) { int i, o; uint64_t result =3D 0; @@ -477,12 +478,12 @@ SATCVT(sd, uw, int64_t, uint32_t, 0, UINT32_MAX) #undef SATCVT #undef SATCVTU =20 -void helper_mtvscr(CPUPPCState *env, uint32_t vscr) +void HELPER(mtvscr)(CPUPPCState *env, uint32_t vscr) { ppc_store_vscr(env, vscr); } =20 -uint32_t helper_mfvscr(CPUPPCState *env) +uint32_t HELPER(mfvscr)(CPUPPCState *env) { return ppc_get_vscr(env); } @@ -494,7 +495,7 @@ static inline void set_vscr_sat(CPUPPCState *env) } =20 /* vprtybq */ -void helper_VPRTYBQ(ppc_avr_t *r, ppc_avr_t *b, uint32_t v) +void HELPER(VPRTYBQ)(ppc_avr_t *r, ppc_avr_t *b, uint32_t v) { uint64_t res =3D b->u64[0] ^ b->u64[1]; res ^=3D res >> 32; @@ -505,7 +506,7 @@ void helper_VPRTYBQ(ppc_avr_t *r, ppc_avr_t *b, uint32_= t v) } =20 #define VARITHFP(suffix, func) \ - void helper_v##suffix(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, \ + void HELPER(v##suffix)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, \ ppc_avr_t *b) \ { \ int i; \ @@ -521,7 +522,7 @@ VARITHFP(maxfp, float32_max) #undef VARITHFP =20 #define VARITHFPFMA(suffix, type) \ - void helper_v##suffix(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, \ + void HELPER(v##suffix)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, \ ppc_avr_t *b, ppc_avr_t *c) \ { \ int i; \ @@ -541,7 +542,7 @@ VARITHFPFMA(nmsubfp, float_muladd_negate_result | float= _muladd_negate_c); } =20 #define VARITHSAT_DO(name, op, optype, cvt, element) \ - void helper_V##name(ppc_avr_t *r, ppc_avr_t *vscr_sat, \ + void HELPER(V##name)(ppc_avr_t *r, ppc_avr_t *vscr_sat, \ ppc_avr_t *a, ppc_avr_t *b, uint32_t desc) \ { \ int sat =3D 0; \ @@ -572,7 +573,7 @@ VARITHSAT_UNSIGNED(W, u32, uint64_t, cvtsduw) #undef VARITHSAT_UNSIGNED =20 #define VAVG(name, element, etype) = \ - void helper_##name(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t = v)\ + void HELPER(name)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t v= ) \ { = \ int i; = \ = \ @@ -591,7 +592,7 @@ VAVG(VAVGUW, u32, uint64_t) #undef VAVG =20 #define VABSDU(name, element) \ -void helper_##name(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t v)\ +void HELPER(name)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t v) \ { \ int i; \ \ @@ -613,7 +614,7 @@ VABSDU(VABSDUW, u32) #undef VABSDU =20 #define VCF(suffix, cvt, element) \ - void helper_vcf##suffix(CPUPPCState *env, ppc_avr_t *r, \ + void HELPER(vcf##suffix)(CPUPPCState *env, ppc_avr_t *r, \ ppc_avr_t *b, uint32_t uim) \ { \ int i; \ @@ -628,7 +629,7 @@ VCF(sx, int32_to_float32, s32) #undef VCF =20 #define VCMPNEZ(NAME, ELEM) \ -void helper_##NAME(ppc_vsr_t *t, ppc_vsr_t *a, ppc_vsr_t *b, uint32_t desc= ) \ +void HELPER(NAME)(ppc_vsr_t *t, ppc_vsr_t *a, ppc_vsr_t *b, uint32_t desc)= \ { = \ for (int i =3D 0; i < ARRAY_SIZE(t->ELEM); i++) { = \ t->ELEM[i] =3D ((a->ELEM[i] =3D=3D 0) || (b->ELEM[i] =3D=3D 0) || = \ @@ -641,7 +642,7 @@ VCMPNEZ(VCMPNEZW, u32) #undef VCMPNEZ =20 #define VCMPFP_DO(suffix, compare, order, record) \ - void helper_vcmp##suffix(CPUPPCState *env, ppc_avr_t *r, \ + void HELPER(vcmp##suffix)(CPUPPCState *env, ppc_avr_t *r, \ ppc_avr_t *a, ppc_avr_t *b) \ { \ uint32_t ones =3D (uint32_t)-1; \ @@ -706,19 +707,19 @@ static inline void vcmpbfp_internal(CPUPPCState *env,= ppc_avr_t *r, } } =20 -void helper_vcmpbfp(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr_= t *b) +void HELPER(vcmpbfp)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr= _t *b) { vcmpbfp_internal(env, r, a, b, 0); } =20 -void helper_vcmpbfp_dot(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, +void HELPER(vcmpbfp_dot)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { vcmpbfp_internal(env, r, a, b, 1); } =20 #define VCT(suffix, satcvt, element) \ - void helper_vct##suffix(CPUPPCState *env, ppc_avr_t *r, \ + void HELPER(vct##suffix)(CPUPPCState *env, ppc_avr_t *r, \ ppc_avr_t *b, uint32_t uim) \ { \ int i; \ @@ -815,69 +816,69 @@ static void xviger(CPUPPCState *env, ppc_vsr_t *a, pp= c_vsr_t *b, ppc_acc_t *at, } =20 QEMU_FLATTEN -void helper_XVI4GER8(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVI4GER8)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { xviger(env, a, b, at, mask, false, false, ger_rank8); } =20 QEMU_FLATTEN -void helper_XVI4GER8PP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVI4GER8PP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { xviger(env, a, b, at, mask, false, true, ger_rank8); } =20 QEMU_FLATTEN -void helper_XVI8GER4(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVI8GER4)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { xviger(env, a, b, at, mask, false, false, ger_rank4); } =20 QEMU_FLATTEN -void helper_XVI8GER4PP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVI8GER4PP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { xviger(env, a, b, at, mask, false, true, ger_rank4); } =20 QEMU_FLATTEN -void helper_XVI8GER4SPP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVI8GER4SPP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { xviger(env, a, b, at, mask, true, true, ger_rank4); } =20 QEMU_FLATTEN -void helper_XVI16GER2(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVI16GER2)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { xviger(env, a, b, at, mask, false, false, ger_rank2); } =20 QEMU_FLATTEN -void helper_XVI16GER2S(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVI16GER2S)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { xviger(env, a, b, at, mask, true, false, ger_rank2); } =20 QEMU_FLATTEN -void helper_XVI16GER2PP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVI16GER2PP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { xviger(env, a, b, at, mask, false, true, ger_rank2); } =20 QEMU_FLATTEN -void helper_XVI16GER2SPP(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, +void HELPER(XVI16GER2SPP)(CPUPPCState *env, ppc_vsr_t *a, ppc_vsr_t *b, ppc_acc_t *at, uint32_t mask) { xviger(env, a, b, at, mask, true, true, ger_rank2); } =20 -target_ulong helper_vclzlsbb(ppc_avr_t *r) +target_ulong HELPER(vclzlsbb)(ppc_avr_t *r) { target_ulong count =3D 0; int i; @@ -890,7 +891,7 @@ target_ulong helper_vclzlsbb(ppc_avr_t *r) return count; } =20 -target_ulong helper_vctzlsbb(ppc_avr_t *r) +target_ulong HELPER(vctzlsbb)(ppc_avr_t *r) { target_ulong count =3D 0; int i; @@ -903,7 +904,7 @@ target_ulong helper_vctzlsbb(ppc_avr_t *r) return count; } =20 -void helper_VMHADDSHS(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, +void HELPER(VMHADDSHS)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *c) { int sat =3D 0; @@ -921,7 +922,7 @@ void helper_VMHADDSHS(CPUPPCState *env, ppc_avr_t *r, p= pc_avr_t *a, } } =20 -void helper_VMHRADDSHS(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, +void HELPER(VMHRADDSHS)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *c) { int sat =3D 0; @@ -938,7 +939,7 @@ void helper_VMHRADDSHS(CPUPPCState *env, ppc_avr_t *r, = ppc_avr_t *a, } } =20 -void helper_VMLADDUHM(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t = *c, +void HELPER(VMLADDUHM)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t= *c, uint32_t v) { int i; @@ -950,7 +951,7 @@ void helper_VMLADDUHM(ppc_avr_t *r, ppc_avr_t *a, ppc_a= vr_t *b, ppc_avr_t *c, } =20 #define VMRG_DO(name, element, access, ofs) = \ - void helper_V##name(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) = \ + void HELPER(V##name)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) = \ { = \ ppc_avr_t result; = \ int i, half =3D ARRAY_SIZE(r->element) / 2; = \ @@ -971,7 +972,7 @@ VMRG(W, u32, VsrW) #undef VMRG_DO #undef VMRG =20 -void helper_VMSUMMBM(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *= c) +void HELPER(VMSUMMBM)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t = *c) { int32_t prod[16]; int i; @@ -986,7 +987,7 @@ void helper_VMSUMMBM(ppc_avr_t *r, ppc_avr_t *a, ppc_av= r_t *b, ppc_avr_t *c) } } =20 -void helper_VMSUMSHM(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *= c) +void HELPER(VMSUMSHM)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t = *c) { int32_t prod[8]; int i; @@ -1000,7 +1001,7 @@ void helper_VMSUMSHM(ppc_avr_t *r, ppc_avr_t *a, ppc_= avr_t *b, ppc_avr_t *c) } } =20 -void helper_VMSUMSHS(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, +void HELPER(VMSUMSHS)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *c) { int32_t prod[8]; @@ -1022,7 +1023,7 @@ void helper_VMSUMSHS(CPUPPCState *env, ppc_avr_t *r, = ppc_avr_t *a, } } =20 -void helper_VMSUMUBM(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *= c) +void HELPER(VMSUMUBM)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t = *c) { uint16_t prod[16]; int i; @@ -1037,7 +1038,7 @@ void helper_VMSUMUBM(ppc_avr_t *r, ppc_avr_t *a, ppc_= avr_t *b, ppc_avr_t *c) } } =20 -void helper_VMSUMUHM(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *= c) +void HELPER(VMSUMUHM)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t = *c) { uint32_t prod[8]; int i; @@ -1051,7 +1052,7 @@ void helper_VMSUMUHM(ppc_avr_t *r, ppc_avr_t *a, ppc_= avr_t *b, ppc_avr_t *c) } } =20 -void helper_VMSUMUHS(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, +void HELPER(VMSUMUHS)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *c) { uint32_t prod[8]; @@ -1074,7 +1075,7 @@ void helper_VMSUMUHS(CPUPPCState *env, ppc_avr_t *r, = ppc_avr_t *a, } =20 #define VMUL_DO_EVN(name, mul_element, mul_access, prod_access, cast) \ - void helper_V##name(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \ + void HELPER(V##name)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \ { \ int i; \ \ @@ -1085,7 +1086,7 @@ void helper_VMSUMUHS(CPUPPCState *env, ppc_avr_t *r, = ppc_avr_t *a, } =20 #define VMUL_DO_ODD(name, mul_element, mul_access, prod_access, cast) \ - void helper_V##name(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \ + void HELPER(V##name)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \ { \ int i; \ \ @@ -1108,7 +1109,7 @@ VMUL(UW, u32, VsrW, VsrD, uint64_t) #undef VMUL_DO_ODD #undef VMUL =20 -void helper_XXPERMX(ppc_vsr_t *t, ppc_vsr_t *s0, ppc_vsr_t *s1, ppc_vsr_t = *pcv, +void HELPER(XXPERMX)(ppc_vsr_t *t, ppc_vsr_t *s0, ppc_vsr_t *s1, ppc_vsr_t= *pcv, target_ulong uim) { int i, idx; @@ -1128,7 +1129,7 @@ void helper_XXPERMX(ppc_vsr_t *t, ppc_vsr_t *s0, ppc_= vsr_t *s1, ppc_vsr_t *pcv, *t =3D tmp; } =20 -void helper_VDIVSQ(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VDIVSQ)(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) { Int128 neg1 =3D int128_makes64(-1); Int128 int128_min =3D int128_make128(0, INT64_MIN); @@ -1140,7 +1141,7 @@ void helper_VDIVSQ(ppc_avr_t *t, ppc_avr_t *a, ppc_av= r_t *b) } } =20 -void helper_VDIVUQ(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VDIVUQ)(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) { if (int128_nz(b->s128)) { t->s128 =3D int128_divu(a->s128, b->s128); @@ -1149,7 +1150,7 @@ void helper_VDIVUQ(ppc_avr_t *t, ppc_avr_t *a, ppc_av= r_t *b) } } =20 -void helper_VDIVESD(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VDIVESD)(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) { int i; int64_t high; @@ -1166,7 +1167,7 @@ void helper_VDIVESD(ppc_avr_t *t, ppc_avr_t *a, ppc_a= vr_t *b) } } =20 -void helper_VDIVEUD(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VDIVEUD)(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) { int i; uint64_t high, low; @@ -1182,7 +1183,7 @@ void helper_VDIVEUD(ppc_avr_t *t, ppc_avr_t *a, ppc_a= vr_t *b) } } =20 -void helper_VDIVESQ(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VDIVESQ)(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) { Int128 high, low; Int128 int128_min =3D int128_make128(0, INT64_MIN); @@ -1199,7 +1200,7 @@ void helper_VDIVESQ(ppc_avr_t *t, ppc_avr_t *a, ppc_a= vr_t *b) } } =20 -void helper_VDIVEUQ(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VDIVEUQ)(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) { Int128 high, low; =20 @@ -1213,7 +1214,7 @@ void helper_VDIVEUQ(ppc_avr_t *t, ppc_avr_t *a, ppc_a= vr_t *b) } } =20 -void helper_VMODSQ(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VMODSQ)(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) { Int128 neg1 =3D int128_makes64(-1); Int128 int128_min =3D int128_make128(0, INT64_MIN); @@ -1225,7 +1226,7 @@ void helper_VMODSQ(ppc_avr_t *t, ppc_avr_t *a, ppc_av= r_t *b) } } =20 -void helper_VMODUQ(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VMODUQ)(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b) { if (likely(int128_nz(b->s128))) { t->s128 =3D int128_remu(a->s128, b->s128); @@ -1234,7 +1235,7 @@ void helper_VMODUQ(ppc_avr_t *t, ppc_avr_t *a, ppc_av= r_t *b) } } =20 -void helper_VPERM(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *c) +void HELPER(VPERM)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *c) { ppc_avr_t result; int i; @@ -1252,7 +1253,7 @@ void helper_VPERM(ppc_avr_t *r, ppc_avr_t *a, ppc_avr= _t *b, ppc_avr_t *c) *r =3D result; } =20 -void helper_VPERMR(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *c) +void HELPER(VPERMR)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *c) { ppc_avr_t result; int i; @@ -1271,7 +1272,7 @@ void helper_VPERMR(ppc_avr_t *r, ppc_avr_t *a, ppc_av= r_t *b, ppc_avr_t *c) } =20 #define XXGENPCV_BE_EXP(NAME, SZ) \ -void glue(helper_, glue(NAME, _be_exp))(ppc_vsr_t *t, ppc_vsr_t *b) \ +void HELPER(glue(NAME, _be_exp))(ppc_vsr_t *t, ppc_vsr_t *b) \ { \ ppc_vsr_t tmp; \ \ @@ -1294,7 +1295,7 @@ void glue(helper_, glue(NAME, _be_exp))(ppc_vsr_t *t,= ppc_vsr_t *b) \ } =20 #define XXGENPCV_BE_COMP(NAME, SZ) \ -void glue(helper_, glue(NAME, _be_comp))(ppc_vsr_t *t, ppc_vsr_t *b)\ +void HELPER(glue(NAME, _be_comp))(ppc_vsr_t *t, ppc_vsr_t *b) \ { \ ppc_vsr_t tmp =3D { .u64 =3D { 0, 0 } }; \ \ @@ -1313,7 +1314,7 @@ void glue(helper_, glue(NAME, _be_comp))(ppc_vsr_t *t= , ppc_vsr_t *b)\ } =20 #define XXGENPCV_LE_EXP(NAME, SZ) \ -void glue(helper_, glue(NAME, _le_exp))(ppc_vsr_t *t, ppc_vsr_t *b) \ +void HELPER(glue(NAME, _le_exp))(ppc_vsr_t *t, ppc_vsr_t *b) \ { \ ppc_vsr_t tmp; \ \ @@ -1338,7 +1339,7 @@ void glue(helper_, glue(NAME, _le_exp))(ppc_vsr_t *t,= ppc_vsr_t *b) \ } =20 #define XXGENPCV_LE_COMP(NAME, SZ) \ -void glue(helper_, glue(NAME, _le_comp))(ppc_vsr_t *t, ppc_vsr_t *b)\ +void HELPER(glue(NAME, _le_comp))(ppc_vsr_t *t, ppc_vsr_t *b) \ { \ ppc_vsr_t tmp =3D { .u64 =3D { 0, 0 } }; \ \ @@ -1387,7 +1388,7 @@ XXGENPCV(XXGENPCVDM, 8) #define EXTRACT_BIT(avr, i, index) \ (extract64((avr)->VsrD(i), 63 - index, 1)) =20 -void helper_vbpermd(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vbpermd)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { int i, j; ppc_avr_t result =3D { .u64 =3D { 0, 0 } }; @@ -1402,7 +1403,7 @@ void helper_vbpermd(ppc_avr_t *r, ppc_avr_t *a, ppc_a= vr_t *b) *r =3D result; } =20 -void helper_vbpermq(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vbpermq)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { int i; uint64_t perm =3D 0; @@ -1429,7 +1430,7 @@ void helper_vbpermq(ppc_avr_t *r, ppc_avr_t *a, ppc_a= vr_t *b) * There is no carry across the two doublewords, so their order does * not matter. Nor is there partial overlap between registers. */ -void helper_vpmsumb(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vpmsumb)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { for (int i =3D 0; i < 2; ++i) { uint64_t aa =3D a->u64[i], bb =3D b->u64[i]; @@ -1437,7 +1438,7 @@ void helper_vpmsumb(ppc_avr_t *r, ppc_avr_t *a, ppc_a= vr_t *b) } } =20 -void helper_vpmsumh(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vpmsumh)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { for (int i =3D 0; i < 2; ++i) { uint64_t aa =3D a->u64[i], bb =3D b->u64[i]; @@ -1445,7 +1446,7 @@ void helper_vpmsumh(ppc_avr_t *r, ppc_avr_t *a, ppc_a= vr_t *b) } } =20 -void helper_vpmsumw(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vpmsumw)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { for (int i =3D 0; i < 2; ++i) { uint64_t aa =3D a->u64[i], bb =3D b->u64[i]; @@ -1453,7 +1454,7 @@ void helper_vpmsumw(ppc_avr_t *r, ppc_avr_t *a, ppc_a= vr_t *b) } } =20 -void helper_VPMSUMD(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VPMSUMD)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { Int128 e =3D clmul_64(a->u64[0], b->u64[0]); Int128 o =3D clmul_64(a->u64[1], b->u64[1]); @@ -1465,7 +1466,7 @@ void helper_VPMSUMD(ppc_avr_t *r, ppc_avr_t *a, ppc_a= vr_t *b) #else #define PKBIG 0 #endif -void helper_VPKPX(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VPKPX)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { int i, j; ppc_avr_t result; @@ -1488,7 +1489,7 @@ void helper_VPKPX(ppc_avr_t *r, ppc_avr_t *a, ppc_avr= _t *b) } =20 #define VPK(suffix, from, to, cvt, dosat) \ - void helper_VPK##suffix(CPUPPCState *env, ppc_avr_t *r, \ + void HELPER(VPK##suffix)(CPUPPCState *env, ppc_avr_t *r, \ ppc_avr_t *a, ppc_avr_t *b) \ { \ int i; \ @@ -1523,7 +1524,7 @@ VPK(UDUM, u64, u32, I, 0) #undef VPK #undef PKBIG =20 -void helper_vrefp(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *b) +void HELPER(vrefp)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *b) { int i; =20 @@ -1533,7 +1534,7 @@ void helper_vrefp(CPUPPCState *env, ppc_avr_t *r, ppc= _avr_t *b) } =20 #define VRFI(suffix, rounding) \ - void helper_vrfi##suffix(CPUPPCState *env, ppc_avr_t *r, \ + void HELPER(vrfi##suffix)(CPUPPCState *env, ppc_avr_t *r, \ ppc_avr_t *b) \ { \ int i; \ @@ -1550,7 +1551,7 @@ VRFI(p, float_round_up) VRFI(z, float_round_to_zero) #undef VRFI =20 -void helper_vrsqrtefp(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *b) +void HELPER(vrsqrtefp)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *b) { int i; =20 @@ -1562,7 +1563,7 @@ void helper_vrsqrtefp(CPUPPCState *env, ppc_avr_t *r,= ppc_avr_t *b) } =20 #define VRLMI(name, size, element, insert) = \ -void helper_##name(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t desc= ) \ +void HELPER(name)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t desc)= \ { = \ int i; = \ for (i =3D 0; i < ARRAY_SIZE(r->element); i++) { = \ @@ -1589,7 +1590,7 @@ VRLMI(VRLWMI, 32, u32, 1); VRLMI(VRLDNM, 64, u64, 0); VRLMI(VRLWNM, 32, u32, 0); =20 -void helper_vexptefp(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *b) +void HELPER(vexptefp)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *b) { int i; =20 @@ -1598,7 +1599,7 @@ void helper_vexptefp(CPUPPCState *env, ppc_avr_t *r, = ppc_avr_t *b) } } =20 -void helper_vlogefp(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *b) +void HELPER(vlogefp)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *b) { int i; =20 @@ -1608,7 +1609,7 @@ void helper_vlogefp(CPUPPCState *env, ppc_avr_t *r, p= pc_avr_t *b) } =20 #define VEXTU_X_DO(name, size, left) \ -target_ulong glue(helper_, name)(target_ulong a, ppc_avr_t *b) \ +target_ulong HELPER(name)(target_ulong a, ppc_avr_t *b) \ { \ int index =3D (a & 0xf) * 8; \ if (left) { \ @@ -1625,7 +1626,7 @@ VEXTU_X_DO(vextuhrx, 16, 0) VEXTU_X_DO(vextuwrx, 32, 0) #undef VEXTU_X_DO =20 -void helper_vslv(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vslv)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { int i; unsigned int shift, bytes, size; @@ -1639,7 +1640,7 @@ void helper_vslv(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_= t *b) } } =20 -void helper_vsrv(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vsrv)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { int i; unsigned int shift, bytes; @@ -1657,7 +1658,7 @@ void helper_vsrv(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_= t *b) } } =20 -void helper_vsldoi(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t shif= t) +void HELPER(vsldoi)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t shi= ft) { int sh =3D shift & 0xf; int i; @@ -1674,7 +1675,7 @@ void helper_vsldoi(ppc_avr_t *r, ppc_avr_t *a, ppc_av= r_t *b, uint32_t shift) *r =3D result; } =20 -void helper_vslo(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vslo)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { int sh =3D (b->VsrB(0xf) >> 3) & 0xf; =20 @@ -1694,7 +1695,7 @@ void helper_vslo(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_= t *b) #endif =20 #define VINSX(SUFFIX, TYPE) \ -void glue(glue(helper_VINS, SUFFIX), LX)(CPUPPCState *env, ppc_avr_t *t, = \ +void glue(glue(HELPER(VINS), SUFFIX), LX)(CPUPPCState *env, ppc_avr_t *t, = \ uint64_t val, target_ulong index)= \ { = \ const int maxidx =3D ARRAY_SIZE(t->u8) - sizeof(TYPE); = \ @@ -1718,7 +1719,7 @@ VINSX(D, uint64_t) #undef VINSX #if HOST_BIG_ENDIAN #define VEXTDVLX(NAME, SIZE) \ -void helper_##NAME(CPUPPCState *env, ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t= *b, \ +void HELPER(NAME)(CPUPPCState *env, ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t = *b, \ target_ulong index) = \ { = \ const target_long idx =3D index; = \ @@ -1734,7 +1735,7 @@ void helper_##NAME(CPUPPCState *env, ppc_avr_t *t, pp= c_avr_t *a, ppc_avr_t *b, \ } #else #define VEXTDVLX(NAME, SIZE) \ -void helper_##NAME(CPUPPCState *env, ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t= *b, \ +void HELPER(NAME)(CPUPPCState *env, ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t = *b, \ target_ulong index) = \ { = \ const target_long idx =3D index; = \ @@ -1757,7 +1758,7 @@ VEXTDVLX(VEXTDDVLX, 8) #undef VEXTDVLX #if HOST_BIG_ENDIAN #define VEXTRACT(suffix, element) = \ - void helper_vextract##suffix(ppc_avr_t *r, ppc_avr_t *b, uint32_t inde= x) \ + void HELPER(vextract##suffix)(ppc_avr_t *r, ppc_avr_t *b, uint32_t ind= ex) \ { = \ uint32_t es =3D sizeof(r->element[0]); = \ memmove(&r->u8[8 - es], &b->u8[index], es); = \ @@ -1766,7 +1767,7 @@ VEXTDVLX(VEXTDDVLX, 8) } #else #define VEXTRACT(suffix, element) = \ - void helper_vextract##suffix(ppc_avr_t *r, ppc_avr_t *b, uint32_t inde= x) \ + void HELPER(vextract##suffix)(ppc_avr_t *r, ppc_avr_t *b, uint32_t ind= ex) \ { = \ uint32_t es =3D sizeof(r->element[0]); = \ uint32_t s =3D (16 - index) - es; = \ @@ -1782,7 +1783,7 @@ VEXTRACT(d, u64) #undef VEXTRACT =20 #define VSTRI(NAME, ELEM, NUM_ELEMS, LEFT) \ -uint32_t helper_##NAME(ppc_avr_t *t, ppc_avr_t *b) \ +uint32_t HELPER(NAME)(ppc_avr_t *t, ppc_avr_t *b) \ { \ int i, idx, crf =3D 0; \ \ @@ -1809,7 +1810,7 @@ VSTRI(VSTRIHL, H, 8, true) VSTRI(VSTRIHR, H, 8, false) #undef VSTRI =20 -void helper_XXEXTRACTUW(ppc_vsr_t *xt, ppc_vsr_t *xb, uint32_t index) +void HELPER(XXEXTRACTUW)(ppc_vsr_t *xt, ppc_vsr_t *xb, uint32_t index) { ppc_vsr_t t =3D { }; size_t es =3D sizeof(uint32_t); @@ -1824,7 +1825,7 @@ void helper_XXEXTRACTUW(ppc_vsr_t *xt, ppc_vsr_t *xb,= uint32_t index) *xt =3D t; } =20 -void helper_XXINSERTW(ppc_vsr_t *xt, ppc_vsr_t *xb, uint32_t index) +void HELPER(XXINSERTW)(ppc_vsr_t *xt, ppc_vsr_t *xb, uint32_t index) { ppc_vsr_t t =3D *xt; size_t es =3D sizeof(uint32_t); @@ -1838,7 +1839,7 @@ void helper_XXINSERTW(ppc_vsr_t *xt, ppc_vsr_t *xb, u= int32_t index) *xt =3D t; } =20 -void helper_XXEVAL(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *c, +void HELPER(XXEVAL)(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *c, uint32_t desc) { /* @@ -1880,7 +1881,7 @@ void helper_XXEVAL(ppc_avr_t *t, ppc_avr_t *a, ppc_av= r_t *b, ppc_avr_t *c, } =20 #define XXBLEND(name, sz) \ -void glue(helper_XXBLENDV, name)(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b,= \ +void glue(HELPER(XXBLENDV), name)(ppc_avr_t *t, ppc_avr_t *a, ppc_avr_t *b= , \ ppc_avr_t *c, uint32_t desc) = \ { = \ for (int i =3D 0; i < ARRAY_SIZE(t->glue(u, sz)); i++) { = \ @@ -1894,7 +1895,7 @@ XXBLEND(W, 32) XXBLEND(D, 64) #undef XXBLEND =20 -void helper_vsro(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vsro)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { int sh =3D (b->VsrB(0xf) >> 3) & 0xf; =20 @@ -1907,7 +1908,7 @@ void helper_vsro(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_= t *b) #endif } =20 -void helper_vsumsws(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr_= t *b) +void HELPER(vsumsws)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr= _t *b) { int64_t t; int i, upper; @@ -1928,7 +1929,8 @@ void helper_vsumsws(CPUPPCState *env, ppc_avr_t *r, p= pc_avr_t *a, ppc_avr_t *b) } } =20 -void helper_vsum2sws(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr= _t *b) +void HELPER(vsum2sws)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, + ppc_avr_t *b) { int i, j, upper; ppc_avr_t result; @@ -1951,7 +1953,8 @@ void helper_vsum2sws(CPUPPCState *env, ppc_avr_t *r, = ppc_avr_t *a, ppc_avr_t *b) } } =20 -void helper_vsum4sbs(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr= _t *b) +void HELPER(vsum4sbs)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, + ppc_avr_t *b) { int i, j; int sat =3D 0; @@ -1970,7 +1973,8 @@ void helper_vsum4sbs(CPUPPCState *env, ppc_avr_t *r, = ppc_avr_t *a, ppc_avr_t *b) } } =20 -void helper_vsum4shs(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr= _t *b) +void HELPER(vsum4shs)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, + ppc_avr_t *b) { int sat =3D 0; int i; @@ -1987,7 +1991,8 @@ void helper_vsum4shs(CPUPPCState *env, ppc_avr_t *r, = ppc_avr_t *a, ppc_avr_t *b) } } =20 -void helper_vsum4ubs(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr= _t *b) +void HELPER(vsum4ubs)(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, + ppc_avr_t *b) { int i, j; int sat =3D 0; @@ -2014,7 +2019,7 @@ void helper_vsum4ubs(CPUPPCState *env, ppc_avr_t *r, = ppc_avr_t *a, ppc_avr_t *b) #define UPKLO 1 #endif #define VUPKPX(suffix, hi) \ - void helper_vupk##suffix(ppc_avr_t *r, ppc_avr_t *b) \ + void HELPER(vupk##suffix)(ppc_avr_t *r, ppc_avr_t *b) \ { \ int i; \ ppc_avr_t result; \ @@ -2035,7 +2040,7 @@ VUPKPX(hpx, UPKHI) #undef VUPKPX =20 #define VUPK(suffix, unpacked, packee, hi) \ - void helper_vupk##suffix(ppc_avr_t *r, ppc_avr_t *b) \ + void HELPER(vupk##suffix)(ppc_avr_t *r, ppc_avr_t *b) \ { \ int i; \ ppc_avr_t result; \ @@ -2063,7 +2068,7 @@ VUPK(lsw, s64, s32, UPKLO) #undef UPKLO =20 #define VGENERIC_DO(name, element) \ - void helper_v##name(ppc_avr_t *r, ppc_avr_t *b) \ + void HELPER(v##name)(ppc_avr_t *r, ppc_avr_t *b) \ { \ int i; \ \ @@ -2113,24 +2118,24 @@ VGENERIC_DO(popcntd, u64) =20 #undef VGENERIC_DO =20 -void helper_VADDUQM(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VADDUQM)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { r->s128 =3D int128_add(a->s128, b->s128); } =20 -void helper_VADDEUQM(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *= c) +void HELPER(VADDEUQM)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t = *c) { r->s128 =3D int128_add(int128_add(a->s128, b->s128), int128_make64(int128_getlo(c->s128) & 1)); } =20 -void helper_VADDCUQ(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VADDCUQ)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { r->VsrD(1) =3D int128_ult(int128_not(a->s128), b->s128); r->VsrD(0) =3D 0; } =20 -void helper_VADDECUQ(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *= c) +void HELPER(VADDECUQ)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t = *c) { bool carry_out =3D int128_ult(int128_not(a->s128), b->s128), carry_in =3D int128_getlo(c->s128) & 1; @@ -2144,18 +2149,18 @@ void helper_VADDECUQ(ppc_avr_t *r, ppc_avr_t *a, pp= c_avr_t *b, ppc_avr_t *c) r->VsrD(1) =3D carry_out; } =20 -void helper_VSUBUQM(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VSUBUQM)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { r->s128 =3D int128_sub(a->s128, b->s128); } =20 -void helper_VSUBEUQM(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *= c) +void HELPER(VSUBEUQM)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t = *c) { r->s128 =3D int128_add(int128_add(a->s128, int128_not(b->s128)), int128_make64(int128_getlo(c->s128) & 1)); } =20 -void helper_VSUBCUQ(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(VSUBCUQ)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { Int128 tmp =3D int128_not(b->s128); =20 @@ -2164,7 +2169,7 @@ void helper_VSUBCUQ(ppc_avr_t *r, ppc_avr_t *a, ppc_a= vr_t *b) r->VsrD(0) =3D 0; } =20 -void helper_VSUBECUQ(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t *= c) +void HELPER(VSUBECUQ)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t = *c) { Int128 tmp =3D int128_not(b->s128); bool carry_out =3D int128_ult(int128_not(a->s128), tmp), @@ -2348,7 +2353,7 @@ static void bcd_sub_mag(ppc_avr_t *t, ppc_avr_t *a, p= pc_avr_t *b, int *invalid, *overflow =3D carry; } =20 -uint32_t helper_BCDADD(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t= ps) +uint32_t HELPER(BCDADD)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_= t ps) { =20 int sgna =3D bcd_get_sgn(a); @@ -2395,7 +2400,7 @@ uint32_t helper_BCDADD(ppc_avr_t *r, ppc_avr_t *a, p= pc_avr_t *b, uint32_t ps) return cr; } =20 -uint32_t helper_BCDSUB(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t= ps) +uint32_t HELPER(BCDSUB)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_= t ps) { ppc_avr_t bcopy =3D *b; int sgnb =3D bcd_get_sgn(b); @@ -2406,10 +2411,10 @@ uint32_t helper_BCDSUB(ppc_avr_t *r, ppc_avr_t *a,= ppc_avr_t *b, uint32_t ps) } /* else invalid ... defer to bcdadd code for proper handling */ =20 - return helper_BCDADD(r, a, &bcopy, ps); + return HELPER(BCDADD)(r, a, &bcopy, ps); } =20 -uint32_t helper_BCDCFN(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) +uint32_t HELPER(BCDCFN)(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) { int i; int cr =3D 0; @@ -2445,7 +2450,7 @@ uint32_t helper_BCDCFN(ppc_avr_t *r, ppc_avr_t *b, ui= nt32_t ps) return cr; } =20 -uint32_t helper_BCDCTN(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) +uint32_t HELPER(BCDCTN)(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) { int i; int cr =3D 0; @@ -2479,7 +2484,7 @@ uint32_t helper_BCDCTN(ppc_avr_t *r, ppc_avr_t *b, ui= nt32_t ps) return cr; } =20 -uint32_t helper_BCDCFZ(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) +uint32_t HELPER(BCDCFZ)(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) { int i; int cr =3D 0; @@ -2523,7 +2528,7 @@ uint32_t helper_BCDCFZ(ppc_avr_t *r, ppc_avr_t *b, ui= nt32_t ps) return cr; } =20 -uint32_t helper_BCDCTZ(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) +uint32_t HELPER(BCDCTZ)(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) { int i; int cr =3D 0; @@ -2582,7 +2587,7 @@ static inline int ucmp128(uint64_t alo, uint64_t ahi, (ahi > bhi ? 1 : -1); } =20 -uint32_t helper_BCDCFSQ(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) +uint32_t HELPER(BCDCFSQ)(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) { int i; int cr; @@ -2640,7 +2645,7 @@ uint32_t helper_BCDCFSQ(ppc_avr_t *r, ppc_avr_t *b, u= int32_t ps) return cr; } =20 -uint32_t helper_BCDCTSQ(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) +uint32_t HELPER(BCDCTSQ)(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) { uint8_t i; int cr; @@ -2680,7 +2685,7 @@ uint32_t helper_BCDCTSQ(ppc_avr_t *r, ppc_avr_t *b, u= int32_t ps) return cr; } =20 -uint32_t helper_BCDCPSGN(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_= t ps) +uint32_t HELPER(BCDCPSGN)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32= _t ps) { int i; int invalid =3D 0; @@ -2703,7 +2708,7 @@ uint32_t helper_BCDCPSGN(ppc_avr_t *r, ppc_avr_t *a, = ppc_avr_t *b, uint32_t ps) return bcd_cmp_zero(r); } =20 -uint32_t helper_BCDSETSGN(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) +uint32_t HELPER(BCDSETSGN)(ppc_avr_t *r, ppc_avr_t *b, uint32_t ps) { int sgnb =3D bcd_get_sgn(b); =20 @@ -2717,7 +2722,7 @@ uint32_t helper_BCDSETSGN(ppc_avr_t *r, ppc_avr_t *b,= uint32_t ps) return bcd_cmp_zero(r); } =20 -uint32_t helper_BCDS(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t ps) +uint32_t HELPER(BCDS)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t p= s) { int cr; int i =3D a->VsrSB(7); @@ -2753,7 +2758,7 @@ uint32_t helper_BCDS(ppc_avr_t *r, ppc_avr_t *a, ppc_= avr_t *b, uint32_t ps) return cr; } =20 -uint32_t helper_BCDUS(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t p= s) +uint32_t HELPER(BCDUS)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t = ps) { int cr; int i; @@ -2790,7 +2795,7 @@ uint32_t helper_BCDUS(ppc_avr_t *r, ppc_avr_t *a, ppc= _avr_t *b, uint32_t ps) return cr; } =20 -uint32_t helper_BCDSR(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t p= s) +uint32_t HELPER(BCDSR)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_t = ps) { int cr; int unused =3D 0; @@ -2836,7 +2841,7 @@ uint32_t helper_BCDSR(ppc_avr_t *r, ppc_avr_t *a, ppc= _avr_t *b, uint32_t ps) return cr; } =20 -uint32_t helper_BCDTRUNC(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32_= t ps) +uint32_t HELPER(BCDTRUNC)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32= _t ps) { uint64_t mask; uint32_t ox_flag =3D 0; @@ -2869,7 +2874,8 @@ uint32_t helper_BCDTRUNC(ppc_avr_t *r, ppc_avr_t *a, = ppc_avr_t *b, uint32_t ps) return bcd_cmp_zero(&ret) | ox_flag; } =20 -uint32_t helper_BCDUTRUNC(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, uint32= _t ps) +uint32_t HELPER(BCDUTRUNC)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, + uint32_t ps) { int i; uint64_t mask; @@ -2916,7 +2922,7 @@ uint32_t helper_BCDUTRUNC(ppc_avr_t *r, ppc_avr_t *a,= ppc_avr_t *b, uint32_t ps) return ox_flag | CRF_GT; } =20 -void helper_vsbox(ppc_avr_t *r, ppc_avr_t *a) +void HELPER(vsbox)(ppc_avr_t *r, ppc_avr_t *a) { int i; VECTOR_FOR_INORDER_I(i, u8) { @@ -2924,7 +2930,7 @@ void helper_vsbox(ppc_avr_t *r, ppc_avr_t *a) } } =20 -void helper_vcipher(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vcipher)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { AESState *ad =3D (AESState *)r; AESState *st =3D (AESState *)a; @@ -2933,12 +2939,12 @@ void helper_vcipher(ppc_avr_t *r, ppc_avr_t *a, ppc= _avr_t *b) aesenc_SB_SR_MC_AK(ad, st, rk, true); } =20 -void helper_vcipherlast(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vcipherlast)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { aesenc_SB_SR_AK((AESState *)r, (AESState *)a, (AESState *)b, true); } =20 -void helper_vncipher(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vncipher)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { AESState *ad =3D (AESState *)r; AESState *st =3D (AESState *)a; @@ -2947,12 +2953,12 @@ void helper_vncipher(ppc_avr_t *r, ppc_avr_t *a, pp= c_avr_t *b) aesdec_ISB_ISR_AK_IMC(ad, st, rk, true); } =20 -void helper_vncipherlast(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) +void HELPER(vncipherlast)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { aesdec_ISB_ISR_AK((AESState *)r, (AESState *)a, (AESState *)b, true); } =20 -void helper_vshasigmaw(ppc_avr_t *r, ppc_avr_t *a, uint32_t st_six) +void HELPER(vshasigmaw)(ppc_avr_t *r, ppc_avr_t *a, uint32_t st_six) { int st =3D (st_six & 0x10) !=3D 0; int six =3D st_six & 0xF; @@ -2983,7 +2989,7 @@ void helper_vshasigmaw(ppc_avr_t *r, ppc_avr_t *a, u= int32_t st_six) } } =20 -void helper_vshasigmad(ppc_avr_t *r, ppc_avr_t *a, uint32_t st_six) +void HELPER(vshasigmad)(ppc_avr_t *r, ppc_avr_t *a, uint32_t st_six) { int st =3D (st_six & 0x10) !=3D 0; int six =3D st_six & 0xF; @@ -3014,7 +3020,7 @@ void helper_vshasigmad(ppc_avr_t *r, ppc_avr_t *a, u= int32_t st_six) } } =20 -void helper_vpermxor(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t = *c) +void HELPER(vpermxor)(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b, ppc_avr_t= *c) { ppc_avr_t result; int i; @@ -3050,7 +3056,7 @@ static inline uint32_t word_reverse(uint32_t val) } =20 #define MASKBITS 16 /* Random value - to be fixed (implementation dependen= t) */ -target_ulong helper_brinc(target_ulong arg1, target_ulong arg2) +target_ulong HELPER(brinc)(target_ulong arg1, target_ulong arg2) { uint32_t a, b, d, mask; =20 @@ -3061,7 +3067,7 @@ target_ulong helper_brinc(target_ulong arg1, target_u= long arg2) return (arg1 & ~mask) | (d & b); } =20 -uint32_t helper_cntlsw32(uint32_t val) +uint32_t HELPER(cntlsw32)(uint32_t val) { if (val & 0x80000000) { return clz32(~val); @@ -3070,13 +3076,13 @@ uint32_t helper_cntlsw32(uint32_t val) } } =20 -uint32_t helper_cntlzw32(uint32_t val) +uint32_t HELPER(cntlzw32)(uint32_t val) { return clz32(val); } =20 /* 440 specific */ -target_ulong helper_dlmzb(CPUPPCState *env, target_ulong high, +target_ulong HELPER(dlmzb)(CPUPPCState *env, target_ulong high, target_ulong low, uint32_t update_Rc) { target_ulong mask; diff --git a/target/ppc/internal.h b/target/ppc/internal.h index a20a0f9f7e0..e9043daa2cf 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -22,6 +22,7 @@ #include "exec/memop.h" #include "hw/core/registerfields.h" #include "exec/page-protection.h" +#include "exec/helper-head.h.inc" =20 static inline bool ppc_env_is_little_endian(const CPUPPCState *env) { @@ -230,9 +231,9 @@ EXTRACT_HELPER(IMM8, 11, 8); EXTRACT_HELPER(DCMX, 16, 7); EXTRACT_HELPER_SPLIT_3(DCMX_XV, 5, 16, 0, 1, 2, 5, 1, 6, 6); =20 -void helper_compute_fprf_float16(CPUPPCState *env, float16 arg); -void helper_compute_fprf_float32(CPUPPCState *env, float32 arg); -void helper_compute_fprf_float128(CPUPPCState *env, float128 arg); +void HELPER(compute_fprf_float16)(CPUPPCState *env, float16 arg); +void HELPER(compute_fprf_float32)(CPUPPCState *env, float32 arg); +void HELPER(compute_fprf_float128)(CPUPPCState *env, float128 arg); =20 /* translate.c */ =20 diff --git a/target/ppc/mem_helper.c b/target/ppc/mem_helper.c index dc5eab8c76c..1f0613479d5 100644 --- a/target/ppc/mem_helper.c +++ b/target/ppc/mem_helper.c @@ -73,7 +73,7 @@ static void *probe_contiguous(CPUPPCState *env, target_ul= ong addr, uint32_t nb, return NULL; } =20 -void helper_LMW(CPUPPCState *env, target_ulong addr, uint32_t reg) +void HELPER(LMW)(CPUPPCState *env, target_ulong addr, uint32_t reg) { uintptr_t raddr =3D GETPC(); int mmu_idx =3D ppc_env_mmu_index(env, false); @@ -98,7 +98,7 @@ void helper_LMW(CPUPPCState *env, target_ulong addr, uint= 32_t reg) } } =20 -void helper_STMW(CPUPPCState *env, target_ulong addr, uint32_t reg) +void HELPER(STMW)(CPUPPCState *env, target_ulong addr, uint32_t reg) { uintptr_t raddr =3D GETPC(); int mmu_idx =3D ppc_env_mmu_index(env, false); @@ -190,7 +190,7 @@ static void do_lsw(CPUPPCState *env, target_ulong addr,= uint32_t nb, env->gpr[reg] =3D val; } =20 -void helper_LSW(CPUPPCState *env, target_ulong addr, +void HELPER(LSW)(CPUPPCState *env, target_ulong addr, uint32_t nb, uint32_t reg) { do_lsw(env, addr, nb, reg, GETPC()); @@ -202,7 +202,7 @@ void helper_LSW(CPUPPCState *env, target_ulong addr, * this is valid, but rA won't be loaded. For now, I'll follow the * spec... */ -void helper_LSWX(CPUPPCState *env, target_ulong addr, uint32_t reg, +void HELPER(LSWX)(CPUPPCState *env, target_ulong addr, uint32_t reg, uint32_t ra, uint32_t rb) { if (likely(xer_bc !=3D 0)) { @@ -218,7 +218,7 @@ void helper_LSWX(CPUPPCState *env, target_ulong addr, u= int32_t reg, } } =20 -void helper_STSW(CPUPPCState *env, target_ulong addr, uint32_t nb, +void HELPER(STSW)(CPUPPCState *env, target_ulong addr, uint32_t nb, uint32_t reg) { uintptr_t raddr =3D GETPC(); @@ -319,13 +319,13 @@ static void dcbz_common(CPUPPCState *env, target_ulon= g addr, clear_helper_retaddr(); } =20 -void helper_dcbz(CPUPPCState *env, target_ulong addr, int mmu_idx) +void HELPER(dcbz)(CPUPPCState *env, target_ulong addr, int mmu_idx) { dcbz_common(env, addr, mmu_idx, env->dcache_line_size, GETPC()); } =20 #ifdef TARGET_PPC64 -void helper_dcbzl(CPUPPCState *env, target_ulong addr) +void HELPER(dcbzl)(CPUPPCState *env, target_ulong addr) { int dcbz_size =3D env->dcache_line_size; =20 @@ -341,7 +341,7 @@ void helper_dcbzl(CPUPPCState *env, target_ulong addr) } #endif =20 -void helper_ICBI(CPUPPCState *env, target_ulong addr) +void HELPER(ICBI)(CPUPPCState *env, target_ulong addr) { unsigned mmu_idx =3D cpu_mmu_index(env_cpu(env), false); MemOpIdx oi =3D make_memop_idx(MO_UL | MO_UNALN, mmu_idx); @@ -357,7 +357,7 @@ void helper_ICBI(CPUPPCState *env, target_ulong addr) cpu_ldl_mmu(env, addr, oi, GETPC()); } =20 -void helper_ICBIEP(CPUPPCState *env, target_ulong addr) +void HELPER(ICBIEP)(CPUPPCState *env, target_ulong addr) { #if !defined(CONFIG_USER_ONLY) MemOpIdx oi =3D make_memop_idx(MO_UL | MO_UNALN, PPC_TLB_EPID_LOAD); @@ -385,7 +385,7 @@ void helper_ICBIEP(CPUPPCState *env, target_ulong addr) */ =20 #define LVE(name, access, swap, element) \ - void helper_##name(CPUPPCState *env, ppc_avr_t *r, \ + void HELPER(name)(CPUPPCState *env, ppc_avr_t *r, \ target_ulong addr) \ { \ size_t n_elems =3D ARRAY_SIZE(r->element); \ @@ -411,7 +411,7 @@ LVE(LVEWX, cpu_ldl_be_data_ra, bswap32, u32) #undef LVE =20 #define STVE(name, access, swap, element) \ - void helper_##name(CPUPPCState *env, ppc_avr_t *r, \ + void HELPER(name)(CPUPPCState *env, ppc_avr_t *r, \ target_ulong addr) \ { \ size_t n_elems =3D ARRAY_SIZE(r->element); \ @@ -441,7 +441,7 @@ STVE(STVEWX, cpu_stl_be_data_ra, bswap32, u32) #define GET_NB(rb) ((rb >> 56) & 0xFF) =20 #define VSX_LXVL(name, lj) \ -void helper_##name(CPUPPCState *env, target_ulong addr, \ +void HELPER(name)(CPUPPCState *env, target_ulong addr, \ ppc_vsr_t *xt, target_ulong rb) \ { \ ppc_vsr_t t; \ @@ -471,7 +471,7 @@ VSX_LXVL(LXVLL, 1) #undef VSX_LXVL =20 #define VSX_STXVL(name, lj) \ -void helper_##name(CPUPPCState *env, target_ulong addr, \ +void HELPER(name)(CPUPPCState *env, target_ulong addr, \ ppc_vsr_t *xt, target_ulong rb) \ { \ target_ulong nb =3D GET_NB(rb); \ @@ -504,7 +504,7 @@ VSX_STXVL(STXVLL, 1) #undef HI_IDX #undef LO_IDX =20 -void helper_tbegin(CPUPPCState *env) +void HELPER(tbegin)(CPUPPCState *env) { /* * As a degenerate implementation, always fail tbegin. The reason diff --git a/target/ppc/misc_helper.c b/target/ppc/misc_helper.c index 0e625cbb704..59e6573c863 100644 --- a/target/ppc/misc_helper.c +++ b/target/ppc/misc_helper.c @@ -31,19 +31,19 @@ =20 /*************************************************************************= ****/ /* SPR accesses */ -void helper_load_dump_spr(CPUPPCState *env, uint32_t sprn) +void HELPER(load_dump_spr)(CPUPPCState *env, uint32_t sprn) { qemu_log("Read SPR %d %03x =3D> " TARGET_FMT_lx "\n", sprn, sprn, env->spr[sprn]); } =20 -void helper_store_dump_spr(CPUPPCState *env, uint32_t sprn) +void HELPER(store_dump_spr)(CPUPPCState *env, uint32_t sprn) { qemu_log("Write SPR %d %03x <=3D " TARGET_FMT_lx "\n", sprn, sprn, env->spr[sprn]); } =20 -void helper_spr_core_write_generic(CPUPPCState *env, uint32_t sprn, +void HELPER(spr_core_write_generic)(CPUPPCState *env, uint32_t sprn, target_ulong val) { CPUState *cs =3D env_cpu(env); @@ -60,7 +60,7 @@ void helper_spr_core_write_generic(CPUPPCState *env, uint= 32_t sprn, } } =20 -void helper_spr_write_CTRL(CPUPPCState *env, uint32_t sprn, +void HELPER(spr_write_CTRL)(CPUPPCState *env, uint32_t sprn, target_ulong val) { CPUState *cs =3D env_cpu(env); @@ -123,7 +123,7 @@ void helper_hfscr_facility_check(CPUPPCState *env, uint= 32_t bit, #endif } =20 -void helper_fscr_facility_check(CPUPPCState *env, uint32_t bit, +void HELPER(fscr_facility_check)(CPUPPCState *env, uint32_t bit, uint32_t sprn, uint32_t cause) { #ifdef TARGET_PPC64 @@ -135,7 +135,7 @@ void helper_fscr_facility_check(CPUPPCState *env, uint3= 2_t bit, #endif } =20 -void helper_msr_facility_check(CPUPPCState *env, uint32_t bit, +void HELPER(msr_facility_check)(CPUPPCState *env, uint32_t bit, uint32_t sprn, uint32_t cause) { #ifdef TARGET_PPC64 @@ -160,7 +160,7 @@ static void helper_mmcr0_facility_check(CPUPPCState *en= v, uint32_t bit, } #endif =20 -void helper_store_sdr1(CPUPPCState *env, target_ulong val) +void HELPER(store_sdr1)(CPUPPCState *env, target_ulong val) { if (env->spr[SPR_SDR1] !=3D val) { ppc_store_sdr1(env, val); @@ -169,7 +169,7 @@ void helper_store_sdr1(CPUPPCState *env, target_ulong v= al) } =20 #if defined(TARGET_PPC64) -void helper_store_ptcr(CPUPPCState *env, target_ulong val) +void HELPER(store_ptcr)(CPUPPCState *env, target_ulong val) { if (env->spr[SPR_PTCR] !=3D val) { CPUState *cs =3D env_cpu(env); @@ -210,7 +210,7 @@ void helper_store_ptcr(CPUPPCState *env, target_ulong v= al) } } =20 -void helper_store_pcr(CPUPPCState *env, target_ulong value) +void HELPER(store_pcr)(CPUPPCState *env, target_ulong value) { PowerPCCPU *cpu =3D env_archcpu(env); PowerPCCPUClass *pcc =3D POWERPC_CPU_GET_CLASS(cpu); @@ -218,27 +218,27 @@ void helper_store_pcr(CPUPPCState *env, target_ulong = value) env->spr[SPR_PCR] =3D value & pcc->pcr_mask; } =20 -void helper_store_ciabr(CPUPPCState *env, target_ulong value) +void HELPER(store_ciabr)(CPUPPCState *env, target_ulong value) { ppc_store_ciabr(env, value); } =20 -void helper_store_dawr0(CPUPPCState *env, target_ulong value) +void HELPER(store_dawr0)(CPUPPCState *env, target_ulong value) { ppc_store_dawr0(env, value); } =20 -void helper_store_dawrx0(CPUPPCState *env, target_ulong value) +void HELPER(store_dawrx0)(CPUPPCState *env, target_ulong value) { ppc_store_dawrx0(env, value); } =20 -void helper_store_dawr1(CPUPPCState *env, target_ulong value) +void HELPER(store_dawr1)(CPUPPCState *env, target_ulong value) { ppc_store_dawr1(env, value); } =20 -void helper_store_dawrx1(CPUPPCState *env, target_ulong value) +void HELPER(store_dawrx1)(CPUPPCState *env, target_ulong value) { ppc_store_dawrx1(env, value); } @@ -247,7 +247,7 @@ void helper_store_dawrx1(CPUPPCState *env, target_ulong= value) * DPDES register is shared. Each bit reflects the state of the * doorbell interrupt of a thread of the same core. */ -target_ulong helper_load_dpdes(CPUPPCState *env) +target_ulong HELPER(load_dpdes)(CPUPPCState *env) { CPUState *cs =3D env_cpu(env); CPUState *ccs; @@ -278,7 +278,7 @@ target_ulong helper_load_dpdes(CPUPPCState *env) return dpdes; } =20 -void helper_store_dpdes(CPUPPCState *env, target_ulong val) +void HELPER(store_dpdes)(CPUPPCState *env, target_ulong val) { PowerPCCPU *cpu =3D env_archcpu(env); CPUState *cs =3D env_cpu(env); @@ -311,7 +311,7 @@ void helper_store_dpdes(CPUPPCState *env, target_ulong = val) #include "hw/ppc/pnv_core.h" =20 /* Indirect SCOM (SPRC/SPRD) access to SCRATCH0-7 are implemented. */ -void helper_store_sprc(CPUPPCState *env, target_ulong val) +void HELPER(store_sprc)(CPUPPCState *env, target_ulong val) { if (val & ~0x3f8ULL) { qemu_log_mask(LOG_GUEST_ERROR, "Invalid SPRC register value " @@ -321,7 +321,7 @@ void helper_store_sprc(CPUPPCState *env, target_ulong v= al) env->spr[SPR_POWER_SPRC] =3D val; } =20 -target_ulong helper_load_sprd(CPUPPCState *env) +target_ulong HELPER(load_sprd)(CPUPPCState *env) { /* * SPRD is a HV-only register for Power CPUs, so this will only be @@ -337,7 +337,7 @@ target_ulong helper_load_sprd(CPUPPCState *env) return 0; } =20 -void helper_store_sprd(CPUPPCState *env, target_ulong val) +void HELPER(store_sprd)(CPUPPCState *env, target_ulong val) { PowerPCCPU *cpu =3D env_archcpu(env); PowerPCCPUClass *pcc =3D POWERPC_CPU_GET_CLASS(cpu); @@ -347,7 +347,7 @@ void helper_store_sprd(CPUPPCState *env, target_ulong v= al) } } =20 -target_ulong helper_load_pmsr(CPUPPCState *env) +target_ulong HELPER(load_pmsr)(CPUPPCState *env) { target_ulong lowerps =3D extract64(env->spr[SPR_PMCR], PPC_BIT_NR(15),= 8); target_ulong val =3D 0; @@ -367,7 +367,7 @@ static void ppc_set_pmcr(PowerPCCPU *cpu, target_ulong = val) cpu->env.spr[SPR_PMCR] =3D val; } =20 -void helper_store_pmcr(CPUPPCState *env, target_ulong val) +void HELPER(store_pmcr)(CPUPPCState *env, target_ulong val) { PowerPCCPU *cpu =3D env_archcpu(env); CPUState *cs =3D env_cpu(env); @@ -401,13 +401,13 @@ void helper_store_pmcr(CPUPPCState *env, target_ulong= val) =20 #endif /* defined(TARGET_PPC64) */ =20 -void helper_store_pidr(CPUPPCState *env, target_ulong val) +void HELPER(store_pidr)(CPUPPCState *env, target_ulong val) { env->spr[SPR_BOOKS_PID] =3D (uint32_t)val; tlb_flush(env_cpu(env)); } =20 -void helper_store_lpidr(CPUPPCState *env, target_ulong val) +void HELPER(store_lpidr)(CPUPPCState *env, target_ulong val) { env->spr[SPR_LPIDR] =3D (uint32_t)val; =20 @@ -420,7 +420,7 @@ void helper_store_lpidr(CPUPPCState *env, target_ulong = val) tlb_flush(env_cpu(env)); } =20 -void helper_store_40x_dbcr0(CPUPPCState *env, target_ulong val) +void HELPER(store_40x_dbcr0)(CPUPPCState *env, target_ulong val) { /* Bits 26 & 27 affect single-stepping. */ hreg_compute_hflags(env); @@ -428,7 +428,7 @@ void helper_store_40x_dbcr0(CPUPPCState *env, target_ul= ong val) store_40x_dbcr0(env, val); } =20 -void helper_store_40x_sler(CPUPPCState *env, target_ulong val) +void HELPER(store_40x_sler)(CPUPPCState *env, target_ulong val) { store_40x_sler(env, val); } @@ -443,7 +443,7 @@ void helper_store_40x_sler(CPUPPCState *env, target_ulo= ng val) * MacOS not hang. These registers exist on some 75x and 74xx * processors. */ -void helper_fixup_thrm(CPUPPCState *env) +void HELPER(fixup_thrm)(CPUPPCState *env) { target_ulong v, t; int i; @@ -481,7 +481,7 @@ void helper_fixup_thrm(CPUPPCState *env) =20 #if !defined(CONFIG_USER_ONLY) #if defined(TARGET_PPC64) -void helper_clrbhrb(CPUPPCState *env) +void HELPER(clrbhrb)(CPUPPCState *env) { helper_hfscr_facility_check(env, HFSCR_BHRB, "clrbhrb", FSCR_IC_BHRB); =20 @@ -492,7 +492,7 @@ void helper_clrbhrb(CPUPPCState *env) } } =20 -uint64_t helper_mfbhrbe(CPUPPCState *env, uint32_t bhrbe) +uint64_t HELPER(mfbhrbe)(CPUPPCState *env, uint32_t bhrbe) { unsigned int index; =20 diff --git a/target/ppc/mmu-hash64.c b/target/ppc/mmu-hash64.c index 2c33d98001d..e5238f0c245 100644 --- a/target/ppc/mmu-hash64.c +++ b/target/ppc/mmu-hash64.c @@ -104,7 +104,7 @@ void dump_slb(PowerPCCPU *cpu) } =20 #ifdef CONFIG_TCG -void helper_SLBIA(CPUPPCState *env, uint32_t ih) +void HELPER(SLBIA)(CPUPPCState *env, uint32_t ih) { PowerPCCPU *cpu =3D env_archcpu(env); int starting_entry; @@ -177,7 +177,7 @@ void helper_SLBIA(CPUPPCState *env, uint32_t ih) } =20 #if defined(TARGET_PPC64) -void helper_SLBIAG(CPUPPCState *env, target_ulong rs, uint32_t l) +void HELPER(SLBIAG)(CPUPPCState *env, target_ulong rs, uint32_t l) { PowerPCCPU *cpu =3D env_archcpu(env); int n; @@ -227,12 +227,12 @@ static void __helper_slbie(CPUPPCState *env, target_u= long addr, } } =20 -void helper_SLBIE(CPUPPCState *env, target_ulong addr) +void HELPER(SLBIE)(CPUPPCState *env, target_ulong addr) { __helper_slbie(env, addr, false); } =20 -void helper_SLBIEG(CPUPPCState *env, target_ulong addr) +void HELPER(SLBIEG)(CPUPPCState *env, target_ulong addr) { __helper_slbie(env, addr, true); } @@ -339,7 +339,7 @@ static int ppc_find_slb_vsid(PowerPCCPU *cpu, target_ul= ong rb, return 0; } =20 -void helper_SLBMTE(CPUPPCState *env, target_ulong rb, target_ulong rs) +void HELPER(SLBMTE)(CPUPPCState *env, target_ulong rb, target_ulong rs) { PowerPCCPU *cpu =3D env_archcpu(env); =20 @@ -349,7 +349,7 @@ void helper_SLBMTE(CPUPPCState *env, target_ulong rb, t= arget_ulong rs) } } =20 -target_ulong helper_SLBMFEE(CPUPPCState *env, target_ulong rb) +target_ulong HELPER(SLBMFEE)(CPUPPCState *env, target_ulong rb) { PowerPCCPU *cpu =3D env_archcpu(env); target_ulong rt =3D 0; @@ -361,7 +361,7 @@ target_ulong helper_SLBMFEE(CPUPPCState *env, target_ul= ong rb) return rt; } =20 -target_ulong helper_SLBFEE(CPUPPCState *env, target_ulong rb) +target_ulong HELPER(SLBFEE)(CPUPPCState *env, target_ulong rb) { PowerPCCPU *cpu =3D env_archcpu(env); target_ulong rt =3D 0; @@ -373,7 +373,7 @@ target_ulong helper_SLBFEE(CPUPPCState *env, target_ulo= ng rb) return rt; } =20 -target_ulong helper_SLBMFEV(CPUPPCState *env, target_ulong rb) +target_ulong HELPER(SLBMFEV)(CPUPPCState *env, target_ulong rb) { PowerPCCPU *cpu =3D env_archcpu(env); target_ulong rt =3D 0; @@ -1220,7 +1220,7 @@ void ppc_hash64_tlb_flush_hpte(PowerPCCPU *cpu, targe= t_ulong ptex, } =20 #ifdef CONFIG_TCG -void helper_store_lpcr(CPUPPCState *env, target_ulong val) +void HELPER(store_lpcr)(CPUPPCState *env, target_ulong val) { PowerPCCPU *cpu =3D env_archcpu(env); =20 diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c index ac607054027..5a3e3a7beab 100644 --- a/target/ppc/mmu_helper.c +++ b/target/ppc/mmu_helper.c @@ -179,7 +179,7 @@ static inline void dump_store_bat(CPUPPCState *env, cha= r ID, int ul, int nr, value, env->nip); } =20 -void helper_store_ibatu(CPUPPCState *env, uint32_t nr, target_ulong value) +void HELPER(store_ibatu)(CPUPPCState *env, uint32_t nr, target_ulong value) { target_ulong mask; =20 @@ -206,13 +206,13 @@ void helper_store_ibatu(CPUPPCState *env, uint32_t nr= , target_ulong value) } } =20 -void helper_store_ibatl(CPUPPCState *env, uint32_t nr, target_ulong value) +void HELPER(store_ibatl)(CPUPPCState *env, uint32_t nr, target_ulong value) { dump_store_bat(env, 'I', 1, nr, value); env->IBAT[1][nr] =3D value; } =20 -void helper_store_dbatu(CPUPPCState *env, uint32_t nr, target_ulong value) +void HELPER(store_dbatu)(CPUPPCState *env, uint32_t nr, target_ulong value) { target_ulong mask; =20 @@ -239,7 +239,7 @@ void helper_store_dbatu(CPUPPCState *env, uint32_t nr, = target_ulong value) } } =20 -void helper_store_dbatl(CPUPPCState *env, uint32_t nr, target_ulong value) +void HELPER(store_dbatl)(CPUPPCState *env, uint32_t nr, target_ulong value) { dump_store_bat(env, 'D', 1, nr, value); env->DBAT[1][nr] =3D value; @@ -328,7 +328,7 @@ void ppc_tlb_invalidate_one(CPUPPCState *env, target_ul= ong addr) /* Special registers manipulation */ =20 /* Segment registers load and store */ -target_ulong helper_load_sr(CPUPPCState *env, target_ulong sr_num) +target_ulong HELPER(load_sr)(CPUPPCState *env, target_ulong sr_num) { #if defined(TARGET_PPC64) if (mmu_is_64bit(env->mmu_model)) { @@ -339,7 +339,7 @@ target_ulong helper_load_sr(CPUPPCState *env, target_ul= ong sr_num) return env->sr[sr_num]; } =20 -void helper_store_sr(CPUPPCState *env, target_ulong srnum, target_ulong va= lue) +void HELPER(store_sr)(CPUPPCState *env, target_ulong srnum, target_ulong v= alue) { qemu_log_mask(CPU_LOG_MMU, "%s: reg=3D%d " TARGET_FMT_lx " " TARGET_FMT_lx "\n", __func__, @@ -383,12 +383,12 @@ void helper_store_sr(CPUPPCState *env, target_ulong s= rnum, target_ulong value) } =20 /* TLB management */ -void helper_tlbia(CPUPPCState *env) +void HELPER(tlbia)(CPUPPCState *env) { ppc_tlb_invalidate_all(env); } =20 -void helper_tlbie(CPUPPCState *env, target_ulong addr) +void HELPER(tlbie)(CPUPPCState *env, target_ulong addr) { ppc_tlb_invalidate_one(env, addr); } @@ -418,7 +418,7 @@ void helper_tlbie(CPUPPCState *env, target_ulong addr) #define TLBIE_RB_IS_MASK PPC_BITMASK(52, 53) #define TLBIE_RB_AP_MASK PPC_BITMASK(56, 58) =20 -void helper_tlbie_isa300(CPUPPCState *env, target_ulong rb, target_ulong r= s, +void HELPER(tlbie_isa300)(CPUPPCState *env, target_ulong rb, target_ulong = rs, uint32_t flags) { unsigned ric =3D (flags & TLBIE_F_RIC_MASK) >> TLBIE_F_RIC_SHIFT; @@ -547,7 +547,7 @@ invalid: =20 #endif =20 -void helper_tlbiva(CPUPPCState *env, target_ulong addr) +void HELPER(tlbiva)(CPUPPCState *env, target_ulong addr) { /* tlbiva instruction only exists on BookE */ assert(env->mmu_model =3D=3D POWERPC_MMU_BOOKE); @@ -580,12 +580,12 @@ static void do_6xx_tlb(CPUPPCState *env, target_ulong= new_EPN, int is_code) way, is_code, CMP, RPN); } =20 -void helper_6xx_tlbd(CPUPPCState *env, target_ulong EPN) +void HELPER(6xx_tlbd)(CPUPPCState *env, target_ulong EPN) { do_6xx_tlb(env, EPN, 0); } =20 -void helper_6xx_tlbi(CPUPPCState *env, target_ulong EPN) +void HELPER(6xx_tlbi)(CPUPPCState *env, target_ulong EPN) { do_6xx_tlb(env, EPN, 1); } @@ -674,7 +674,7 @@ static inline int booke_page_size_to_tlb(target_ulong p= age_size) #define PPC4XX_TLBLO_ATTR_MASK 0x000000FF #define PPC4XX_TLBLO_RPN_MASK 0xFFFFFC00 =20 -void helper_store_40x_pid(CPUPPCState *env, target_ulong val) +void HELPER(store_40x_pid)(CPUPPCState *env, target_ulong val) { if (env->spr[SPR_40x_PID] !=3D val) { env->spr[SPR_40x_PID] =3D val; @@ -682,7 +682,7 @@ void helper_store_40x_pid(CPUPPCState *env, target_ulon= g val) } } =20 -target_ulong helper_4xx_tlbre_hi(CPUPPCState *env, target_ulong entry) +target_ulong HELPER(4xx_tlbre_hi)(CPUPPCState *env, target_ulong entry) { ppcemb_tlb_t *tlb; target_ulong ret; @@ -699,11 +699,11 @@ target_ulong helper_4xx_tlbre_hi(CPUPPCState *env, ta= rget_ulong entry) size =3D PPC4XX_TLBHI_SIZE_DEFAULT; } ret |=3D size << PPC4XX_TLBHI_SIZE_SHIFT; - helper_store_40x_pid(env, tlb->PID); + HELPER(store_40x_pid)(env, tlb->PID); return ret; } =20 -target_ulong helper_4xx_tlbre_lo(CPUPPCState *env, target_ulong entry) +target_ulong HELPER(4xx_tlbre_lo)(CPUPPCState *env, target_ulong entry) { ppcemb_tlb_t *tlb; target_ulong ret; @@ -738,7 +738,7 @@ static void ppcemb_tlb_flush(CPUState *cs, ppcemb_tlb_t= *tlb) TARGET_LONG_BITS); } =20 -void helper_4xx_tlbwe_hi(CPUPPCState *env, target_ulong entry, +void HELPER(4xx_tlbwe_hi)(CPUPPCState *env, target_ulong entry, target_ulong val) { CPUState *cs =3D env_cpu(env); @@ -790,7 +790,7 @@ void helper_4xx_tlbwe_hi(CPUPPCState *env, target_ulong= entry, tlb->prot & PAGE_VALID ? 'v' : '-', (int)tlb->PID); } =20 -void helper_4xx_tlbwe_lo(CPUPPCState *env, target_ulong entry, +void HELPER(4xx_tlbwe_lo)(CPUPPCState *env, target_ulong entry, target_ulong val) { CPUState *cs =3D env_cpu(env); @@ -826,7 +826,7 @@ void helper_4xx_tlbwe_lo(CPUPPCState *env, target_ulong= entry, tlb->prot & PAGE_VALID ? 'v' : '-', (int)tlb->PID); } =20 -target_ulong helper_4xx_tlbsx(CPUPPCState *env, target_ulong address) +target_ulong HELPER(4xx_tlbsx)(CPUPPCState *env, target_ulong address) { return ppcemb_tlb_search(env, address, env->spr[SPR_40x_PID]); } @@ -851,7 +851,7 @@ static bool mmubooke_pid_match(CPUPPCState *env, ppcemb= _tlb_t *tlb) } =20 /* PowerPC 440 TLB management */ -void helper_440_tlbwe(CPUPPCState *env, uint32_t word, target_ulong entry, +void HELPER(440_tlbwe)(CPUPPCState *env, uint32_t word, target_ulong entry, target_ulong value) { ppcemb_tlb_t *tlb; @@ -912,7 +912,7 @@ void helper_440_tlbwe(CPUPPCState *env, uint32_t word, = target_ulong entry, } } =20 -target_ulong helper_440_tlbre(CPUPPCState *env, uint32_t word, +target_ulong HELPER(440_tlbre)(CPUPPCState *env, uint32_t word, target_ulong entry) { ppcemb_tlb_t *tlb; @@ -968,7 +968,7 @@ target_ulong helper_440_tlbre(CPUPPCState *env, uint32_= t word, return ret; } =20 -target_ulong helper_440_tlbsx(CPUPPCState *env, target_ulong address) +target_ulong HELPER(440_tlbsx)(CPUPPCState *env, target_ulong address) { return ppcemb_tlb_search(env, address, env->spr[SPR_440_MMUCR] & 0xFF); } @@ -992,19 +992,19 @@ static ppcmas_tlb_t *booke206_cur_tlb(CPUPPCState *en= v) return booke206_get_tlbm(env, tlb, ea, esel); } =20 -void helper_booke_setpid(CPUPPCState *env, uint32_t pidn, target_ulong pid) +void HELPER(booke_setpid)(CPUPPCState *env, uint32_t pidn, target_ulong pi= d) { env->spr[pidn] =3D pid; /* changing PIDs mean we're in a different address space now */ tlb_flush(env_cpu(env)); } =20 -void helper_booke_set_eplc(CPUPPCState *env, target_ulong val) +void HELPER(booke_set_eplc)(CPUPPCState *env, target_ulong val) { env->spr[SPR_BOOKE_EPLC] =3D val & EPID_MASK; tlb_flush_by_mmuidx(env_cpu(env), 1 << PPC_TLB_EPID_LOAD); } -void helper_booke_set_epsc(CPUPPCState *env, target_ulong val) +void HELPER(booke_set_epsc)(CPUPPCState *env, target_ulong val) { env->spr[SPR_BOOKE_EPSC] =3D val & EPID_MASK; tlb_flush_by_mmuidx(env_cpu(env), 1 << PPC_TLB_EPID_STORE); @@ -1019,7 +1019,7 @@ static inline void flush_page(CPUPPCState *env, ppcma= s_tlb_t *tlb) } } =20 -void helper_booke206_tlbwe(CPUPPCState *env) +void HELPER(booke206_tlbwe)(CPUPPCState *env) { uint32_t tlbncfg, tlbn; ppcmas_tlb_t *tlb; @@ -1147,7 +1147,7 @@ static inline void booke206_tlb_to_mas(CPUPPCState *e= nv, ppcmas_tlb_t *tlb) env->spr[SPR_BOOKE_MAS7] =3D tlb->mas7_3 >> 32; } =20 -void helper_booke206_tlbre(CPUPPCState *env) +void HELPER(booke206_tlbre)(CPUPPCState *env) { ppcmas_tlb_t *tlb =3D NULL; =20 @@ -1159,7 +1159,7 @@ void helper_booke206_tlbre(CPUPPCState *env) } } =20 -void helper_booke206_tlbsx(CPUPPCState *env, target_ulong address) +void HELPER(booke206_tlbsx)(CPUPPCState *env, target_ulong address) { ppcmas_tlb_t *tlb =3D NULL; int i, j; @@ -1233,7 +1233,7 @@ static inline void booke206_invalidate_ea_tlb(CPUPPCS= tate *env, int tlbn, } } =20 -void helper_booke206_tlbivax(CPUPPCState *env, target_ulong address) +void HELPER(booke206_tlbivax)(CPUPPCState *env, target_ulong address) { CPUState *cs; =20 @@ -1264,13 +1264,13 @@ void helper_booke206_tlbivax(CPUPPCState *env, targ= et_ulong address) } } =20 -void helper_booke206_tlbilx0(CPUPPCState *env, target_ulong address) +void HELPER(booke206_tlbilx0)(CPUPPCState *env, target_ulong address) { /* XXX missing LPID handling */ booke206_flush_tlb(env, -1, 1); } =20 -void helper_booke206_tlbilx1(CPUPPCState *env, target_ulong address) +void HELPER(booke206_tlbilx1)(CPUPPCState *env, target_ulong address) { int i, j; int tid =3D (env->spr[SPR_BOOKE_MAS6] & MAS6_SPID); @@ -1291,7 +1291,7 @@ void helper_booke206_tlbilx1(CPUPPCState *env, target= _ulong address) tlb_flush(env_cpu(env)); } =20 -void helper_booke206_tlbilx3(CPUPPCState *env, target_ulong address) +void HELPER(booke206_tlbilx3)(CPUPPCState *env, target_ulong address) { int i, j; ppcmas_tlb_t *tlb; @@ -1331,7 +1331,7 @@ void helper_booke206_tlbilx3(CPUPPCState *env, target= _ulong address) tlb_flush(env_cpu(env)); } =20 -void helper_booke206_tlbflush(CPUPPCState *env, target_ulong type) +void HELPER(booke206_tlbflush)(CPUPPCState *env, target_ulong type) { int flags =3D 0; =20 @@ -1347,12 +1347,12 @@ void helper_booke206_tlbflush(CPUPPCState *env, tar= get_ulong type) } =20 =20 -void helper_check_tlb_flush_local(CPUPPCState *env) +void HELPER(check_tlb_flush_local)(CPUPPCState *env) { check_tlb_flush(env, false); } =20 -void helper_check_tlb_flush_global(CPUPPCState *env) +void HELPER(check_tlb_flush_global)(CPUPPCState *env) { check_tlb_flush(env, true); } diff --git a/target/ppc/power8-pmu.c b/target/ppc/power8-pmu.c index 2a7a5b493af..772e257e87a 100644 --- a/target/ppc/power8-pmu.c +++ b/target/ppc/power8-pmu.c @@ -286,7 +286,7 @@ static void pmu_delete_timers(CPUPPCState *env) } } =20 -void helper_store_mmcr0(CPUPPCState *env, target_ulong value) +void HELPER(store_mmcr0)(CPUPPCState *env, target_ulong value) { pmu_update_cycles(env); =20 @@ -298,7 +298,7 @@ void helper_store_mmcr0(CPUPPCState *env, target_ulong = value) pmu_update_overflow_timers(env); } =20 -void helper_store_mmcr1(CPUPPCState *env, uint64_t value) +void HELPER(store_mmcr1)(CPUPPCState *env, uint64_t value) { pmu_update_cycles(env); =20 @@ -307,21 +307,21 @@ void helper_store_mmcr1(CPUPPCState *env, uint64_t va= lue) pmu_mmcr01a_updated(env); } =20 -void helper_store_mmcrA(CPUPPCState *env, uint64_t value) +void HELPER(store_mmcrA)(CPUPPCState *env, uint64_t value) { env->spr[SPR_POWER_MMCRA] =3D value; =20 pmu_mmcr01a_updated(env); } =20 -target_ulong helper_read_pmc(CPUPPCState *env, uint32_t sprn) +target_ulong HELPER(read_pmc)(CPUPPCState *env, uint32_t sprn) { pmu_update_cycles(env); =20 return env->spr[sprn]; } =20 -void helper_store_pmc(CPUPPCState *env, uint32_t sprn, uint64_t value) +void HELPER(store_pmc)(CPUPPCState *env, uint32_t sprn, uint64_t value) { pmu_update_cycles(env); =20 @@ -360,14 +360,14 @@ static void perfm_alert(PowerPCCPU *cpu) raise_ebb_perfm_exception(env); } =20 -void helper_handle_pmc5_overflow(CPUPPCState *env) +void HELPER(handle_pmc5_overflow)(CPUPPCState *env) { env->spr[SPR_POWER_PMC5] =3D PMC_COUNTER_NEGATIVE_VAL; perfm_alert(env_archcpu(env)); } =20 /* This helper assumes that the PMC is running. */ -void helper_insns_inc(CPUPPCState *env, uint32_t num_insns) +void HELPER(insns_inc)(CPUPPCState *env, uint32_t num_insns) { bool overflow_triggered; =20 diff --git a/target/ppc/tcg-excp_helper.c b/target/ppc/tcg-excp_helper.c index 93aedb0c8e2..6ff24e8b719 100644 --- a/target/ppc/tcg-excp_helper.c +++ b/target/ppc/tcg-excp_helper.c @@ -44,13 +44,13 @@ void raise_exception_err_ra(CPUPPCState *env, uint32_t = exception, cpu_loop_exit_restore(cs, raddr); } =20 -void helper_raise_exception_err(CPUPPCState *env, uint32_t exception, +void HELPER(raise_exception_err)(CPUPPCState *env, uint32_t exception, uint32_t error_code) { raise_exception_err_ra(env, exception, error_code, 0); } =20 -void helper_raise_exception(CPUPPCState *env, uint32_t exception) +void HELPER(raise_exception)(CPUPPCState *env, uint32_t exception) { raise_exception_err_ra(env, exception, 0, 0); } @@ -70,7 +70,7 @@ static G_NORETURN void raise_exception(CPUPPCState *env, = uint32_t exception) =20 #endif /* !CONFIG_USER_ONLY */ =20 -void helper_TW(CPUPPCState *env, target_ulong arg1, target_ulong arg2, +void HELPER(TW)(CPUPPCState *env, target_ulong arg1, target_ulong arg2, uint32_t flags) { if (!likely(!(((int32_t)arg1 < (int32_t)arg2 && (flags & 0x10)) || @@ -84,7 +84,7 @@ void helper_TW(CPUPPCState *env, target_ulong arg1, targe= t_ulong arg2, } =20 #ifdef TARGET_PPC64 -void helper_TD(CPUPPCState *env, target_ulong arg1, target_ulong arg2, +void HELPER(TD)(CPUPPCState *env, target_ulong arg1, target_ulong arg2, uint32_t flags) { if (!likely(!(((int64_t)arg1 < (int64_t)arg2 && (flags & 0x10)) || @@ -181,7 +181,7 @@ static void do_hash(CPUPPCState *env, target_ulong ea, = target_ulong ra, =20 #ifdef TARGET_PPC64 #define HELPER_HASH(op, key, store, dexcr_aspect) = \ -void helper_##op(CPUPPCState *env, target_ulong ea, target_ulong ra, = \ +void HELPER(op)(CPUPPCState *env, target_ulong ea, target_ulong ra, = \ target_ulong rb) = \ { = \ if (env->msr & R_MSR_PR_MASK) { = \ @@ -201,7 +201,7 @@ void helper_##op(CPUPPCState *env, target_ulong ea, tar= get_ulong ra, \ } #else #define HELPER_HASH(op, key, store, dexcr_aspect) = \ -void helper_##op(CPUPPCState *env, target_ulong ea, target_ulong ra, = \ +void HELPER(op)(CPUPPCState *env, target_ulong ea, target_ulong ra, = \ target_ulong rb) = \ { = \ do_hash(env, ea, ra, rb, key, store); = \ @@ -439,7 +439,7 @@ uint32_t ppc_ldl_code(CPUArchState *env, target_ulong a= ddr) } =20 #if defined(TARGET_PPC64) -void helper_attn(CPUPPCState *env) +void HELPER(attn)(CPUPPCState *env) { /* POWER attn is unprivileged when enabled by HID, otherwise illegal */ if ((*env->check_attn)(env)) { @@ -450,7 +450,7 @@ void helper_attn(CPUPPCState *env) } } =20 -void helper_scv(CPUPPCState *env, uint32_t lev) +void HELPER(scv)(CPUPPCState *env, uint32_t lev) { if (env->spr[SPR_FSCR] & (1ull << FSCR_SCV)) { raise_exception_err(env, POWERPC_EXCP_SYSCALL_VECTORED, lev); @@ -459,7 +459,7 @@ void helper_scv(CPUPPCState *env, uint32_t lev) } } =20 -void helper_PMINSN(CPUPPCState *env, uint32_t insn) +void HELPER(PMINSN)(CPUPPCState *env, uint32_t insn) { CPUState *cs =3D env_cpu(env); =20 @@ -479,7 +479,7 @@ void helper_PMINSN(CPUPPCState *env, uint32_t insn) } =20 #endif /* TARGET_PPC64 */ -void helper_store_msr(CPUPPCState *env, target_ulong val) +void HELPER(store_msr)(CPUPPCState *env, target_ulong val) { uint32_t excp =3D hreg_store_msr(env, val, 0); =20 @@ -489,7 +489,7 @@ void helper_store_msr(CPUPPCState *env, target_ulong va= l) } } =20 -void helper_ppc_maybe_interrupt(CPUPPCState *env) +void HELPER(ppc_maybe_interrupt)(CPUPPCState *env) { ppc_maybe_interrupt(env); } @@ -528,13 +528,13 @@ static void do_rfi(CPUPPCState *env, target_ulong nip= , target_ulong msr) check_tlb_flush(env, false); } =20 -void helper_RFI(CPUPPCState *env) +void HELPER(RFI)(CPUPPCState *env) { do_rfi(env, env->spr[SPR_SRR0], env->spr[SPR_SRR1] & 0xfffffffful); } =20 #ifdef TARGET_PPC64 -void helper_RFID(CPUPPCState *env) +void HELPER(RFID)(CPUPPCState *env) { /* * The architecture defines a number of rules for which bits can @@ -545,17 +545,17 @@ void helper_RFID(CPUPPCState *env) do_rfi(env, env->spr[SPR_SRR0], env->spr[SPR_SRR1]); } =20 -void helper_RFSCV(CPUPPCState *env) +void HELPER(RFSCV)(CPUPPCState *env) { do_rfi(env, env->lr, env->ctr); } =20 -void helper_HRFID(CPUPPCState *env) +void HELPER(HRFID)(CPUPPCState *env) { do_rfi(env, env->spr[SPR_HSRR0], env->spr[SPR_HSRR1]); } =20 -void helper_rfebb(CPUPPCState *env, target_ulong s) +void HELPER(rfebb)(CPUPPCState *env, target_ulong s) { target_ulong msr =3D env->msr; =20 @@ -601,7 +601,7 @@ static void do_ebb(CPUPPCState *env, int ebb_excp) * FSCR_EBB and FSCR_IC_EBB are the same bits used with * HFSCR. */ - helper_fscr_facility_check(env, FSCR_EBB, 0, FSCR_IC_EBB); + HELPER(fscr_facility_check)(env, FSCR_EBB, 0, FSCR_IC_EBB); helper_hfscr_facility_check(env, FSCR_EBB, "EBB", FSCR_IC_EBB); =20 if (ebb_excp =3D=3D POWERPC_EXCP_PERFM_EBB) { @@ -633,23 +633,23 @@ void raise_ebb_perfm_exception(CPUPPCState *env) =20 /*************************************************************************= ****/ /* Embedded PowerPC specific helpers */ -void helper_40x_rfci(CPUPPCState *env) +void HELPER(40x_rfci)(CPUPPCState *env) { do_rfi(env, env->spr[SPR_40x_SRR2], env->spr[SPR_40x_SRR3]); } =20 -void helper_rfci(CPUPPCState *env) +void HELPER(rfci)(CPUPPCState *env) { do_rfi(env, env->spr[SPR_BOOKE_CSRR0], env->spr[SPR_BOOKE_CSRR1]); } =20 -void helper_rfdi(CPUPPCState *env) +void HELPER(rfdi)(CPUPPCState *env) { /* FIXME: choose CSRR1 or DSRR1 based on cpu type */ do_rfi(env, env->spr[SPR_BOOKE_DSRR0], env->spr[SPR_BOOKE_DSRR1]); } =20 -void helper_rfmci(CPUPPCState *env) +void HELPER(rfmci)(CPUPPCState *env) { /* FIXME: choose CSRR1 or MCSRR1 based on cpu type */ do_rfi(env, env->spr[SPR_BOOKE_MCSRR0], env->spr[SPR_BOOKE_MCSRR1]); @@ -679,7 +679,7 @@ static int dbell2irq(target_ulong rb) return irq; } =20 -void helper_msgclr(CPUPPCState *env, target_ulong rb) +void HELPER(msgclr)(CPUPPCState *env, target_ulong rb) { int irq =3D dbell2irq(rb); =20 @@ -690,7 +690,7 @@ void helper_msgclr(CPUPPCState *env, target_ulong rb) ppc_set_irq(env_archcpu(env), irq, 0); } =20 -void helper_msgsnd(target_ulong rb) +void HELPER(msgsnd)(target_ulong rb) { int irq =3D dbell2irq(rb); int pir =3D rb & DBELL_PIRTAG_MASK; @@ -762,7 +762,7 @@ static void msgsnd_core_tir(CPUPPCState *env, uint32_t = target_tir, int irq) } } =20 -void helper_book3s_msgclr(CPUPPCState *env, target_ulong rb) +void HELPER(book3s_msgclr)(CPUPPCState *env, target_ulong rb) { if (!dbell_type_server(rb)) { return; @@ -771,7 +771,7 @@ void helper_book3s_msgclr(CPUPPCState *env, target_ulon= g rb) ppc_set_irq(env_archcpu(env), PPC_INTERRUPT_HDOORBELL, 0); } =20 -void helper_book3s_msgsnd(CPUPPCState *env, target_ulong rb) +void HELPER(book3s_msgsnd)(CPUPPCState *env, target_ulong rb) { int pir =3D rb & DBELL_PROCIDTAG_MASK; bool brdcast =3D false; @@ -818,7 +818,7 @@ void helper_book3s_msgsnd(CPUPPCState *env, target_ulon= g rb) } =20 #ifdef TARGET_PPC64 -void helper_book3s_msgclrp(CPUPPCState *env, target_ulong rb) +void HELPER(book3s_msgclrp)(CPUPPCState *env, target_ulong rb) { helper_hfscr_facility_check(env, HFSCR_MSGP, "msgclrp", HFSCR_IC_MSGP); =20 @@ -833,7 +833,7 @@ void helper_book3s_msgclrp(CPUPPCState *env, target_ulo= ng rb) * sends a message to another thread on the same * multi-threaded processor */ -void helper_book3s_msgsndp(CPUPPCState *env, target_ulong rb) +void HELPER(book3s_msgsndp)(CPUPPCState *env, target_ulong rb) { helper_hfscr_facility_check(env, HFSCR_MSGP, "msgsndp", HFSCR_IC_MSGP); =20 @@ -846,7 +846,7 @@ void helper_book3s_msgsndp(CPUPPCState *env, target_ulo= ng rb) #endif /* TARGET_PPC64 */ =20 /* Single-step tracing */ -void helper_book3s_trace(CPUPPCState *env, target_ulong prev_ip) +void HELPER(book3s_trace)(CPUPPCState *env, target_ulong prev_ip) { uint32_t error_code =3D 0; if (env->insns_flags2 & PPC2_ISA207) { diff --git a/target/ppc/timebase_helper.c b/target/ppc/timebase_helper.c index 7209b418fb6..f345be22caa 100644 --- a/target/ppc/timebase_helper.c +++ b/target/ppc/timebase_helper.c @@ -26,38 +26,38 @@ /*************************************************************************= ****/ /* SPR accesses */ =20 -target_ulong helper_load_tbl(CPUPPCState *env) +target_ulong HELPER(load_tbl)(CPUPPCState *env) { return (target_ulong)cpu_ppc_load_tbl(env); } =20 -target_ulong helper_load_tbu(CPUPPCState *env) +target_ulong HELPER(load_tbu)(CPUPPCState *env) { return cpu_ppc_load_tbu(env); } =20 -target_ulong helper_load_atbl(CPUPPCState *env) +target_ulong HELPER(load_atbl)(CPUPPCState *env) { return (target_ulong)cpu_ppc_load_atbl(env); } =20 -target_ulong helper_load_atbu(CPUPPCState *env) +target_ulong HELPER(load_atbu)(CPUPPCState *env) { return cpu_ppc_load_atbu(env); } =20 -target_ulong helper_load_vtb(CPUPPCState *env) +target_ulong HELPER(load_vtb)(CPUPPCState *env) { return cpu_ppc_load_vtb(env); } =20 #if defined(TARGET_PPC64) && !defined(CONFIG_USER_ONLY) -target_ulong helper_load_purr(CPUPPCState *env) +target_ulong HELPER(load_purr)(CPUPPCState *env) { return (target_ulong)cpu_ppc_load_purr(env); } =20 -void helper_store_purr(CPUPPCState *env, target_ulong val) +void HELPER(store_purr)(CPUPPCState *env, target_ulong val) { CPUState *cs =3D env_cpu(env); CPUState *ccs; @@ -75,7 +75,7 @@ void helper_store_purr(CPUPPCState *env, target_ulong val) #endif =20 #if !defined(CONFIG_USER_ONLY) -void helper_store_tbl(CPUPPCState *env, target_ulong val) +void HELPER(store_tbl)(CPUPPCState *env, target_ulong val) { CPUState *cs =3D env_cpu(env); CPUState *ccs; @@ -91,7 +91,7 @@ void helper_store_tbl(CPUPPCState *env, target_ulong val) } } =20 -void helper_store_tbu(CPUPPCState *env, target_ulong val) +void HELPER(store_tbu)(CPUPPCState *env, target_ulong val) { CPUState *cs =3D env_cpu(env); CPUState *ccs; @@ -107,32 +107,32 @@ void helper_store_tbu(CPUPPCState *env, target_ulong = val) } } =20 -void helper_store_atbl(CPUPPCState *env, target_ulong val) +void HELPER(store_atbl)(CPUPPCState *env, target_ulong val) { cpu_ppc_store_atbl(env, val); } =20 -void helper_store_atbu(CPUPPCState *env, target_ulong val) +void HELPER(store_atbu)(CPUPPCState *env, target_ulong val) { cpu_ppc_store_atbu(env, val); } =20 -target_ulong helper_load_decr(CPUPPCState *env) +target_ulong HELPER(load_decr)(CPUPPCState *env) { return cpu_ppc_load_decr(env); } =20 -void helper_store_decr(CPUPPCState *env, target_ulong val) +void HELPER(store_decr)(CPUPPCState *env, target_ulong val) { cpu_ppc_store_decr(env, val); } =20 -target_ulong helper_load_hdecr(CPUPPCState *env) +target_ulong HELPER(load_hdecr)(CPUPPCState *env) { return cpu_ppc_load_hdecr(env); } =20 -void helper_store_hdecr(CPUPPCState *env, target_ulong val) +void HELPER(store_hdecr)(CPUPPCState *env, target_ulong val) { CPUState *cs =3D env_cpu(env); CPUState *ccs; @@ -148,7 +148,7 @@ void helper_store_hdecr(CPUPPCState *env, target_ulong = val) } } =20 -void helper_store_vtb(CPUPPCState *env, target_ulong val) +void HELPER(store_vtb)(CPUPPCState *env, target_ulong val) { CPUState *cs =3D env_cpu(env); CPUState *ccs; @@ -164,7 +164,7 @@ void helper_store_vtb(CPUPPCState *env, target_ulong va= l) } } =20 -void helper_store_tbu40(CPUPPCState *env, target_ulong val) +void HELPER(store_tbu40)(CPUPPCState *env, target_ulong val) { CPUState *cs =3D env_cpu(env); CPUState *ccs; @@ -180,32 +180,32 @@ void helper_store_tbu40(CPUPPCState *env, target_ulon= g val) } } =20 -target_ulong helper_load_40x_pit(CPUPPCState *env) +target_ulong HELPER(load_40x_pit)(CPUPPCState *env) { return load_40x_pit(env); } =20 -void helper_store_40x_pit(CPUPPCState *env, target_ulong val) +void HELPER(store_40x_pit)(CPUPPCState *env, target_ulong val) { store_40x_pit(env, val); } =20 -void helper_store_40x_tcr(CPUPPCState *env, target_ulong val) +void HELPER(store_40x_tcr)(CPUPPCState *env, target_ulong val) { store_40x_tcr(env, val); } =20 -void helper_store_40x_tsr(CPUPPCState *env, target_ulong val) +void HELPER(store_40x_tsr)(CPUPPCState *env, target_ulong val) { store_40x_tsr(env, val); } =20 -void helper_store_booke_tcr(CPUPPCState *env, target_ulong val) +void HELPER(store_booke_tcr)(CPUPPCState *env, target_ulong val) { store_booke_tcr(env, val); } =20 -void helper_store_booke_tsr(CPUPPCState *env, target_ulong val) +void HELPER(store_booke_tsr)(CPUPPCState *env, target_ulong val) { store_booke_tsr(env, val); } @@ -369,14 +369,14 @@ static void tb_state_machine_step(CPUPPCState *env) write_tfmr(env, tfmr); } =20 -target_ulong helper_load_tfmr(CPUPPCState *env) +target_ulong HELPER(load_tfmr)(CPUPPCState *env) { tb_state_machine_step(env); =20 return env->spr[SPR_TFMR] | TFMR_TB_ECLIPZ; } =20 -void helper_store_tfmr(CPUPPCState *env, target_ulong val) +void HELPER(store_tfmr)(CPUPPCState *env, target_ulong val) { PowerPCCPU *cpu =3D env_archcpu(env); PnvCoreTODState *tod_state =3D cpu_get_tbst(cpu); @@ -464,7 +464,7 @@ out: /* Embedded PowerPC specific helpers */ =20 /* XXX: to be improved to check access rights when in user-mode */ -target_ulong helper_load_dcr(CPUPPCState *env, target_ulong dcrn) +target_ulong HELPER(load_dcr)(CPUPPCState *env, target_ulong dcrn) { uint32_t val =3D 0; =20 @@ -490,7 +490,7 @@ target_ulong helper_load_dcr(CPUPPCState *env, target_u= long dcrn) return val; } =20 -void helper_store_dcr(CPUPPCState *env, target_ulong dcrn, target_ulong va= l) +void HELPER(store_dcr)(CPUPPCState *env, target_ulong dcrn, target_ulong v= al) { if (unlikely(env->dcr_env =3D=3D NULL)) { qemu_log_mask(LOG_GUEST_ERROR, "No DCR environment\n"); diff --git a/target/ppc/translate/vsx-impl.c.inc b/target/ppc/translate/vsx= -impl.c.inc index 78311dcba9d..95003be99b2 100644 --- a/target/ppc/translate/vsx-impl.c.inc +++ b/target/ppc/translate/vsx-impl.c.inc @@ -1679,7 +1679,7 @@ static bool trans_XXSPLTIDP(DisasContext *ctx, arg_8R= R_D *a) REQUIRE_VSX(ctx); =20 tcg_gen_gvec_dup_imm(MO_64, vsr_full_offset(a->xt), 16, 16, - helper_todouble(a->si)); + HELPER(todouble)(a->si)); return true; } =20 --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792444984; cv=none; d=zohomail.com; s=zohoarc; b=Ta2sbj1mjDzUBYQtRrVVOFxssAOl8UGTc47+oclhMVuvy4QoIzbTv3cNax9nVagGvfN0G/Gus4VGTlAXv1vyfVU8Cnexhpga92qcoXZMByHqJuO4P/lQqzrx4e6YGa9MshvP4UM8eUdQX7lqNArCIvVkUFOA7YJ8VDVB8P8lF7g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792444984; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=YywIKROtOgAKHHBXnr2hOts/zr574mINET7wcNKkjsU=; b=Gvl74CL29YKJsMnQDnUypP8FBlzELie/6J4np4f/pJvDiekFlw957kyFPOcaIyxSW2Q6gfEbhX37tvi46GzDo2xo9j1DI0xwaQXirAKF4YDU85ZF6aVLayaBXZneQ82CjmnWvbqIhAKc8o5B4mlTQo3+WjMcM80nOtVgoR8RIPI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179244498496321.529042190099403; Mon, 19 Oct 2026 14:23:04 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunL-0001g0-Gl; Mon, 19 Oct 2026 17:21:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunJ-0001fB-Ro for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:21 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunF-0005hQ-Aa for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:21 -0400 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJKFCP550297 for ; Mon, 19 Oct 2026 21:21:15 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf47kc50-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:15 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3ac77c3ff6aso3442858a91.0 for ; Mon, 19 Oct 2026 14:21:15 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=YywIKROtOgA KHHBXnr2hOts/zr574mINET7wcNKkjsU=; b=jykGCnMXPzdFgKkgocbYAXLydsj 3SyASpVi8806NuEfEIV+p5F/QssMSmmaE4cMCHuwShw6OY3SMgFKYT7ilsjDoJFp GLL4rR9BL2XUun0QIk/2DbBejMTQZb07PsX+KZ7ZZ6QdD0c0hafJvVpMy+WaC1kt 04mCV50tZvMideG8Wjgt5ErevAYsJ6WeLcyKXLGcQ7x/coOJ35XUZXdHVbmoHiQ1 nzXsTP+FJKfj6CtwDm1blTfLKaovf4usg96tMg7dJiOn0hAcvrngyd8x23Oztu29 Qwtqjo+eFyX7Xz9N5P0dVgcCSCHOuSQViDhkcndUQ9fSmSD+b1mNvG6NoWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444875; x=1793049675; 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:content-type; bh=YywIKROtOgAKHHBXnr2hOts/zr574mINET7wcNKkjsU=; b=KHHhSAJvrBmW6DjewSVMvwLBNELywC2uZZCIB9XvF0Pw/y7zCuZJ/BhLtUGEkar4RV oqVT4va59/8MvrionkUezjVbIXYti6GmSaD2fCN3JULYM81pMyiddol9Ny2RI4MlWXKJ fXxof42FLf2p5AeFKhdrr5nPCIJ2rlmxO2qFoL9i1RCzLMyias7aDLlZnljS48e1Os/2 ZEujb7ktrd3IJhHcwxAiGhaNqOsBks84Ah+GHPUoheqq7cAN0m4ScP4DJFEayW7MSI40 SAyRnKSy4o/jfLAT91GkzwYoFukrdG2wzP7Cb3nh3TshXhhKPoCOzSQTK8gffAhxcwWn aqjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444875; x=1793049675; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=YywIKROtOgAKHHBXnr2hOts/zr574mINET7wcNKkjsU=; b=vqHnRqqgehoZ4d/hXujM84aePx7eTaWQDGZ2yJADYWN7/S2VQf+ZvRliKSLOI47stv MPmUR5a5YRgOtmb70FIUFNQJfDGgFmGDNvnpXHV2LnPYp5ttkncDuImjgjLpFKatdYoP nXylhukF9Y6w+ZrL6+tSlqj2XZ4i2EJjLs3JzQFAqiicAij08M+WdJbiJWMWwjxbeASG uQ/5Nye0P1QX5rN2R7/Q3G1gnirS8YT8UwFY6UDFw6zGKRVMOUdRxjujC4tGpLm5H8u0 6+8psCbpmxY0c4H2gTb3jV85lm5u19xhr+pjXOGknut/6fQM2SrqQvqdg84bJxNyyNie pbCA== X-Gm-Message-State: AFq9FYKkrswrHyg3LEu3QEReBr607GCS+BWLMyFN2apIyw7/S/ED4xEa pA0d1IiJMeTZ5526luBKIt7WB/AK98pB4NeHAMPTvgUVft+0Fycj37LuKXgl79ibyvq7lfIoQ6z pz4mHnaAURKCWJN4a8e3ML3JxG+/tBpKKhZpTVyKSl96XVcYaJF3qOqV1HTOW7YQ4xw== X-Gm-Gg: AYBFou1o+ZdLtCP3qaOPZou9Yox7tRBVzB29gKg1Wc9SnDWPw2vFAQebHlSUcCsjQGu R5CTgU0f/OSNv9N1F6l6Sx0gTnOedfks1TUHFvz2ktW3WHq7PsML1WXZ0eVTq5F5jdSQS2hKZ4p Pa2lVSi+Yf9aGpnb91oaE3j/cRD2tWDDIaMxu8e8N2ZTa/1cPoAMP6er+AtNvKrEVpT1iDPtiuM HL57YM5V0O8+XwUeFQz8/aYafm4B+6UWyMge5IRJ5yZ+QdYOJXCl+wt/PZ1FewI0bySMt9ngbPY sLs0uUfrzaRuFy4D3J0ClfuiDT6vF0CHv+tPB2DdgjUWASGHp/8hL5M/F9y5nGrzYPzt6tWe7Ua GBIZoszllLn2Z6yYhak2Hx49AzTqnr+KVVX1tElUQfVKzAC4ZMcbIuTp6+DByl+c= X-Received: by 2002:a17:90b:2e90:b0:3ac:8ee9:c8ed with SMTP id 98e67ed59e1d1-3acef101ea9mr8287507a91.13.1792444874193; Mon, 19 Oct 2026 14:21:14 -0700 (PDT) X-Received: by 2002:a17:90b:2e90:b0:3ac:8ee9:c8ed with SMTP id 98e67ed59e1d1-3acef101ea9mr8287476a91.13.1792444873407; Mon, 19 Oct 2026 14:21:13 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 12/26] target/riscv: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:31 +0000 Message-ID: <20261019212046.149572-13-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: 8Nn32qra9VQbTK72ZyezIj1re-JP0w3w X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX8gP1djxcltsh dOAgqSh7uPG9uWKbgve9bY+0wIng5kva8MkuOK9ggiLP5iFRO6/2lbGNCHVTwe0/sNoTz5H6uET OwU9PSXpzIDg2y8ft2sXEJfJ0bniFn/A9AOwTpzAF+B9DFQ5RT2CmHkiHbZeNIZrim6Bk7+gacN KiWAwYCuvxZxjgbCuElyvULLanriflLyy5iDq/RUaIGyin1C7haUYGTOo7I999PFgVWZzVwq/UV 6cVp+urWuIcC7nKOD+PUmKtb/ZZO/CyURNSMghLjtcb8vTBM1zju+MBO7azY9G1XGYAK25rrV1p uNST0krbTUlSVKPMNwKeDEcbAaGmT75dofkbhldzfwHy3rg7rKH0+ssQ88WJKhFmDAsFzrQBzaz 5eBYg/A1PxrldoGZvqF4s+4w/3huD8vGeM27eEvfqrF800WL2s9U67xyHV6pj5RPfbEnUjPWisy 3t5lEuU6GvTnOg8/moA== X-Proofpoint-GUID: 8Nn32qra9VQbTK72ZyezIj1re-JP0w3w X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX6ibHs8Wrtkic x8OzF1txsvfUjkOGh94yns0i4YUv0KKdfac/WeX4WyzL89XN5YFikuwWvS6k16PuQRPwSwluKjB 1hzbq2gtmfMQ/2eexZTzF/l0vfjRk3c= X-Authority-Analysis: v=2.4 cv=cLt1IVeN c=1 sm=1 tr=0 ts=6ad689cb cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=awbDs1vtfMtI2_SikkAA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 phishscore=0 spamscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792444986548158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/riscv/tcg/debug.c | 2 +- target/riscv/tcg/fpu_helper.c | 196 +++++++++++++++++----------------- target/riscv/tcg/op_helper.c | 74 ++++++------- 3 files changed, 136 insertions(+), 136 deletions(-) diff --git a/target/riscv/tcg/debug.c b/target/riscv/tcg/debug.c index aaf2dca17e3..8b58cbd07ab 100644 --- a/target/riscv/tcg/debug.c +++ b/target/riscv/tcg/debug.c @@ -789,7 +789,7 @@ bool riscv_itrigger_enabled(CPURISCVState *env) return false; } =20 -void helper_itrigger_match(CPURISCVState *env) +void HELPER(itrigger_match)(CPURISCVState *env) { int count; for (int i =3D 0; i < env->num_triggers; i++) { diff --git a/target/riscv/tcg/fpu_helper.c b/target/riscv/tcg/fpu_helper.c index db1475271b6..e755f8a0472 100644 --- a/target/riscv/tcg/fpu_helper.c +++ b/target/riscv/tcg/fpu_helper.c @@ -66,7 +66,7 @@ void riscv_cpu_check_fflags(CPURISCVState *env, FloatExceptionFlags pre_fflag) {} #endif =20 -void helper_set_rounding_mode(CPURISCVState *env, uint32_t rm) +void HELPER(set_rounding_mode)(CPURISCVState *env, uint32_t rm) { FloatRoundMode softrm; =20 @@ -96,7 +96,7 @@ void helper_set_rounding_mode(CPURISCVState *env, uint32_= t rm) set_float_rounding_mode(softrm, &env->fp_status); } =20 -void helper_set_rounding_mode_chkfrm(CPURISCVState *env, uint32_t rm) +void HELPER(set_rounding_mode_chkfrm)(CPURISCVState *env, uint32_t rm) { FloatRoundMode softrm; =20 @@ -153,112 +153,112 @@ static uint64_t do_fmadd_s(CPURISCVState *env, uint= 64_t rs1, uint64_t rs2, &env->fp_status)); } =20 -uint64_t helper_fmadd_s(CPURISCVState *env, uint64_t frs1, uint64_t frs2, +uint64_t HELPER(fmadd_s)(CPURISCVState *env, uint64_t frs1, uint64_t frs2, uint64_t frs3) { return do_fmadd_s(env, frs1, frs2, frs3, 0); } =20 -uint64_t helper_fmadd_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2, +uint64_t HELPER(fmadd_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs2, uint64_t frs3) { return float64_muladd(frs1, frs2, frs3, 0, &env->fp_status); } =20 -uint64_t helper_fmadd_h(CPURISCVState *env, uint64_t frs1, uint64_t frs2, +uint64_t HELPER(fmadd_h)(CPURISCVState *env, uint64_t frs1, uint64_t frs2, uint64_t frs3) { return do_fmadd_h(env, frs1, frs2, frs3, 0); } =20 -uint64_t helper_fmsub_s(CPURISCVState *env, uint64_t frs1, uint64_t frs2, +uint64_t HELPER(fmsub_s)(CPURISCVState *env, uint64_t frs1, uint64_t frs2, uint64_t frs3) { return do_fmadd_s(env, frs1, frs2, frs3, float_muladd_negate_c); } =20 -uint64_t helper_fmsub_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2, +uint64_t HELPER(fmsub_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs2, uint64_t frs3) { return float64_muladd(frs1, frs2, frs3, float_muladd_negate_c, &env->fp_status); } =20 -uint64_t helper_fmsub_h(CPURISCVState *env, uint64_t frs1, uint64_t frs2, +uint64_t HELPER(fmsub_h)(CPURISCVState *env, uint64_t frs1, uint64_t frs2, uint64_t frs3) { return do_fmadd_h(env, frs1, frs2, frs3, float_muladd_negate_c); } =20 -uint64_t helper_fnmsub_s(CPURISCVState *env, uint64_t frs1, uint64_t frs2, +uint64_t HELPER(fnmsub_s)(CPURISCVState *env, uint64_t frs1, uint64_t frs2, uint64_t frs3) { return do_fmadd_s(env, frs1, frs2, frs3, float_muladd_negate_product); } =20 -uint64_t helper_fnmsub_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2, +uint64_t HELPER(fnmsub_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs2, uint64_t frs3) { return float64_muladd(frs1, frs2, frs3, float_muladd_negate_product, &env->fp_status); } =20 -uint64_t helper_fnmsub_h(CPURISCVState *env, uint64_t frs1, uint64_t frs2, +uint64_t HELPER(fnmsub_h)(CPURISCVState *env, uint64_t frs1, uint64_t frs2, uint64_t frs3) { return do_fmadd_h(env, frs1, frs2, frs3, float_muladd_negate_product); } =20 -uint64_t helper_fnmadd_s(CPURISCVState *env, uint64_t frs1, uint64_t frs2, +uint64_t HELPER(fnmadd_s)(CPURISCVState *env, uint64_t frs1, uint64_t frs2, uint64_t frs3) { return do_fmadd_s(env, frs1, frs2, frs3, float_muladd_negate_c | float_muladd_negate_product); } =20 -uint64_t helper_fnmadd_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2, +uint64_t HELPER(fnmadd_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs2, uint64_t frs3) { return float64_muladd(frs1, frs2, frs3, float_muladd_negate_c | float_muladd_negate_product, &env->fp_status); } =20 -uint64_t helper_fnmadd_h(CPURISCVState *env, uint64_t frs1, uint64_t frs2, +uint64_t HELPER(fnmadd_h)(CPURISCVState *env, uint64_t frs1, uint64_t frs2, uint64_t frs3) { return do_fmadd_h(env, frs1, frs2, frs3, float_muladd_negate_c | float_muladd_negate_product); } =20 -uint64_t helper_fadd_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fadd_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); return nanbox_s(env, float32_add(frs1, frs2, &env->fp_status)); } =20 -uint64_t helper_fsub_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fsub_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); return nanbox_s(env, float32_sub(frs1, frs2, &env->fp_status)); } =20 -uint64_t helper_fmul_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fmul_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); return nanbox_s(env, float32_mul(frs1, frs2, &env->fp_status)); } =20 -uint64_t helper_fdiv_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fdiv_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); return nanbox_s(env, float32_div(frs1, frs2, &env->fp_status)); } =20 -uint64_t helper_fmin_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fmin_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); @@ -267,7 +267,7 @@ uint64_t helper_fmin_s(CPURISCVState *env, uint64_t rs1= , uint64_t rs2) float32_minimum_number(frs1, frs2, &env->fp_statu= s)); } =20 -uint64_t helper_fminm_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fminm_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); @@ -275,7 +275,7 @@ uint64_t helper_fminm_s(CPURISCVState *env, uint64_t rs= 1, uint64_t rs2) return nanbox_s(env, ret); } =20 -uint64_t helper_fmax_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fmax_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); @@ -284,7 +284,7 @@ uint64_t helper_fmax_s(CPURISCVState *env, uint64_t rs1= , uint64_t rs2) float32_maximum_number(frs1, frs2, &env->fp_statu= s)); } =20 -uint64_t helper_fmaxm_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fmaxm_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); @@ -292,13 +292,13 @@ uint64_t helper_fmaxm_s(CPURISCVState *env, uint64_t = rs1, uint64_t rs2) return nanbox_s(env, ret); } =20 -uint64_t helper_fsqrt_s(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(fsqrt_s)(CPURISCVState *env, uint64_t rs1) { float32 frs1 =3D check_nanbox_s(env, rs1); return nanbox_s(env, float32_sqrt(frs1, &env->fp_status)); } =20 -target_ulong helper_fle_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +target_ulong HELPER(fle_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); @@ -308,7 +308,7 @@ target_ulong helper_fle_s(CPURISCVState *env, uint64_t = rs1, uint64_t rs2) return ret; } =20 -target_ulong helper_fleq_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +target_ulong HELPER(fleq_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); @@ -318,7 +318,7 @@ target_ulong helper_fleq_s(CPURISCVState *env, uint64_t= rs1, uint64_t rs2) return ret; } =20 -target_ulong helper_flt_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +target_ulong HELPER(flt_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); @@ -328,7 +328,7 @@ target_ulong helper_flt_s(CPURISCVState *env, uint64_t = rs1, uint64_t rs2) return ret; } =20 -target_ulong helper_fltq_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +target_ulong HELPER(fltq_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); @@ -338,7 +338,7 @@ target_ulong helper_fltq_s(CPURISCVState *env, uint64_t= rs1, uint64_t rs2) return ret; } =20 -target_ulong helper_feq_s(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +target_ulong HELPER(feq_s)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float32 frs1 =3D check_nanbox_s(env, rs1); float32 frs2 =3D check_nanbox_s(env, rs2); @@ -348,7 +348,7 @@ target_ulong helper_feq_s(CPURISCVState *env, uint64_t = rs1, uint64_t rs2) return ret; } =20 -target_ulong helper_fcvt_w_s(CPURISCVState *env, uint64_t rs1) +target_ulong HELPER(fcvt_w_s)(CPURISCVState *env, uint64_t rs1) { float32 frs1 =3D check_nanbox_s(env, rs1); FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); @@ -357,7 +357,7 @@ target_ulong helper_fcvt_w_s(CPURISCVState *env, uint64= _t rs1) return ret; } =20 -target_ulong helper_fcvt_wu_s(CPURISCVState *env, uint64_t rs1) +target_ulong HELPER(fcvt_wu_s)(CPURISCVState *env, uint64_t rs1) { float32 frs1 =3D check_nanbox_s(env, rs1); FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); @@ -366,7 +366,7 @@ target_ulong helper_fcvt_wu_s(CPURISCVState *env, uint6= 4_t rs1) return ret; } =20 -target_ulong helper_fcvt_l_s(CPURISCVState *env, uint64_t rs1) +target_ulong HELPER(fcvt_l_s)(CPURISCVState *env, uint64_t rs1) { float32 frs1 =3D check_nanbox_s(env, rs1); FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); @@ -375,7 +375,7 @@ target_ulong helper_fcvt_l_s(CPURISCVState *env, uint64= _t rs1) return ret; } =20 -target_ulong helper_fcvt_lu_s(CPURISCVState *env, uint64_t rs1) +target_ulong HELPER(fcvt_lu_s)(CPURISCVState *env, uint64_t rs1) { float32 frs1 =3D check_nanbox_s(env, rs1); FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); @@ -384,33 +384,33 @@ target_ulong helper_fcvt_lu_s(CPURISCVState *env, uin= t64_t rs1) return ret; } =20 -uint64_t helper_fcvt_s_w(CPURISCVState *env, target_ulong rs1) +uint64_t HELPER(fcvt_s_w)(CPURISCVState *env, target_ulong rs1) { return nanbox_s(env, int32_to_float32((int32_t)rs1, &env->fp_status)); } =20 -uint64_t helper_fcvt_s_wu(CPURISCVState *env, target_ulong rs1) +uint64_t HELPER(fcvt_s_wu)(CPURISCVState *env, target_ulong rs1) { return nanbox_s(env, uint32_to_float32((uint32_t)rs1, &env->fp_status)= ); } =20 -uint64_t helper_fcvt_s_l(CPURISCVState *env, target_ulong rs1) +uint64_t HELPER(fcvt_s_l)(CPURISCVState *env, target_ulong rs1) { return nanbox_s(env, int64_to_float32(rs1, &env->fp_status)); } =20 -uint64_t helper_fcvt_s_lu(CPURISCVState *env, target_ulong rs1) +uint64_t HELPER(fcvt_s_lu)(CPURISCVState *env, target_ulong rs1) { return nanbox_s(env, uint64_to_float32(rs1, &env->fp_status)); } =20 -target_ulong helper_fclass_s(CPURISCVState *env, uint64_t rs1) +target_ulong HELPER(fclass_s)(CPURISCVState *env, uint64_t rs1) { float32 frs1 =3D check_nanbox_s(env, rs1); return fclass_s(frs1); } =20 -uint64_t helper_fround_s(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(fround_s)(CPURISCVState *env, uint64_t rs1) { float_status *fs =3D &env->fp_status; uint16_t nx_old =3D get_float_exception_flags(fs) & float_flag_inexact; @@ -427,74 +427,74 @@ uint64_t helper_fround_s(CPURISCVState *env, uint64_t= rs1) return nanbox_s(env, frs1); } =20 -uint64_t helper_froundnx_s(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(froundnx_s)(CPURISCVState *env, uint64_t rs1) { float32 frs1 =3D check_nanbox_s(env, rs1); frs1 =3D float32_round_to_int(frs1, &env->fp_status); return nanbox_s(env, frs1); } =20 -uint64_t helper_fadd_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2) +uint64_t HELPER(fadd_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs2) { return float64_add(frs1, frs2, &env->fp_status); } =20 -uint64_t helper_fsub_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2) +uint64_t HELPER(fsub_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs2) { return float64_sub(frs1, frs2, &env->fp_status); } =20 -uint64_t helper_fmul_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2) +uint64_t HELPER(fmul_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs2) { return float64_mul(frs1, frs2, &env->fp_status); } =20 -uint64_t helper_fdiv_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2) +uint64_t HELPER(fdiv_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs2) { return float64_div(frs1, frs2, &env->fp_status); } =20 -uint64_t helper_fmin_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2) +uint64_t HELPER(fmin_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs2) { return env->priv_ver < PRIV_VERSION_1_11_0 ? float64_minnum(frs1, frs2, &env->fp_status) : float64_minimum_number(frs1, frs2, &env->fp_status); } =20 -uint64_t helper_fminm_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2) +uint64_t HELPER(fminm_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs2) { return float64_min(frs1, frs2, &env->fp_status); } =20 -uint64_t helper_fmax_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2) +uint64_t HELPER(fmax_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs2) { return env->priv_ver < PRIV_VERSION_1_11_0 ? float64_maxnum(frs1, frs2, &env->fp_status) : float64_maximum_number(frs1, frs2, &env->fp_status); } =20 -uint64_t helper_fmaxm_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2) +uint64_t HELPER(fmaxm_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs2) { return float64_max(frs1, frs2, &env->fp_status); } =20 -uint64_t helper_fcvt_s_d(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(fcvt_s_d)(CPURISCVState *env, uint64_t rs1) { return nanbox_s(env, float64_to_float32(rs1, &env->fp_status)); } =20 -uint64_t helper_fcvt_d_s(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(fcvt_d_s)(CPURISCVState *env, uint64_t rs1) { float32 frs1 =3D check_nanbox_s(env, rs1); return float32_to_float64(frs1, &env->fp_status); } =20 -uint64_t helper_fsqrt_d(CPURISCVState *env, uint64_t frs1) +uint64_t HELPER(fsqrt_d)(CPURISCVState *env, uint64_t frs1) { return float64_sqrt(frs1, &env->fp_status); } =20 -target_ulong helper_fle_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2) +target_ulong HELPER(fle_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs= 2) { FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); target_ulong ret =3D float64_le(frs1, frs2, &env->fp_status); @@ -502,7 +502,7 @@ target_ulong helper_fle_d(CPURISCVState *env, uint64_t = frs1, uint64_t frs2) return ret; } =20 -target_ulong helper_fleq_d(CPURISCVState *env, uint64_t frs1, uint64_t frs= 2) +target_ulong HELPER(fleq_d)(CPURISCVState *env, uint64_t frs1, uint64_t fr= s2) { FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); target_ulong ret =3D float64_le_quiet(frs1, frs2, &env->fp_status); @@ -510,7 +510,7 @@ target_ulong helper_fleq_d(CPURISCVState *env, uint64_t= frs1, uint64_t frs2) return ret; } =20 -target_ulong helper_flt_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2) +target_ulong HELPER(flt_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs= 2) { FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); target_ulong ret =3D float64_lt(frs1, frs2, &env->fp_status); @@ -518,7 +518,7 @@ target_ulong helper_flt_d(CPURISCVState *env, uint64_t = frs1, uint64_t frs2) return ret; } =20 -target_ulong helper_fltq_d(CPURISCVState *env, uint64_t frs1, uint64_t frs= 2) +target_ulong HELPER(fltq_d)(CPURISCVState *env, uint64_t frs1, uint64_t fr= s2) { FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); target_ulong ret =3D float64_lt_quiet(frs1, frs2, &env->fp_status); @@ -526,7 +526,7 @@ target_ulong helper_fltq_d(CPURISCVState *env, uint64_t= frs1, uint64_t frs2) return ret; } =20 -target_ulong helper_feq_d(CPURISCVState *env, uint64_t frs1, uint64_t frs2) +target_ulong HELPER(feq_d)(CPURISCVState *env, uint64_t frs1, uint64_t frs= 2) { FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); target_ulong ret =3D float64_eq_quiet(frs1, frs2, &env->fp_status); @@ -534,7 +534,7 @@ target_ulong helper_feq_d(CPURISCVState *env, uint64_t = frs1, uint64_t frs2) return ret; } =20 -target_ulong helper_fcvt_w_d(CPURISCVState *env, uint64_t frs1) +target_ulong HELPER(fcvt_w_d)(CPURISCVState *env, uint64_t frs1) { FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); target_ulong ret =3D float64_to_int32(frs1, &env->fp_status); @@ -542,7 +542,7 @@ target_ulong helper_fcvt_w_d(CPURISCVState *env, uint64= _t frs1) return ret; } =20 -uint64_t helper_fcvtmod_w_d(CPURISCVState *env, uint64_t value) +uint64_t HELPER(fcvtmod_w_d)(CPURISCVState *env, uint64_t value) { FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); uint64_t ret =3D float64_to_int32_modulo(value, float_round_to_zero, @@ -551,7 +551,7 @@ uint64_t helper_fcvtmod_w_d(CPURISCVState *env, uint64_= t value) return ret; } =20 -target_ulong helper_fcvt_wu_d(CPURISCVState *env, uint64_t frs1) +target_ulong HELPER(fcvt_wu_d)(CPURISCVState *env, uint64_t frs1) { FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); target_ulong ret =3D (int32_t)float64_to_uint32(frs1, &env->fp_status); @@ -559,7 +559,7 @@ target_ulong helper_fcvt_wu_d(CPURISCVState *env, uint6= 4_t frs1) return ret; } =20 -target_ulong helper_fcvt_l_d(CPURISCVState *env, uint64_t frs1) +target_ulong HELPER(fcvt_l_d)(CPURISCVState *env, uint64_t frs1) { FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); target_ulong ret =3D float64_to_int64(frs1, &env->fp_status); @@ -567,7 +567,7 @@ target_ulong helper_fcvt_l_d(CPURISCVState *env, uint64= _t frs1) return ret; } =20 -target_ulong helper_fcvt_lu_d(CPURISCVState *env, uint64_t frs1) +target_ulong HELPER(fcvt_lu_d)(CPURISCVState *env, uint64_t frs1) { FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); target_ulong ret =3D float64_to_uint64(frs1, &env->fp_status); @@ -575,32 +575,32 @@ target_ulong helper_fcvt_lu_d(CPURISCVState *env, uin= t64_t frs1) return ret; } =20 -uint64_t helper_fcvt_d_w(CPURISCVState *env, target_ulong rs1) +uint64_t HELPER(fcvt_d_w)(CPURISCVState *env, target_ulong rs1) { return int32_to_float64((int32_t)rs1, &env->fp_status); } =20 -uint64_t helper_fcvt_d_wu(CPURISCVState *env, target_ulong rs1) +uint64_t HELPER(fcvt_d_wu)(CPURISCVState *env, target_ulong rs1) { return uint32_to_float64((uint32_t)rs1, &env->fp_status); } =20 -uint64_t helper_fcvt_d_l(CPURISCVState *env, target_ulong rs1) +uint64_t HELPER(fcvt_d_l)(CPURISCVState *env, target_ulong rs1) { return int64_to_float64(rs1, &env->fp_status); } =20 -uint64_t helper_fcvt_d_lu(CPURISCVState *env, target_ulong rs1) +uint64_t HELPER(fcvt_d_lu)(CPURISCVState *env, target_ulong rs1) { return uint64_to_float64(rs1, &env->fp_status); } =20 -target_ulong helper_fclass_d(uint64_t frs1) +target_ulong HELPER(fclass_d)(uint64_t frs1) { return fclass_d(frs1); } =20 -uint64_t helper_fround_d(CPURISCVState *env, uint64_t frs1) +uint64_t HELPER(fround_d)(CPURISCVState *env, uint64_t frs1) { float_status *fs =3D &env->fp_status; uint16_t nx_old =3D get_float_exception_flags(fs) & float_flag_inexact; @@ -616,40 +616,40 @@ uint64_t helper_fround_d(CPURISCVState *env, uint64_t= frs1) return frs1; } =20 -uint64_t helper_froundnx_d(CPURISCVState *env, uint64_t frs1) +uint64_t HELPER(froundnx_d)(CPURISCVState *env, uint64_t frs1) { return float64_round_to_int(frs1, &env->fp_status); } =20 -uint64_t helper_fadd_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fadd_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); return nanbox_h(env, float16_add(frs1, frs2, &env->fp_status)); } =20 -uint64_t helper_fsub_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fsub_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); return nanbox_h(env, float16_sub(frs1, frs2, &env->fp_status)); } =20 -uint64_t helper_fmul_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fmul_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); return nanbox_h(env, float16_mul(frs1, frs2, &env->fp_status)); } =20 -uint64_t helper_fdiv_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fdiv_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); return nanbox_h(env, float16_div(frs1, frs2, &env->fp_status)); } =20 -uint64_t helper_fmin_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fmin_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); @@ -658,7 +658,7 @@ uint64_t helper_fmin_h(CPURISCVState *env, uint64_t rs1= , uint64_t rs2) float16_minimum_number(frs1, frs2, &env->fp_statu= s)); } =20 -uint64_t helper_fminm_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fminm_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); @@ -666,7 +666,7 @@ uint64_t helper_fminm_h(CPURISCVState *env, uint64_t rs= 1, uint64_t rs2) return nanbox_h(env, ret); } =20 -uint64_t helper_fmax_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fmax_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); @@ -675,7 +675,7 @@ uint64_t helper_fmax_h(CPURISCVState *env, uint64_t rs1= , uint64_t rs2) float16_maximum_number(frs1, frs2, &env->fp_statu= s)); } =20 -uint64_t helper_fmaxm_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fmaxm_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); @@ -683,13 +683,13 @@ uint64_t helper_fmaxm_h(CPURISCVState *env, uint64_t = rs1, uint64_t rs2) return nanbox_h(env, ret); } =20 -uint64_t helper_fsqrt_h(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(fsqrt_h)(CPURISCVState *env, uint64_t rs1) { float16 frs1 =3D check_nanbox_h(env, rs1); return nanbox_h(env, float16_sqrt(frs1, &env->fp_status)); } =20 -target_ulong helper_fle_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +target_ulong HELPER(fle_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); @@ -699,7 +699,7 @@ target_ulong helper_fle_h(CPURISCVState *env, uint64_t = rs1, uint64_t rs2) return ret; } =20 -target_ulong helper_fleq_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +target_ulong HELPER(fleq_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); @@ -709,7 +709,7 @@ target_ulong helper_fleq_h(CPURISCVState *env, uint64_t= rs1, uint64_t rs2) return ret; } =20 -target_ulong helper_flt_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +target_ulong HELPER(flt_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); @@ -719,7 +719,7 @@ target_ulong helper_flt_h(CPURISCVState *env, uint64_t = rs1, uint64_t rs2) return ret; } =20 -target_ulong helper_fltq_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +target_ulong HELPER(fltq_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); @@ -729,7 +729,7 @@ target_ulong helper_fltq_h(CPURISCVState *env, uint64_t= rs1, uint64_t rs2) return ret; } =20 -target_ulong helper_feq_h(CPURISCVState *env, uint64_t rs1, uint64_t rs2) +target_ulong HELPER(feq_h)(CPURISCVState *env, uint64_t rs1, uint64_t rs2) { float16 frs1 =3D check_nanbox_h(env, rs1); float16 frs2 =3D check_nanbox_h(env, rs2); @@ -739,13 +739,13 @@ target_ulong helper_feq_h(CPURISCVState *env, uint64_= t rs1, uint64_t rs2) return ret; } =20 -target_ulong helper_fclass_h(CPURISCVState *env, uint64_t rs1) +target_ulong HELPER(fclass_h)(CPURISCVState *env, uint64_t rs1) { float16 frs1 =3D check_nanbox_h(env, rs1); return fclass_h(frs1); } =20 -uint64_t helper_fround_h(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(fround_h)(CPURISCVState *env, uint64_t rs1) { float_status *fs =3D &env->fp_status; uint16_t nx_old =3D get_float_exception_flags(fs) & float_flag_inexact; @@ -762,14 +762,14 @@ uint64_t helper_fround_h(CPURISCVState *env, uint64_t= rs1) return nanbox_h(env, frs1); } =20 -uint64_t helper_froundnx_h(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(froundnx_h)(CPURISCVState *env, uint64_t rs1) { float16 frs1 =3D check_nanbox_h(env, rs1); frs1 =3D float16_round_to_int(frs1, &env->fp_status); return nanbox_h(env, frs1); } =20 -target_ulong helper_fcvt_w_h(CPURISCVState *env, uint64_t rs1) +target_ulong HELPER(fcvt_w_h)(CPURISCVState *env, uint64_t rs1) { float16 frs1 =3D check_nanbox_h(env, rs1); FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); @@ -778,7 +778,7 @@ target_ulong helper_fcvt_w_h(CPURISCVState *env, uint64= _t rs1) return ret; } =20 -target_ulong helper_fcvt_wu_h(CPURISCVState *env, uint64_t rs1) +target_ulong HELPER(fcvt_wu_h)(CPURISCVState *env, uint64_t rs1) { float16 frs1 =3D check_nanbox_h(env, rs1); FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); @@ -787,7 +787,7 @@ target_ulong helper_fcvt_wu_h(CPURISCVState *env, uint6= 4_t rs1) return ret; } =20 -target_ulong helper_fcvt_l_h(CPURISCVState *env, uint64_t rs1) +target_ulong HELPER(fcvt_l_h)(CPURISCVState *env, uint64_t rs1) { float16 frs1 =3D check_nanbox_h(env, rs1); FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); @@ -796,7 +796,7 @@ target_ulong helper_fcvt_l_h(CPURISCVState *env, uint64= _t rs1) return ret; } =20 -target_ulong helper_fcvt_lu_h(CPURISCVState *env, uint64_t rs1) +target_ulong HELPER(fcvt_lu_h)(CPURISCVState *env, uint64_t rs1) { float16 frs1 =3D check_nanbox_h(env, rs1); FloatExceptionFlags pre_fflag =3D get_float_exception_flags(&env->fp_s= tatus); @@ -805,56 +805,56 @@ target_ulong helper_fcvt_lu_h(CPURISCVState *env, uin= t64_t rs1) return ret; } =20 -uint64_t helper_fcvt_h_w(CPURISCVState *env, target_ulong rs1) +uint64_t HELPER(fcvt_h_w)(CPURISCVState *env, target_ulong rs1) { return nanbox_h(env, int32_to_float16((int32_t)rs1, &env->fp_status)); } =20 -uint64_t helper_fcvt_h_wu(CPURISCVState *env, target_ulong rs1) +uint64_t HELPER(fcvt_h_wu)(CPURISCVState *env, target_ulong rs1) { return nanbox_h(env, uint32_to_float16((uint32_t)rs1, &env->fp_status)= ); } =20 -uint64_t helper_fcvt_h_l(CPURISCVState *env, target_ulong rs1) +uint64_t HELPER(fcvt_h_l)(CPURISCVState *env, target_ulong rs1) { return nanbox_h(env, int64_to_float16(rs1, &env->fp_status)); } =20 -uint64_t helper_fcvt_h_lu(CPURISCVState *env, target_ulong rs1) +uint64_t HELPER(fcvt_h_lu)(CPURISCVState *env, target_ulong rs1) { return nanbox_h(env, uint64_to_float16(rs1, &env->fp_status)); } =20 -uint64_t helper_fcvt_h_s(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(fcvt_h_s)(CPURISCVState *env, uint64_t rs1) { float32 frs1 =3D check_nanbox_s(env, rs1); return nanbox_h(env, float32_to_float16(frs1, true, &env->fp_status)); } =20 -uint64_t helper_fcvt_s_h(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(fcvt_s_h)(CPURISCVState *env, uint64_t rs1) { float16 frs1 =3D check_nanbox_h(env, rs1); return nanbox_s(env, float16_to_float32(frs1, true, &env->fp_status)); } =20 -uint64_t helper_fcvt_h_d(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(fcvt_h_d)(CPURISCVState *env, uint64_t rs1) { return nanbox_h(env, float64_to_float16(rs1, true, &env->fp_status)); } =20 -uint64_t helper_fcvt_d_h(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(fcvt_d_h)(CPURISCVState *env, uint64_t rs1) { float16 frs1 =3D check_nanbox_h(env, rs1); return float16_to_float64(frs1, true, &env->fp_status); } =20 -uint64_t helper_fcvt_bf16_s(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(fcvt_bf16_s)(CPURISCVState *env, uint64_t rs1) { float32 frs1 =3D check_nanbox_s(env, rs1); return nanbox_h(env, float32_to_bfloat16(frs1, &env->fp_status)); } =20 -uint64_t helper_fcvt_s_bf16(CPURISCVState *env, uint64_t rs1) +uint64_t HELPER(fcvt_s_bf16)(CPURISCVState *env, uint64_t rs1) { float16 frs1 =3D check_nanbox_bf16(env, rs1); return nanbox_s(env, bfloat16_to_float32(frs1, &env->fp_status)); diff --git a/target/riscv/tcg/op_helper.c b/target/riscv/tcg/op_helper.c index b8b3e43ccd5..c5e65575e61 100644 --- a/target/riscv/tcg/op_helper.c +++ b/target/riscv/tcg/op_helper.c @@ -48,7 +48,7 @@ G_NORETURN void riscv_raise_exception(CPURISCVState *env, cpu_loop_exit_restore(cs, pc); } =20 -void helper_raise_exception(CPURISCVState *env, uint32_t exception) +void HELPER(raise_exception)(CPURISCVState *env, uint32_t exception) { #ifndef CONFIG_USER_ONLY riscv_pmu_decr_instret(env); @@ -56,7 +56,7 @@ void helper_raise_exception(CPURISCVState *env, uint32_t = exception) riscv_raise_exception(env, exception, 0); } =20 -target_ulong helper_csrr(CPURISCVState *env, int csr) +target_ulong HELPER(csrr)(CPURISCVState *env, int csr) { /* * The seed CSR must be accessed with a read-write instruction. A @@ -76,7 +76,7 @@ target_ulong helper_csrr(CPURISCVState *env, int csr) return val; } =20 -void helper_csrw(CPURISCVState *env, int csr, target_ulong src) +void HELPER(csrw)(CPURISCVState *env, int csr, target_ulong src) { target_ulong mask =3D env->xl =3D=3D MXL_RV32 ? UINT32_MAX : (target_u= long)-1; RISCVException ret =3D riscv_csrrw(env, csr, NULL, src, mask, GETPC()); @@ -86,7 +86,7 @@ void helper_csrw(CPURISCVState *env, int csr, target_ulon= g src) } } =20 -target_ulong helper_csrrw(CPURISCVState *env, int csr, +target_ulong HELPER(csrrw)(CPURISCVState *env, int csr, target_ulong src, target_ulong write_mask) { target_ulong val =3D 0; @@ -98,7 +98,7 @@ target_ulong helper_csrrw(CPURISCVState *env, int csr, return val; } =20 -target_ulong helper_csrr_i128(CPURISCVState *env, int csr) +target_ulong HELPER(csrr_i128)(CPURISCVState *env, int csr) { Int128 rv =3D int128_zero(); RISCVException ret =3D riscv_csrr_i128(env, csr, &rv); @@ -111,7 +111,7 @@ target_ulong helper_csrr_i128(CPURISCVState *env, int c= sr) return int128_getlo(rv); } =20 -void helper_csrw_i128(CPURISCVState *env, int csr, +void HELPER(csrw_i128)(CPURISCVState *env, int csr, target_ulong srcl, target_ulong srch) { RISCVException ret =3D riscv_csrrw_i128(env, csr, NULL, @@ -123,7 +123,7 @@ void helper_csrw_i128(CPURISCVState *env, int csr, } } =20 -target_ulong helper_csrrw_i128(CPURISCVState *env, int csr, +target_ulong HELPER(csrrw_i128)(CPURISCVState *env, int csr, target_ulong srcl, target_ulong srch, target_ulong maskl, target_ulong maskh) { @@ -178,7 +178,7 @@ static void check_zicbo_envcfg(CPURISCVState *env, targ= et_ulong envbits, #endif } =20 -void helper_cbo_zero(CPURISCVState *env, target_ulong address) +void HELPER(cbo_zero)(CPURISCVState *env, target_ulong address) { RISCVCPU *cpu =3D env_archcpu(env); uint16_t cbozlen =3D cpu->cfg.cboz_blocksize; @@ -266,7 +266,7 @@ static void check_zicbom_access(CPURISCVState *env, probe_write(env, address, cbomlen, mmu_idx, ra); } =20 -void helper_cbo_clean_flush(CPURISCVState *env, target_ulong address) +void HELPER(cbo_clean_flush)(CPURISCVState *env, target_ulong address) { uintptr_t ra =3D GETPC(); check_zicbo_envcfg(env, MENVCFG_CBCFE, ra); @@ -275,7 +275,7 @@ void helper_cbo_clean_flush(CPURISCVState *env, target_= ulong address) /* We don't emulate the cache-hierarchy, so we're done. */ } =20 -void helper_cbo_inval(CPURISCVState *env, target_ulong address) +void HELPER(cbo_inval)(CPURISCVState *env, target_ulong address) { uintptr_t ra =3D GETPC(); check_zicbo_envcfg(env, MENVCFG_CBIE, ra); @@ -284,7 +284,7 @@ void helper_cbo_inval(CPURISCVState *env, target_ulong = address) /* We don't emulate the cache-hierarchy, so we're done. */ } =20 -void helper_sc_probe_write(CPURISCVState *env, target_ulong addr, +void HELPER(sc_probe_write)(CPURISCVState *env, target_ulong addr, target_ulong size) { uintptr_t ra =3D GETPC(); @@ -300,7 +300,7 @@ void helper_sc_probe_write(CPURISCVState *env, target_u= long addr, =20 #ifndef CONFIG_USER_ONLY =20 -target_ulong helper_sret(CPURISCVState *env) +target_ulong HELPER(sret)(CPURISCVState *env) { uint64_t mstatus; privilege_mode_t prev_priv; @@ -423,7 +423,7 @@ static target_ulong ssdbltrp_mxret(CPURISCVState *env, = target_ulong mstatus, return mstatus; } =20 -target_ulong helper_mret(CPURISCVState *env) +target_ulong HELPER(mret)(CPURISCVState *env) { target_ulong retpc =3D env->mepc & get_xepc_mask(env); uint64_t mstatus =3D env->mstatus; @@ -473,7 +473,7 @@ target_ulong helper_mret(CPURISCVState *env) return retpc; } =20 -target_ulong helper_dret(CPURISCVState *env) +target_ulong HELPER(dret)(CPURISCVState *env) { #ifdef CONFIG_USER_ONLY riscv_raise_exception(env, RISCV_EXCP_ILLEGAL_INST, GETPC()); @@ -491,7 +491,7 @@ target_ulong helper_dret(CPURISCVState *env) #endif } =20 -void helper_sdext_step(CPURISCVState *env) +void HELPER(sdext_step)(CPURISCVState *env) { #ifndef CONFIG_USER_ONLY CPUState *cs =3D env_cpu(env); @@ -507,7 +507,7 @@ void helper_sdext_step(CPURISCVState *env) #endif } =20 -void helper_sdext_ebreak(CPURISCVState *env, target_ulong pc) +void HELPER(sdext_ebreak)(CPURISCVState *env, target_ulong pc) { CPUState *cs =3D env_cpu(env); bool enter_debug =3D false; @@ -541,7 +541,7 @@ void helper_sdext_ebreak(CPURISCVState *env, target_ulo= ng pc) riscv_raise_exception(env, RISCV_EXCP_BREAKPOINT, GETPC()); } =20 -target_ulong helper_mnret(CPURISCVState *env) +target_ulong HELPER(mnret)(CPURISCVState *env) { target_ulong retpc =3D env->mnepc; privilege_mode_t prev_priv =3D get_field(env->mnstatus, MNSTATUS_MNPP); @@ -589,14 +589,14 @@ target_ulong helper_mnret(CPURISCVState *env) return retpc; } =20 -void helper_ctr_add_entry(CPURISCVState *env, target_ulong src, +void HELPER(ctr_add_entry)(CPURISCVState *env, target_ulong src, target_ulong dest, target_ulong type) { riscv_ctr_add_entry(env, src, dest, (enum CTRType)type, env->priv, env->virt_enabled); } =20 -void helper_ctr_clear(CPURISCVState *env) +void HELPER(ctr_clear)(CPURISCVState *env) { /* * It's safe to call smstateen_acc_ok() for umode access regardless of= the @@ -625,7 +625,7 @@ void helper_ctr_clear(CPURISCVState *env) riscv_ctr_clear(env); } =20 -void helper_wfi(CPURISCVState *env) +void HELPER(wfi)(CPURISCVState *env) { CPUState *cs =3D env_cpu(env); bool rvs =3D riscv_has_ext(env, RVS); @@ -649,7 +649,7 @@ void helper_wfi(CPURISCVState *env) } } =20 -void helper_wrs_nto(CPURISCVState *env) +void HELPER(wrs_nto)(CPURISCVState *env) { if (env->virt_enabled && (env->priv =3D=3D PRV_S || env->priv =3D=3D P= RV_U) && get_field(env->hstatus, HSTATUS_VTW) && @@ -660,7 +660,7 @@ void helper_wrs_nto(CPURISCVState *env) } } =20 -void helper_tlb_flush(CPURISCVState *env) +void HELPER(tlb_flush)(CPURISCVState *env) { CPUState *cs =3D env_cpu(env); if (!env->virt_enabled && @@ -675,13 +675,13 @@ void helper_tlb_flush(CPURISCVState *env) } } =20 -void helper_tlb_flush_all(CPURISCVState *env) +void HELPER(tlb_flush_all)(CPURISCVState *env) { CPUState *cs =3D env_cpu(env); tlb_flush_all_cpus_synced(cs); } =20 -void helper_hyp_tlb_flush(CPURISCVState *env) +void HELPER(hyp_tlb_flush)(CPURISCVState *env) { CPUState *cs =3D env_cpu(env); =20 @@ -698,14 +698,14 @@ void helper_hyp_tlb_flush(CPURISCVState *env) riscv_raise_exception(env, RISCV_EXCP_ILLEGAL_INST, GETPC()); } =20 -void helper_hyp_gvma_tlb_flush(CPURISCVState *env) +void HELPER(hyp_gvma_tlb_flush)(CPURISCVState *env) { if (env->priv =3D=3D PRV_S && !env->virt_enabled && get_field(env->mstatus, MSTATUS_TVM)) { riscv_raise_exception(env, RISCV_EXCP_ILLEGAL_INST, GETPC()); } =20 - helper_hyp_tlb_flush(env); + HELPER(hyp_tlb_flush)(env); } =20 static int check_access_hlsv(CPURISCVState *env, bool x, uintptr_t ra) @@ -725,7 +725,7 @@ static int check_access_hlsv(CPURISCVState *env, bool x= , uintptr_t ra) return mode | MMU_2STAGE_BIT; } =20 -target_ulong helper_hyp_hlv_bu(CPURISCVState *env, target_ulong addr) +target_ulong HELPER(hyp_hlv_bu)(CPURISCVState *env, target_ulong addr) { uintptr_t ra =3D GETPC(); int mmu_idx =3D check_access_hlsv(env, false, ra); @@ -734,7 +734,7 @@ target_ulong helper_hyp_hlv_bu(CPURISCVState *env, targ= et_ulong addr) return cpu_ldb_mmu(env, adjust_addr_virt(env, addr), oi, ra); } =20 -target_ulong helper_hyp_hlv_hu(CPURISCVState *env, target_ulong addr) +target_ulong HELPER(hyp_hlv_hu)(CPURISCVState *env, target_ulong addr) { uintptr_t ra =3D GETPC(); int mmu_idx =3D check_access_hlsv(env, false, ra); @@ -743,7 +743,7 @@ target_ulong helper_hyp_hlv_hu(CPURISCVState *env, targ= et_ulong addr) return cpu_ldw_mmu(env, adjust_addr_virt(env, addr), oi, ra); } =20 -target_ulong helper_hyp_hlv_wu(CPURISCVState *env, target_ulong addr) +target_ulong HELPER(hyp_hlv_wu)(CPURISCVState *env, target_ulong addr) { uintptr_t ra =3D GETPC(); int mmu_idx =3D check_access_hlsv(env, false, ra); @@ -752,7 +752,7 @@ target_ulong helper_hyp_hlv_wu(CPURISCVState *env, targ= et_ulong addr) return cpu_ldl_mmu(env, adjust_addr_virt(env, addr), oi, ra); } =20 -target_ulong helper_hyp_hlv_d(CPURISCVState *env, target_ulong addr) +target_ulong HELPER(hyp_hlv_d)(CPURISCVState *env, target_ulong addr) { uintptr_t ra =3D GETPC(); int mmu_idx =3D check_access_hlsv(env, false, ra); @@ -761,7 +761,7 @@ target_ulong helper_hyp_hlv_d(CPURISCVState *env, targe= t_ulong addr) return cpu_ldq_mmu(env, adjust_addr_virt(env, addr), oi, ra); } =20 -void helper_hyp_hsv_b(CPURISCVState *env, target_ulong addr, target_ulong = val) +void HELPER(hyp_hsv_b)(CPURISCVState *env, target_ulong addr, target_ulong= val) { uintptr_t ra =3D GETPC(); int mmu_idx =3D check_access_hlsv(env, false, ra); @@ -770,7 +770,7 @@ void helper_hyp_hsv_b(CPURISCVState *env, target_ulong = addr, target_ulong val) cpu_stb_mmu(env, adjust_addr_virt(env, addr), val, oi, ra); } =20 -void helper_hyp_hsv_h(CPURISCVState *env, target_ulong addr, target_ulong = val) +void HELPER(hyp_hsv_h)(CPURISCVState *env, target_ulong addr, target_ulong= val) { uintptr_t ra =3D GETPC(); int mmu_idx =3D check_access_hlsv(env, false, ra); @@ -779,7 +779,7 @@ void helper_hyp_hsv_h(CPURISCVState *env, target_ulong = addr, target_ulong val) cpu_stw_mmu(env, adjust_addr_virt(env, addr), val, oi, ra); } =20 -void helper_hyp_hsv_w(CPURISCVState *env, target_ulong addr, target_ulong = val) +void HELPER(hyp_hsv_w)(CPURISCVState *env, target_ulong addr, target_ulong= val) { uintptr_t ra =3D GETPC(); int mmu_idx =3D check_access_hlsv(env, false, ra); @@ -788,7 +788,7 @@ void helper_hyp_hsv_w(CPURISCVState *env, target_ulong = addr, target_ulong val) cpu_stl_mmu(env, adjust_addr_virt(env, addr), val, oi, ra); } =20 -void helper_hyp_hsv_d(CPURISCVState *env, target_ulong addr, target_ulong = val) +void HELPER(hyp_hsv_d)(CPURISCVState *env, target_ulong addr, target_ulong= val) { uintptr_t ra =3D GETPC(); int mmu_idx =3D check_access_hlsv(env, false, ra); @@ -804,7 +804,7 @@ void helper_hyp_hsv_d(CPURISCVState *env, target_ulong = addr, target_ulong val) * a fair fraction of cputlb.c, fixing this requires adding new mmu_idx * which would imply that exact check in tlb_fill. */ -target_ulong helper_hyp_hlvx_hu(CPURISCVState *env, target_ulong addr) +target_ulong HELPER(hyp_hlvx_hu)(CPURISCVState *env, target_ulong addr) { uintptr_t ra =3D GETPC(); int mmu_idx =3D check_access_hlsv(env, true, ra); @@ -813,7 +813,7 @@ target_ulong helper_hyp_hlvx_hu(CPURISCVState *env, tar= get_ulong addr) return cpu_ldw_code_mmu(env, addr, oi, GETPC()); } =20 -target_ulong helper_hyp_hlvx_wu(CPURISCVState *env, target_ulong addr) +target_ulong HELPER(hyp_hlvx_wu)(CPURISCVState *env, target_ulong addr) { uintptr_t ra =3D GETPC(); int mmu_idx =3D check_access_hlsv(env, true, ra); @@ -822,7 +822,7 @@ target_ulong helper_hyp_hlvx_wu(CPURISCVState *env, tar= get_ulong addr) return cpu_ldl_code_mmu(env, addr, oi, ra); } =20 -void helper_ssamoswap_disabled(CPURISCVState *env) +void HELPER(ssamoswap_disabled)(CPURISCVState *env) { int exception =3D RISCV_EXCP_ILLEGAL_INST; =20 --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445004; cv=none; d=zohomail.com; s=zohoarc; b=ijn70N15K+Dn4HNL3i6fPrjPhyyPkOxAEl60JupsiuATNfNbQNa3lyXB7PEp0Q4Z9bG2LWrhxegB0/1AEMM4q5BpNYY8LWG1i3XcrYVsuH2T4kvlQ+TQ2gACme5JU5X/BWaO8FNGZeSMRovmyCIPeR/4xQt1kummjKQCcu0xy+Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445004; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=lwLAG+uHR9d97gLVn6kHR8ijOephm3u/lTqpGfap2fE=; b=PN89Vkkg20IKtWMsQZvKLwKyxv5f9cyEUk+XQpbX+krUxyHB+jLN7Atfx+aUbzwZMMEOeNRr8bMOz0/fbQcJJAoYknbdsMtRon15K+v1gO4qlZRjO4PAMBhWEIkNYfo6DY7qKe3mNW57hGyQifhH4UNanE1jqPmwTUteSko1x4M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792445004448633.465854379184; Mon, 19 Oct 2026 14:23:24 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunI-0001el-BJ; Mon, 19 Oct 2026 17:21:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunG-0001eD-KO for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:18 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunE-0005hO-Mf for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:18 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJK1Sv3627888 for ; Mon, 19 Oct 2026 21:21:16 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdr42gpu7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:15 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3a47617a0b3so3283964a91.2 for ; Mon, 19 Oct 2026 14:21:15 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=lwLAG+uHR9d 97gLVn6kHR8ijOephm3u/lTqpGfap2fE=; b=Yas8BSLERfsEXTkR4M/ZxnTMnqM BHKEtmm7GNEesxSRz4KvXVFHdtitiOMerQcJ7X+x6EB2Yra2AtL6YcA8wk12vHzn b/L9b3rojd+EV1wCEuDrubeo7WeMU1IhzGStlw8v5WUKaY1OGL3VRIWeHyTFcD2n gyoxLbDyzHhOHmCyafCYC0qhbppF48AtsAkz2V0TZYyrZS12P2mPq0SW+yE4ldjw ZCyOLdfaj+0YlnW73gRE4bB4P/o6fw9A3V+kAKPgZxXSLQVidUFKpvb6ARqGW2ea 5Em7YbRzLwmi9l0u0MqrBQCDFKkAcCXOU8P7VqFxcxj7Vl0HzMJQTs2acBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444875; x=1793049675; 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:content-type; bh=lwLAG+uHR9d97gLVn6kHR8ijOephm3u/lTqpGfap2fE=; b=UtPJ/z0fTOVW+O2JaQYHhEu/W3ExoASXW9jw12IEMN2onYho4ER9gdts4ECC2U4vFA 4r0LWHZmMytji8GuE/DfUTFYCAhsyC0Hk8MjkQVfpgbbo8ABIUwNdexuMfBguNl1MJmi ujAtyUAf1CpJITYuK8gfGgQs9BlYQ/MpEfrm1PrGvto8eSdp4LWg+SlWudNJoK4PGEQy NiiiH/4YSJWF9RSB8+FKsHlHiRZb+Q8vPc/LqvgggqNpLW+p4OObrh2DkudQKfbbZe02 D0Otyipwe60/gvhZRRpzorDX699QmMDXLZfR4yleTJN3RKTUd28igU+5BA9Fo2+XKGPm dcrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444875; x=1793049675; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=lwLAG+uHR9d97gLVn6kHR8ijOephm3u/lTqpGfap2fE=; b=HBPugIzIxZ3JwMfjOrsHPwZLDSP3evxlIGHFcxLrT3tkfPtxibdYNPRokvSygkyK1O 5txFPwL2dXOD7yw38AOXfQ6JODXF1zVg49FYWUk7yxlXBnQnLATBsZh/bn+xtQQ6Y20b u8KLWIjdYojjWRsy7tyme0kqg8472QWjWXaaCPXV2Se6HWQVaEpyvwxrQUfzPQjFQn/L ng0V7VZVs8MSXTmdaihYsElv0zCN/GHW0KspQzV5TlrXrMlslHDTRQPlwuKecarc90/x GQBc4nDl8FKL25gQlYDda7uzXqIjYHEJQemHEHwGSoL3UCoEifUFo2KjD2FTna2ex8o3 z1tg== X-Gm-Message-State: AFq9FYJE8gFHWuQliAXDyYMq5VDO27g4RQLN3LfPVDuxkHbQ/MzI70hd +hUBUxQGxa2i426nkiFvn9Fjar+Ln5b4WeezGNIi6XEBuuIL5DQhx/tCrG1ADbbPsMpZA05ORNv l4yhyV5myJek0Q7xqiNNTLI99X3S1zxEZO5NCDOJ562+V536PWOhF6veDax0YPslJow== X-Gm-Gg: AYBFou0whOZEg/klWrOFcdfV9ZaSE4E3p5Q9UH9NV/cStRGepEzEBiJCeynffZADTWe LpwU2q89AuQh870SFVSaGovkvYmuh4ZTtmaqq02V8zXSho39ZGO+fZdkSYa8YtXkjTNYs6Ay9rE OghVahaQwmKSvPGRAr2OcwDTYl88elUN3i+pt218/haDzPkLyxBCNMFDXHyGerOOxfz/fr71m2l zXc2jOBRGpSW8AaxdlGT/7kjYRP2szwREB2NbUoE2mkawG9KIuuLWwIK983gtCxzK1BFH1YLEu3 etF9Ng+hM8aE5QmEESNIMsmFdbe37goBNBbx+NIrbAiwp+rHxJM7lQ+XtLmM5hLLEGMUKNfYBPY 0xl93I0X3odsQf2vq15kVBAPiOjD5MoSz2GIoVRPWTHTeFyFf/lEZNrWj9NdueyY= X-Received: by 2002:a17:90b:580f:b0:3ac:a203:e095 with SMTP id 98e67ed59e1d1-3acee2779aemr7358349a91.7.1792444874678; Mon, 19 Oct 2026 14:21:14 -0700 (PDT) X-Received: by 2002:a17:90b:580f:b0:3ac:a203:e095 with SMTP id 98e67ed59e1d1-3acee2779aemr7358330a91.7.1792444874157; Mon, 19 Oct 2026 14:21:14 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 13/26] target/rx: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:32 +0000 Message-ID: <20261019212046.149572-14-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX5Ma+VpCpaWhC mSj3RMo22y/lI9qf4jpG6XlIM7p+pPnO92CRH7RveErzAU5elHBtkMWkDWXJsTccpwnP03n+zxj gVmzQ6jV6ynO8POgNq9HO46yp7gjCnlvGKjPeUqSBdzFew7k/4dggf77OcFirMZcjnV7hcWYsnB IPc1qKPE4qnfaVgGxtWTbzp1ngqLWIRAy17vjWB3gauukfOoSrfTa+sorDhxBE/af+nfYp6FsvY ZrNeW/ix+d3S2ElK5IRU9QvOBIrl/PhBv1b5gOige0x7tnyKPLZHQ5lDqziU2a+84pYDg8ObU0b 1hNEn+Q7wNn+sVwjY955CZzFfZq8a3bM6tcVZCpgNWi4gQI5pJ2oNFewY5A9LFb0xN2yRE+1Bdn qBkNOlTeOWdFT1fvldZOmuhgD3SaFmuAuP7V0j4uTwmYFwrFmIX3fxvLz5L8ii73c8S6ek4fiW9 NDIgh7zCekpdzSgyNZw== X-Authority-Analysis: v=2.4 cv=Ve9ir1p9 c=1 sm=1 tr=0 ts=6ad689cb cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=OZx_OYey5Kulg9_gRGgA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX4LzsErO5C6bV n7Cb07mUvetm77ohN+3xrwIZzf4yS8gmWsM5+cBi7Ocuk5MV3XWfzIFJNayuDxnGUZZLLOzaa3H w3a6r2ZEHPatC3KnMHnzFf90XxfMQYI= X-Proofpoint-ORIG-GUID: AvZvWST7k3Q43c1ckla3GD7rzZlhe1-C X-Proofpoint-GUID: AvZvWST7k3Q43c1ckla3GD7rzZlhe1-C X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 impostorscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 bulkscore=0 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445004760158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/rx/op_helper.c | 54 +++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/target/rx/op_helper.c b/target/rx/op_helper.c index 5a7a87943fe..3c64014db6d 100644 --- a/target/rx/op_helper.c +++ b/target/rx/op_helper.c @@ -46,17 +46,17 @@ static void _set_psw(CPURXState *env, uint32_t psw, uin= t32_t rte) } } =20 -void helper_set_psw(CPURXState *env, uint32_t psw) +void HELPER(set_psw)(CPURXState *env, uint32_t psw) { _set_psw(env, psw, 0); } =20 -void helper_set_psw_rte(CPURXState *env, uint32_t psw) +void HELPER(set_psw_rte)(CPURXState *env, uint32_t psw) { _set_psw(env, psw, 1); } =20 -uint32_t helper_pack_psw(CPURXState *env) +uint32_t HELPER(pack_psw)(CPURXState *env) { return rx_cpu_pack_psw(env); } @@ -120,7 +120,7 @@ static void update_fpsw(CPURXState *env, float32 ret, u= intptr_t retaddr) } } =20 -void helper_set_fpsw(CPURXState *env, uint32_t val) +void HELPER(set_fpsw)(CPURXState *env, uint32_t val) { static const int roundmode[] =3D { float_round_nearest_even, @@ -139,7 +139,7 @@ void helper_set_fpsw(CPURXState *env, uint32_t val) } =20 #define FLOATOP(op, func) \ - float32 helper_##op(CPURXState *env, float32 t0, float32 t1) \ + float32 HELPER(op)(CPURXState *env, float32 t0, float32 t1) \ { \ float32 ret; \ ret =3D func(t0, t1, &env->fp_status); \ @@ -152,7 +152,7 @@ FLOATOP(rx_fsub, float32_sub) FLOATOP(rx_fmul, float32_mul) FLOATOP(rx_fdiv, float32_div) =20 -void helper_rx_fcmp(CPURXState *env, float32 t0, float32 t1) +void HELPER(rx_fcmp)(CPURXState *env, float32 t0, float32 t1) { int st; st =3D float32_compare(t0, t1, &env->fp_status); @@ -172,7 +172,7 @@ void helper_rx_fcmp(CPURXState *env, float32 t0, float3= 2 t1) } } =20 -uint32_t helper_ftoi(CPURXState *env, float32 t0) +uint32_t HELPER(ftoi)(CPURXState *env, float32 t0) { uint32_t ret; ret =3D float32_to_int32_round_to_zero(t0, &env->fp_status); @@ -180,7 +180,7 @@ uint32_t helper_ftoi(CPURXState *env, float32 t0) return ret; } =20 -uint32_t helper_round(CPURXState *env, float32 t0) +uint32_t HELPER(round)(CPURXState *env, float32 t0) { uint32_t ret; ret =3D float32_to_int32(t0, &env->fp_status); @@ -188,7 +188,7 @@ uint32_t helper_round(CPURXState *env, float32 t0) return ret; } =20 -float32 helper_itof(CPURXState *env, uint32_t t0) +float32 HELPER(itof)(CPURXState *env, uint32_t t0) { float32 ret; ret =3D int32_to_float32(t0, &env->fp_status); @@ -197,7 +197,7 @@ float32 helper_itof(CPURXState *env, uint32_t t0) } =20 /* string operations */ -void helper_scmpu(CPURXState *env) +void HELPER(scmpu)(CPURXState *env) { uint8_t tmp0, tmp1; if (env->regs[3] =3D=3D 0) { @@ -234,7 +234,7 @@ static void (* const cpu_stfn[])(CPUArchState *env, cpu_stb_data_ra, cpu_stw_le_data_ra, cpu_stl_le_data_ra, }; =20 -void helper_sstr(CPURXState *env, uint32_t sz) +void HELPER(sstr)(CPURXState *env, uint32_t sz) { tcg_debug_assert(sz < 3); while (env->regs[3] !=3D 0) { @@ -266,23 +266,23 @@ static void smov(uint32_t mode, CPURXState *env) } } =20 -void helper_smovu(CPURXState *env) +void HELPER(smovu)(CPURXState *env) { smov(OP_SMOVU, env); } =20 -void helper_smovf(CPURXState *env) +void HELPER(smovf)(CPURXState *env) { smov(OP_SMOVF, env); } =20 -void helper_smovb(CPURXState *env) +void HELPER(smovb)(CPURXState *env) { smov(OP_SMOVB, env); } =20 =20 -void helper_suntil(CPURXState *env, uint32_t sz) +void HELPER(suntil)(CPURXState *env, uint32_t sz) { uint32_t tmp; tcg_debug_assert(sz < 3); @@ -301,7 +301,7 @@ void helper_suntil(CPURXState *env, uint32_t sz) env->psw_c =3D (tmp <=3D env->regs[2]); } =20 -void helper_swhile(CPURXState *env, uint32_t sz) +void HELPER(swhile)(CPURXState *env, uint32_t sz) { uint32_t tmp; tcg_debug_assert(sz < 3); @@ -321,7 +321,7 @@ void helper_swhile(CPURXState *env, uint32_t sz) } =20 /* accumulator operations */ -void helper_rmpa(CPURXState *env, uint32_t sz) +void HELPER(rmpa)(CPURXState *env, uint32_t sz) { uint64_t result_l, prev; int32_t result_h; @@ -363,7 +363,7 @@ void helper_rmpa(CPURXState *env, uint32_t sz) env->regs[4] =3D result_l & 0xffffffff; } =20 -void helper_racw(CPURXState *env, uint32_t imm) +void HELPER(racw)(CPURXState *env, uint32_t imm) { int64_t acc; acc =3D env->acc; @@ -379,7 +379,7 @@ void helper_racw(CPURXState *env, uint32_t imm) env->acc =3D acc; } =20 -void helper_satr(CPURXState *env) +void HELPER(satr)(CPURXState *env) { if (env->psw_o >> 31) { if ((int)env->psw_s < 0) { @@ -395,7 +395,7 @@ void helper_satr(CPURXState *env) } =20 /* div */ -uint32_t helper_div(CPURXState *env, uint32_t num, uint32_t den) +uint32_t HELPER(div)(CPURXState *env, uint32_t num, uint32_t den) { uint32_t ret =3D num; if (!((num =3D=3D INT_MIN && den =3D=3D -1) || den =3D=3D 0)) { @@ -407,7 +407,7 @@ uint32_t helper_div(CPURXState *env, uint32_t num, uint= 32_t den) return ret; } =20 -uint32_t helper_rx_divu(CPURXState *env, uint32_t num, uint32_t den) +uint32_t HELPER(rx_divu)(CPURXState *env, uint32_t num, uint32_t den) { uint32_t ret =3D num; if (den !=3D 0) { @@ -430,22 +430,22 @@ void raise_exception(CPURXState *env, int index, cpu_loop_exit_restore(cs, retaddr); } =20 -G_NORETURN void helper_raise_privilege_violation(CPURXState *env) +G_NORETURN void HELPER(raise_privilege_violation)(CPURXState *env) { raise_exception(env, 20, GETPC()); } =20 -G_NORETURN void helper_raise_access_fault(CPURXState *env) +G_NORETURN void HELPER(raise_access_fault)(CPURXState *env) { raise_exception(env, 21, GETPC()); } =20 -G_NORETURN void helper_raise_illegal_instruction(CPURXState *env) +G_NORETURN void HELPER(raise_illegal_instruction)(CPURXState *env) { raise_exception(env, 23, GETPC()); } =20 -G_NORETURN void helper_wait(CPURXState *env) +G_NORETURN void HELPER(wait)(CPURXState *env) { CPUState *cs =3D env_cpu(env); =20 @@ -455,12 +455,12 @@ G_NORETURN void helper_wait(CPURXState *env) raise_exception(env, EXCP_HLT, 0); } =20 -G_NORETURN void helper_rxint(CPURXState *env, uint32_t vec) +G_NORETURN void HELPER(rxint)(CPURXState *env, uint32_t vec) { raise_exception(env, 0x100 + vec, 0); } =20 -G_NORETURN void helper_rxbrk(CPURXState *env) +G_NORETURN void HELPER(rxbrk)(CPURXState *env) { raise_exception(env, 0x100, 0); } --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792444965; cv=none; d=zohomail.com; s=zohoarc; b=IlK1sTq/DtkObTYwXVroGiaUTjuBW5R3epHLmvpoeeEai5NQGjLaNCPDnbs27B+XbHsQeAm5QmdwMWJxk3asHAj7iHEHsN8XY8yFD36joK05L47aRr+bdctYUtAuQqxDXJreoCLZsdFjLtsp87MMzdp6D0YfGl4DwalT0PO119M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792444965; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=zcPy8nPCHNSOuIFPUTrCFZo64VLr9orahzz1ImMqeiE=; b=VaK10mO7jZ9TDagNFRcgq4My98YPqWKbKopnI9Q/y/+hq1XcTWmNitetEsLhdGXtiYjsFgRaxDS8+x0mnbX7+cCVniA7Urf8OrZ2xHh+Nu9lNZ42H0eQ0FnAzY9WIYBkq1jmf25RfZwPIYsPs6+oBqANJsBIgPwbshOHd78ODmI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792444965070843.9686905947567; Mon, 19 Oct 2026 14:22:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunJ-0001f2-F6; Mon, 19 Oct 2026 17:21:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunH-0001eX-Om for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:19 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunF-0005hX-RU for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:19 -0400 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJKCT82782166 for ; Mon, 19 Oct 2026 21:21:16 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdr3p0qrf-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:16 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ab67ff8ec3so1976514a91.0 for ; Mon, 19 Oct 2026 14:21:16 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=zcPy8nPCHNS OuIFPUTrCFZo64VLr9orahzz1ImMqeiE=; b=WKcOdlBq0EAYE5T3uOt09kg95ay f5dfmr0fA1ZyUMezRUuPZZPqKa8pdd8Ygexd3r0TD0gajGHKHaq5ZJPhkRPS6oQH Q3eq35vxTUW1eUGRxby73SC+uTuVZH4Y3vRyVFnTDchZrOjhvQnrbRr1rWukvxXJ FayLxP74pwExZbmrp9zlQuAwlK3ozHxCFOdUPfJ4i0Kum1mc/R1r4GKK/x9Xn+Ww lWYOTZeNkV4bP87ExbQQaxXIgrgr10COkCLM0RylOwCSfLYJMePKHXqm3mpp6VCt uT++MRzPNoAH+9UXsmt6dAQC3VqN7j3X2w3krMWA6ef8/pD3Bq7ji2Ii0lA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444876; x=1793049676; 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:content-type; bh=zcPy8nPCHNSOuIFPUTrCFZo64VLr9orahzz1ImMqeiE=; b=QDbI81PttBk/2XW3HscMpE5R6vvQuysGEdY4p2HPKuWcoYF98oLWtFpWvChjkZkoiy gEV5LAXZ+kRqHvY5wx2dwyzO4wnAypTYQ0jhIpSrRcDUJRvoaeHhl7Jkr9qV9VImdSFf 4TbQrbTf6ItyLNidOvFwgXPKsUOsMYLIUP0g7exMfZlmEKfRJiXAEA7TRzyYDyAgWZ0H q98j6AXu096f6ex2MuSjBH2EIqz1/CrtFXit77Oj/q4psQ1UGvOqcv+ILGVRO/logBB7 SEYipv8vSzhBqjy53iq6SOCn0PCTCm7WmfaI5Olbfk64ClwyKH4sRger8CnsVbsky2I5 IkcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444876; x=1793049676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=zcPy8nPCHNSOuIFPUTrCFZo64VLr9orahzz1ImMqeiE=; b=SL7vJgv9gU1ytDatfKK2q1j/OmHiSJ5giV6nTrEnDwxD2tAbM0alxdrpkKGYRlfmft GaGHuOcmXj2CcBDPO0qVft54z0gqQeMKFWr0C9y0lbzrZFB6rfOaYPXJ2lHdzG06rFT+ vmKK8YSs+KsU2OEQLLE+XEQ+zEn8UYOZCeaINn3dURoDRQ8D6hq9b77i2YkCvhBsHR8s VXpRqjlYWVVlm+EFJgMxB5/DYzRdggHHwcEWxqmlNFDCIIxrt2j0wCdsFda3O/nztXjo xG/OWYpg/riyGhWzzX6E0a8G5SHQxWPnFA20/rrJPmx1fSeKxruJAXY7i0oY/1CaOmv9 MW7A== X-Gm-Message-State: AFq9FYIg01SVN0j9UrpPKsLtJNtUoWdpEwWy3mAoaXZtX90xk2UgYDWm SeDbiU7CYDEnyD/fGZA+LaMR12QYbMsgIYCJd/7pUFFftcuAvMK5okn2/kZtGrpeXGT+6JrzFMl AoqankEdZyudvABKd2daCYZTqLZs/6Jhr8p3W8cuJwnKxCh4irqS6Bj5309Q4NUTQ6g== X-Gm-Gg: AYBFou0Oc2xMxEWMSiZDLQL7IAsiYUWxoMwA7qQFoKnRwH1djBnlsvyVTv6zC8+KTs6 5JaTtF0d3sZQh8NDyphNW48Z0CDMxjSehto0+52qi6ZkFR8st03XsgoAv7uPGp4fo+3yY7M/t08 UoV2b+BGBFRD8wC5Y4JW2khFTDKh0D0fqJqpR48zWUzANmu+OkNjAd58y3N66+CZBVoWMJgyKs1 SyRb5Xue0D3MSRfaVzPwmUJHXq5VCwDFoIT9MQZOly37vJcW8Wc/aQB1Cw2kVOFIf2+D0obiELU VUXFYs7DcriSsRAjqFKrviHTru302WUNYv63KNJKIVGG6/7hF1U5Xc7vADCYnL5EVi3Se/36dx3 sHM0PmfBYa+Enc6j/A8SFRc4QBRq/pbyKjC7gnGFTh3xJLd1zIz5FpnOPAfCjGfM= X-Received: by 2002:a17:90b:3889:b0:3ac:b6eb:e0dd with SMTP id 98e67ed59e1d1-3acef5961c5mr7041188a91.50.1792444875704; Mon, 19 Oct 2026 14:21:15 -0700 (PDT) X-Received: by 2002:a17:90b:3889:b0:3ac:b6eb:e0dd with SMTP id 98e67ed59e1d1-3acef5961c5mr7041171a91.50.1792444875255; Mon, 19 Oct 2026 14:21:15 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 14/26] target/s390x: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:33 +0000 Message-ID: <20261019212046.149572-15-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: QlnoR9MKcfuYHRm1b9Y_NxfelS63wqB5 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX8Q52WNcJ0x1c ObMzma3dzoO2X7t25LlvE99YByvoLW9OijmQ49mnG4d2OBWF70KFvsQJzdqTGmB+LK4tUZIft8O wPlhrol5kAFnF3gLXsNpteCEW3VJxB8lu1MsSjO6VXRt+6DAXJQlPA/yt3bf5dMjTOgFNy/Lm6p rTf9RU39urNDrZbc/Ew651X/Uigk4gWzzVY15xwndbdtcbziJmYG//UroSX5in7llmEK2ZJB3FC kcIBaGr3OxYqHokSFzRvMzmkJ6jN79H/ccCP1fxiVZN+98+byE5lTJ7P+76SQcQuv9Hm9KCykvw 6gJ3EVLTkf0MErKgWD/1A4DzeO/ekRk1SIJYmzbCb5WbbL9ZrJEuzS/bxetcQhEuOGAxdBVaBXh 2mf0EQa9LQ3l/J6sf383v5dUbHbXaaswj2lxzmb8Gw+cUh+k/q3N2aRlkOpE4eEXJWVZQh/UkQg kbVFZhFE/FsTAgxr/pg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX5YOwUJdod8B1 6X1LjObmQzJh2n73TDNJLXw6a6VUviHSQG6MwcTi9GLq6O7d1LpgKA1pzFYpHAQFfXHtFlO6jxX xHW1Fgh3rFRdTAYPmOLqi6vSjEGdFkU= X-Authority-Analysis: v=2.4 cv=HLxWhYtv c=1 sm=1 tr=0 ts=6ad689cc cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=EUspDBNiAAAA:8 a=VZheFmm8EoinJ6di3KEA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: QlnoR9MKcfuYHRm1b9Y_NxfelS63wqB5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 impostorscore=0 suspectscore=0 malwarescore=0 clxscore=1015 bulkscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792444966026158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/s390x/tcg/mem_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/s390x/tcg/mem_helper.c b/target/s390x/tcg/mem_helper.c index 414e6838c87..baf074240fa 100644 --- a/target/s390x/tcg/mem_helper.c +++ b/target/s390x/tcg/mem_helper.c @@ -2488,7 +2488,7 @@ void HELPER(ex)(CPUS390XState *env, uint32_t ilen, ui= nt64_t r1, uint64_t addr) } else if (opc =3D=3D 0x0a) { env->int_svc_code =3D extract64(insn, 48, 8); env->int_svc_ilen =3D ilen; - helper_exception(env, EXCP_SVC); + HELPER(exception)(env, EXCP_SVC); g_assert_not_reached(); } =20 --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445033; cv=none; d=zohomail.com; s=zohoarc; b=Cxj+cJWoyBDXSbE/Zct5kApLdi43jGe1v8OkOZb7VLYa0Y3T8PVHJJVX2BdXU+mfJNsXDfBcWAWinBmU18gFPu+Gyp8D1KrRrjoIhfpUed0fOHmWwodG8Wlsg9wXP6Dk+U//+GgqvfsBy86bhpDOWh/esxlFf+m+50THDuGiOf4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445033; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=dxSKjXhMePqk/yVwgWq1O7IbK4rEHBrKtjiF3DnlB6w=; b=W5XVsmlm+zCGz4K1yPfCmrzTrBnGv5/IgOcuMcSO1leXU99VsNEyPbiNkKiH5Vp0Mrv0YwON1m5kIWJqRBK14pQ5LbnvkA1BTTHad8i5uz84ehxH/39HG5kaNlB5Ht/dHATRZtxdywXIB8OISLtQP/2inAdTwtA3rL8zPRIl3oo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792445033425773.1689966355243; Mon, 19 Oct 2026 14:23:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIuni-0001lZ-SH; Mon, 19 Oct 2026 17:21:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunW-0001iJ-6X for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:35 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunS-0005hx-9W for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:33 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJKCQ53329074 for ; Mon, 19 Oct 2026 21:21:19 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdkmfj2jw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:18 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3a4a0017549so5509599a91.3 for ; Mon, 19 Oct 2026 14:21:18 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=dxSKjXhMePq k/yVwgWq1O7IbK4rEHBrKtjiF3DnlB6w=; b=JYlNOqZ3eArKO3dgRr3+5qKixSm m1xioryjXMZNvUf+luz6f+8vCLCoINpd8WtdNVw5b+NZxT4Cu1rCMosIaX7uNDb1 GNLq135N5qbgCjHguAQde9jZC6Qc5xWGq3wdJPN+aZPM5B39qXmR2wW8yueevkjp Tq9p2Ud300wBO5hf59aS7Y5JC3ZiPnQ81c1++UZ4Ny+lKm944zWeLEdNLSy1mtoD Ndmkb+prpG/5Lt8D3gu+c9PT8yeZ5/2va9SKVzt3UByS/KIFq4Agg+ZM8eNA3jnV Dz8dj1bDHVx8LKux/rn1KQT3j2qYuAXjUHvSf+HrTHMp+eiVfwedU6V13DQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444878; x=1793049678; 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:content-type; bh=dxSKjXhMePqk/yVwgWq1O7IbK4rEHBrKtjiF3DnlB6w=; b=f4btgV1MveTlJT9neufxxO+ynaeHo/KvxZoZhB2SG9MPayqYYLddfNKJmmGRbtza25 OrsxioLNZG++eSAG7LbpQHPfZPe95yjq9ccabb/RMINw6eNcUKsFWzMxfjD8ZU4NQA+M z3jfA6dB6zJWEYIEg9oseoHBS5hzI5MIgsuwciJrX2Xv0kp90+bAQpSBiOiwX3oeioa0 PHb2GUmWd9rg28JA7/2FhtyqKVfhIqvnfJOSul5ELVnh6kntG5/YIsqKCnnWGcCtr5Jm o1D2ULKH74Neip395Yzngk10j7PYpjtECADrzHzkc/5bBL+SxVr9437jHsNrcC5N/7/0 QitA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444878; x=1793049678; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=dxSKjXhMePqk/yVwgWq1O7IbK4rEHBrKtjiF3DnlB6w=; b=i6JXFkvUBrqLXsAqUP6PiqoQbaeqtsLmQS4h+gEInqau14RhHntVTN0bylJpUMdhSM bnVGg25c3YllX2pS6zZNV6y8+hCPKsagKvi9q+BFoHd5RNoBqq+/2RWojMyUbtyTWFS2 EagCuuTGvTYKLMYBNxZtPW9Rp/jUFPMbBc1Rj3JgnFMszRbfmYzxsCKrGTOyk6GkuCo0 VaRJuOhSyUBuaV+6Js2dGSv/UfRTdgQkCxGzexLjN2njNAkigLrheb0ON9F4P9LRY4dt E/gVxAJ7GZSnHFmpJDZ9vLgAYbJy27sAB51XlL9rWcvCfOwTNIKTN5y1HiiwehDiE4Tv Wuww== X-Gm-Message-State: AFq9FYKm5S59WM88z99vSyO4ZvuWdFMonqmJKaFJjOO1rQOKFg4gSnI6 4crWRmGlMeOh0VkzFy0Z6UJsxo7XlRD2w/h2l77FSChgWtit3Z2zittnQGlh3oN0E633cB2aVoE y+fJ5wYe4Xt1jHF9Axfg0RKMd54+y55utljLuolq3fq0G3aANH3Q/uOq+NkNMzlX80w== X-Gm-Gg: AYBFou2ZzmHrmdC2TcxlgUAT28Q5BNXcKYGGuuO9yo/Ar2dXzsczRnHwUnyD5W7c7WT ZZaansY+qzqoBmc+ntxMDmF4y/lQavQJlgy2P8eYc+5wuMfJFledH9UEhMNdMBTO2wHXBi/RD7S +V8546h8nUS36rN6KFPZPdgEwYFBw4IQkO685zPXh2u38DGt+WNZDDfPN2qZ2IRxTNqK6RGsmfO SGisFMSpJiPlu788nAScFB4h7EEneqlBy2XuliqFDMS//RvPLpKOkezYHU46Adj7gz6qiCG2D8j YbOPHzuh7ANkNcj6nBIdHtr/NC5kNku36qRxP/yBBe1Vo86M/bMtchiRx2nk9gihXQz6e1Z5Pry pRm2uXz1vq5zGC2lyHdHTvpTwxip91ogxztu9HfsNO3hysxn8qYmZ0wTnkUHgP9Q= X-Received: by 2002:a17:90b:4e88:b0:3ac:6fca:f88a with SMTP id 98e67ed59e1d1-3acee728a89mr8082893a91.3.1792444877586; Mon, 19 Oct 2026 14:21:17 -0700 (PDT) X-Received: by 2002:a17:90b:4e88:b0:3ac:6fca:f88a with SMTP id 98e67ed59e1d1-3acee728a89mr8082878a91.3.1792444877042; Mon, 19 Oct 2026 14:21:17 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 15/26] target/sh4: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:34 +0000 Message-ID: <20261019212046.149572-16-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: axSHkR5yb0QrwuEdwFEUjULwhzt265Sd X-Authority-Analysis: v=2.4 cv=O+isLx9W c=1 sm=1 tr=0 ts=6ad689ce cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=s8CIgTy_PDT41ihXdFQA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX6/J0+vKY85GM aKVUw1pKXvxx03a5KsJNHAX8PH2ivzBnZBUb+2c4zY0QXsbvRG9gj61bAERgNrIzOKxFoC9Q8Qq BXy2QwyafiaQxDAMN6LGJPj34dsc/koTMTUMlzhN8Va6ilmCqjWZQfNwVZ8ijxishvrWXzeoJ6x a0xwxAa+iB3zq9LDxldge3AmNBSWXsWOQqHHdBbmFJIq+rJtenPjZ8CyDyUetfO0QVbTTrwYwbR GQ/KrDp3VFVUOnKXq+gvx4OgUMMhoTGmntIiL1fLKErJrSVRKO5Vsn841523eg7WE1lKI2fbO2s VRgkNzPE8z8OICbrsK/HsXvJqrXZilVJqV1ClYxAedS5yxEaPdwSibZqoWW82+rmQxGG6DtfTyE X8SXm3ZJKBONHF1hnVl7byjiy2996MJ2StwIAZn5K2lYViKaNkD++OSsH+4SU7r/XAM6bSWNcI5 tgdNoTjLlvW5BXnNjLg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX0pD/Ht5lGolH cY4LEKgknLbRGuI0yLCJ+Us2nK9UPRzps7GQqF5uqNHtffQyF9brxBjB9e095O0JQ/vzjKzZnKZ VJkTYuamZ4rJ1u5VZIephNVvEIP55D8= X-Proofpoint-ORIG-GUID: axSHkR5yb0QrwuEdwFEUjULwhzt265Sd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 spamscore=0 clxscore=1015 adultscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445035440158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/sh4/op_helper.c | 76 +++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/target/sh4/op_helper.c b/target/sh4/op_helper.c index 777380f8e40..173ea35109a 100644 --- a/target/sh4/op_helper.c +++ b/target/sh4/op_helper.c @@ -46,7 +46,7 @@ void superh_cpu_do_unaligned_access(CPUState *cs, vaddr a= ddr, =20 #endif =20 -void helper_ldtlb(CPUSH4State *env) +void HELPER(ldtlb)(CPUSH4State *env) { #ifdef CONFIG_USER_ONLY cpu_abort(env_cpu(env), "Unhandled ldtlb"); @@ -65,27 +65,27 @@ void raise_exception(CPUSH4State *env, int index, cpu_loop_exit_restore(cs, retaddr); } =20 -void helper_raise_illegal_instruction(CPUSH4State *env) +void HELPER(raise_illegal_instruction)(CPUSH4State *env) { raise_exception(env, 0x180, 0); } =20 -void helper_raise_slot_illegal_instruction(CPUSH4State *env) +void HELPER(raise_slot_illegal_instruction)(CPUSH4State *env) { raise_exception(env, 0x1a0, 0); } =20 -void helper_raise_fpu_disable(CPUSH4State *env) +void HELPER(raise_fpu_disable)(CPUSH4State *env) { raise_exception(env, 0x800, 0); } =20 -void helper_raise_slot_fpu_disable(CPUSH4State *env) +void HELPER(raise_slot_fpu_disable)(CPUSH4State *env) { raise_exception(env, 0x820, 0); } =20 -void helper_sleep(CPUSH4State *env) +void HELPER(sleep)(CPUSH4State *env) { CPUState *cs =3D env_cpu(env); =20 @@ -94,19 +94,19 @@ void helper_sleep(CPUSH4State *env) raise_exception(env, EXCP_HLT, 0); } =20 -void helper_trapa(CPUSH4State *env, uint32_t tra) +void HELPER(trapa)(CPUSH4State *env, uint32_t tra) { env->tra =3D tra << 2; raise_exception(env, 0x160, 0); } =20 -void helper_exclusive(CPUSH4State *env) +void HELPER(exclusive)(CPUSH4State *env) { /* We do not want cpu_restore_state to run. */ cpu_loop_exit_atomic(env_cpu(env), 0); } =20 -void helper_movcal(CPUSH4State *env, uint32_t address, uint32_t value) +void HELPER(movcal)(CPUSH4State *env, uint32_t address, uint32_t value) { if (cpu_sh4_is_cached (env, address)) { @@ -121,7 +121,7 @@ void helper_movcal(CPUSH4State *env, uint32_t address, = uint32_t value) } } =20 -void helper_discard_movcal_backup(CPUSH4State *env) +void HELPER(discard_movcal_backup)(CPUSH4State *env) { memory_content *current =3D env->movcal_backup; =20 @@ -135,7 +135,7 @@ void helper_discard_movcal_backup(CPUSH4State *env) } } =20 -void helper_ocbi(CPUSH4State *env, uint32_t address) +void HELPER(ocbi)(CPUSH4State *env, uint32_t address) { unsigned mmu_idx =3D cpu_mmu_index(env_cpu(env), false); MemOpIdx oi =3D make_memop_idx(MO_TE | MO_UL | MO_UNALN, mmu_idx); @@ -161,7 +161,7 @@ void helper_ocbi(CPUSH4State *env, uint32_t address) } } =20 -void helper_macl(CPUSH4State *env, int32_t arg0, int32_t arg1) +void HELPER(macl)(CPUSH4State *env, int32_t arg0, int32_t arg1) { const int64_t min =3D -(1ll << 47); const int64_t max =3D (1ll << 47) - 1; @@ -180,7 +180,7 @@ void helper_macl(CPUSH4State *env, int32_t arg0, int32_= t arg1) env->mac =3D res; } =20 -void helper_macw(CPUSH4State *env, int32_t arg0, int32_t arg1) +void HELPER(macw)(CPUSH4State *env, int32_t arg0, int32_t arg1) { /* Inputs are already sign-extended from 16 bits. */ int32_t mul =3D arg0 * arg1; @@ -216,7 +216,7 @@ void cpu_load_fpscr(CPUSH4State *env, uint32_t val) set_flush_to_zero((val & FPSCR_DN) !=3D 0, &env->fp_status); } =20 -void helper_ld_fpscr(CPUSH4State *env, uint32_t val) +void HELPER(ld_fpscr)(CPUSH4State *env, uint32_t val) { cpu_load_fpscr(env, val); } @@ -260,7 +260,7 @@ static void update_fpscr(CPUSH4State *env, uintptr_t re= taddr) } } =20 -float32 helper_fadd_FT(CPUSH4State *env, float32 t0, float32 t1) +float32 HELPER(fadd_FT)(CPUSH4State *env, float32 t0, float32 t1) { set_float_exception_flags(0, &env->fp_status); t0 =3D float32_add(t0, t1, &env->fp_status); @@ -268,7 +268,7 @@ float32 helper_fadd_FT(CPUSH4State *env, float32 t0, fl= oat32 t1) return t0; } =20 -float64 helper_fadd_DT(CPUSH4State *env, float64 t0, float64 t1) +float64 HELPER(fadd_DT)(CPUSH4State *env, float64 t0, float64 t1) { set_float_exception_flags(0, &env->fp_status); t0 =3D float64_add(t0, t1, &env->fp_status); @@ -276,7 +276,7 @@ float64 helper_fadd_DT(CPUSH4State *env, float64 t0, fl= oat64 t1) return t0; } =20 -uint32_t helper_fcmp_eq_FT(CPUSH4State *env, float32 t0, float32 t1) +uint32_t HELPER(fcmp_eq_FT)(CPUSH4State *env, float32 t0, float32 t1) { int relation; =20 @@ -286,7 +286,7 @@ uint32_t helper_fcmp_eq_FT(CPUSH4State *env, float32 t0= , float32 t1) return relation =3D=3D float_relation_equal; } =20 -uint32_t helper_fcmp_eq_DT(CPUSH4State *env, float64 t0, float64 t1) +uint32_t HELPER(fcmp_eq_DT)(CPUSH4State *env, float64 t0, float64 t1) { int relation; =20 @@ -296,7 +296,7 @@ uint32_t helper_fcmp_eq_DT(CPUSH4State *env, float64 t0= , float64 t1) return relation =3D=3D float_relation_equal; } =20 -uint32_t helper_fcmp_gt_FT(CPUSH4State *env, float32 t0, float32 t1) +uint32_t HELPER(fcmp_gt_FT)(CPUSH4State *env, float32 t0, float32 t1) { int relation; =20 @@ -306,7 +306,7 @@ uint32_t helper_fcmp_gt_FT(CPUSH4State *env, float32 t0= , float32 t1) return relation =3D=3D float_relation_greater; } =20 -uint32_t helper_fcmp_gt_DT(CPUSH4State *env, float64 t0, float64 t1) +uint32_t HELPER(fcmp_gt_DT)(CPUSH4State *env, float64 t0, float64 t1) { int relation; =20 @@ -316,7 +316,7 @@ uint32_t helper_fcmp_gt_DT(CPUSH4State *env, float64 t0= , float64 t1) return relation =3D=3D float_relation_greater; } =20 -float64 helper_fcnvsd_FT_DT(CPUSH4State *env, float32 t0) +float64 HELPER(fcnvsd_FT_DT)(CPUSH4State *env, float32 t0) { float64 ret; set_float_exception_flags(0, &env->fp_status); @@ -325,7 +325,7 @@ float64 helper_fcnvsd_FT_DT(CPUSH4State *env, float32 t= 0) return ret; } =20 -float32 helper_fcnvds_DT_FT(CPUSH4State *env, float64 t0) +float32 HELPER(fcnvds_DT_FT)(CPUSH4State *env, float64 t0) { float32 ret; set_float_exception_flags(0, &env->fp_status); @@ -334,7 +334,7 @@ float32 helper_fcnvds_DT_FT(CPUSH4State *env, float64 t= 0) return ret; } =20 -float32 helper_fdiv_FT(CPUSH4State *env, float32 t0, float32 t1) +float32 HELPER(fdiv_FT)(CPUSH4State *env, float32 t0, float32 t1) { set_float_exception_flags(0, &env->fp_status); t0 =3D float32_div(t0, t1, &env->fp_status); @@ -342,7 +342,7 @@ float32 helper_fdiv_FT(CPUSH4State *env, float32 t0, fl= oat32 t1) return t0; } =20 -float64 helper_fdiv_DT(CPUSH4State *env, float64 t0, float64 t1) +float64 HELPER(fdiv_DT)(CPUSH4State *env, float64 t0, float64 t1) { set_float_exception_flags(0, &env->fp_status); t0 =3D float64_div(t0, t1, &env->fp_status); @@ -350,7 +350,7 @@ float64 helper_fdiv_DT(CPUSH4State *env, float64 t0, fl= oat64 t1) return t0; } =20 -float32 helper_float_FT(CPUSH4State *env, uint32_t t0) +float32 HELPER(float_FT)(CPUSH4State *env, uint32_t t0) { float32 ret; set_float_exception_flags(0, &env->fp_status); @@ -359,7 +359,7 @@ float32 helper_float_FT(CPUSH4State *env, uint32_t t0) return ret; } =20 -float64 helper_float_DT(CPUSH4State *env, uint32_t t0) +float64 HELPER(float_DT)(CPUSH4State *env, uint32_t t0) { float64 ret; set_float_exception_flags(0, &env->fp_status); @@ -368,7 +368,7 @@ float64 helper_float_DT(CPUSH4State *env, uint32_t t0) return ret; } =20 -float32 helper_fmac_FT(CPUSH4State *env, float32 t0, float32 t1, float32 t= 2) +float32 HELPER(fmac_FT)(CPUSH4State *env, float32 t0, float32 t1, float32 = t2) { set_float_exception_flags(0, &env->fp_status); t0 =3D float32_muladd(t0, t1, t2, 0, &env->fp_status); @@ -376,7 +376,7 @@ float32 helper_fmac_FT(CPUSH4State *env, float32 t0, fl= oat32 t1, float32 t2) return t0; } =20 -float32 helper_fmul_FT(CPUSH4State *env, float32 t0, float32 t1) +float32 HELPER(fmul_FT)(CPUSH4State *env, float32 t0, float32 t1) { set_float_exception_flags(0, &env->fp_status); t0 =3D float32_mul(t0, t1, &env->fp_status); @@ -384,7 +384,7 @@ float32 helper_fmul_FT(CPUSH4State *env, float32 t0, fl= oat32 t1) return t0; } =20 -float64 helper_fmul_DT(CPUSH4State *env, float64 t0, float64 t1) +float64 HELPER(fmul_DT)(CPUSH4State *env, float64 t0, float64 t1) { set_float_exception_flags(0, &env->fp_status); t0 =3D float64_mul(t0, t1, &env->fp_status); @@ -392,7 +392,7 @@ float64 helper_fmul_DT(CPUSH4State *env, float64 t0, fl= oat64 t1) return t0; } =20 -float32 helper_fsqrt_FT(CPUSH4State *env, float32 t0) +float32 HELPER(fsqrt_FT)(CPUSH4State *env, float32 t0) { set_float_exception_flags(0, &env->fp_status); t0 =3D float32_sqrt(t0, &env->fp_status); @@ -400,7 +400,7 @@ float32 helper_fsqrt_FT(CPUSH4State *env, float32 t0) return t0; } =20 -float64 helper_fsqrt_DT(CPUSH4State *env, float64 t0) +float64 HELPER(fsqrt_DT)(CPUSH4State *env, float64 t0) { set_float_exception_flags(0, &env->fp_status); t0 =3D float64_sqrt(t0, &env->fp_status); @@ -408,7 +408,7 @@ float64 helper_fsqrt_DT(CPUSH4State *env, float64 t0) return t0; } =20 -float32 helper_fsrra_FT(CPUSH4State *env, float32 t0) +float32 HELPER(fsrra_FT)(CPUSH4State *env, float32 t0) { set_float_exception_flags(0, &env->fp_status); /* "Approximate" 1/sqrt(x) via actual computation. */ @@ -426,7 +426,7 @@ float32 helper_fsrra_FT(CPUSH4State *env, float32 t0) return t0; } =20 -float32 helper_fsub_FT(CPUSH4State *env, float32 t0, float32 t1) +float32 HELPER(fsub_FT)(CPUSH4State *env, float32 t0, float32 t1) { set_float_exception_flags(0, &env->fp_status); t0 =3D float32_sub(t0, t1, &env->fp_status); @@ -434,7 +434,7 @@ float32 helper_fsub_FT(CPUSH4State *env, float32 t0, fl= oat32 t1) return t0; } =20 -float64 helper_fsub_DT(CPUSH4State *env, float64 t0, float64 t1) +float64 HELPER(fsub_DT)(CPUSH4State *env, float64 t0, float64 t1) { set_float_exception_flags(0, &env->fp_status); t0 =3D float64_sub(t0, t1, &env->fp_status); @@ -442,7 +442,7 @@ float64 helper_fsub_DT(CPUSH4State *env, float64 t0, fl= oat64 t1) return t0; } =20 -uint32_t helper_ftrc_FT(CPUSH4State *env, float32 t0) +uint32_t HELPER(ftrc_FT)(CPUSH4State *env, float32 t0) { uint32_t ret; set_float_exception_flags(0, &env->fp_status); @@ -451,7 +451,7 @@ uint32_t helper_ftrc_FT(CPUSH4State *env, float32 t0) return ret; } =20 -uint32_t helper_ftrc_DT(CPUSH4State *env, float64 t0) +uint32_t HELPER(ftrc_DT)(CPUSH4State *env, float64 t0) { uint32_t ret; set_float_exception_flags(0, &env->fp_status); @@ -460,7 +460,7 @@ uint32_t helper_ftrc_DT(CPUSH4State *env, float64 t0) return ret; } =20 -void helper_fipr(CPUSH4State *env, uint32_t m, uint32_t n) +void HELPER(fipr)(CPUSH4State *env, uint32_t m, uint32_t n) { int bank, i; float32 r, p; @@ -480,7 +480,7 @@ void helper_fipr(CPUSH4State *env, uint32_t m, uint32_t= n) env->fregs[bank + n + 3] =3D r; } =20 -void helper_ftrv(CPUSH4State *env, uint32_t n) +void HELPER(ftrv)(CPUSH4State *env, uint32_t n) { int bank_matrix, bank_vector; int i, j; --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792444962; cv=none; d=zohomail.com; s=zohoarc; b=QiEnXaMcn77w+GRdttOZjW6U1hVQiMPtVbgEV8q9be3Lyb8kAnpk0NPL28eZvJWN763GwiOmDaNNdAVZ3CC9YGJhmaYk5ko7iGcTr3Ha8lgNDjpbFBALo0NivbVxnd3q2M/3Yu3Li3zXvj8dwxZOQyTkH5qpGrHnCcZV0ZsfmLI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792444962; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=I9aDRFBN5Wq+Jmha+/5JzZjp72EOkMJu6DjbXxh190k=; b=f4zIBtfta4fwlTxq6LxCd6WpA8DbHYfcJsNLD+42F47zKOXF3QumGJbkWPsMVRd1oIRRJWtOSfpfuI5DHrCeTsY81PaKD+u1YbfBQxcwvMjmQzpueJF/QpD0kgadbFlR8qCi+Ms4az2k3UbR4G6KTaT709xvb7/DxQRmdXd5U2E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792444962202381.33487640868157; Mon, 19 Oct 2026 14:22:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunU-0001hr-Qh; Mon, 19 Oct 2026 17:21:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunO-0001h8-Hh for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:27 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunK-0005i8-AT for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:26 -0400 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJKFCQ550297 for ; Mon, 19 Oct 2026 21:21:21 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf47kc5f-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:20 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3ad53f538d2so613543a91.3 for ; Mon, 19 Oct 2026 14:21:20 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=I9aDRFBN5Wq +Jmha+/5JzZjp72EOkMJu6DjbXxh190k=; b=RndSzoeg1rFufr5APRP7bGUkI1b vJJkFpbzx/9bhboOwk133yaCfCPxdqeggiJ2Rl1R6LQKlzPaVt0we/W8YgAoF6rF jIhbqrQmYkqwSuHoINSHptpoQIIyC7H1GdFXNMN8KwnIoGPp/7TMefYsymwLlL+q ZTJJsSNxcX7xplJBXk3H07EWbjd3uh5TGlTpn6zwNr0VVduiJImZlD5raGlM8OX1 HDFBmvymm1zEAE2ihJXt+PrkPPTKY9o+LOr8Z+plPQ4CNU7ET3opMM4xlNuK7eiI eMubmDBH36OcKYhhUmjpjyuoiGlrB7CRGDPpMar+yV0PcsXg99Q2Wim5csg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444880; x=1793049680; 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:content-type; bh=I9aDRFBN5Wq+Jmha+/5JzZjp72EOkMJu6DjbXxh190k=; b=BUjP1PlbfP/eRmqVb3zSixciQ1gdtSCaf3fo1F35hcewxN1XhQmZ73hVxaq0TGtnct Oeku6E2xDrV1nHuvH9SqxNrPwu5iHVHhMoI2ZbIwWa7ipQ1wjNdIqhbhr543usxH+nyp eX+DzJ2apVdz0T8fDY2YaLkh9iwodeGyjN5jFw19NrYQLWlb85WZAM/klE9p3FLovnbW UkzPaghXBWTYLbi/OrN6y7DZoG4Br55g0xLKog31TTKJ4ne51D0Zi4rwaKPC0vsFqlNH 9nvAFWGUXpAteESO9dHf5KtUXifF1Su9Yk3A9kpVXQMXBmPGFf62HrRoj5H2sC3jPiH8 LN1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444880; x=1793049680; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=I9aDRFBN5Wq+Jmha+/5JzZjp72EOkMJu6DjbXxh190k=; b=HfeqiLZSqE6G3PFXLqB7hj43Y/6pqx4GxoUlq+xNJVU8AidYDFxyBORMW/+m/qbi6P 2Ay8bfTVI9QoHaKZeEMT5diDumNM+Leul54d5xFodw+cAlRoPDQK2S7iWncT/DZ5n5OT 51Zue17OkXhUVzqazWJQaQsXKOjBrNQa06sm0QPlYw1kzKToezlAp3kEx2J9EueqNUyG uay5dssmvci7JOBzmvhdmalcJUEncbQScbyMExw0km5+YwJPQq/BQxxadXdbrfzocDnB 1QIcbrbroAKyf/XUKy+FSy3Dc5IATKIJR1fHRpmIdJolpRLfvVVhF6MNBrO3S6tqfr2o nCVQ== X-Gm-Message-State: AFq9FYJbZRpEa8OID2uNBJImSX1xjwI7OE0FnH7xcCEiNjLJuuKJNuul EXvG52ctdx/SH7WLOlsWLgj5+zjsS9twpO+pTr0G5KhwjNcd6AppE7PqJNBExYU98exHNrBrEf5 A+aUPt1E84iVxN2zu3sVBHXbg+LsVd2v8Wh3v6byIklDIFoRolMsP/tzSSYPKZ2dBPw== X-Gm-Gg: AYBFou1jOaebqpz/Wow6ZtohnC9H9zB06lQTcvdDoHYXcUB4+iCp879FwOwNk1mHt1/ G5SpqxrXtOUW5g/CvLze8bcEL0ZmIadORfOfqDKIA5oVbYMj7SB/ib1+KNuzr48/RXguHCm1Ovf TEN5fOgVmb/mFHEoUNSxTxvKd5HbNPtBSbSbhvGEsLRwgUNP3lT+K80mZ+P/ml+y+fP67UWU241 08zMH2maS3QwJ0+gfmUojIlLe2XpT26etQ9GLS70xFT86G570F3b/b+nVHbZX463wryNbYlvKca 5A6J2SZLN24hjj4IBGZYVNQ9v4j7uJV6MzoFkVPu22QVDirnJ7ShHRM5mUJh91S26+3+a686G7v zuKRPFjaal2SnphitwjbeK8rfIvWZC7kVll6QgxqRGU6mmikQSuE2QiUb12gDGCQ= X-Received: by 2002:a17:90b:4c8c:b0:3a7:ecab:c4c7 with SMTP id 98e67ed59e1d1-3acef1486bemr8436905a91.34.1792444879688; Mon, 19 Oct 2026 14:21:19 -0700 (PDT) X-Received: by 2002:a17:90b:4c8c:b0:3a7:ecab:c4c7 with SMTP id 98e67ed59e1d1-3acef1486bemr8436857a91.34.1792444878232; Mon, 19 Oct 2026 14:21:18 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 16/26] target/sparc: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:35 +0000 Message-ID: <20261019212046.149572-17-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: aBJ8hoRM-LN7wEKZlIARat7MKjlMV_z9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX8wr5x3NNT+bg rFZUWNUyApOUgdbXzupv8IKLErTglMIwN3Yih4Nzj2RAQYlHXKhUEcFh2VHyRzVTe/0HfKOHBce z9OfUvKANqDQXVvwTkA2lwaTQNjtiy1Pfy5ecFLGEeMZBTwSaIld8tYRnNXhDzpxIWtNMwBcWHX dlzexinPieO0obyvYDrb6FHcy6n1RNH9dCfWk6KF+xQxRtnD/xgxlPJkMsbFRWzwqrjekXt0rjR qaXsEvVbSxJJzP6DJF4QAkbGXtg5N2D+rAyGN1kJC239XeB/v5UI64YSCCWps5SRV5ivLXuOgva TCyVG/TvFSA9Q9Qm4GnZuwGBk6JMwPw0wSODCLmzaesGvw2UnOHk17L169QyI8jqvYdv3wYwu4/ kw9BvD43Ld2s1tVRwoUky4LfpINVRKdDnyMrJsxrMDkMYxTnefGt1Xtm9vL/ISdKq4ZE2AIrTdD Xwn+JJlJIqRATlh48dg== X-Proofpoint-GUID: aBJ8hoRM-LN7wEKZlIARat7MKjlMV_z9 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX1VrV1T5ShFZI Wefy4EgntMiYj2uUL1bRjpfa+wAAnbCIepMQp/hxJhCfrqZSi6xo06U1B8kFhwI9ehGKuPJ7lLt rZBtTT177gdK1yMk1/o20wA+3deu4Dc= X-Authority-Analysis: v=2.4 cv=cLt1IVeN c=1 sm=1 tr=0 ts=6ad689d0 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=kCVwYyrU2TdIIrcQhIEA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 phishscore=0 spamscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792444964067158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/sparc/fop_helper.c | 106 ++++++++++++++++++------------------ target/sparc/helper.c | 22 ++++---- target/sparc/int64_helper.c | 6 +- target/sparc/ldst_helper.c | 14 ++--- target/sparc/vis_helper.c | 94 ++++++++++++++++---------------- target/sparc/win_helper.c | 38 ++++++------- 6 files changed, 140 insertions(+), 140 deletions(-) diff --git a/target/sparc/fop_helper.c b/target/sparc/fop_helper.c index 29fd1664384..90aa93f24dc 100644 --- a/target/sparc/fop_helper.c +++ b/target/sparc/fop_helper.c @@ -84,91 +84,91 @@ static void check_ieee_exceptions(CPUSPARCState *env, u= intptr_t ra) env->fsr_cexc_ftt =3D cexc; } =20 -float32 helper_fadds(CPUSPARCState *env, float32 src1, float32 src2) +float32 HELPER(fadds)(CPUSPARCState *env, float32 src1, float32 src2) { float32 ret =3D float32_add(src1, src2, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -float32 helper_fsubs(CPUSPARCState *env, float32 src1, float32 src2) +float32 HELPER(fsubs)(CPUSPARCState *env, float32 src1, float32 src2) { float32 ret =3D float32_sub(src1, src2, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -float32 helper_fmuls(CPUSPARCState *env, float32 src1, float32 src2) +float32 HELPER(fmuls)(CPUSPARCState *env, float32 src1, float32 src2) { float32 ret =3D float32_mul(src1, src2, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -float32 helper_fdivs(CPUSPARCState *env, float32 src1, float32 src2) +float32 HELPER(fdivs)(CPUSPARCState *env, float32 src1, float32 src2) { float32 ret =3D float32_div(src1, src2, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -float64 helper_faddd(CPUSPARCState *env, float64 src1, float64 src2) +float64 HELPER(faddd)(CPUSPARCState *env, float64 src1, float64 src2) { float64 ret =3D float64_add(src1, src2, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -float64 helper_fsubd(CPUSPARCState *env, float64 src1, float64 src2) +float64 HELPER(fsubd)(CPUSPARCState *env, float64 src1, float64 src2) { float64 ret =3D float64_sub(src1, src2, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -float64 helper_fmuld(CPUSPARCState *env, float64 src1, float64 src2) +float64 HELPER(fmuld)(CPUSPARCState *env, float64 src1, float64 src2) { float64 ret =3D float64_mul(src1, src2, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -float64 helper_fdivd(CPUSPARCState *env, float64 src1, float64 src2) +float64 HELPER(fdivd)(CPUSPARCState *env, float64 src1, float64 src2) { float64 ret =3D float64_div(src1, src2, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -Int128 helper_faddq(CPUSPARCState *env, Int128 src1, Int128 src2) +Int128 HELPER(faddq)(CPUSPARCState *env, Int128 src1, Int128 src2) { float128 ret =3D float128_add(f128_in(src1), f128_in(src2), &env->fp_s= tatus); check_ieee_exceptions(env, GETPC()); return f128_ret(ret); } =20 -Int128 helper_fsubq(CPUSPARCState *env, Int128 src1, Int128 src2) +Int128 HELPER(fsubq)(CPUSPARCState *env, Int128 src1, Int128 src2) { float128 ret =3D float128_sub(f128_in(src1), f128_in(src2), &env->fp_s= tatus); check_ieee_exceptions(env, GETPC()); return f128_ret(ret); } =20 -Int128 helper_fmulq(CPUSPARCState *env, Int128 src1, Int128 src2) +Int128 HELPER(fmulq)(CPUSPARCState *env, Int128 src1, Int128 src2) { float128 ret =3D float128_mul(f128_in(src1), f128_in(src2), &env->fp_s= tatus); check_ieee_exceptions(env, GETPC()); return f128_ret(ret); } =20 -Int128 helper_fdivq(CPUSPARCState *env, Int128 src1, Int128 src2) +Int128 HELPER(fdivq)(CPUSPARCState *env, Int128 src1, Int128 src2) { float128 ret =3D float128_div(f128_in(src1), f128_in(src2), &env->fp_s= tatus); check_ieee_exceptions(env, GETPC()); return f128_ret(ret); } =20 -float64 helper_fsmuld(CPUSPARCState *env, float32 src1, float32 src2) +float64 HELPER(fsmuld)(CPUSPARCState *env, float32 src1, float32 src2) { float64 ret =3D float64_mul(float32_to_float64(src1, &env->fp_status), float32_to_float64(src2, &env->fp_status), @@ -177,7 +177,7 @@ float64 helper_fsmuld(CPUSPARCState *env, float32 src1,= float32 src2) return ret; } =20 -Int128 helper_fdmulq(CPUSPARCState *env, float64 src1, float64 src2) +Int128 HELPER(fdmulq)(CPUSPARCState *env, float64 src1, float64 src2) { float128 ret =3D float128_mul(float64_to_float128(src1, &env->fp_statu= s), float64_to_float128(src2, &env->fp_status), @@ -187,21 +187,21 @@ Int128 helper_fdmulq(CPUSPARCState *env, float64 src1= , float64 src2) } =20 /* Integer to float conversion. */ -float32 helper_fitos(CPUSPARCState *env, int32_t src) +float32 HELPER(fitos)(CPUSPARCState *env, int32_t src) { float32 ret =3D int32_to_float32(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -float64 helper_fitod(CPUSPARCState *env, int32_t src) +float64 HELPER(fitod)(CPUSPARCState *env, int32_t src) { float64 ret =3D int32_to_float64(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -Int128 helper_fitoq(CPUSPARCState *env, int32_t src) +Int128 HELPER(fitoq)(CPUSPARCState *env, int32_t src) { float128 ret =3D int32_to_float128(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); @@ -209,21 +209,21 @@ Int128 helper_fitoq(CPUSPARCState *env, int32_t src) } =20 #ifdef TARGET_SPARC64 -float32 helper_fxtos(CPUSPARCState *env, int64_t src) +float32 HELPER(fxtos)(CPUSPARCState *env, int64_t src) { float32 ret =3D int64_to_float32(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -float64 helper_fxtod(CPUSPARCState *env, int64_t src) +float64 HELPER(fxtod)(CPUSPARCState *env, int64_t src) { float64 ret =3D int64_to_float64(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -Int128 helper_fxtoq(CPUSPARCState *env, int64_t src) +Int128 HELPER(fxtoq)(CPUSPARCState *env, int64_t src) { float128 ret =3D int64_to_float128(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); @@ -232,42 +232,42 @@ Int128 helper_fxtoq(CPUSPARCState *env, int64_t src) #endif =20 /* floating point conversion */ -float32 helper_fdtos(CPUSPARCState *env, float64 src) +float32 HELPER(fdtos)(CPUSPARCState *env, float64 src) { float32 ret =3D float64_to_float32(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -float64 helper_fstod(CPUSPARCState *env, float32 src) +float64 HELPER(fstod)(CPUSPARCState *env, float32 src) { float64 ret =3D float32_to_float64(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -float32 helper_fqtos(CPUSPARCState *env, Int128 src) +float32 HELPER(fqtos)(CPUSPARCState *env, Int128 src) { float32 ret =3D float128_to_float32(f128_in(src), &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -Int128 helper_fstoq(CPUSPARCState *env, float32 src) +Int128 HELPER(fstoq)(CPUSPARCState *env, float32 src) { float128 ret =3D float32_to_float128(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return f128_ret(ret); } =20 -float64 helper_fqtod(CPUSPARCState *env, Int128 src) +float64 HELPER(fqtod)(CPUSPARCState *env, Int128 src) { float64 ret =3D float128_to_float64(f128_in(src), &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -Int128 helper_fdtoq(CPUSPARCState *env, float64 src) +Int128 HELPER(fdtoq)(CPUSPARCState *env, float64 src) { float128 ret =3D float64_to_float128(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); @@ -275,21 +275,21 @@ Int128 helper_fdtoq(CPUSPARCState *env, float64 src) } =20 /* Float to integer conversion. */ -int32_t helper_fstoi(CPUSPARCState *env, float32 src) +int32_t HELPER(fstoi)(CPUSPARCState *env, float32 src) { int32_t ret =3D float32_to_int32_round_to_zero(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -int32_t helper_fdtoi(CPUSPARCState *env, float64 src) +int32_t HELPER(fdtoi)(CPUSPARCState *env, float64 src) { int32_t ret =3D float64_to_int32_round_to_zero(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -int32_t helper_fqtoi(CPUSPARCState *env, Int128 src) +int32_t HELPER(fqtoi)(CPUSPARCState *env, Int128 src) { int32_t ret =3D float128_to_int32_round_to_zero(f128_in(src), &env->fp_status); @@ -298,21 +298,21 @@ int32_t helper_fqtoi(CPUSPARCState *env, Int128 src) } =20 #ifdef TARGET_SPARC64 -int64_t helper_fstox(CPUSPARCState *env, float32 src) +int64_t HELPER(fstox)(CPUSPARCState *env, float32 src) { int64_t ret =3D float32_to_int64_round_to_zero(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -int64_t helper_fdtox(CPUSPARCState *env, float64 src) +int64_t HELPER(fdtox)(CPUSPARCState *env, float64 src) { int64_t ret =3D float64_to_int64_round_to_zero(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -int64_t helper_fqtox(CPUSPARCState *env, Int128 src) +int64_t HELPER(fqtox)(CPUSPARCState *env, Int128 src) { int64_t ret =3D float128_to_int64_round_to_zero(f128_in(src), &env->fp_status); @@ -321,28 +321,28 @@ int64_t helper_fqtox(CPUSPARCState *env, Int128 src) } #endif =20 -float32 helper_fsqrts(CPUSPARCState *env, float32 src) +float32 HELPER(fsqrts)(CPUSPARCState *env, float32 src) { float32 ret =3D float32_sqrt(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -float64 helper_fsqrtd(CPUSPARCState *env, float64 src) +float64 HELPER(fsqrtd)(CPUSPARCState *env, float64 src) { float64 ret =3D float64_sqrt(src, &env->fp_status); check_ieee_exceptions(env, GETPC()); return ret; } =20 -Int128 helper_fsqrtq(CPUSPARCState *env, Int128 src) +Int128 HELPER(fsqrtq)(CPUSPARCState *env, Int128 src) { float128 ret =3D float128_sqrt(f128_in(src), &env->fp_status); check_ieee_exceptions(env, GETPC()); return f128_ret(ret); } =20 -float32 helper_fmadds(CPUSPARCState *env, float32 s1, +float32 HELPER(fmadds)(CPUSPARCState *env, float32 s1, float32 s2, float32 s3, int32_t sc, uint32_t op) { float32 ret =3D float32_muladd_scalbn(s1, s2, s3, sc, op, &env->fp_sta= tus); @@ -350,7 +350,7 @@ float32 helper_fmadds(CPUSPARCState *env, float32 s1, return ret; } =20 -float64 helper_fmaddd(CPUSPARCState *env, float64 s1, +float64 HELPER(fmaddd)(CPUSPARCState *env, float64 s1, float64 s2, float64 s3, int32_t sc, uint32_t op) { float64 ret =3D float64_muladd_scalbn(s1, s2, s3, sc, op, &env->fp_sta= tus); @@ -358,7 +358,7 @@ float64 helper_fmaddd(CPUSPARCState *env, float64 s1, return ret; } =20 -float32 helper_fnadds(CPUSPARCState *env, float32 src1, float32 src2) +float32 HELPER(fnadds)(CPUSPARCState *env, float32 src1, float32 src2) { float32 ret =3D float32_add(src1, src2, &env->fp_status); =20 @@ -373,7 +373,7 @@ float32 helper_fnadds(CPUSPARCState *env, float32 src1,= float32 src2) return ret; } =20 -float32 helper_fnmuls(CPUSPARCState *env, float32 src1, float32 src2) +float32 HELPER(fnmuls)(CPUSPARCState *env, float32 src1, float32 src2) { float32 ret =3D float32_mul(src1, src2, &env->fp_status); =20 @@ -385,7 +385,7 @@ float32 helper_fnmuls(CPUSPARCState *env, float32 src1,= float32 src2) return ret; } =20 -float64 helper_fnaddd(CPUSPARCState *env, float64 src1, float64 src2) +float64 HELPER(fnaddd)(CPUSPARCState *env, float64 src1, float64 src2) { float64 ret =3D float64_add(src1, src2, &env->fp_status); =20 @@ -400,7 +400,7 @@ float64 helper_fnaddd(CPUSPARCState *env, float64 src1,= float64 src2) return ret; } =20 -float64 helper_fnmuld(CPUSPARCState *env, float64 src1, float64 src2) +float64 HELPER(fnmuld)(CPUSPARCState *env, float64 src1, float64 src2) { float64 ret =3D float64_mul(src1, src2, &env->fp_status); =20 @@ -412,7 +412,7 @@ float64 helper_fnmuld(CPUSPARCState *env, float64 src1,= float64 src2) return ret; } =20 -float64 helper_fnsmuld(CPUSPARCState *env, float32 src1, float32 src2) +float64 HELPER(fnsmuld)(CPUSPARCState *env, float32 src1, float32 src2) { float64 ret =3D float64_mul(float32_to_float64(src1, &env->fp_status), float32_to_float64(src2, &env->fp_status), @@ -450,45 +450,45 @@ static uint32_t finish_fcmp(CPUSPARCState *env, Float= Relation r, uintptr_t ra) g_assert_not_reached(); } =20 -uint32_t helper_fcmps(CPUSPARCState *env, float32 src1, float32 src2) +uint32_t HELPER(fcmps)(CPUSPARCState *env, float32 src1, float32 src2) { FloatRelation r =3D float32_compare_quiet(src1, src2, &env->fp_status); return finish_fcmp(env, r, GETPC()); } =20 -uint32_t helper_fcmpes(CPUSPARCState *env, float32 src1, float32 src2) +uint32_t HELPER(fcmpes)(CPUSPARCState *env, float32 src1, float32 src2) { FloatRelation r =3D float32_compare(src1, src2, &env->fp_status); return finish_fcmp(env, r, GETPC()); } =20 -uint32_t helper_fcmpd(CPUSPARCState *env, float64 src1, float64 src2) +uint32_t HELPER(fcmpd)(CPUSPARCState *env, float64 src1, float64 src2) { FloatRelation r =3D float64_compare_quiet(src1, src2, &env->fp_status); return finish_fcmp(env, r, GETPC()); } =20 -uint32_t helper_fcmped(CPUSPARCState *env, float64 src1, float64 src2) +uint32_t HELPER(fcmped)(CPUSPARCState *env, float64 src1, float64 src2) { FloatRelation r =3D float64_compare(src1, src2, &env->fp_status); return finish_fcmp(env, r, GETPC()); } =20 -uint32_t helper_fcmpq(CPUSPARCState *env, Int128 src1, Int128 src2) +uint32_t HELPER(fcmpq)(CPUSPARCState *env, Int128 src1, Int128 src2) { FloatRelation r =3D float128_compare_quiet(f128_in(src1), f128_in(src2= ), &env->fp_status); return finish_fcmp(env, r, GETPC()); } =20 -uint32_t helper_fcmpeq(CPUSPARCState *env, Int128 src1, Int128 src2) +uint32_t HELPER(fcmpeq)(CPUSPARCState *env, Int128 src1, Int128 src2) { FloatRelation r =3D float128_compare(f128_in(src1), f128_in(src2), &env->fp_status); return finish_fcmp(env, r, GETPC()); } =20 -uint32_t helper_flcmps(CPUSPARCState *env, float32 src1, float32 src2) +uint32_t HELPER(flcmps)(CPUSPARCState *env, float32 src1, float32 src2) { /* * FLCMP never raises an exception nor modifies any FSR fields. @@ -516,7 +516,7 @@ uint32_t helper_flcmps(CPUSPARCState *env, float32 src1= , float32 src2) g_assert_not_reached(); } =20 -uint32_t helper_flcmpd(CPUSPARCState *env, float64 src1, float64 src2) +uint32_t HELPER(flcmpd)(CPUSPARCState *env, float64 src1, float64 src2) { float_status discard =3D env->fp_status; FloatRelation r; @@ -559,7 +559,7 @@ target_ulong cpu_get_fsr(CPUSPARCState *env) return fsr; } =20 -target_ulong helper_get_fsr(CPUSPARCState *env) +target_ulong HELPER(get_fsr)(CPUSPARCState *env) { return cpu_get_fsr(env); } @@ -604,14 +604,14 @@ void cpu_put_fsr(CPUSPARCState *env, target_ulong fsr) set_fsr_nonsplit(env, fsr); } =20 -void helper_set_fsr_nofcc_noftt(CPUSPARCState *env, uint32_t fsr) +void HELPER(set_fsr_nofcc_noftt)(CPUSPARCState *env, uint32_t fsr) { env->fsr_cexc_ftt &=3D FSR_FTT_MASK; env->fsr_cexc_ftt |=3D fsr & FSR_CEXC_MASK; set_fsr_nonsplit(env, fsr); } =20 -void helper_set_fsr_nofcc(CPUSPARCState *env, uint32_t fsr) +void HELPER(set_fsr_nofcc)(CPUSPARCState *env, uint32_t fsr) { env->fsr_cexc_ftt =3D fsr & (FSR_CEXC_MASK | FSR_FTT_MASK); set_fsr_nonsplit(env, fsr); diff --git a/target/sparc/helper.c b/target/sparc/helper.c index 8de261b0e30..f4eb78c4487 100644 --- a/target/sparc/helper.c +++ b/target/sparc/helper.c @@ -33,7 +33,7 @@ void cpu_raise_exception_ra(CPUSPARCState *env, int tt, u= intptr_t ra) cpu_loop_exit_restore(cs, ra); } =20 -void helper_raise_exception(CPUSPARCState *env, int tt) +void HELPER(raise_exception)(CPUSPARCState *env, int tt) { CPUState *cs =3D env_cpu(env); =20 @@ -41,7 +41,7 @@ void helper_raise_exception(CPUSPARCState *env, int tt) cpu_loop_exit(cs); } =20 -void helper_debug(CPUSPARCState *env) +void HELPER(debug)(CPUSPARCState *env) { CPUState *cs =3D env_cpu(env); =20 @@ -50,14 +50,14 @@ void helper_debug(CPUSPARCState *env) } =20 #ifdef TARGET_SPARC64 -void helper_tick_set_count(void *opaque, uint64_t count) +void HELPER(tick_set_count)(void *opaque, uint64_t count) { #if !defined(CONFIG_USER_ONLY) cpu_tick_set_count(opaque, count); #endif } =20 -uint64_t helper_tick_get_count(CPUSPARCState *env, void *opaque, int mem_i= dx) +uint64_t HELPER(tick_get_count)(CPUSPARCState *env, void *opaque, int mem_= idx) { #if !defined(CONFIG_USER_ONLY) CPUTimer *timer =3D opaque; @@ -74,7 +74,7 @@ uint64_t helper_tick_get_count(CPUSPARCState *env, void *= opaque, int mem_idx) #endif } =20 -void helper_tick_set_limit(void *opaque, uint64_t limit) +void HELPER(tick_set_limit)(void *opaque, uint64_t limit) { #if !defined(CONFIG_USER_ONLY) cpu_tick_set_limit(opaque, limit); @@ -82,7 +82,7 @@ void helper_tick_set_limit(void *opaque, uint64_t limit) } #endif =20 -uint64_t helper_udiv(CPUSPARCState *env, target_ulong a, target_ulong b) +uint64_t HELPER(udiv)(CPUSPARCState *env, target_ulong a, target_ulong b) { uint64_t a64 =3D (uint32_t)a | ((uint64_t)env->y << 32); uint32_t b32 =3D b; @@ -100,7 +100,7 @@ uint64_t helper_udiv(CPUSPARCState *env, target_ulong a= , target_ulong b) return r; } =20 -uint64_t helper_sdiv(CPUSPARCState *env, target_ulong a, target_ulong b) +uint64_t HELPER(sdiv)(CPUSPARCState *env, target_ulong a, target_ulong b) { int64_t a64 =3D (uint32_t)a | ((uint64_t)env->y << 32); int32_t b32 =3D b; @@ -130,7 +130,7 @@ uint64_t helper_sdiv(CPUSPARCState *env, target_ulong a= , target_ulong b) return (uint32_t)r; } =20 -target_ulong helper_taddcctv(CPUSPARCState *env, target_ulong src1, +target_ulong HELPER(taddcctv)(CPUSPARCState *env, target_ulong src1, target_ulong src2) { target_ulong dst, v; @@ -166,7 +166,7 @@ target_ulong helper_taddcctv(CPUSPARCState *env, target= _ulong src1, cpu_raise_exception_ra(env, TT_TOVF, GETPC()); } =20 -target_ulong helper_tsubcctv(CPUSPARCState *env, target_ulong src1, +target_ulong HELPER(tsubcctv)(CPUSPARCState *env, target_ulong src1, target_ulong src2) { target_ulong dst, v; @@ -203,7 +203,7 @@ target_ulong helper_tsubcctv(CPUSPARCState *env, target= _ulong src1, } =20 #ifndef TARGET_SPARC64 -void helper_power_down(CPUSPARCState *env) +void HELPER(power_down)(CPUSPARCState *env) { CPUState *cs =3D env_cpu(env); =20 @@ -214,7 +214,7 @@ void helper_power_down(CPUSPARCState *env) cpu_loop_exit(cs); } =20 -target_ulong helper_rdasr17(CPUSPARCState *env) +target_ulong HELPER(rdasr17)(CPUSPARCState *env) { CPUState *cs =3D env_cpu(env); target_ulong val; diff --git a/target/sparc/int64_helper.c b/target/sparc/int64_helper.c index 60ab0478fc6..5290738568b 100644 --- a/target/sparc/int64_helper.c +++ b/target/sparc/int64_helper.c @@ -289,21 +289,21 @@ static bool do_modify_softint(CPUSPARCState *env, uin= t32_t value) return false; } =20 -void helper_set_softint(CPUSPARCState *env, uint64_t value) +void HELPER(set_softint)(CPUSPARCState *env, uint64_t value) { if (do_modify_softint(env, env->softint | (uint32_t)value)) { trace_int_helper_set_softint(env->softint); } } =20 -void helper_clear_softint(CPUSPARCState *env, uint64_t value) +void HELPER(clear_softint)(CPUSPARCState *env, uint64_t value) { if (do_modify_softint(env, env->softint & (uint32_t)~value)) { trace_int_helper_clear_softint(env->softint); } } =20 -void helper_write_softint(CPUSPARCState *env, uint64_t value) +void HELPER(write_softint)(CPUSPARCState *env, uint64_t value) { if (do_modify_softint(env, (uint32_t)value)) { trace_int_helper_write_softint(env->softint); diff --git a/target/sparc/ldst_helper.c b/target/sparc/ldst_helper.c index 4ec8799d1f7..74d9cc1c966 100644 --- a/target/sparc/ldst_helper.c +++ b/target/sparc/ldst_helper.c @@ -580,7 +580,7 @@ static uint64_t leon3_cache_control_ld(CPUSPARCState *e= nv, target_ulong addr, return ret; } =20 -uint64_t helper_ld_asi(CPUSPARCState *env, target_ulong addr, +uint64_t HELPER(ld_asi)(CPUSPARCState *env, target_ulong addr, int asi, uint32_t memop) { int size =3D 1 << (memop & MO_SIZE); @@ -804,7 +804,7 @@ uint64_t helper_ld_asi(CPUSPARCState *env, target_ulong= addr, return ret; } =20 -void helper_st_asi(CPUSPARCState *env, target_ulong addr, uint64_t val, +void HELPER(st_asi)(CPUSPARCState *env, target_ulong addr, uint64_t val, int asi, uint32_t memop) { int size =3D 1 << (memop & MO_SIZE); @@ -1154,7 +1154,7 @@ void helper_st_asi(CPUSPARCState *env, target_ulong a= ddr, uint64_t val, #endif } =20 -uint64_t helper_ld_code(CPUSPARCState *env, target_ulong addr, uint32_t oi) +uint64_t HELPER(ld_code)(CPUSPARCState *env, target_ulong addr, uint32_t o= i) { MemOp mop =3D get_memop(oi); uintptr_t ra =3D GETPC(); @@ -1192,7 +1192,7 @@ uint64_t helper_ld_code(CPUSPARCState *env, target_ul= ong addr, uint32_t oi) #else /* TARGET_SPARC64 */ =20 #ifdef CONFIG_USER_ONLY -uint64_t helper_ld_asi(CPUSPARCState *env, target_ulong addr, +uint64_t HELPER(ld_asi)(CPUSPARCState *env, target_ulong addr, int asi, uint32_t memop) { int size =3D 1 << (memop & MO_SIZE); @@ -1281,7 +1281,7 @@ uint64_t helper_ld_asi(CPUSPARCState *env, target_ulo= ng addr, return ret; } =20 -void helper_st_asi(CPUSPARCState *env, target_ulong addr, target_ulong val, +void HELPER(st_asi)(CPUSPARCState *env, target_ulong addr, target_ulong va= l, int asi, uint32_t memop) { int size =3D 1 << (memop & MO_SIZE); @@ -1312,7 +1312,7 @@ void helper_st_asi(CPUSPARCState *env, target_ulong a= ddr, target_ulong val, =20 #else /* CONFIG_USER_ONLY */ =20 -uint64_t helper_ld_asi(CPUSPARCState *env, target_ulong addr, +uint64_t HELPER(ld_asi)(CPUSPARCState *env, target_ulong addr, int asi, uint32_t memop) { int size =3D 1 << (memop & MO_SIZE); @@ -1611,7 +1611,7 @@ uint64_t helper_ld_asi(CPUSPARCState *env, target_ulo= ng addr, return ret; } =20 -void helper_st_asi(CPUSPARCState *env, target_ulong addr, target_ulong val, +void HELPER(st_asi)(CPUSPARCState *env, target_ulong addr, target_ulong va= l, int asi, uint32_t memop) { int size =3D 1 << (memop & MO_SIZE); diff --git a/target/sparc/vis_helper.c b/target/sparc/vis_helper.c index 371f5445a1f..f79e770124a 100644 --- a/target/sparc/vis_helper.c +++ b/target/sparc/vis_helper.c @@ -22,7 +22,7 @@ #include "exec/helper-proto.h" #include "crypto/clmul.h" =20 -target_ulong helper_array8(target_ulong rs1, target_ulong rs2) +target_ulong HELPER(array8)(target_ulong rs1, target_ulong rs2) { /* * From Oracle SPARC Architecture 2015: @@ -98,7 +98,7 @@ typedef union { float32 f; } VIS32; =20 -uint64_t helper_fpmerge(uint32_t src1, uint32_t src2) +uint64_t HELPER(fpmerge)(uint32_t src1, uint32_t src2) { VIS32 s1, s2; VIS64 d; @@ -124,7 +124,7 @@ static inline int do_ms16b(int x, int y) return ((x * y) + 0x80) >> 8; } =20 -uint64_t helper_fmul8x16(uint32_t src1, uint64_t src2) +uint64_t HELPER(fmul8x16)(uint32_t src1, uint64_t src2) { VIS64 d; VIS32 s; @@ -140,7 +140,7 @@ uint64_t helper_fmul8x16(uint32_t src1, uint64_t src2) return d.ll; } =20 -uint64_t helper_fmul8x16a(uint32_t src1, int32_t src2) +uint64_t HELPER(fmul8x16a)(uint32_t src1, int32_t src2) { VIS32 s; VIS64 d; @@ -156,7 +156,7 @@ uint64_t helper_fmul8x16a(uint32_t src1, int32_t src2) return d.ll; } =20 -uint64_t helper_fmul8sux16(uint64_t src1, uint64_t src2) +uint64_t HELPER(fmul8sux16)(uint64_t src1, uint64_t src2) { VIS64 s, d; =20 @@ -171,7 +171,7 @@ uint64_t helper_fmul8sux16(uint64_t src1, uint64_t src2) return d.ll; } =20 -uint64_t helper_fmul8ulx16(uint64_t src1, uint64_t src2) +uint64_t HELPER(fmul8ulx16)(uint64_t src1, uint64_t src2) { VIS64 s, d; =20 @@ -186,7 +186,7 @@ uint64_t helper_fmul8ulx16(uint64_t src1, uint64_t src2) return d.ll; } =20 -uint64_t helper_fexpand(uint32_t src2) +uint64_t HELPER(fexpand)(uint32_t src2) { VIS32 s; VIS64 d; @@ -201,7 +201,7 @@ uint64_t helper_fexpand(uint32_t src2) return d.ll; } =20 -uint64_t helper_fcmpeq8(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpeq8)(uint64_t src1, uint64_t src2) { uint64_t a =3D src1 ^ src2; uint64_t m =3D 0x7f7f7f7f7f7f7f7fULL; @@ -217,12 +217,12 @@ uint64_t helper_fcmpeq8(uint64_t src1, uint64_t src2) return c >> 56; } =20 -uint64_t helper_fcmpne8(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpne8)(uint64_t src1, uint64_t src2) { - return helper_fcmpeq8(src1, src2) ^ 0xff; + return HELPER(fcmpeq8)(src1, src2) ^ 0xff; } =20 -uint64_t helper_fcmple8(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmple8)(uint64_t src1, uint64_t src2) { VIS64 s1, s2; uint64_t r =3D 0; @@ -236,12 +236,12 @@ uint64_t helper_fcmple8(uint64_t src1, uint64_t src2) return r; } =20 -uint64_t helper_fcmpgt8(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpgt8)(uint64_t src1, uint64_t src2) { - return helper_fcmple8(src1, src2) ^ 0xff; + return HELPER(fcmple8)(src1, src2) ^ 0xff; } =20 -uint64_t helper_fcmpule8(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpule8)(uint64_t src1, uint64_t src2) { VIS64 s1, s2; uint64_t r =3D 0; @@ -255,12 +255,12 @@ uint64_t helper_fcmpule8(uint64_t src1, uint64_t src2) return r; } =20 -uint64_t helper_fcmpugt8(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpugt8)(uint64_t src1, uint64_t src2) { - return helper_fcmpule8(src1, src2) ^ 0xff; + return HELPER(fcmpule8)(src1, src2) ^ 0xff; } =20 -uint64_t helper_fcmpeq16(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpeq16)(uint64_t src1, uint64_t src2) { uint64_t a =3D src1 ^ src2; uint64_t m =3D 0x7fff7fff7fff7fffULL; @@ -274,12 +274,12 @@ uint64_t helper_fcmpeq16(uint64_t src1, uint64_t src2) return c >> 60; } =20 -uint64_t helper_fcmpne16(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpne16)(uint64_t src1, uint64_t src2) { - return helper_fcmpeq16(src1, src2) ^ 0xf; + return HELPER(fcmpeq16)(src1, src2) ^ 0xf; } =20 -uint64_t helper_fcmple16(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmple16)(uint64_t src1, uint64_t src2) { VIS64 s1, s2; uint64_t r =3D 0; @@ -293,12 +293,12 @@ uint64_t helper_fcmple16(uint64_t src1, uint64_t src2) return r; } =20 -uint64_t helper_fcmpgt16(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpgt16)(uint64_t src1, uint64_t src2) { - return helper_fcmple16(src1, src2) ^ 0xf; + return HELPER(fcmple16)(src1, src2) ^ 0xf; } =20 -uint64_t helper_fcmpule16(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpule16)(uint64_t src1, uint64_t src2) { VIS64 s1, s2; uint64_t r =3D 0; @@ -312,24 +312,24 @@ uint64_t helper_fcmpule16(uint64_t src1, uint64_t src= 2) return r; } =20 -uint64_t helper_fcmpugt16(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpugt16)(uint64_t src1, uint64_t src2) { - return helper_fcmpule16(src1, src2) ^ 0xf; + return HELPER(fcmpule16)(src1, src2) ^ 0xf; } =20 -uint64_t helper_fcmpeq32(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpeq32)(uint64_t src1, uint64_t src2) { uint64_t a =3D src1 ^ src2; return ((uint32_t)a =3D=3D 0) | (a >> 32 ? 0 : 2); } =20 -uint64_t helper_fcmpne32(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpne32)(uint64_t src1, uint64_t src2) { uint64_t a =3D src1 ^ src2; return ((uint32_t)a !=3D 0) | (a >> 32 ? 2 : 0); } =20 -uint64_t helper_fcmple32(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmple32)(uint64_t src1, uint64_t src2) { VIS64 s1, s2; uint64_t r =3D 0; @@ -343,12 +343,12 @@ uint64_t helper_fcmple32(uint64_t src1, uint64_t src2) return r; } =20 -uint64_t helper_fcmpgt32(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpgt32)(uint64_t src1, uint64_t src2) { - return helper_fcmple32(src1, src2) ^ 3; + return HELPER(fcmple32)(src1, src2) ^ 3; } =20 -uint64_t helper_fcmpule32(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpule32)(uint64_t src1, uint64_t src2) { VIS64 s1, s2; uint64_t r =3D 0; @@ -362,12 +362,12 @@ uint64_t helper_fcmpule32(uint64_t src1, uint64_t src= 2) return r; } =20 -uint64_t helper_fcmpugt32(uint64_t src1, uint64_t src2) +uint64_t HELPER(fcmpugt32)(uint64_t src1, uint64_t src2) { - return helper_fcmpule32(src1, src2) ^ 3; + return HELPER(fcmpule32)(src1, src2) ^ 3; } =20 -uint64_t helper_pdist(uint64_t sum, uint64_t src1, uint64_t src2) +uint64_t HELPER(pdist)(uint64_t sum, uint64_t src1, uint64_t src2) { int i; for (i =3D 0; i < 8; i++) { @@ -388,7 +388,7 @@ uint64_t helper_pdist(uint64_t sum, uint64_t src1, uint= 64_t src2) return sum; } =20 -uint32_t helper_fpack16(uint64_t gsr, uint64_t rs2) +uint32_t HELPER(fpack16)(uint64_t gsr, uint64_t rs2) { int scale =3D (gsr >> 3) & 0xf; uint32_t ret =3D 0; @@ -409,7 +409,7 @@ uint32_t helper_fpack16(uint64_t gsr, uint64_t rs2) return ret; } =20 -uint64_t helper_fpack32(uint64_t gsr, uint64_t rs1, uint64_t rs2) +uint64_t HELPER(fpack32)(uint64_t gsr, uint64_t rs1, uint64_t rs2) { int scale =3D (gsr >> 3) & 0x1f; uint64_t ret =3D 0; @@ -431,7 +431,7 @@ uint64_t helper_fpack32(uint64_t gsr, uint64_t rs1, uin= t64_t rs2) return ret; } =20 -uint32_t helper_fpackfix(uint64_t gsr, uint64_t rs2) +uint32_t HELPER(fpackfix)(uint64_t gsr, uint64_t rs2) { int scale =3D (gsr >> 3) & 0x1f; uint32_t ret =3D 0; @@ -452,7 +452,7 @@ uint32_t helper_fpackfix(uint64_t gsr, uint64_t rs2) return ret; } =20 -uint64_t helper_bshuffle(uint64_t gsr, uint64_t src1, uint64_t src2) +uint64_t HELPER(bshuffle)(uint64_t gsr, uint64_t src1, uint64_t src2) { union { uint64_t ll[2]; @@ -481,7 +481,7 @@ uint64_t helper_bshuffle(uint64_t gsr, uint64_t src1, u= int64_t src2) return r.ll; } =20 -uint64_t helper_cmask8(uint64_t gsr, uint64_t src) +uint64_t HELPER(cmask8)(uint64_t gsr, uint64_t src) { uint32_t mask =3D 0; =20 @@ -497,7 +497,7 @@ uint64_t helper_cmask8(uint64_t gsr, uint64_t src) return deposit64(gsr, 32, 32, mask); } =20 -uint64_t helper_cmask16(uint64_t gsr, uint64_t src) +uint64_t HELPER(cmask16)(uint64_t gsr, uint64_t src) { uint32_t mask =3D 0; =20 @@ -509,7 +509,7 @@ uint64_t helper_cmask16(uint64_t gsr, uint64_t src) return deposit64(gsr, 32, 32, mask); } =20 -uint64_t helper_cmask32(uint64_t gsr, uint64_t src) +uint64_t HELPER(cmask32)(uint64_t gsr, uint64_t src) { uint32_t mask =3D 0; =20 @@ -526,7 +526,7 @@ static inline uint16_t do_fchksm16(uint16_t src1, uint1= 6_t src2) return a + c; } =20 -uint64_t helper_fchksm16(uint64_t src1, uint64_t src2) +uint64_t HELPER(fchksm16)(uint64_t src1, uint64_t src2) { VIS64 r, s1, s2; =20 @@ -547,7 +547,7 @@ static inline int16_t do_fmean16(int16_t src1, int16_t = src2) return (src1 + src2 + 1) / 2; } =20 -uint64_t helper_fmean16(uint64_t src1, uint64_t src2) +uint64_t HELPER(fmean16)(uint64_t src1, uint64_t src2) { VIS64 r, s1, s2; =20 @@ -563,7 +563,7 @@ uint64_t helper_fmean16(uint64_t src1, uint64_t src2) return r.ll; } =20 -uint64_t helper_fslas16(uint64_t src1, uint64_t src2) +uint64_t HELPER(fslas16)(uint64_t src1, uint64_t src2) { VIS64 r, s1, s2; =20 @@ -581,7 +581,7 @@ uint64_t helper_fslas16(uint64_t src1, uint64_t src2) return r.ll; } =20 -uint64_t helper_fslas32(uint64_t src1, uint64_t src2) +uint64_t HELPER(fslas32)(uint64_t src1, uint64_t src2) { VIS64 r, s1, s2; =20 @@ -599,12 +599,12 @@ uint64_t helper_fslas32(uint64_t src1, uint64_t src2) return r.ll; } =20 -uint64_t helper_xmulx(uint64_t src1, uint64_t src2) +uint64_t HELPER(xmulx)(uint64_t src1, uint64_t src2) { return int128_getlo(clmul_64(src1, src2)); } =20 -uint64_t helper_xmulxhi(uint64_t src1, uint64_t src2) +uint64_t HELPER(xmulxhi)(uint64_t src1, uint64_t src2) { return int128_gethi(clmul_64(src1, src2)); } diff --git a/target/sparc/win_helper.c b/target/sparc/win_helper.c index 9ad9d01e8b9..872bd35652f 100644 --- a/target/sparc/win_helper.c +++ b/target/sparc/win_helper.c @@ -121,7 +121,7 @@ int cpu_cwp_dec(CPUSPARCState *env, int cwp) } =20 #ifndef TARGET_SPARC64 -void helper_rett(CPUSPARCState *env) +void HELPER(rett)(CPUSPARCState *env) { unsigned int cwp; =20 @@ -140,7 +140,7 @@ void helper_rett(CPUSPARCState *env) =20 /* XXX: use another pointer for %iN registers to avoid slow wrapping handling ? */ -void helper_save(CPUSPARCState *env) +void HELPER(save)(CPUSPARCState *env) { uint32_t cwp; =20 @@ -151,7 +151,7 @@ void helper_save(CPUSPARCState *env) cpu_set_cwp(env, cwp); } =20 -void helper_restore(CPUSPARCState *env) +void HELPER(restore)(CPUSPARCState *env) { uint32_t cwp; =20 @@ -162,7 +162,7 @@ void helper_restore(CPUSPARCState *env) cpu_set_cwp(env, cwp); } =20 -void helper_wrpsr(CPUSPARCState *env, target_ulong new_psr) +void HELPER(wrpsr)(CPUSPARCState *env, target_ulong new_psr) { if ((new_psr & PSR_CWP) >=3D env->nwindows) { cpu_raise_exception_ra(env, TT_ILL_INSN, GETPC()); @@ -174,7 +174,7 @@ void helper_wrpsr(CPUSPARCState *env, target_ulong new_= psr) } } =20 -target_ulong helper_rdpsr(CPUSPARCState *env) +target_ulong HELPER(rdpsr)(CPUSPARCState *env) { return cpu_get_psr(env); } @@ -182,7 +182,7 @@ target_ulong helper_rdpsr(CPUSPARCState *env) #else /* XXX: use another pointer for %iN registers to avoid slow wrapping handling ? */ -void helper_save(CPUSPARCState *env) +void HELPER(save)(CPUSPARCState *env) { uint32_t cwp; =20 @@ -204,7 +204,7 @@ void helper_save(CPUSPARCState *env) } } =20 -void helper_restore(CPUSPARCState *env) +void HELPER(restore)(CPUSPARCState *env) { uint32_t cwp; =20 @@ -221,7 +221,7 @@ void helper_restore(CPUSPARCState *env) } } =20 -void helper_flushw(CPUSPARCState *env) +void HELPER(flushw)(CPUSPARCState *env) { if (env->cansave !=3D env->nwindows - 2) { int tt =3D TT_SPILL | (env->otherwin !=3D 0 @@ -231,7 +231,7 @@ void helper_flushw(CPUSPARCState *env) } } =20 -void helper_saved(CPUSPARCState *env) +void HELPER(saved)(CPUSPARCState *env) { env->cansave++; if (env->otherwin =3D=3D 0) { @@ -241,7 +241,7 @@ void helper_saved(CPUSPARCState *env) } } =20 -void helper_restored(CPUSPARCState *env) +void HELPER(restored)(CPUSPARCState *env) { env->canrestore++; if (env->cleanwin < env->nwindows - 1) { @@ -294,24 +294,24 @@ void cpu_put_cwp64(CPUSPARCState *env, int cwp) cpu_set_cwp(env, env->nwindows - 1 - cwp); } =20 -target_ulong helper_rdccr(CPUSPARCState *env) +target_ulong HELPER(rdccr)(CPUSPARCState *env) { return cpu_get_ccr(env); } =20 -void helper_wrccr(CPUSPARCState *env, target_ulong new_ccr) +void HELPER(wrccr)(CPUSPARCState *env, target_ulong new_ccr) { cpu_put_ccr(env, new_ccr); } =20 /* CWP handling is reversed in V9, but we still use the V8 register order. */ -target_ulong helper_rdcwp(CPUSPARCState *env) +target_ulong HELPER(rdcwp)(CPUSPARCState *env) { return cpu_get_cwp64(env); } =20 -void helper_wrcwp(CPUSPARCState *env, target_ulong new_cwp) +void HELPER(wrcwp)(CPUSPARCState *env, target_ulong new_cwp) { cpu_put_cwp64(env, new_cwp); } @@ -355,7 +355,7 @@ void cpu_gl_switch_gregs(CPUSPARCState *env, uint32_t n= ew_gl) } } =20 -void helper_wrgl(CPUSPARCState *env, target_ulong new_gl) +void HELPER(wrgl)(CPUSPARCState *env, target_ulong new_gl) { cpu_gl_switch_gregs(env, new_gl & 7); env->gl =3D new_gl & 7; @@ -390,7 +390,7 @@ void cpu_change_pstate(CPUSPARCState *env, uint32_t new= _pstate) env->pstate =3D new_pstate; } =20 -void helper_wrpstate(CPUSPARCState *env, target_ulong new_state) +void HELPER(wrpstate)(CPUSPARCState *env, target_ulong new_state) { cpu_change_pstate(env, new_state & 0xf3f); =20 @@ -403,7 +403,7 @@ void helper_wrpstate(CPUSPARCState *env, target_ulong n= ew_state) #endif } =20 -void helper_wrpil(CPUSPARCState *env, target_ulong new_pil) +void HELPER(wrpil)(CPUSPARCState *env, target_ulong new_pil) { #if !defined(CONFIG_USER_ONLY) trace_win_helper_wrpil(env->psrpil, (uint32_t)new_pil); @@ -418,7 +418,7 @@ void helper_wrpil(CPUSPARCState *env, target_ulong new_= pil) #endif } =20 -void helper_done(CPUSPARCState *env) +void HELPER(done)(CPUSPARCState *env) { trap_state *tsptr =3D cpu_tsptr(env); =20 @@ -447,7 +447,7 @@ void helper_done(CPUSPARCState *env) #endif } =20 -void helper_retry(CPUSPARCState *env) +void HELPER(retry)(CPUSPARCState *env) { trap_state *tsptr =3D cpu_tsptr(env); =20 --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445028; cv=none; d=zohomail.com; s=zohoarc; b=AVKaYAxv4ay7qlgCyKEqDt9dCSxCRz1aAwqLvjGoE3yr9IZPQB3McRudzGhleLwve4HEhtKAOs+tYt3k3nAdnP7sxg11gnl6bryNCMbcn7Rmg4JksG+qoaJIzJuxxNCJax+rTQdcoWXGoW8dwfUSKHHGLuGYbao0ti4FNjb5/+U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445028; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=98MMfnkwjNERiOTxawxE7YvY39AYlElafolHsh63FAI=; b=A/2KrBkFiuFtoCowaIGV9V13RfoMjufSBYdp70gnE6c6oUMLu8P4KdRqmV5aSjMVkGbvig8HXX/I9hDfv6pyE/GmUk0MUGVzgU8Z8Z5n4+90CPix6C1GbjrbcybNGy6eVv2GJalhkayM6aiuw6j67eyZxIbxziY+tS8TOQkGMxk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792445028163807.8843509847756; Mon, 19 Oct 2026 14:23:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIuno-0001ms-9Y; Mon, 19 Oct 2026 17:21:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunP-0001hA-G0 for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:27 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunL-0005iI-7B for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:27 -0400 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JK7vlt2274642 for ; Mon, 19 Oct 2026 21:21:22 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf65kaj5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:21 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ab9850456aso4058754a91.0 for ; Mon, 19 Oct 2026 14:21:21 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=98MMfnkwjNE RiOTxawxE7YvY39AYlElafolHsh63FAI=; b=H8NRfUbfYiB598gX5i1WFoYbDJD Vvh7R3wi8b6D2Y8qBAGa3rfATckOmeAwrZcBxcaoBZx9O9+RCAhFpiVFvTgLmI4k UW2ZbkL3U7im/EAFGU/q9MURSzQ0/M1H2TFuVQ0sPU19tC+HxIjHibN11n+B/LPS 7QS6R2xUKUOiEaVCv4S5nR30o5J/Barx+mpcaEUCb1jQa7//ncQPOuJlGzrq/QQe cwTqoP1r1TaUqwXSAtXUTbitlCxVzw/oSmp9hiBs1vTXPa9OoNIEM49Vz4LesBLM IljovG3ce932otNKrqXoJ6qmOv0seu01cpNJWu/Ma3pdCeBVhfm+5xngkRg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444881; x=1793049681; 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:content-type; bh=98MMfnkwjNERiOTxawxE7YvY39AYlElafolHsh63FAI=; b=S+AGoMMFZzWkHm86QW5ZnJA7h6JXqgDHDRwfUgphFR7ZSPtQISAw1gDQjahMELahfv qDPIMG4Bq7J47DZWERPYlfibFNVhfB51I/36RJcZnrWIutrFMQYsoc9zeat+qiAFpr50 n/RJmFb1NWa3tbGwXdYnfm0CzPdpkBTlVywbOwxGX5Q5omm/fdmfNhw0be5PMTJNv5Cw QGs0FW1PkDIp7qeW7cam+cHqXMmU92+TynU0as035sDjok3IAgTwPRGW2O3Eq1j1WWxu brpQKecO6roPOyhkTPwsx+PKaZYVrNwR/86awW+RqYyc96dSkjUUXwQOFoTgAUu10GRu tZZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444881; x=1793049681; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=98MMfnkwjNERiOTxawxE7YvY39AYlElafolHsh63FAI=; b=bnB1I3iYr+9j4P3pTZLOEnmI8i5wWUipk4JnmwFzVmKFprLkgAhXuxCEvMXT1DlGF+ g9gm3H5dHmhW1yc1HyjBlgg60OawVKOankxTTnHEdd0V4JAK40H+ZTW1Aw/e+gSi4GpV xGzOqNhIaiU3H8J6vowXsXOb+5SHOWj1qHzwGFhESJ0Si297pZ5RrA68TDD+L4pM4Khb xuuOJ39Xve4hGByKV83umH0TpcTRw5L5IP+5hlcvxiFJiUjOuBAFp7nkSC/dTiUDpRwZ XRv2xmKED+pmLckkFWbeqRVA0WTp2KBneqwRfCE1TOTMhubK72Wb1MnCQz+WsEwR1+8W rUog== X-Gm-Message-State: AFq9FYLmpm0JB1nvMsaouJW1Ua0RV/m0qWtpKMuYNmKSGChTdurilfli EDyPZS5NqiWb68gSLRr4Ptvat4dsyurG4trgXeYNegiDPnL6N8yHruSDtR0+ruZc9yubHgdvbte Pv9Lj1CawWZvWoE7rahqmkVeNHvH9M7I6fyn/2GvXsAAbgBf1PAXO2c+XcV4VKtN4vA== X-Gm-Gg: AYBFou3rD47LeH10ajvbmMNxTdbBOVn+J68ji3M4Aro0OqnaSFB07YpY7vJLKt5zChW B7xsLcM8vlbVSxOdn5STAXHkQl8ntUaH+Urlx112aqRpZyHeLolkvlEIJXXnvBPyDwLNoaibfqv WpuH0LYMq0XB5XBhTDm7iwbDy6ZplkfVqMgceabK2W3/CYawOoQS4pe+WkDiQbQjWCapfW9uk01 GBycrBvP0pJvq89UxhCcVMcqvuy8ed9EJYW1zr69E7ASXn8mGll0KTBlR3LZGbcD52a8+JrDn6R LdZtCEFETCxsMownX2uSEJuCZk8xZqQKm6bIVmY8wb7Sn72IBLmVP0rMSQNvpjURx0yH8eJ8W5f HBvgWow4fjr0COnI9RT97SptjtVjZwGbuc88cBy+olCYj4XT4s/jK2YNbHcRnN8Y= X-Received: by 2002:a17:90b:582e:b0:3a8:211b:6c8c with SMTP id 98e67ed59e1d1-3aceec731f8mr8269358a91.22.1792444880687; Mon, 19 Oct 2026 14:21:20 -0700 (PDT) X-Received: by 2002:a17:90b:582e:b0:3a8:211b:6c8c with SMTP id 98e67ed59e1d1-3aceec731f8mr8269332a91.22.1792444879704; Mon, 19 Oct 2026 14:21:19 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 17/26] target/tricore: define and call helpers using HELPER macro Date: Mon, 19 Oct 2026 21:20:36 +0000 Message-ID: <20261019212046.149572-18-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX+rTk/oJ66nxV TDV2z0DhB/Urb1+y7vyvAuoX1l+WLa3ExlhnUoUd28r/Oh382U2DTXDw1u/zVzR5pJjGGP3ag3D Kpd0fLXkCt1+UnH6FflzgOYdnY7ZEHI= X-Proofpoint-ORIG-GUID: ZXuBcn1ytGT3kzI5mudsYcuec25G4Hke X-Authority-Analysis: v=2.4 cv=Y5ptIReN c=1 sm=1 tr=0 ts=6ad689d1 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=eO6AAlOi-fcJYYpl75MA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX2cXJjh+qisAT wirwCOEdrSWpAuarMy3cUg3NXLiRHn3UoNynLLhL3cjnQgfVzwxw1wcmbzqjZXQIRfcAuBPQ2uQ 6hTSjghG5OBPHSDmPlUIQkO9q6uvmHuProG0EJvvXO7V9T+coP3zI0K90BuTN8TP2zfhC0/1JbA ihA+PAaev3rFk5M043vUhIWKOA4Aey08O838gOECvdRcQ9GUt1NfSjku3jP/e4e5637qEc/tSVn L8kWcbBMscWTj5oXiGOTH6QH6S4y8r5bEtCQaVzED1AuTYgdeTC7hhvboZO/M4e+N7PJXn7YAPG LnOZkgL3YDE6RmmZ3+hkgWhXRvCycRJpnI7a+0l5/VbY6ozhP7/7MVUBixjV0fraFV6qyU/hK7s 5kqSolbzxWZ4MJgqcTe/R6NDaKquo9h+SmOHWiE/pJ/9YyOxNzWMsjDTQic+8dFgf6sG55oFw/F Sfdv4YsdJQpt9lztrTA== X-Proofpoint-GUID: ZXuBcn1ytGT3kzI5mudsYcuec25G4Hke X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 phishscore=0 bulkscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445029257158500 Content-Type: text/plain; charset="utf-8" In a upcoming commit, we'll prefix all helpers and helper_info with target prefix, to disambiguate symbols between targets. As a first step, we need to make sure all usages are using the existing HELPER macro. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/tricore/fpu_helper.c | 32 +++--- target/tricore/op_helper.c | 220 ++++++++++++++++++------------------ 2 files changed, 126 insertions(+), 126 deletions(-) diff --git a/target/tricore/fpu_helper.c b/target/tricore/fpu_helper.c index fa268a8a6bc..9d323a9b664 100644 --- a/target/tricore/fpu_helper.c +++ b/target/tricore/fpu_helper.c @@ -118,7 +118,7 @@ static void f_update_psw_flags(CPUTriCoreState *env, ui= nt8_t flags) } =20 #define FADD_SUB(op) = \ -uint32_t helper_tricore_f##op(CPUTriCoreState *env, uint32_t r1, uint32_t = r2) \ +uint32_t HELPER(tricore_f##op)(CPUTriCoreState *env, uint32_t r1, uint32_t= r2) \ { = \ float32 arg1 =3D make_float32(r1); = \ float32 arg2 =3D make_float32(r2); = \ @@ -144,7 +144,7 @@ uint32_t helper_tricore_f##op(CPUTriCoreState *env, uin= t32_t r1, uint32_t r2) \ FADD_SUB(add) FADD_SUB(sub) =20 -uint32_t helper_tricore_fmul(CPUTriCoreState *env, uint32_t r1, uint32_t r= 2) +uint32_t HELPER(tricore_fmul)(CPUTriCoreState *env, uint32_t r1, uint32_t = r2) { uint32_t flags; float32 arg1 =3D make_float32(r1); @@ -203,7 +203,7 @@ static const uint8_t target_qseed_significand_table[128= ] =3D { 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2 }; =20 -uint32_t helper_qseed(CPUTriCoreState *env, uint32_t r1) +uint32_t HELPER(qseed)(CPUTriCoreState *env, uint32_t r1) { uint32_t arg1, S, E, M, E_minus_one, m_idx; uint32_t new_E, new_M, new_S, result; @@ -251,7 +251,7 @@ uint32_t helper_qseed(CPUTriCoreState *env, uint32_t r1) return (uint32_t) result; } =20 -uint32_t helper_tricore_fdiv(CPUTriCoreState *env, uint32_t r1, uint32_t r= 2) +uint32_t HELPER(tricore_fdiv)(CPUTriCoreState *env, uint32_t r1, uint32_t = r2) { uint32_t flags; float32 arg1 =3D make_float32(r1); @@ -277,7 +277,7 @@ uint32_t helper_tricore_fdiv(CPUTriCoreState *env, uint= 32_t r1, uint32_t r2) return (uint32_t)f_result; } =20 -uint32_t helper_fmadd(CPUTriCoreState *env, uint32_t r1, +uint32_t HELPER(fmadd)(CPUTriCoreState *env, uint32_t r1, uint32_t r2, uint32_t r3) { uint32_t flags; @@ -303,7 +303,7 @@ uint32_t helper_fmadd(CPUTriCoreState *env, uint32_t r1, return (uint32_t)f_result; } =20 -uint32_t helper_fmsub(CPUTriCoreState *env, uint32_t r1, +uint32_t HELPER(fmsub)(CPUTriCoreState *env, uint32_t r1, uint32_t r2, uint32_t r3) { uint32_t flags; @@ -331,7 +331,7 @@ uint32_t helper_fmsub(CPUTriCoreState *env, uint32_t r1, return (uint32_t)f_result; } =20 -uint32_t helper_tricore_fcmp(CPUTriCoreState *env, uint32_t r1, uint32_t r= 2) +uint32_t HELPER(tricore_fcmp)(CPUTriCoreState *env, uint32_t r1, uint32_t = r2) { uint32_t result, flags; float32 arg1 =3D make_float32(r1); @@ -354,7 +354,7 @@ uint32_t helper_tricore_fcmp(CPUTriCoreState *env, uint= 32_t r1, uint32_t r2) return result; } =20 -uint32_t helper_tricore_ftoi(CPUTriCoreState *env, uint32_t arg) +uint32_t HELPER(tricore_ftoi)(CPUTriCoreState *env, uint32_t arg) { float32 f_arg =3D make_float32(arg); int32_t result, flags; @@ -373,7 +373,7 @@ uint32_t helper_tricore_ftoi(CPUTriCoreState *env, uint= 32_t arg) return (uint32_t)result; } =20 -uint32_t helper_hptof(CPUTriCoreState *env, uint32_t arg) +uint32_t HELPER(hptof)(CPUTriCoreState *env, uint32_t arg) { float16 f_arg =3D make_float16(arg); uint32_t result =3D 0; @@ -409,7 +409,7 @@ uint32_t helper_hptof(CPUTriCoreState *env, uint32_t ar= g) return result; } =20 -uint32_t helper_ftohp(CPUTriCoreState *env, uint32_t arg) +uint32_t HELPER(ftohp)(CPUTriCoreState *env, uint32_t arg) { float32 f_arg =3D make_float32(arg); uint32_t result =3D 0; @@ -447,7 +447,7 @@ uint32_t helper_ftohp(CPUTriCoreState *env, uint32_t ar= g) return result; } =20 -uint32_t helper_tricore_itof(CPUTriCoreState *env, uint32_t arg) +uint32_t HELPER(tricore_itof)(CPUTriCoreState *env, uint32_t arg) { float32 f_result; uint32_t flags; @@ -462,7 +462,7 @@ uint32_t helper_tricore_itof(CPUTriCoreState *env, uint= 32_t arg) return (uint32_t)f_result; } =20 -uint32_t helper_utof(CPUTriCoreState *env, uint32_t arg) +uint32_t HELPER(utof)(CPUTriCoreState *env, uint32_t arg) { float32 f_result; uint32_t flags; @@ -478,7 +478,7 @@ uint32_t helper_utof(CPUTriCoreState *env, uint32_t arg) return (uint32_t)f_result; } =20 -uint32_t helper_ftoiz(CPUTriCoreState *env, uint32_t arg) +uint32_t HELPER(ftoiz)(CPUTriCoreState *env, uint32_t arg) { float32 f_arg =3D make_float32(arg); uint32_t result; @@ -503,7 +503,7 @@ uint32_t helper_ftoiz(CPUTriCoreState *env, uint32_t ar= g) return result; } =20 -uint32_t helper_ftou(CPUTriCoreState *env, uint32_t arg) +uint32_t HELPER(ftou)(CPUTriCoreState *env, uint32_t arg) { float32 f_arg =3D make_float32(arg); uint32_t result; @@ -535,7 +535,7 @@ uint32_t helper_ftou(CPUTriCoreState *env, uint32_t arg) return result; } =20 -uint32_t helper_ftouz(CPUTriCoreState *env, uint32_t arg) +uint32_t HELPER(ftouz)(CPUTriCoreState *env, uint32_t arg) { float32 f_arg =3D make_float32(arg); uint32_t result; @@ -567,7 +567,7 @@ uint32_t helper_ftouz(CPUTriCoreState *env, uint32_t ar= g) return result; } =20 -void helper_updfl(CPUTriCoreState *env, uint32_t arg) +void HELPER(updfl)(CPUTriCoreState *env, uint32_t arg) { env->FPU_FS =3D extract32(arg, 7, 1) & extract32(arg, 15, 1); env->FPU_FI =3D (extract32(arg, 6, 1) & extract32(arg, 14, 1)) << 31; diff --git a/target/tricore/op_helper.c b/target/tricore/op_helper.c index 46b17da2bc6..53837ed351f 100644 --- a/target/tricore/op_helper.c +++ b/target/tricore/op_helper.c @@ -43,7 +43,7 @@ void raise_exception_sync_internal(CPUTriCoreState *env, = uint32_t class, int tin if (class =3D=3D TRAPC_CTX_MNG && tin =3D=3D TIN3_FCU) { /* upper context cannot be saved, if the context list is empty */ } else { - helper_svucx(env); + HELPER(svucx)(env); } =20 /* The return address in a[11] is updated */ @@ -99,7 +99,7 @@ void raise_exception_sync_internal(CPUTriCoreState *env, = uint32_t class, int tin cpu_loop_exit(cs); } =20 -void helper_raise_exception_sync(CPUTriCoreState *env, uint32_t class, +void HELPER(raise_exception_sync)(CPUTriCoreState *env, uint32_t class, uint32_t tin) { raise_exception_sync_internal(env, class, tin, 0, 0); @@ -126,7 +126,7 @@ static uint16_t reverse16(uint16_t val) return (rh << 8) | rl; } =20 -uint32_t helper_br_update(uint32_t reg) +uint32_t HELPER(br_update)(uint32_t reg) { uint32_t index =3D reg & 0xffff; uint32_t incr =3D reg >> 16; @@ -134,7 +134,7 @@ uint32_t helper_br_update(uint32_t reg) return reg - index + new_index; } =20 -uint32_t helper_circ_update(uint32_t reg, uint32_t off) +uint32_t HELPER(circ_update)(uint32_t reg, uint32_t off) { uint32_t index =3D reg & 0xffff; uint32_t length =3D reg >> 16; @@ -266,7 +266,7 @@ static uint32_t suov16(CPUTriCoreState *env, int32_t hw= 0, int32_t hw1) return (hw0 & 0xffff) | (hw1 << 16); } =20 -uint32_t helper_add_ssov(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(add_ssov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int64_t t1 =3D sextract64(r1, 0, 32); int64_t t2 =3D sextract64(r2, 0, 32); @@ -274,7 +274,7 @@ uint32_t helper_add_ssov(CPUTriCoreState *env, uint32_t= r1, uint32_t r2) return ssov32(env, result); } =20 -uint64_t helper_add64_ssov(CPUTriCoreState *env, uint64_t r1, uint64_t r2) +uint64_t HELPER(add64_ssov)(CPUTriCoreState *env, uint64_t r1, uint64_t r2) { uint64_t result; int64_t ovf; @@ -299,7 +299,7 @@ uint64_t helper_add64_ssov(CPUTriCoreState *env, uint64= _t r1, uint64_t r2) return result; } =20 -uint32_t helper_add_h_ssov(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(add_h_ssov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int32_t ret_hw0, ret_hw1; =20 @@ -308,7 +308,7 @@ uint32_t helper_add_h_ssov(CPUTriCoreState *env, uint32= _t r1, uint32_t r2) return ssov16(env, ret_hw0, ret_hw1); } =20 -uint32_t helper_addr_h_ssov(CPUTriCoreState *env, uint64_t r1, uint32_t r2= _l, +uint32_t HELPER(addr_h_ssov)(CPUTriCoreState *env, uint64_t r1, uint32_t r= 2_l, uint32_t r2_h) { int64_t mul_res0 =3D sextract64(r1, 0, 32); @@ -354,7 +354,7 @@ uint32_t helper_addr_h_ssov(CPUTriCoreState *env, uint6= 4_t r1, uint32_t r2_l, return (result1 & 0xffff0000ULL) | ((result0 >> 16) & 0xffffULL); } =20 -uint32_t helper_addsur_h_ssov(CPUTriCoreState *env, uint64_t r1, uint32_t = r2_l, +uint32_t HELPER(addsur_h_ssov)(CPUTriCoreState *env, uint64_t r1, uint32_t= r2_l, uint32_t r2_h) { int64_t mul_res0 =3D sextract64(r1, 0, 32); @@ -401,7 +401,7 @@ uint32_t helper_addsur_h_ssov(CPUTriCoreState *env, uin= t64_t r1, uint32_t r2_l, } =20 =20 -uint32_t helper_add_suov(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(add_suov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int64_t t1 =3D extract64(r1, 0, 32); int64_t t2 =3D extract64(r2, 0, 32); @@ -409,7 +409,7 @@ uint32_t helper_add_suov(CPUTriCoreState *env, uint32_t= r1, uint32_t r2) return suov32_pos(env, result); } =20 -uint32_t helper_add_h_suov(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(add_h_suov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int32_t ret_hw0, ret_hw1; =20 @@ -418,7 +418,7 @@ uint32_t helper_add_h_suov(CPUTriCoreState *env, uint32= _t r1, uint32_t r2) return suov16(env, ret_hw0, ret_hw1); } =20 -uint32_t helper_sub_ssov(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(sub_ssov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int64_t t1 =3D sextract64(r1, 0, 32); int64_t t2 =3D sextract64(r2, 0, 32); @@ -426,7 +426,7 @@ uint32_t helper_sub_ssov(CPUTriCoreState *env, uint32_t= r1, uint32_t r2) return ssov32(env, result); } =20 -uint64_t helper_sub64_ssov(CPUTriCoreState *env, uint64_t r1, uint64_t r2) +uint64_t HELPER(sub64_ssov)(CPUTriCoreState *env, uint64_t r1, uint64_t r2) { uint64_t result; int64_t ovf; @@ -451,7 +451,7 @@ uint64_t helper_sub64_ssov(CPUTriCoreState *env, uint64= _t r1, uint64_t r2) return result; } =20 -uint32_t helper_sub_h_ssov(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(sub_h_ssov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int32_t ret_hw0, ret_hw1; =20 @@ -460,7 +460,7 @@ uint32_t helper_sub_h_ssov(CPUTriCoreState *env, uint32= _t r1, uint32_t r2) return ssov16(env, ret_hw0, ret_hw1); } =20 -uint32_t helper_subr_h_ssov(CPUTriCoreState *env, uint64_t r1, uint32_t r2= _l, +uint32_t HELPER(subr_h_ssov)(CPUTriCoreState *env, uint64_t r1, uint32_t r= 2_l, uint32_t r2_h) { int64_t mul_res0 =3D sextract64(r1, 0, 32); @@ -506,7 +506,7 @@ uint32_t helper_subr_h_ssov(CPUTriCoreState *env, uint6= 4_t r1, uint32_t r2_l, return (result1 & 0xffff0000ULL) | ((result0 >> 16) & 0xffffULL); } =20 -uint32_t helper_subadr_h_ssov(CPUTriCoreState *env, uint64_t r1, uint32_t = r2_l, +uint32_t HELPER(subadr_h_ssov)(CPUTriCoreState *env, uint64_t r1, uint32_t= r2_l, uint32_t r2_h) { int64_t mul_res0 =3D sextract64(r1, 0, 32); @@ -552,7 +552,7 @@ uint32_t helper_subadr_h_ssov(CPUTriCoreState *env, uin= t64_t r1, uint32_t r2_l, return (result1 & 0xffff0000ULL) | ((result0 >> 16) & 0xffffULL); } =20 -uint32_t helper_sub_suov(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(sub_suov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int64_t t1 =3D extract64(r1, 0, 32); int64_t t2 =3D extract64(r2, 0, 32); @@ -560,7 +560,7 @@ uint32_t helper_sub_suov(CPUTriCoreState *env, uint32_t= r1, uint32_t r2) return suov32_neg(env, result); } =20 -uint32_t helper_sub_h_suov(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(sub_h_suov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int32_t ret_hw0, ret_hw1; =20 @@ -569,7 +569,7 @@ uint32_t helper_sub_h_suov(CPUTriCoreState *env, uint32= _t r1, uint32_t r2) return suov16(env, ret_hw0, ret_hw1); } =20 -uint32_t helper_mul_ssov(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(mul_ssov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int64_t t1 =3D sextract64(r1, 0, 32); int64_t t2 =3D sextract64(r2, 0, 32); @@ -577,7 +577,7 @@ uint32_t helper_mul_ssov(CPUTriCoreState *env, uint32_t= r1, uint32_t r2) return ssov32(env, result); } =20 -uint32_t helper_mul_suov(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(mul_suov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int64_t t1 =3D extract64(r1, 0, 32); int64_t t2 =3D extract64(r2, 0, 32); @@ -586,7 +586,7 @@ uint32_t helper_mul_suov(CPUTriCoreState *env, uint32_t= r1, uint32_t r2) return suov32_pos(env, result); } =20 -uint32_t helper_sha_ssov(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(sha_ssov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int64_t t1 =3D sextract64(r1, 0, 32); int32_t t2 =3D sextract64(r2, 0, 6); @@ -601,14 +601,14 @@ uint32_t helper_sha_ssov(CPUTriCoreState *env, uint32= _t r1, uint32_t r2) return ssov32(env, result); } =20 -uint32_t helper_abs_ssov(CPUTriCoreState *env, uint32_t r1) +uint32_t HELPER(abs_ssov)(CPUTriCoreState *env, uint32_t r1) { uint32_t result; result =3D ((int32_t)r1 >=3D 0) ? r1 : (0 - r1); return ssov32(env, result); } =20 -uint32_t helper_abs_h_ssov(CPUTriCoreState *env, uint32_t r1) +uint32_t HELPER(abs_h_ssov)(CPUTriCoreState *env, uint32_t r1) { int32_t ret_h0, ret_h1; =20 @@ -621,7 +621,7 @@ uint32_t helper_abs_h_ssov(CPUTriCoreState *env, uint32= _t r1) return ssov16(env, ret_h0, ret_h1); } =20 -uint32_t helper_absdif_ssov(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(absdif_ssov)(CPUTriCoreState *env, uint32_t r1, uint32_t r= 2) { int64_t t1 =3D sextract64(r1, 0, 32); int64_t t2 =3D sextract64(r2, 0, 32); @@ -635,7 +635,7 @@ uint32_t helper_absdif_ssov(CPUTriCoreState *env, uint3= 2_t r1, uint32_t r2) return ssov32(env, result); } =20 -uint32_t helper_absdif_h_ssov(CPUTriCoreState *env, uint32_t r1, uint32_t = r2) +uint32_t HELPER(absdif_h_ssov)(CPUTriCoreState *env, uint32_t r1, uint32_t= r2) { int32_t t1, t2; int32_t ret_h0, ret_h1; @@ -659,7 +659,7 @@ uint32_t helper_absdif_h_ssov(CPUTriCoreState *env, uin= t32_t r1, uint32_t r2) return ssov16(env, ret_h0, ret_h1); } =20 -uint32_t helper_madd32_ssov(CPUTriCoreState *env, uint32_t r1, +uint32_t HELPER(madd32_ssov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2, uint32_t r3) { int64_t t1 =3D sextract64(r1, 0, 32); @@ -671,7 +671,7 @@ uint32_t helper_madd32_ssov(CPUTriCoreState *env, uint3= 2_t r1, return ssov32(env, result); } =20 -uint32_t helper_madd32_suov(CPUTriCoreState *env, uint32_t r1, +uint32_t HELPER(madd32_suov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2, uint32_t r3) { uint64_t t1 =3D extract64(r1, 0, 32); @@ -683,7 +683,7 @@ uint32_t helper_madd32_suov(CPUTriCoreState *env, uint3= 2_t r1, return suov32_pos(env, result); } =20 -uint64_t helper_madd64_ssov(CPUTriCoreState *env, uint32_t r1, +uint64_t HELPER(madd64_ssov)(CPUTriCoreState *env, uint32_t r1, uint64_t r2, uint32_t r3) { uint64_t ret, ovf; @@ -717,7 +717,7 @@ uint64_t helper_madd64_ssov(CPUTriCoreState *env, uint3= 2_t r1, } =20 uint32_t -helper_madd32_q_add_ssov(CPUTriCoreState *env, uint64_t r1, uint64_t r2) +HELPER(madd32_q_add_ssov)(CPUTriCoreState *env, uint64_t r1, uint64_t r2) { int64_t result; =20 @@ -757,7 +757,7 @@ helper_madd32_q_add_ssov(CPUTriCoreState *env, uint64_t= r1, uint64_t r2) return (uint32_t)result; } =20 -uint64_t helper_madd64_q_ssov(CPUTriCoreState *env, uint64_t r1, uint32_t = r2, +uint64_t HELPER(madd64_q_ssov)(CPUTriCoreState *env, uint64_t r1, uint32_t= r2, uint32_t r3, uint32_t n) { int64_t t1 =3D (int64_t)r1; @@ -808,7 +808,7 @@ uint64_t helper_madd64_q_ssov(CPUTriCoreState *env, uin= t64_t r1, uint32_t r2, return (uint64_t)result; } =20 -uint32_t helper_maddr_q_ssov(CPUTriCoreState *env, uint32_t r1, uint32_t r= 2, +uint32_t HELPER(maddr_q_ssov)(CPUTriCoreState *env, uint32_t r1, uint32_t = r2, uint32_t r3, uint32_t n) { int64_t t1 =3D sextract64(r1, 0, 32); @@ -841,7 +841,7 @@ uint32_t helper_maddr_q_ssov(CPUTriCoreState *env, uint= 32_t r1, uint32_t r2, return ret & 0xffff0000ll; } =20 -uint64_t helper_madd64_suov(CPUTriCoreState *env, uint32_t r1, +uint64_t HELPER(madd64_suov)(CPUTriCoreState *env, uint32_t r1, uint64_t r2, uint32_t r3) { uint64_t ret, mul; @@ -866,7 +866,7 @@ uint64_t helper_madd64_suov(CPUTriCoreState *env, uint3= 2_t r1, return ret; } =20 -uint32_t helper_msub32_ssov(CPUTriCoreState *env, uint32_t r1, +uint32_t HELPER(msub32_ssov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2, uint32_t r3) { int64_t t1 =3D sextract64(r1, 0, 32); @@ -878,7 +878,7 @@ uint32_t helper_msub32_ssov(CPUTriCoreState *env, uint3= 2_t r1, return ssov32(env, result); } =20 -uint32_t helper_msub32_suov(CPUTriCoreState *env, uint32_t r1, +uint32_t HELPER(msub32_suov)(CPUTriCoreState *env, uint32_t r1, uint32_t r2, uint32_t r3) { uint64_t t1 =3D extract64(r1, 0, 32); @@ -905,7 +905,7 @@ uint32_t helper_msub32_suov(CPUTriCoreState *env, uint3= 2_t r1, return result; } =20 -uint64_t helper_msub64_ssov(CPUTriCoreState *env, uint32_t r1, +uint64_t HELPER(msub64_ssov)(CPUTriCoreState *env, uint32_t r1, uint64_t r2, uint32_t r3) { uint64_t ret, ovf; @@ -937,7 +937,7 @@ uint64_t helper_msub64_ssov(CPUTriCoreState *env, uint3= 2_t r1, return ret; } =20 -uint64_t helper_msub64_suov(CPUTriCoreState *env, uint32_t r1, +uint64_t HELPER(msub64_suov)(CPUTriCoreState *env, uint32_t r1, uint64_t r2, uint32_t r3) { uint64_t ret, mul; @@ -963,7 +963,7 @@ uint64_t helper_msub64_suov(CPUTriCoreState *env, uint3= 2_t r1, } =20 uint32_t -helper_msub32_q_sub_ssov(CPUTriCoreState *env, uint64_t r1, uint64_t r2) +HELPER(msub32_q_sub_ssov)(CPUTriCoreState *env, uint64_t r1, uint64_t r2) { int64_t result; int64_t t1 =3D (int64_t)r1; @@ -1005,7 +1005,7 @@ helper_msub32_q_sub_ssov(CPUTriCoreState *env, uint64= _t r1, uint64_t r2) return (uint32_t)result; } =20 -uint64_t helper_msub64_q_ssov(CPUTriCoreState *env, uint64_t r1, uint32_t = r2, +uint64_t HELPER(msub64_q_ssov)(CPUTriCoreState *env, uint64_t r1, uint32_t= r2, uint32_t r3, uint32_t n) { int64_t t1 =3D (int64_t)r1; @@ -1057,7 +1057,7 @@ uint64_t helper_msub64_q_ssov(CPUTriCoreState *env, u= int64_t r1, uint32_t r2, return (uint64_t)result; } =20 -uint32_t helper_msubr_q_ssov(CPUTriCoreState *env, uint32_t r1, uint32_t r= 2, +uint32_t HELPER(msubr_q_ssov)(CPUTriCoreState *env, uint32_t r1, uint32_t = r2, uint32_t r3, uint32_t n) { int64_t t1 =3D sextract64(r1, 0, 32); @@ -1090,7 +1090,7 @@ uint32_t helper_msubr_q_ssov(CPUTriCoreState *env, ui= nt32_t r1, uint32_t r2, return ret & 0xffff0000ll; } =20 -uint32_t helper_abs_b(CPUTriCoreState *env, uint32_t arg) +uint32_t HELPER(abs_b)(CPUTriCoreState *env, uint32_t arg) { int32_t b, i; int32_t ovf =3D 0; @@ -1113,7 +1113,7 @@ uint32_t helper_abs_b(CPUTriCoreState *env, uint32_t = arg) return ret; } =20 -uint32_t helper_abs_h(CPUTriCoreState *env, uint32_t arg) +uint32_t HELPER(abs_h)(CPUTriCoreState *env, uint32_t arg) { int32_t h, i; int32_t ovf =3D 0; @@ -1136,7 +1136,7 @@ uint32_t helper_abs_h(CPUTriCoreState *env, uint32_t = arg) return ret; } =20 -uint32_t helper_absdif_b(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(absdif_b)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int32_t b, i; int32_t extr_r2; @@ -1160,7 +1160,7 @@ uint32_t helper_absdif_b(CPUTriCoreState *env, uint32= _t r1, uint32_t r2) return ret; } =20 -uint32_t helper_absdif_h(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(absdif_h)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int32_t h, i; int32_t extr_r2; @@ -1185,7 +1185,7 @@ uint32_t helper_absdif_h(CPUTriCoreState *env, uint32= _t r1, uint32_t r2) return ret; } =20 -uint32_t helper_addr_h(CPUTriCoreState *env, uint64_t r1, uint32_t r2_l, +uint32_t HELPER(addr_h)(CPUTriCoreState *env, uint64_t r1, uint32_t r2_l, uint32_t r2_h) { int64_t mul_res0 =3D sextract64(r1, 0, 32); @@ -1223,7 +1223,7 @@ uint32_t helper_addr_h(CPUTriCoreState *env, uint64_t= r1, uint32_t r2_l, return (result1 & 0xffff0000ULL) | ((result0 >> 16) & 0xffffULL); } =20 -uint32_t helper_addsur_h(CPUTriCoreState *env, uint64_t r1, uint32_t r2_l, +uint32_t HELPER(addsur_h)(CPUTriCoreState *env, uint64_t r1, uint32_t r2_l, uint32_t r2_h) { int64_t mul_res0 =3D sextract64(r1, 0, 32); @@ -1261,7 +1261,7 @@ uint32_t helper_addsur_h(CPUTriCoreState *env, uint64= _t r1, uint32_t r2_l, return (result1 & 0xffff0000ULL) | ((result0 >> 16) & 0xffffULL); } =20 -uint32_t helper_maddr_q(CPUTriCoreState *env, uint32_t r1, uint32_t r2, +uint32_t HELPER(maddr_q)(CPUTriCoreState *env, uint32_t r1, uint32_t r2, uint32_t r3, uint32_t n) { int64_t t1 =3D sextract64(r1, 0, 32); @@ -1289,7 +1289,7 @@ uint32_t helper_maddr_q(CPUTriCoreState *env, uint32_= t r1, uint32_t r2, return ret & 0xffff0000ll; } =20 -uint32_t helper_add_b(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(add_b)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int32_t b, i; int32_t extr_r1, extr_r2; @@ -1315,7 +1315,7 @@ uint32_t helper_add_b(CPUTriCoreState *env, uint32_t = r1, uint32_t r2) return ret; } =20 -uint32_t helper_add_h(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(add_h)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int32_t h, i; int32_t extr_r1, extr_r2; @@ -1340,7 +1340,7 @@ uint32_t helper_add_h(CPUTriCoreState *env, uint32_t = r1, uint32_t r2) return ret; } =20 -uint32_t helper_subr_h(CPUTriCoreState *env, uint64_t r1, uint32_t r2_l, +uint32_t HELPER(subr_h)(CPUTriCoreState *env, uint64_t r1, uint32_t r2_l, uint32_t r2_h) { int64_t mul_res0 =3D sextract64(r1, 0, 32); @@ -1378,7 +1378,7 @@ uint32_t helper_subr_h(CPUTriCoreState *env, uint64_t= r1, uint32_t r2_l, return (result1 & 0xffff0000ULL) | ((result0 >> 16) & 0xffffULL); } =20 -uint32_t helper_subadr_h(CPUTriCoreState *env, uint64_t r1, uint32_t r2_l, +uint32_t HELPER(subadr_h)(CPUTriCoreState *env, uint64_t r1, uint32_t r2_l, uint32_t r2_h) { int64_t mul_res0 =3D sextract64(r1, 0, 32); @@ -1416,7 +1416,7 @@ uint32_t helper_subadr_h(CPUTriCoreState *env, uint64= _t r1, uint32_t r2_l, return (result1 & 0xffff0000ULL) | ((result0 >> 16) & 0xffffULL); } =20 -uint32_t helper_msubr_q(CPUTriCoreState *env, uint32_t r1, uint32_t r2, +uint32_t HELPER(msubr_q)(CPUTriCoreState *env, uint32_t r1, uint32_t r2, uint32_t r3, uint32_t n) { int64_t t1 =3D sextract64(r1, 0, 32); @@ -1444,7 +1444,7 @@ uint32_t helper_msubr_q(CPUTriCoreState *env, uint32_= t r1, uint32_t r2, return ret & 0xffff0000ll; } =20 -uint32_t helper_sub_b(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(sub_b)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int32_t b, i; int32_t extr_r1, extr_r2; @@ -1470,7 +1470,7 @@ uint32_t helper_sub_b(CPUTriCoreState *env, uint32_t = r1, uint32_t r2) return ret; } =20 -uint32_t helper_sub_h(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(sub_h)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int32_t h, i; int32_t extr_r1, extr_r2; @@ -1495,7 +1495,7 @@ uint32_t helper_sub_h(CPUTriCoreState *env, uint32_t = r1, uint32_t r2) return ret; } =20 -uint32_t helper_eq_b(uint32_t r1, uint32_t r2) +uint32_t HELPER(eq_b)(uint32_t r1, uint32_t r2) { uint32_t ret, msk; int32_t i; @@ -1512,7 +1512,7 @@ uint32_t helper_eq_b(uint32_t r1, uint32_t r2) return ret; } =20 -uint32_t helper_eq_h(uint32_t r1, uint32_t r2) +uint32_t HELPER(eq_h)(uint32_t r1, uint32_t r2) { int32_t ret =3D 0; =20 @@ -1527,7 +1527,7 @@ uint32_t helper_eq_h(uint32_t r1, uint32_t r2) return ret; } =20 -uint32_t helper_eqany_b(uint32_t r1, uint32_t r2) +uint32_t HELPER(eqany_b)(uint32_t r1, uint32_t r2) { int32_t i; uint32_t ret =3D 0; @@ -1539,7 +1539,7 @@ uint32_t helper_eqany_b(uint32_t r1, uint32_t r2) return ret; } =20 -uint32_t helper_eqany_h(uint32_t r1, uint32_t r2) +uint32_t HELPER(eqany_h)(uint32_t r1, uint32_t r2) { uint32_t ret; =20 @@ -1549,7 +1549,7 @@ uint32_t helper_eqany_h(uint32_t r1, uint32_t r2) return ret; } =20 -uint32_t helper_lt_b(uint32_t r1, uint32_t r2) +uint32_t HELPER(lt_b)(uint32_t r1, uint32_t r2) { int32_t i; uint32_t ret =3D 0; @@ -1563,7 +1563,7 @@ uint32_t helper_lt_b(uint32_t r1, uint32_t r2) return ret; } =20 -uint32_t helper_lt_bu(uint32_t r1, uint32_t r2) +uint32_t HELPER(lt_bu)(uint32_t r1, uint32_t r2) { int32_t i; uint32_t ret =3D 0; @@ -1577,7 +1577,7 @@ uint32_t helper_lt_bu(uint32_t r1, uint32_t r2) return ret; } =20 -uint32_t helper_lt_h(uint32_t r1, uint32_t r2) +uint32_t HELPER(lt_h)(uint32_t r1, uint32_t r2) { uint32_t ret =3D 0; =20 @@ -1592,7 +1592,7 @@ uint32_t helper_lt_h(uint32_t r1, uint32_t r2) return ret; } =20 -uint32_t helper_lt_hu(uint32_t r1, uint32_t r2) +uint32_t HELPER(lt_hu)(uint32_t r1, uint32_t r2) { uint32_t ret =3D 0; =20 @@ -1608,7 +1608,7 @@ uint32_t helper_lt_hu(uint32_t r1, uint32_t r2) } =20 #define EXTREMA_H_B(name, op) \ -uint32_t helper_##name ##_b(uint32_t r1, uint32_t r2) \ +uint32_t HELPER(name ##_b)(uint32_t r1, uint32_t r2) \ { \ int32_t i, extr_r1, extr_r2; \ uint32_t ret =3D 0; \ @@ -1622,7 +1622,7 @@ uint32_t helper_##name ##_b(uint32_t r1, uint32_t r2)= \ return ret; \ } \ \ -uint32_t helper_##name ##_bu(uint32_t r1, uint32_t r2) \ +uint32_t HELPER(name ##_bu)(uint32_t r1, uint32_t r2) \ { \ int32_t i; \ uint32_t extr_r1, extr_r2; \ @@ -1637,7 +1637,7 @@ uint32_t helper_##name ##_bu(uint32_t r1, uint32_t r2= ) \ return ret; \ } \ \ -uint32_t helper_##name ##_h(uint32_t r1, uint32_t r2) \ +uint32_t HELPER(name ##_h)(uint32_t r1, uint32_t r2) \ { \ int32_t extr_r1, extr_r2; \ uint32_t ret =3D 0; \ @@ -1655,7 +1655,7 @@ uint32_t helper_##name ##_h(uint32_t r1, uint32_t r2)= \ return ret; \ } \ \ -uint32_t helper_##name ##_hu(uint32_t r1, uint32_t r2) \ +uint32_t HELPER(name ##_hu)(uint32_t r1, uint32_t r2) \ { \ uint32_t extr_r1, extr_r2; \ uint32_t ret =3D 0; \ @@ -1673,7 +1673,7 @@ uint32_t helper_##name ##_hu(uint32_t r1, uint32_t r2= ) \ return ret; \ } \ \ -uint64_t helper_ix##name(uint64_t r1, uint32_t r2) \ +uint64_t HELPER(ix##name)(uint64_t r1, uint32_t r2) \ { \ int64_t r2l, r2h, r1hl; \ uint64_t ret =3D 0; \ @@ -1695,7 +1695,7 @@ uint64_t helper_ix##name(uint64_t r1, uint32_t r2) = \ return ret; \ } \ \ -uint64_t helper_ix##name ##_u(uint64_t r1, uint32_t r2) \ +uint64_t HELPER(ix##name ##_u)(uint64_t r1, uint32_t r2) \ { \ int64_t r2l, r2h, r1hl; \ uint64_t ret =3D 0; \ @@ -1722,7 +1722,7 @@ EXTREMA_H_B(min, <) =20 #undef EXTREMA_H_B =20 -uint32_t helper_clo_h(uint32_t r1) +uint32_t HELPER(clo_h)(uint32_t r1) { uint32_t ret_hw0 =3D extract32(r1, 0, 16); uint32_t ret_hw1 =3D extract32(r1, 16, 16); @@ -1740,7 +1740,7 @@ uint32_t helper_clo_h(uint32_t r1) return ret_hw0 | (ret_hw1 << 16); } =20 -uint32_t helper_clz_h(uint32_t r1) +uint32_t HELPER(clz_h)(uint32_t r1) { uint32_t ret_hw0 =3D extract32(r1, 0, 16); uint32_t ret_hw1 =3D extract32(r1, 16, 16); @@ -1758,7 +1758,7 @@ uint32_t helper_clz_h(uint32_t r1) return ret_hw0 | (ret_hw1 << 16); } =20 -uint32_t helper_cls_h(uint32_t r1) +uint32_t HELPER(cls_h)(uint32_t r1) { uint32_t ret_hw0 =3D extract32(r1, 0, 16); uint32_t ret_hw1 =3D extract32(r1, 16, 16); @@ -1776,7 +1776,7 @@ uint32_t helper_cls_h(uint32_t r1) return ret_hw0 | (ret_hw1 << 16); } =20 -uint32_t helper_sh(uint32_t r1, uint32_t r2) +uint32_t HELPER(sh)(uint32_t r1, uint32_t r2) { int32_t shift_count =3D sextract32(r2, 0, 6); =20 @@ -1789,7 +1789,7 @@ uint32_t helper_sh(uint32_t r1, uint32_t r2) } } =20 -uint32_t helper_sh_h(uint32_t r1, uint32_t r2) +uint32_t HELPER(sh_h)(uint32_t r1, uint32_t r2) { int32_t ret_hw0, ret_hw1; int32_t shift_count; @@ -1809,7 +1809,7 @@ uint32_t helper_sh_h(uint32_t r1, uint32_t r2) } } =20 -uint32_t helper_sha(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint32_t HELPER(sha)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int32_t shift_count; int64_t result, t1; @@ -1847,7 +1847,7 @@ uint32_t helper_sha(CPUTriCoreState *env, uint32_t r1= , uint32_t r2) return ret; } =20 -uint32_t helper_sha_h(uint32_t r1, uint32_t r2) +uint32_t HELPER(sha_h)(uint32_t r1, uint32_t r2) { int32_t shift_count; int32_t ret_hw0, ret_hw1; @@ -1867,7 +1867,7 @@ uint32_t helper_sha_h(uint32_t r1, uint32_t r2) } } =20 -uint32_t helper_bmerge(uint32_t r1, uint32_t r2) +uint32_t HELPER(bmerge)(uint32_t r1, uint32_t r2) { uint32_t i, ret; =20 @@ -1881,7 +1881,7 @@ uint32_t helper_bmerge(uint32_t r1, uint32_t r2) return ret; } =20 -uint64_t helper_bsplit(uint32_t r1) +uint64_t HELPER(bsplit)(uint32_t r1) { int32_t i; uint64_t ret; @@ -1898,7 +1898,7 @@ uint64_t helper_bsplit(uint32_t r1) return ret; } =20 -uint32_t helper_parity(uint32_t r1) +uint32_t HELPER(parity)(uint32_t r1) { uint32_t ret; uint32_t nOnes, i; @@ -1934,7 +1934,7 @@ uint32_t helper_parity(uint32_t r1) return ret; } =20 -uint32_t helper_pack(uint32_t carry, uint32_t r1_low, uint32_t r1_high, +uint32_t HELPER(pack)(uint32_t carry, uint32_t r1_low, uint32_t r1_high, uint32_t r2) { uint32_t ret; @@ -1976,7 +1976,7 @@ uint32_t helper_pack(uint32_t carry, uint32_t r1_low,= uint32_t r1_high, return ret; } =20 -uint64_t helper_unpack(uint32_t arg1) +uint64_t HELPER(unpack)(uint32_t arg1) { int32_t fp_exp =3D extract32(arg1, 23, 8); int32_t fp_frac =3D extract32(arg1, 0, 23); @@ -2004,7 +2004,7 @@ uint64_t helper_unpack(uint32_t arg1) return ret; } =20 -uint64_t helper_dvinit_b_13(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint64_t HELPER(dvinit_b_13)(CPUTriCoreState *env, uint32_t r1, uint32_t r= 2) { uint64_t ret; int32_t abs_sig_dividend, abs_divisor; @@ -2027,7 +2027,7 @@ uint64_t helper_dvinit_b_13(CPUTriCoreState *env, uin= t32_t r1, uint32_t r2) return ret; } =20 -uint64_t helper_dvinit_b_131(CPUTriCoreState *env, uint32_t r1, uint32_t r= 2) +uint64_t HELPER(dvinit_b_131)(CPUTriCoreState *env, uint32_t r1, uint32_t = r2) { uint64_t ret =3D sextract32(r1, 0, 32); =20 @@ -2044,7 +2044,7 @@ uint64_t helper_dvinit_b_131(CPUTriCoreState *env, ui= nt32_t r1, uint32_t r2) return ret; } =20 -uint64_t helper_dvinit_h_13(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint64_t HELPER(dvinit_h_13)(CPUTriCoreState *env, uint32_t r1, uint32_t r= 2) { uint64_t ret; int32_t abs_sig_dividend, abs_divisor; @@ -2067,7 +2067,7 @@ uint64_t helper_dvinit_h_13(CPUTriCoreState *env, uin= t32_t r1, uint32_t r2) return ret; } =20 -uint64_t helper_dvinit_h_131(CPUTriCoreState *env, uint32_t r1, uint32_t r= 2) +uint64_t HELPER(dvinit_h_131)(CPUTriCoreState *env, uint32_t r1, uint32_t = r2) { uint64_t ret =3D sextract32(r1, 0, 32); =20 @@ -2084,7 +2084,7 @@ uint64_t helper_dvinit_h_131(CPUTriCoreState *env, ui= nt32_t r1, uint32_t r2) return ret; } =20 -uint64_t helper_dvadj(uint64_t r1, uint32_t r2) +uint64_t HELPER(dvadj)(uint64_t r1, uint32_t r2) { int32_t x_sign =3D (r1 >> 63); int32_t q_sign =3D x_sign ^ (r2 >> 31); @@ -2107,7 +2107,7 @@ uint64_t helper_dvadj(uint64_t r1, uint32_t r2) return remainder | quotient; } =20 -uint64_t helper_dvstep(uint64_t r1, uint32_t r2) +uint64_t HELPER(dvstep)(uint64_t r1, uint32_t r2) { int32_t dividend_sign =3D extract64(r1, 63, 1); int32_t divisor_sign =3D extract32(r2, 31, 1); @@ -2139,7 +2139,7 @@ uint64_t helper_dvstep(uint64_t r1, uint32_t r2) return ((uint64_t)remainder << 32) | (uint32_t)dividend_quotient; } =20 -uint64_t helper_dvstep_u(uint64_t r1, uint32_t r2) +uint64_t HELPER(dvstep_u)(uint64_t r1, uint32_t r2) { int32_t dividend_quotient =3D extract64(r1, 0, 32); int64_t remainder =3D extract64(r1, 32, 32); @@ -2157,7 +2157,7 @@ uint64_t helper_dvstep_u(uint64_t r1, uint32_t r2) return ((uint64_t)remainder << 32) | (uint32_t)dividend_quotient; } =20 -uint64_t helper_divide(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint64_t HELPER(divide)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { int32_t quotient, remainder; int32_t dividend =3D (int32_t)r1; @@ -2186,7 +2186,7 @@ uint64_t helper_divide(CPUTriCoreState *env, uint32_t= r1, uint32_t r2) return ((uint64_t)remainder << 32) | (uint32_t)quotient; } =20 -uint64_t helper_divide_u(CPUTriCoreState *env, uint32_t r1, uint32_t r2) +uint64_t HELPER(divide_u)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { uint32_t quotient, remainder; uint32_t dividend =3D r1; @@ -2206,7 +2206,7 @@ uint64_t helper_divide_u(CPUTriCoreState *env, uint32= _t r1, uint32_t r2) return ((uint64_t)remainder << 32) | quotient; } =20 -uint64_t helper_mul_h(uint32_t arg00, uint32_t arg01, +uint64_t HELPER(mul_h)(uint32_t arg00, uint32_t arg01, uint32_t arg10, uint32_t arg11, uint32_t n) { uint32_t result0, result1; @@ -2228,7 +2228,7 @@ uint64_t helper_mul_h(uint32_t arg00, uint32_t arg01, return (((uint64_t)result1 << 32)) | result0; } =20 -uint64_t helper_mulm_h(uint32_t arg00, uint32_t arg01, +uint64_t HELPER(mulm_h)(uint32_t arg00, uint32_t arg01, uint32_t arg10, uint32_t arg11, uint32_t n) { uint64_t ret; @@ -2253,7 +2253,7 @@ uint64_t helper_mulm_h(uint32_t arg00, uint32_t arg01, ret =3D ret << 16; return ret; } -uint32_t helper_mulr_h(uint32_t arg00, uint32_t arg01, +uint32_t HELPER(mulr_h)(uint32_t arg00, uint32_t arg01, uint32_t arg10, uint32_t arg11, uint32_t n) { uint32_t result0, result1; @@ -2276,7 +2276,7 @@ uint32_t helper_mulr_h(uint32_t arg00, uint32_t arg01, return (result1 & 0xffff0000) | (result0 >> 16); } =20 -uint32_t helper_crc32b(uint32_t arg0, uint32_t arg1) +uint32_t HELPER(crc32b)(uint32_t arg0, uint32_t arg1) { uint8_t buf[1] =3D { arg0 & 0xff }; =20 @@ -2284,7 +2284,7 @@ uint32_t helper_crc32b(uint32_t arg0, uint32_t arg1) } =20 =20 -uint32_t helper_crc32_be(uint32_t arg0, uint32_t arg1) +uint32_t HELPER(crc32_be)(uint32_t arg0, uint32_t arg1) { uint8_t buf[4]; stl_be_p(buf, arg0); @@ -2292,7 +2292,7 @@ uint32_t helper_crc32_be(uint32_t arg0, uint32_t arg1) return crc32(arg1, buf, 4); } =20 -uint32_t helper_crc32_le(uint32_t arg0, uint32_t arg1) +uint32_t HELPER(crc32_le)(uint32_t arg0, uint32_t arg1) { uint8_t buf[4]; stl_le_p(buf, arg0); @@ -2325,7 +2325,7 @@ static uint32_t crc_div(uint32_t crc_in, uint32_t dat= a, uint32_t gen, return crc_in; } =20 -uint32_t helper_crcn(uint32_t arg0, uint32_t arg1, uint32_t arg2) +uint32_t HELPER(crcn)(uint32_t arg0, uint32_t arg1, uint32_t arg2) { uint32_t crc_out, crc_in; uint32_t n =3D extract32(arg0, 12, 4) + 1; @@ -2363,7 +2363,7 @@ uint32_t helper_crcn(uint32_t arg0, uint32_t arg1, ui= nt32_t arg2) return extract32(crc_out, 0, n); } =20 -uint32_t helper_shuffle(uint32_t arg0, uint32_t arg1) +uint32_t HELPER(shuffle)(uint32_t arg0, uint32_t arg1) { uint32_t resb; uint32_t byte_select; @@ -2532,7 +2532,7 @@ static void restore_context_lower(CPUTriCoreState *en= v, uint32_t ea, env->gpr_d[7] =3D cpu_ldl_le_data(env, ea + 60); } =20 -void helper_call(CPUTriCoreState *env, uint32_t next_pc) +void HELPER(call)(CPUTriCoreState *env, uint32_t next_pc) { uint32_t tmp_FCX; uint32_t ea; @@ -2595,7 +2595,7 @@ void helper_call(CPUTriCoreState *env, uint32_t next_= pc) psw_write(env, psw); } =20 -void helper_ret(CPUTriCoreState *env) +void HELPER(ret)(CPUTriCoreState *env) { uint32_t ea; uint32_t new_PCXI; @@ -2648,7 +2648,7 @@ void helper_ret(CPUTriCoreState *env) } } =20 -void helper_bisr(CPUTriCoreState *env, uint32_t const9) +void HELPER(bisr)(CPUTriCoreState *env, uint32_t const9) { uint32_t tmp_FCX; uint32_t ea; @@ -2692,7 +2692,7 @@ void helper_bisr(CPUTriCoreState *env, uint32_t const= 9) } } =20 -void helper_rfe(CPUTriCoreState *env) +void HELPER(rfe)(CPUTriCoreState *env) { uint32_t ea; uint32_t new_PCXI; @@ -2736,7 +2736,7 @@ void helper_rfe(CPUTriCoreState *env) psw_write(env, new_PSW); } =20 -void helper_rfm(CPUTriCoreState *env) +void HELPER(rfm)(CPUTriCoreState *env) { env->PC =3D (env->gpr_a[11] & ~0x1); /* ICR.IE =3D PCXI.PIE; */ @@ -2755,31 +2755,31 @@ void helper_rfm(CPUTriCoreState *env) } } =20 -void helper_ldlcx(CPUTriCoreState *env, uint32_t ea) +void HELPER(ldlcx)(CPUTriCoreState *env, uint32_t ea) { uint32_t dummy; /* insn doesn't load PCXI and RA */ restore_context_lower(env, ea, &dummy, &dummy); } =20 -void helper_lducx(CPUTriCoreState *env, uint32_t ea) +void HELPER(lducx)(CPUTriCoreState *env, uint32_t ea) { uint32_t dummy; /* insn doesn't load PCXI and PSW */ restore_context_upper(env, ea, &dummy, &dummy); } =20 -void helper_stlcx(CPUTriCoreState *env, uint32_t ea) +void HELPER(stlcx)(CPUTriCoreState *env, uint32_t ea) { save_context_lower(env, ea); } =20 -void helper_stucx(CPUTriCoreState *env, uint32_t ea) +void HELPER(stucx)(CPUTriCoreState *env, uint32_t ea) { save_context_upper(env, ea); } =20 -void helper_svlcx(CPUTriCoreState *env) +void HELPER(svlcx)(CPUTriCoreState *env) { uint32_t tmp_FCX; uint32_t ea; @@ -2822,7 +2822,7 @@ void helper_svlcx(CPUTriCoreState *env) } } =20 -void helper_svucx(CPUTriCoreState *env) +void HELPER(svucx)(CPUTriCoreState *env) { uint32_t tmp_FCX; uint32_t ea; @@ -2865,7 +2865,7 @@ void helper_svucx(CPUTriCoreState *env) } } =20 -void helper_rslcx(CPUTriCoreState *env) +void HELPER(rslcx)(CPUTriCoreState *env) { uint32_t ea; uint32_t new_PCXI; @@ -2897,12 +2897,12 @@ void helper_rslcx(CPUTriCoreState *env) env->PCXI =3D new_PCXI; } =20 -void helper_psw_write(CPUTriCoreState *env, uint32_t arg) +void HELPER(psw_write)(CPUTriCoreState *env, uint32_t arg) { psw_write(env, arg); } =20 -uint32_t helper_psw_read(CPUTriCoreState *env) +uint32_t HELPER(psw_read)(CPUTriCoreState *env) { return psw_read(env); } --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445014; cv=none; d=zohomail.com; s=zohoarc; b=OU1XQrGUiCkblCOnkQWZhmVCFfH1Bu402aOZkRJ3jLwb7MUZaTa8S5WLyx2Rv4wWe+kGmpLuV0R2MUfA87B2Ky5V0D7hOjz19YfNj1f0P+eunCkdxKJXhCVMh9GP9Hw2C9ZNmgo7N7LkS641o8pyVW+9gzPoR9SNKp4VvDJylxI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445014; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=aIyw0npn8Fmo9DZWzTX9pphDUXr9yjx4PCtXUpvhyJA=; b=WB5j/FYcqgRCdsMO+QXugTmXA7/MFDg/x1hAkLcWyWdzjTfwuNxz6orEVVwJIj8pWS/y/ryt1ui94jbDhPDwbm2Wn1eo8C3Q6RaVb1m2Yy1T13eHxa75Nwf7prbPgn9vS54MUp6/6UdyiAV0QOfrlUmR38IzHqnVXbMUWCGy9qI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792445014459617.1105129062681; Mon, 19 Oct 2026 14:23:34 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunf-0001jd-23; Mon, 19 Oct 2026 17:21:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunX-0001ir-RB for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:37 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunV-0005iK-8h for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:35 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJK4Ee4106599 for ; Mon, 19 Oct 2026 21:21:22 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdr780nud-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:22 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3a6d30f66c9so115790a91.0 for ; Mon, 19 Oct 2026 14:21:22 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=aIyw0npn8Fm o9DZWzTX9pphDUXr9yjx4PCtXUpvhyJA=; b=dy5ZLp425xqGSzrV/Oab7DC4pZw kVxRJOxXSKqAXEL04RCumD7NE8Sj8GFoUeHyeQtytbUFgSJEL+gVev544oFNt1sM 3uNATxE78Tyn9jlCpbVJP2v8Jf6x4tLqyDy064NST1eknV3lKLd5LibIq/b8mN+Q Bc0hzAqNmcWDK4DYxeKzUapQZSrcVwkcEu93vInky0hrf7lyZ/AS/i2wPUnytNSv nXYSmtrfCBkYpWV8gtfr8FnRm3teoLkZClu/1Be6oqEC1dMA182XxQAE4Vbs/hGn jf288eGZP2vG+LnsdLdaIHdLLA9jZgi0Tu4iJ4l1kDZEZvcwKn3ot8qEDRg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444881; x=1793049681; 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:content-type; bh=aIyw0npn8Fmo9DZWzTX9pphDUXr9yjx4PCtXUpvhyJA=; b=HJjS8KYwltRoMrDSQb0NA2LHV8QoSQypLWrg552vbCaCbncgXrapXbN/Gl0kmnI0X5 oS3xVMATL6eEiW9vtJC3yizvpUOcvnZU78/kJezzdf8pG/EjxQwJXM1zqM5KMc/hQOIe o/UsAfuG1dnBTk9FIkzRoy1ZMcBi0tAT3H0OFmonmK6WihhEVnxhg3XCuSN2NW6Nw4pB NfFI6Sdf3Two7kFzz5vXgqGQdETg/kEbzUC/LaXqGlri1YAQwRijB/gOnKrNF/gbg8Wx 5eBwCukx0YD3z4BATPKYU8QtQINxo06XoGz26jhJIzm8JE3dyl+GrfEZivFVN1/a20Ki iyzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444881; x=1793049681; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=aIyw0npn8Fmo9DZWzTX9pphDUXr9yjx4PCtXUpvhyJA=; b=ZVXZ7HjFa5x2q6tF10nDZYQFHNtrvayBkp1rXiqUDaoq692E4bPsfO1l/oWiXH8yJi TT/OEGW3fmeSOpXbD1cCS3Z1+aO5g+WFjY4OBonY22FOsvsaZb1L97bDhZbwbqo/z49U jVe1YTIa5AWIUa5pMs8P9X3ag6RXWVaZ69TSHUCYjmwwq3oURJINmKCzjs0597sJEw5+ vEqBo8q8uHAusgdwO9JL06fbyp++YRISYYJo7NsC2EOGJz46N79btFhyR+/Gh+jp5s4o TDs+voSWGfVaVRuSuQZ1KIos+X4yNX65RoYMkbTD0ebdcmidTZ3gojbN6sovJMm3ZMAG 5K4g== X-Gm-Message-State: AFq9FYIrrv+SVMaQwuUzvdzY0LihXYNAqo1esHZHnMwq1HhEaU+u+tSY 83t5xidliFNbITEIO4MVMPOzQJV9qI0WUELhRKx0E0AG7U4ZfwqSViHKVOmIwzm+iGB+tez6BKe b+nHBP09T8WAGCfR2pr0Fj2LQ5YEd1GhmXNRGz8lIo7duavbN59afqb0q+oS6/jKsjw== X-Gm-Gg: AYBFou3z3G5M883evknJ+ICZGLxmrpH7p9soMO4+pVsusiFoZTJX4Tbp12SlfuGTriy V58ZUtBhJPK46tIC6gLRhuzD7vPQeZzwTWROL69t7Wmc7vyhMGVuU4PhcivPl9fRFE/Ksm5QDwG S+Y2mzhzMrHxN/no3L/vW1pI40YoUaJjlQ/xvc0mR/w6NGUyOrI5pqJkP8Oi8/u7vZLD/FhLSCn CFtjVflL1D1JcKoGh+LJZ4YCBvq8hY/2YDHkS5Ywteds6T2w6qW0pAxDcprw7j0ZI1WVemXja70 c1HZY2eHUg/5JbpUZcj+GpnW2ogO+F1+EmASMZWH8Ag4/JpkUwwT7tXknUkxXYbm0z72mGriL6z KnDqspxP5A6t7MrDBcKUf/HJiS9ziEAHBTHxGQV4+fT1HntbVPsbY1xwGpdYUxLo= X-Received: by 2002:a17:90b:448e:b0:3a8:337d:228a with SMTP id 98e67ed59e1d1-3ad64b90a7fmr168560a91.6.1792444881131; Mon, 19 Oct 2026 14:21:21 -0700 (PDT) X-Received: by 2002:a17:90b:448e:b0:3a8:337d:228a with SMTP id 98e67ed59e1d1-3ad64b90a7fmr168547a91.6.1792444880583; Mon, 19 Oct 2026 14:21:20 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 18/26] tcg: introduce HELPER_INFO macro Date: Mon, 19 Oct 2026 21:20:37 +0000 Message-ID: <20261019212046.149572-19-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfXyohym+KEPwJb WfSLuO2/vgC6WllMkhGvBT5plrSLslomx92MDgQmDTpSWXiMsw3AFjBvKyotqmReh7iylW7EJRX wFO6TC1bMcVhNoFxWVjEcwMLVun8R3D0Re5c2jZMj5tqNDv8eYwyNbVT0qVjZ0ntK1hc7H1AS8I DOU/my01ltWsiNYqRlzFEJ0Fh4fH981RHNHpYTBDniqYmcvjz4fKNCD9baZkfBFrs9IXM3rlG7i iuF6bi4Iyhe9Be3XMJUFRxMyQTPH9u98N/c8DQ9/YdvQuSxueTrgnZ8RYsw6OUcN4R61qIRj0Yt gYPgi2vMhN19gPJhSxxtMILqhlmn6LFQIW9dBiPRXSkBSJ+VsgTOSL0xDaxCFQ9jji5HsZSwYmf B9wBuPEyspqWCthq3mSIwelD4g8Mk1IQ5bzvLoN9ENu3RGz+MCbQzD9k/iIk34VDHmtFDTZb8/2 VKSzNOWsECS4t4qSwXA== X-Proofpoint-GUID: eMrfEDXTVmeW22laGjzDDj1mvyc5uk5M X-Authority-Analysis: v=2.4 cv=LKnz05W9 c=1 sm=1 tr=0 ts=6ad689d2 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=ighA3CKJURImTjC3cZkA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfXz5qG4XnALf/w OEJtJXTIpoH9eu4Sr0/N6V3NKp3Ewq+Bnw7E6O0ZPHR63Kre7qNX1QAHysWiVJ8JGflWVeTQMqO aUBnntjbtm9qx6kHfUXc+jIc8xPQsaE= X-Proofpoint-ORIG-GUID: eMrfEDXTVmeW22laGjzDDj1mvyc5uk5M X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 adultscore=0 suspectscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445015054158501 Content-Type: text/plain; charset="utf-8" In next commit, we'll prefix all helpers and helper_info with target base architecture. Make sure helper_info symbol name is defined in a single place before that. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- include/exec/helper-gen.h.inc | 48 +++++++++++++++++----------------- include/exec/helper-head.h.inc | 1 + include/exec/helper-info.c.inc | 16 ++++++------ 3 files changed, 33 insertions(+), 32 deletions(-) diff --git a/include/exec/helper-gen.h.inc b/include/exec/helper-gen.h.inc index dabe138e205..95715bde1ef 100644 --- a/include/exec/helper-gen.h.inc +++ b/include/exec/helper-gen.h.inc @@ -11,88 +11,88 @@ #include "exec/helper-head.h.inc" =20 #define DEF_HELPER_FLAGS_0(name, flags, ret) \ -extern TCGHelperInfo glue(helper_info_, name); \ +extern TCGHelperInfo HELPER_INFO(name); \ static inline void glue(gen_helper_, name)(dh_retvar_decl0(ret)) \ { \ - tcg_gen_call0(glue(helper_info_,name).func, \ - &glue(helper_info_,name), dh_retvar(ret)); \ + tcg_gen_call0(HELPER_INFO(name).func, \ + &HELPER_INFO(name), dh_retvar(ret)); \ } =20 #define DEF_HELPER_FLAGS_1(name, flags, ret, t1) \ -extern TCGHelperInfo glue(helper_info_, name); \ +extern TCGHelperInfo HELPER_INFO(name); \ static inline void glue(gen_helper_, name)(dh_retvar_decl(ret) \ dh_arg_decl(t1, 1)) \ { \ - tcg_gen_call1(glue(helper_info_,name).func, \ - &glue(helper_info_,name), dh_retvar(ret), \ + tcg_gen_call1(HELPER_INFO(name).func, \ + &HELPER_INFO(name), dh_retvar(ret), \ dh_arg(t1, 1)); \ } =20 #define DEF_HELPER_FLAGS_2(name, flags, ret, t1, t2) \ -extern TCGHelperInfo glue(helper_info_, name); \ +extern TCGHelperInfo HELPER_INFO(name); \ static inline void glue(gen_helper_, name)(dh_retvar_decl(ret) \ dh_arg_decl(t1, 1), dh_arg_decl(t2, 2)) \ { \ - tcg_gen_call2(glue(helper_info_,name).func, \ - &glue(helper_info_,name), dh_retvar(ret), \ + tcg_gen_call2(HELPER_INFO(name).func, \ + &HELPER_INFO(name), dh_retvar(ret), \ dh_arg(t1, 1), dh_arg(t2, 2)); \ } =20 #define DEF_HELPER_FLAGS_3(name, flags, ret, t1, t2, t3) \ -extern TCGHelperInfo glue(helper_info_, name); \ +extern TCGHelperInfo HELPER_INFO(name); \ static inline void glue(gen_helper_, name)(dh_retvar_decl(ret) \ dh_arg_decl(t1, 1), dh_arg_decl(t2, 2), dh_arg_decl(t3, 3)) \ { \ - tcg_gen_call3(glue(helper_info_,name).func, \ - &glue(helper_info_,name), dh_retvar(ret), \ + tcg_gen_call3(HELPER_INFO(name).func, \ + &HELPER_INFO(name), dh_retvar(ret), \ dh_arg(t1, 1), dh_arg(t2, 2), dh_arg(t3, 3)); \ } =20 #define DEF_HELPER_FLAGS_4(name, flags, ret, t1, t2, t3, t4) \ -extern TCGHelperInfo glue(helper_info_, name); \ +extern TCGHelperInfo HELPER_INFO(name); \ static inline void glue(gen_helper_, name)(dh_retvar_decl(ret) \ dh_arg_decl(t1, 1), dh_arg_decl(t2, 2), \ dh_arg_decl(t3, 3), dh_arg_decl(t4, 4)) \ { \ - tcg_gen_call4(glue(helper_info_,name).func, \ - &glue(helper_info_,name), dh_retvar(ret), \ + tcg_gen_call4(HELPER_INFO(name).func, \ + &HELPER_INFO(name), dh_retvar(ret), \ dh_arg(t1, 1), dh_arg(t2, 2), \ dh_arg(t3, 3), dh_arg(t4, 4)); \ } =20 #define DEF_HELPER_FLAGS_5(name, flags, ret, t1, t2, t3, t4, t5) \ -extern TCGHelperInfo glue(helper_info_, name); \ +extern TCGHelperInfo HELPER_INFO(name); \ static inline void glue(gen_helper_, name)(dh_retvar_decl(ret) \ dh_arg_decl(t1, 1), dh_arg_decl(t2, 2), dh_arg_decl(t3, 3), \ dh_arg_decl(t4, 4), dh_arg_decl(t5, 5)) \ { \ - tcg_gen_call5(glue(helper_info_,name).func, \ - &glue(helper_info_,name), dh_retvar(ret), \ + tcg_gen_call5(HELPER_INFO(name).func, \ + &HELPER_INFO(name), dh_retvar(ret), \ dh_arg(t1, 1), dh_arg(t2, 2), dh_arg(t3, 3), \ dh_arg(t4, 4), dh_arg(t5, 5)); \ } =20 #define DEF_HELPER_FLAGS_6(name, flags, ret, t1, t2, t3, t4, t5, t6) \ -extern TCGHelperInfo glue(helper_info_, name); \ +extern TCGHelperInfo HELPER_INFO(name); \ static inline void glue(gen_helper_, name)(dh_retvar_decl(ret) \ dh_arg_decl(t1, 1), dh_arg_decl(t2, 2), dh_arg_decl(t3, 3), \ dh_arg_decl(t4, 4), dh_arg_decl(t5, 5), dh_arg_decl(t6, 6)) \ { \ - tcg_gen_call6(glue(helper_info_,name).func, \ - &glue(helper_info_,name), dh_retvar(ret), \ + tcg_gen_call6(HELPER_INFO(name).func, \ + &HELPER_INFO(name), dh_retvar(ret), \ dh_arg(t1, 1), dh_arg(t2, 2), dh_arg(t3, 3), \ dh_arg(t4, 4), dh_arg(t5, 5), dh_arg(t6, 6)); \ } =20 #define DEF_HELPER_FLAGS_7(name, flags, ret, t1, t2, t3, t4, t5, t6, t7)\ -extern TCGHelperInfo glue(helper_info_, name); \ +extern TCGHelperInfo HELPER_INFO(name); \ static inline void glue(gen_helper_, name)(dh_retvar_decl(ret) \ dh_arg_decl(t1, 1), dh_arg_decl(t2, 2), dh_arg_decl(t3, 3), \ dh_arg_decl(t4, 4), dh_arg_decl(t5, 5), dh_arg_decl(t6, 6), \ dh_arg_decl(t7, 7)) \ { \ - tcg_gen_call7(glue(helper_info_,name).func, \ - &glue(helper_info_,name), dh_retvar(ret), \ + tcg_gen_call7(HELPER_INFO(name).func, \ + &HELPER_INFO(name), dh_retvar(ret), \ dh_arg(t1, 1), dh_arg(t2, 2), dh_arg(t3, 3), \ dh_arg(t4, 4), dh_arg(t5, 5), dh_arg(t6, 6), \ dh_arg(t7, 7)); \ diff --git a/include/exec/helper-head.h.inc b/include/exec/helper-head.h.inc index 7dec5f5b067..be1d79cf017 100644 --- a/include/exec/helper-head.h.inc +++ b/include/exec/helper-head.h.inc @@ -9,6 +9,7 @@ #include "fpu/softfloat-types.h" =20 #define HELPER(name) glue(helper_, name) +#define HELPER_INFO(name) glue(helper_info_, name) =20 /* Some types that make sense in C, but not for TCG. */ #define dh_alias_i32 i32 diff --git a/include/exec/helper-info.c.inc b/include/exec/helper-info.c.inc index c551736d49f..4e1ab61e5ce 100644 --- a/include/exec/helper-info.c.inc +++ b/include/exec/helper-info.c.inc @@ -16,21 +16,21 @@ #define str(s) #s =20 #define DEF_HELPER_FLAGS_0(NAME, FLAGS, RET) \ - TCGHelperInfo glue(helper_info_, NAME) =3D { \ + TCGHelperInfo HELPER_INFO(NAME) =3D { \ .func =3D HELPER(NAME), .name =3D str(NAME), = \ .flags =3D FLAGS | dh_callflag(RET), \ .typemask =3D dh_typemask(RET, 0) \ }; =20 #define DEF_HELPER_FLAGS_1(NAME, FLAGS, RET, T1) \ - TCGHelperInfo glue(helper_info_, NAME) =3D { \ + TCGHelperInfo HELPER_INFO(NAME) =3D { \ .func =3D HELPER(NAME), .name =3D str(NAME), = \ .flags =3D FLAGS | dh_callflag(RET), \ .typemask =3D dh_typemask(RET, 0) | dh_typemask(T1, 1) \ }; =20 #define DEF_HELPER_FLAGS_2(NAME, FLAGS, RET, T1, T2) \ - TCGHelperInfo glue(helper_info_, NAME) =3D { \ + TCGHelperInfo HELPER_INFO(NAME) =3D { \ .func =3D HELPER(NAME), .name =3D str(NAME), = \ .flags =3D FLAGS | dh_callflag(RET), \ .typemask =3D dh_typemask(RET, 0) | dh_typemask(T1, 1) \ @@ -38,7 +38,7 @@ }; =20 #define DEF_HELPER_FLAGS_3(NAME, FLAGS, RET, T1, T2, T3) \ - TCGHelperInfo glue(helper_info_, NAME) =3D { \ + TCGHelperInfo HELPER_INFO(NAME) =3D { \ .func =3D HELPER(NAME), .name =3D str(NAME), = \ .flags =3D FLAGS | dh_callflag(RET), \ .typemask =3D dh_typemask(RET, 0) | dh_typemask(T1, 1) \ @@ -46,7 +46,7 @@ }; =20 #define DEF_HELPER_FLAGS_4(NAME, FLAGS, RET, T1, T2, T3, T4) \ - TCGHelperInfo glue(helper_info_, NAME) =3D { \ + TCGHelperInfo HELPER_INFO(NAME) =3D { \ .func =3D HELPER(NAME), .name =3D str(NAME), = \ .flags =3D FLAGS | dh_callflag(RET), \ .typemask =3D dh_typemask(RET, 0) | dh_typemask(T1, 1) \ @@ -55,7 +55,7 @@ }; =20 #define DEF_HELPER_FLAGS_5(NAME, FLAGS, RET, T1, T2, T3, T4, T5) \ - TCGHelperInfo glue(helper_info_, NAME) =3D { \ + TCGHelperInfo HELPER_INFO(NAME) =3D { \ .func =3D HELPER(NAME), .name =3D str(NAME), = \ .flags =3D FLAGS | dh_callflag(RET), \ .typemask =3D dh_typemask(RET, 0) | dh_typemask(T1, 1) \ @@ -64,7 +64,7 @@ }; =20 #define DEF_HELPER_FLAGS_6(NAME, FLAGS, RET, T1, T2, T3, T4, T5, T6) \ - TCGHelperInfo glue(helper_info_, NAME) =3D { \ + TCGHelperInfo HELPER_INFO(NAME) =3D { \ .func =3D HELPER(NAME), .name =3D str(NAME), = \ .flags =3D FLAGS | dh_callflag(RET), \ .typemask =3D dh_typemask(RET, 0) | dh_typemask(T1, 1) \ @@ -74,7 +74,7 @@ }; =20 #define DEF_HELPER_FLAGS_7(NAME, FLAGS, RET, T1, T2, T3, T4, T5, T6, T7) \ - TCGHelperInfo glue(helper_info_, NAME) =3D { \ + TCGHelperInfo HELPER_INFO(NAME) =3D { \ .func =3D HELPER(NAME), .name =3D str(NAME), = \ .flags =3D FLAGS | dh_callflag(RET), \ .typemask =3D dh_typemask(RET, 0) | dh_typemask(T1, 1) \ --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445050; cv=none; d=zohomail.com; s=zohoarc; b=FjoXGLlqQYDcCnf4f27ysB7ezbZXXuNBD5E9hUMUVIL3hC8EktwiwFibVMNfTTVM1hUyZOWmmKxYkYOtfiPUP+OmDFcdkzXeC9yb0WI6nVwK/s2mtYoykT3fq7nG2R0mDuyERzCkfmzwP67GRzFR1EtW2Z+2HrftIw7Wo1XF5no= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445050; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=lEh1QUzVKCUMcOV2PvW1tMD/ZW6RY1dlfR9D7430TCg=; b=hxdEQYayccxmXbn0HxAxkO0/5bPoR6rC0qPucDo9tT12D7rbi+PBrnRRivlaPqPvEJiEisoXWJ+8sbmqKh6Pd7YyXqfqkrxFoWEz9YiSNPqAnD+poGviFxi5qbfZDbi7KZYobOYGPKnoqEKv3CBm5EtidLp26siG6rLN9iZypFg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792445050475548.4977102012447; Mon, 19 Oct 2026 14:24:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunf-0001jr-Ew; Mon, 19 Oct 2026 17:21:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunN-0001h0-Qs for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:25 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunL-0005iP-Uh for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:25 -0400 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJJtkL3672220 for ; Mon, 19 Oct 2026 21:21:22 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf3xbb2r-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:22 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3ad436a9d00so1185079a91.0 for ; Mon, 19 Oct 2026 14:21:22 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=lEh1QUzVKCU McOV2PvW1tMD/ZW6RY1dlfR9D7430TCg=; b=HKjIf4iibBPyua5droseN96Mqwy m2+cFabuDdduN94945dOUMg32nIxcnKCNvG3YT4wl+SiresWBd45QQ3hcCqRXe0A 9QAo0opMmzWyTMEiuJCcPpKq2gSvQ7wQYsQ8VG4V1CTCMdyWUrLyO0+/UAvmnjAG NMrQhV+YJj0aalNpVETO2mPZq1l6YfYdBRiImAx83NYqicwZc6s4Xnd4svThjrXd Nln/FYzL34b9RNjzhAfblDWowJOUgIVObyOBK3uqie5g0jNdFCZPCn413uXnJvJw IR35ufMNJjjecBAXqlQ/w3Lv43O4ANBOCcgkZkHm/7vl4eZlT2od5JLN5Pw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444882; x=1793049682; 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:content-type; bh=lEh1QUzVKCUMcOV2PvW1tMD/ZW6RY1dlfR9D7430TCg=; b=T2Yp2cDcuC57/U3ucLJYvDhqSnNW5aRR2hZDVsis4XrCiWBI0xIQfr9GurIw5ouxuv 3Grl6gI77CI7SUedsQJV8REGppgTtTicIFyHc+hRsE6viQ14UJyNdKMgPGNOeBaLDXkM EQdAFKuht2DXxFuJE2rchO4kW22DacWswd15LLXRIP6CIEFRV+0bj15GvwvDxUD95W/+ ctFoB8eUtkFtaILzBjLgTT749HstoS9hAA1XNpfoGQOx+Y7ipZR96lc2jGK/Rac20OH7 mnzpd4b0Umx4qoc0VD4B7lTdivZYbBAzquzH0RsGp0B/nDTyFGtR5LN3jVIPFxsH6Ei4 QWAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444882; x=1793049682; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=lEh1QUzVKCUMcOV2PvW1tMD/ZW6RY1dlfR9D7430TCg=; b=oY2blg3qdPXd1CkBo6nrPTldfZf6fzrc5eHvjWEMZedeh2YvQm0O6UaZUbeA5EaDvv OFtCnMMwtoGQ66hyhHDkgxuP+5k6/0PJUgzLDbaMzzwvJuY0rC1nCvalyVMIoekR6DTH AFPcvNxuUqVecDLRu677Box/pJaBj2wz6OlvybbthKdTGii3mulVGoiNCBImDUqWWyzB Zg5ILSD3QEd7uubNY9hB4HvPRfblpNqu4cejiESHUw4D8hAci+VKOTH20B4CrGMOWRcx R9kJi7t5bLIJXSjQpdblvzI0hYZJID74gQZbTl3foT3mGHtlqekCnJjkojiH66/llGt9 /6Tw== X-Gm-Message-State: AFq9FYIqxvgoGmoNNw/FukYPGWnaZftVwOXGpsEqdIan0LZ/OS6B1L2G MDVsv0m2Ka1Hly+6fYPKuAhWBdQOnnRSwzn9OftlRn4MQNd3jS3hcDY/w3lo9tmYlCxIr3pWWoQ G/Ys8U+oK/OUDLHG0EAz6ihx+XysfSigMiB2QkpU6U+ZQYzZ+GS9A1LgTKoQySgIyBg== X-Gm-Gg: AYBFou2SMd1F0Ylwpe41eAjC2zskqMeBAq8xGfKm7E5Kvnt9W+/ceLww/s6/BJP9Htr YY/U3VKBgkNhpx/y2sIxvUU39ppwGWZyXvLiRYWEXueOm53At8rgzbx/kG2d8qMz9IuE03PxhRH tkaNDfkXEN2xQz/4rAuX1+ieitfl4ZMnV0s/0RmTn7ePuCqRQRlNnRRYfGsH+IwVfisFrgfJKir E+aIjqe7UubDCv6+VtyUHmJxMnJbmH2OyJg6OcxEHqTE6S24i9LMNPU7T9nlX22cRXaUrXrK9jW Kr40xQVND0+wXav/WJz7G+2ZtyEWoB+Jewx6r49dPsHtLu9YPlLsBGiayGZI3ljCjDmhwZPalNg iqVdRlDxDtllhaP1pcG6hpCBx+9hQLYoJ0v5IfFNw4wtZxkW3pAQeJ/MRrIGaQ88= X-Received: by 2002:a17:90b:3b91:b0:3a8:32f2:f4a5 with SMTP id 98e67ed59e1d1-3acef57b3afmr7911620a91.53.1792444881821; Mon, 19 Oct 2026 14:21:21 -0700 (PDT) X-Received: by 2002:a17:90b:3b91:b0:3a8:32f2:f4a5 with SMTP id 98e67ed59e1d1-3acef57b3afmr7911600a91.53.1792444881294; Mon, 19 Oct 2026 14:21:21 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 19/26] tcg: prefix helpers with target base architecture Date: Mon, 19 Oct 2026 21:20:38 +0000 Message-ID: <20261019212046.149572-20-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: o9RWSNOvD87w9TBfa1UoIrywFW-cQoXv X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX6kmlbcqpFl7B KUPBpoDusWWLbr4GYfGTaNmzuQwP0PsqLyDNpnjWlz98R6oSZwG+xZKI/9uoOrvoC7mKSQjXX78 s6i+JIuYOdaQDmVAf/+/aa7hP2Vk+40= X-Authority-Analysis: v=2.4 cv=XPOl2ghE c=1 sm=1 tr=0 ts=6ad689d2 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=OX9GZYkf9iRtFPWvzqIA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-GUID: o9RWSNOvD87w9TBfa1UoIrywFW-cQoXv X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfXwJTtovrT/HyT GMsJWer6cuzwRu87zrPf9A7QV5yizhqjS3b1ja62EzIUHFo4HIHhPnM5OZ11hTFkTmsTspegF0u 5z1XqxYd1zISyJqnTeYLLidTxKJDQPyzKzIrASxpUDNUzLsQTAl/jasTC1N42r/oYlZ52AmZMxr 3k7WgkxBGRQQiGrugbXTjBGfkGbZeDSyvsvVG/yy1ZvVEIELO4O37k2cARO0phRmXaRi3njJVQ7 pCbWxXylcbSPFBsTsgZ6kKs0D3k29F21w7OsFWojhhZgOE1wlkmowC4JzNJ673/fA4Hi5qIW5mh r0wdtDeTGjEFCt5o5XVdMGBKZrzAKdOot5dpSyFUreZiT3hYwXyaEbBkvHNZiCVUxz2a6oeLhTn 6cdFrr+ghtb2vlvbsWaEnfpvWCm34eUGWLxdnpuUTxYzrgzsf/4BGQvkRFdRAqKr5qtfd2VTA3E CSeNPS2A/XVJuiJcP/A== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 adultscore=0 phishscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 lowpriorityscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445051758158500 Content-Type: text/plain; charset="utf-8" Now we made sure all helpers and helper_info are defined and used using HELPER/HELPER_INFO macros, we are ready to introduce a target prefix. We can't reuse TARGET_ARCH since it's not defined for common code, and it's also poisoned. So introduce a new TARGET_ARCH_PREFIX which is defined for all target code (whether it's common or target specific), and use it as prefix. On some hosts (found it on sparc), predefined macros exist for the base architecture names we use, and their value is 1. (#define sparc 1). So, we can't use them directly or it would create a illformed identifier for function names. So to prevent any problem, use additional "target", which gives -DTARGET_ARCH_PREFIX=3Dtarget_. Finally there is one last catch: beyond target helpers, tcg also has common helpers. For those ones, we want an empty prefix, since they are defined on tcg side and not target side. With this, we now have target prefixed helpers, preventing symbol conflicts when linking targets together. Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- include/exec/helper-gen-common.h | 7 +++++++ include/exec/helper-head.h.inc | 9 +++++++-- include/exec/helper-proto-common.h | 7 +++++++ meson.build | 2 ++ 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/include/exec/helper-gen-common.h b/include/exec/helper-gen-com= mon.h index 834590dc4e5..12e220c8ce9 100644 --- a/include/exec/helper-gen-common.h +++ b/include/exec/helper-gen-common.h @@ -7,8 +7,15 @@ #ifndef HELPER_GEN_COMMON_H #define HELPER_GEN_COMMON_H =20 +#include "exec/helper-head.h.inc" + +/* Common helpers are built once, without a target prefix. */ +#pragma push_macro("HELPER_PREFIX") +#undef HELPER_PREFIX +#define HELPER_PREFIX #define HELPER_H "accel/tcg/tcg-runtime.h" #include "exec/helper-gen.h.inc" #undef HELPER_H +#pragma pop_macro("HELPER_PREFIX") =20 #endif /* HELPER_GEN_COMMON_H */ diff --git a/include/exec/helper-head.h.inc b/include/exec/helper-head.h.inc index be1d79cf017..fd03b1f1704 100644 --- a/include/exec/helper-head.h.inc +++ b/include/exec/helper-head.h.inc @@ -8,8 +8,13 @@ =20 #include "fpu/softfloat-types.h" =20 -#define HELPER(name) glue(helper_, name) -#define HELPER_INFO(name) glue(helper_info_, name) +#ifdef TARGET_ARCH_PREFIX + #define HELPER_PREFIX glue(TARGET_ARCH_PREFIX, _) +#else + #define HELPER_PREFIX +#endif +#define HELPER(name) glue(HELPER_PREFIX, glue(helper_, name)) +#define HELPER_INFO(name) glue(HELPER_PREFIX, glue(helper_info_, name)) =20 /* Some types that make sense in C, but not for TCG. */ #define dh_alias_i32 i32 diff --git a/include/exec/helper-proto-common.h b/include/exec/helper-proto= -common.h index 76e6c25becb..4433ba47a82 100644 --- a/include/exec/helper-proto-common.h +++ b/include/exec/helper-proto-common.h @@ -9,9 +9,16 @@ =20 #include "qemu/atomic128.h" /* for HAVE_CMPXCHG128 */ =20 +#include "exec/helper-head.h.inc" + +/* Common helpers are built once, without a target prefix. */ +#pragma push_macro("HELPER_PREFIX") +#undef HELPER_PREFIX +#define HELPER_PREFIX #define HELPER_H "accel/tcg/tcg-runtime.h" #include "exec/helper-proto.h.inc" #undef HELPER_H +#pragma pop_macro("HELPER_PREFIX") =20 #include "accel/tcg/getpc.h" =20 diff --git a/meson.build b/meson.build index bbef9d9c293..5c8ffa50ad6 100644 --- a/meson.build +++ b/meson.build @@ -4161,6 +4161,7 @@ foreach target_base_arch, config_base_arch : config_b= ase_arch_mak # prevent common code to access cpu compile time definition, # but still allow access to cpu.h target_c_args =3D ['-DCPU_DEFS_H'] + target_c_args +=3D ['-DTARGET_ARCH_PREFIX=3Dtarget_' + target_base_arch.= to_lower()] target_system_c_args =3D target_c_args + ['-DCOMPILING_SYSTEM_VS_USER', = '-DCONFIG_SOFTMMU'] =20 if target_base_arch in target_common_arch @@ -4284,6 +4285,7 @@ foreach target : target_dirs arch_deps =3D [] c_args =3D ['-DCOMPILING_PER_TARGET', '-DCONFIG_TARGET=3D"@0@-config-target.h"'.format(target), + '-DTARGET_ARCH_PREFIX=3Dtarget_' + target_base_arch.to_lower(), ] link_args =3D emulator_link_args =20 --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792444962; cv=none; d=zohomail.com; s=zohoarc; b=VjKp/h9KyvEe/WsWh1ksnY3VTlVAKmu3d09qSYC4V+hdl+HBAYMf2C8cct0sS8GXTkGuSNhnPeF8u8ZTfqAifBzoMJ3f2upG67ujTdS445J8lYGo6C7NLm+9u+TrhexyesxkNTl7E05rqcdQ1CJOIobudWGndk4jTYEmvX+EkZk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792444962; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=aW8hSLu9LsP1qWn+BWxVhZy3OVLFt/L7PumrmGVCQTA=; b=Qe0XnYjfWNSd1xXFx3eIntDdu0/44GSRkyGO/BVao+uzyHeyssmLkFxQ6uQ14KFT5VUlEUy4Sf+agJ+DsaM/YLfo0nzzT/k5fehPSHlMiMCr5De3D/u7XsxRUL7xAGYcDLEsO0vFYlWBVk0odtFARndESp3ugIPYYkbJgKVj8Xw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792444962722269.3433720755428; Mon, 19 Oct 2026 14:22:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIung-0001kV-Rz; Mon, 19 Oct 2026 17:21:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunZ-0001it-4j for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:39 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunX-0005ib-JT for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:36 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJK7ri4106627 for ; Mon, 19 Oct 2026 21:21:24 GMT Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdr780nug-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:24 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3ab7f1efe5dso5339554a91.1 for ; Mon, 19 Oct 2026 14:21:24 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=aW8hSLu9LsP 1qWn+BWxVhZy3OVLFt/L7PumrmGVCQTA=; b=D5tK45YivC8zn/1JRUQIDG155rS HH4rQBGNFDFpLzT7k2Jwj2gtY1ys55zCwnXI5ndzTpBhlElKmQ1R3Bn2j9gEc35I NUbIX9rfISTuOuIrZ1dFQzD79+6HM5xdH9JL18vabWC4/lvkwiwq0PD1L2cCAps+ rD6pLv8StTS0lbX3uHqVRJnOLziLAUvQxQpgp/mW2sDvgcFTE0UsL54FfRXJ31Uh fZCBbQ+u3F2AFytlzOlbqZ97OCrjGjVCpvSISb8WRWEVRl5GmSdpzqR10s60O2A/ Py0wxrQlRt4toYrdR2JyII/RvFYOaAICiZ8mMsfA/Wdxqg9CDRKSY7PlW+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444884; x=1793049684; 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:content-type; bh=aW8hSLu9LsP1qWn+BWxVhZy3OVLFt/L7PumrmGVCQTA=; b=KWm8NiGLr7BVkQCvzX2bGaet+CLacF0nzfLAFTis2ciuttMavHD35yzlkSdbDjD3pE TCpxPsijhEg6ChorbubdWTRL/z7WqUPmja7++76Qa1vj9mWZK1HDilho+yD2bJg+6+6w FUOzEBqu1HwCkKBRjqYWLa63pAWKdA540L07+CB3gpfuu2aKTQkH+mAY9miQlmVoCACt AZsY8cPzQXidabU9DZacgXI+OLmOpIoJOarF/dsjyDTZnF6vNnMEI8G59e0ia9fmdt6s vxyYPPQvJVNtN6ynN2gemdWIeUkLtjOLZ8FyHBtB7zQ2p98RTur/c1PF2Ya/MGo5aIVp NrOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444884; x=1793049684; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=aW8hSLu9LsP1qWn+BWxVhZy3OVLFt/L7PumrmGVCQTA=; b=zcGmHJ2L5eyU3b8L+isz0ULKyfM5w6EUWpQinIUqd3p0LpVOMJN0E9m0LhDDS06uLl ka6TO1go5kymahZNli0pz1jGNOfgJvM1cyGWpRB1irxdXsVprk2ENLaPwwoLdlp+MBYz jnxFBZEo4MLlWE2oedaBQZllATJSEQjjk+1OBBNF2e08nR0HxMsCkqETqBUeb4DGIa4Y dbwhkvOnZf2QjUcdlgAae8QZgnmwIKnY9jBLHc3c6FtU+45CNFqwHjWzwtnjoPRn4ODm ZsEsBT5DZLDpsgFQI738ywuQ3vjoAEqabBRMbi18rQ1s8AeZXflB8nt9PaH4xYeweea5 bByw== X-Gm-Message-State: AFq9FYIwYfRv3BnshAWyOT0lv7ahb7TWZ+mZMrjf9mDa2jBvaWVuQowy ldJ/ukpV2/o8c1Av0VwZvnr0Q3sawjeQeR1brny2e+dX5qXhhuE4PDlPOkIKkmiY0NxtTgRAfGG gshMtN8qHO2Y3woAGh6MHc/bpK9mcjeU+PCcoVCDw9AQziS6429QKjOlsUA6jVNq+aw== X-Gm-Gg: AYBFou0TIgYjoA0jddmpRB2kSr1VMCIl2EQdcA8WyiiWjkuOAJwkvZOtNa+urh9PeqI jWA7ctVIydPGTha6hfVYOeVSI+3aKhy/7h9strw81IhRXFY7LMk3XnqzAwd+HJRlqR01WXYtdml T+rAHpDNoU6mu0nCI3FSdN6v5yPogimbsnUdo0z2Vtcm2ULaBR6KBZ+TN1urKMDSBi7VVmHIFOr nvBys/n8fpTWDhmST0O6wnnvAq5ZDuo/2Lu83LeLtIzaPQ7VfVeghKi7hB++UNIxhqWDZJcY9dt 3b3k/2UpqOwpOk4TGJOjg+MxzFJsMz40Te+3yRXrJsXVMa+taopSTZpqEliZ6JCIsD5K2oGxZAh ORCXuVDblZea6E7XO6ib9rz2YtOkfa+/mMAbIm56UbJ+3Ebm5b2xOqz6KoSNZLh0= X-Received: by 2002:a17:90b:380b:b0:3ab:413:49b1 with SMTP id 98e67ed59e1d1-3aceefb87eemr7541801a91.48.1792444883765; Mon, 19 Oct 2026 14:21:23 -0700 (PDT) X-Received: by 2002:a17:90b:380b:b0:3ab:413:49b1 with SMTP id 98e67ed59e1d1-3aceefb87eemr7541786a91.48.1792444883263; Mon, 19 Oct 2026 14:21:23 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 20/26] target/alpha: remove explicit target specific prefix Date: Mon, 19 Oct 2026 21:20:39 +0000 Message-ID: <20261019212046.149572-21-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX7yiKi/ZJurVz ERqpeuajyeEP2ae5EDCNkKLeaygsLV6uePqMUAE3YdZ2MGVl362parooyfK5LXuWkIOzPb1Suix +dIOqUpunMMFhFdUIl0BJUsrMqsZASr6wHf4elzrZplsv776pJpl7oU/4igcxnGVu4I2GcBhRcr 29Hs2UTJvhzcZlSCgZKQ66fF2h+qOUy+EwMGBRfRbfwsyQSgaaA/6zrK0GH5Vh+GORQ1rVHbz+x /hIf4bOXT7WLZIdwdmPYZIOFHVoYjdeAh2hWkCWknho9mA06m1x/8aV+ugYfr6BdzhiI7datmtF rNcaSzCLMLzCVQ5rz1t3dqwvMEVKNQTiudZs7BQKrGSuKdpdc8Sjy9P2itiK5dLe3OROvSlMyHl cSnL8niF6eekVwzK6E0UlLNNA9baOVvEx/IM/xZXuvzVoIayHYgzF9AlwNtO4DYfHmrzYshO6nP Cel+ztSBd0E9SF+pg5A== X-Proofpoint-GUID: 7NsvG17WIG8dnIpwTw-ccMiqkTtNhhu1 X-Authority-Analysis: v=2.4 cv=LKnz05W9 c=1 sm=1 tr=0 ts=6ad689d4 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=8l8H8-3bjoOVfk95vZ4A:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX7oHCX2B91h3F ldgCOr+QBoSPPS/jXW7YTHNFzimeBriOy2zEcgOYEU/mbY2TUu/HhD5ENIGnO3UyNMyM/pTKRSr htGmRv1Ubq9oUQ5M1swfROZbjHPXrCo= X-Proofpoint-ORIG-GUID: 7NsvG17WIG8dnIpwTw-ccMiqkTtNhhu1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 adultscore=0 suspectscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792444964071158500 Content-Type: text/plain; charset="utf-8" Now that we have a generic mechanism to prefix all helpers, we can undo the recent changes that fixed conflicts between targets in multi-target set. This reverts commit e39401e0b4005389790bf847949c9e5950f5fa55 "target/alpha: prefix divs helper" Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/alpha/fpu_helper.c | 2 +- target/alpha/helper.h | 2 +- target/alpha/translate.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target/alpha/fpu_helper.c b/target/alpha/fpu_helper.c index 61166396f6e..9eb64058765 100644 --- a/target/alpha/fpu_helper.c +++ b/target/alpha/fpu_helper.c @@ -248,7 +248,7 @@ uint64_t HELPER(muls)(CPUAlphaState *env, uint64_t a, u= int64_t b) return float32_to_s(fr); } =20 -uint64_t HELPER(alpha_divs)(CPUAlphaState *env, uint64_t a, uint64_t b) +uint64_t HELPER(divs)(CPUAlphaState *env, uint64_t a, uint64_t b) { float32 fa, fb, fr; =20 diff --git a/target/alpha/helper.h b/target/alpha/helper.h index e2f0b96db7c..954a5c8294c 100644 --- a/target/alpha/helper.h +++ b/target/alpha/helper.h @@ -47,7 +47,7 @@ DEF_HELPER_FLAGS_1(memory_to_s, TCG_CALL_NO_RWG_SE, i64, = i32) DEF_HELPER_FLAGS_3(adds, TCG_CALL_NO_RWG, i64, env, i64, i64) DEF_HELPER_FLAGS_3(subs, TCG_CALL_NO_RWG, i64, env, i64, i64) DEF_HELPER_FLAGS_3(muls, TCG_CALL_NO_RWG, i64, env, i64, i64) -DEF_HELPER_FLAGS_3(alpha_divs, TCG_CALL_NO_RWG, i64, env, i64, i64) +DEF_HELPER_FLAGS_3(divs, TCG_CALL_NO_RWG, i64, env, i64, i64) DEF_HELPER_FLAGS_2(sqrts, TCG_CALL_NO_RWG, i64, env, i64) =20 DEF_HELPER_FLAGS_3(addt, TCG_CALL_NO_RWG, i64, env, i64, i64) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index ac57e4d2623..c66e3f9c146 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -790,7 +790,7 @@ static inline void glue(gen_, name)(DisasContext *ctx, = \ IEEE_ARITH3(adds) IEEE_ARITH3(subs) IEEE_ARITH3(muls) -IEEE_ARITH3(alpha_divs) +IEEE_ARITH3(divs) IEEE_ARITH3(addt) IEEE_ARITH3(subt) IEEE_ARITH3(mult) @@ -2086,7 +2086,7 @@ static DisasJumpType translate_one(DisasContext *ctx,= uint32_t insn) case 0x03: /* DIVS */ REQUIRE_FEN; - gen_alpha_divs(ctx, ra, rb, rc, fn11); + gen_divs(ctx, ra, rb, rc, fn11); break; case 0x20: /* ADDT */ --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445029; cv=none; d=zohomail.com; s=zohoarc; b=aC7ksjY7/DjBff9qjdVnE5xuJimtyAhZX411th1zCjdeBZBa/8EsGcNYrI43jI6ws61BVgYIvsp3RMNbpiF1z9StIyas6pXKzCgFlwgc9/RpIhJ1AfSlaUcpQGBC42STxx07s8mFACBk3U+sw8vTgE8LuVOI/ZcrzvQwkVXDIDk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445029; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=CD2MV03z5YLe39V288IQtDr6CNDi1ffl6+smvrhQ9s4=; b=MkZzPB5iERs3GnodZyebf24olRAInhWnJXnHaFXf9ESrQIK7Kk6/n1Br4GOk0F/QJIiwC6temjISNLArLkJeww7EXBKBiV7ne0iWOJrlz7WrUKQYL1A3wykicnzRt9Wgm0LMZ8+gYy1qDSPzkDXGYWv8xn233a9fkA+KCWZbyAE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792445029546950.0659358365078; Mon, 19 Oct 2026 14:23:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunh-0001lG-Dz; Mon, 19 Oct 2026 17:21:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunQ-0001hX-TG for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:29 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunO-0005ip-Vp for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:28 -0400 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJJxpX549443 for ; Mon, 19 Oct 2026 21:21:25 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf47kc60-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:25 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ad30487d55so1889368a91.2 for ; Mon, 19 Oct 2026 14:21:25 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=CD2MV03z5YL e39V288IQtDr6CNDi1ffl6+smvrhQ9s4=; b=Z+o+QDu1u7mLdZnv32IOR9KH1lw wZJuyf2pC4bFClgXFHYIFNSeiU/4GeYWi+2j52jlnfa5ibTPHZ2vZmrIjQ4tKTmq iWa036Sj67MUgt0OTwm/eSuHH1BVH9PXDIX8DIGHHlAHzYQugTGZdjUg2v0KvwR4 cJFKj3m5YVLp+Hg5tk4Vk0MmU/oyEsBZhu9NJ44KXjwJ9QxP8jUaRkhjbPMiru4w U5s5OcOslgUqEWoSc++pDfcH2LUXPlEZJQK3o+3cf24RlAie0n031Z8aFl6Oer1I x8BO2E9K60K0tbFw0NyRHCYqw2TgTExQCz32YyPIJ5PTKv6L4RG29SPzhkQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444885; x=1793049685; 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:content-type; bh=CD2MV03z5YLe39V288IQtDr6CNDi1ffl6+smvrhQ9s4=; b=Yi+LU6O5Usx9/7KkbutPxUBONZffzFMiseOFgvCtapMzRf1PzWFnCHBiXDCv3pqO1+ /eVLneGd4RXQsv81NLafo/4HH+bW+x4a1xURBIf6gf8psVEyF4XnjORjGEHNCILWfRaD Q8kzJgRBgULQiSNQVv1S7W52yKMjtDNnc0wa6a8jw7Fcv19w6Aq1IuGBhTFmJioa88ue /AecmXARbMrvcPc9H0LrnbROaegf8gk5AenajXkSk8Calyz9wdp4bLBJh6AK5ICGDCbj /1v03qBDynLOtzAZZoqlJSeRy3p73I+SOzeWZNma72yKuXqfYUUhKwtiRQgBan41BpEb Il1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444885; x=1793049685; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=CD2MV03z5YLe39V288IQtDr6CNDi1ffl6+smvrhQ9s4=; b=ZR8sKLynaTu/+xjSxlixr7nlvGp6FP/5iFtQex7EBSyQViBk1Gf8JAonTy37m3Ylfi QG3UvW6WhfHn8TaPSUKiSy2jYiRcoI3qNBKrJN916hGZam+b3BOhHib+ib2Zq9A8Qojr 5SzbKcJ0FBuutMTCtdIbYAD9MvBElJZ+TPVvnbjK8OZEdQpxlUMBI8K8dELhl6y2vnrm 781cHWeV1L/V0MZ5FgF+vMaiQhdEER7ZDsxyzE5FlbzkOFY/6InKCKjlTuNk+K3Zp9kU 1+Fb/ytVA9EZ7lIrdgJBm7sc67iGXub9kNovOpmei5NNTWrf2vkiR9k4aNl1FrxlAVac qcTw== X-Gm-Message-State: AFq9FYIID1/zlUMBXraa8clN5vAm0wJOYPs8bQbH7cX85AcykyNautSN CRs/EbJuP/fZP/Byau0xXTbyP6oUTwa3k4coxLGhf6Nfwqe+Qe2B0LSS7N4XYHjwYowSbnUhdBP QxvpFNkMZ8L4sa9q5zhU5ag9SzJpBf94n2k4vjLJLGe7jhRoG+1WCVb+RR67hKTfuFQ== X-Gm-Gg: AYBFou2wFbx/G/jHpthiwEFhfNbMBDd+9zGG0SNbJybmffWvVlBgxBdydlg/dVSOn+G 2G1FxHyWwu36xltnUoG1E4Xo4aicCukNM1c32SQxEqrZKxE6DAF12Q+OzydVKT9droDIpNHdhaY LTEId2nj02L9jw9No0g0QJ8o1catVBzqsfGoHLO6YAuHihNUYTq4tw8vPQERPzm0ggoXWDyxmfw JvJ9bTvSMXKuQQdutHLh0ulDjo2Her9YlXIFB89hl70YGS7cwLKTrHXWRvF1wyvjUVw4pwuSXo7 XXJOSZcpYX0ZAahsJd9eST0VSS9Nejv/z5OBMV2KT0oiTy9mZ0XrG7ZsfiPTc5boq9FxqodqgkB ZP0G4YXRSnZIcy0UCAy7iomMjUWyC1sRM8k+8r501j1yvYZoa+0EllQFwdGuGlho= X-Received: by 2002:a17:90b:380f:b0:3a6:e901:e79b with SMTP id 98e67ed59e1d1-3acef106598mr7579117a91.15.1792444884851; Mon, 19 Oct 2026 14:21:24 -0700 (PDT) X-Received: by 2002:a17:90b:380f:b0:3a6:e901:e79b with SMTP id 98e67ed59e1d1-3acef106598mr7579092a91.15.1792444884233; Mon, 19 Oct 2026 14:21:24 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 21/26] target/hexagon: remove explicit target specific prefix Date: Mon, 19 Oct 2026 21:20:40 +0000 Message-ID: <20261019212046.149572-22-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: beqlnBZden6HLIO8a6Iit1ceg2uG3J5c X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX+SbQ1MBHDmmg JP/li3fzz40PXHltyxnCM3Bx5DGhMDZLAjzTdME+9MRcFJe9YLZsaLKJiafAZEB7v4vHX/OSf71 p75ZnoTIWe1MfX6lSJaoK1JfOH101yaREEFRM8lhEM+uiRtBUrgVtpZEVpvhdGVfi33VW4X7mpv Zy5QrlJCqhvWLaH0fEWTNJL1xANuPFjWLDnQIJJHCs8Eq0NuXbOKfsCYLq3hVKT0nqUNWrdS0gt uUIwRJ7VQDrkpDqIgfMGv5cP3FcJtoX9bP76nHURyNvIUVAMI/MKseDNritw6TD4EULee5YyLUf k6leiA8YnA0Ekc9u9JQc+ac6u4W60G43Brn1b55T2mMIlq9whMF40qazfKH8AapMX5PZk0HpMxc r05cfFE/XejE3ONqKmNQBoPBU49xw395I07Rx/xc2i1CHIJkaDx1eIDvht+SIJs4KC+h82HDv7s VIayauwSogc241Q9tIA== X-Proofpoint-GUID: beqlnBZden6HLIO8a6Iit1ceg2uG3J5c X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfXxh1R11gpkx1w gwUOb0wQrd8xyoz7oR9S3urSp6eDb+o/EbKAyfNDmOSTrT83WKTx1YwfdldeSycY1LfEVVfwd1K BRu/OdtLaKe8yCCTUhrWfOCBOfkYTxw= X-Authority-Analysis: v=2.4 cv=cLt1IVeN c=1 sm=1 tr=0 ts=6ad689d5 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=xJBkFjxltbiK57tzlAwA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 phishscore=0 spamscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445031275158500 Content-Type: text/plain; charset="utf-8" Now that we have a generic mechanism to prefix all helpers, we can undo the recent changes that fixed conflicts between targets in multi-target set. This reverts commit 086150a223a6dfeae85e8bb925c5df0ca3061ed5 "target/hexagon: prefix helpers conflicting with other arch" Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/hexagon/gen_tcg.h | 2 +- target/hexagon/gen_tcg_sys.h | 2 +- target/hexagon/helper.h | 4 ++-- target/hexagon/op_helper.c | 4 ++-- target/hexagon/translate.c | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/target/hexagon/gen_tcg.h b/target/hexagon/gen_tcg.h index ed05f97efed..80d8a7b6bac 100644 --- a/target/hexagon/gen_tcg.h +++ b/target/hexagon/gen_tcg.h @@ -1135,7 +1135,7 @@ #define fGEN_TCG_J2_pause(SHORTCODE) \ do { \ uiV =3D uiV; \ - gen_helper_hexagon_raise_exception(tcg_env, \ + gen_helper_raise_exception(tcg_env, \ tcg_constant_i32(EXCP_YIELD), \ tcg_constant_i32(ctx->next_PC)); \ } while (0) diff --git a/target/hexagon/gen_tcg_sys.h b/target/hexagon/gen_tcg_sys.h index 3760b671adf..413ccc97f7b 100644 --- a/target/hexagon/gen_tcg_sys.h +++ b/target/hexagon/gen_tcg_sys.h @@ -80,7 +80,7 @@ #define fGEN_TCG_Y2_wait(SHORTCODE) \ do { \ RsV =3D RsV; \ - gen_helper_hexagon_wait(tcg_env); \ + gen_helper_wait(tcg_env); \ } while (0) =20 #define fGEN_TCG_Y2_resume(SHORTCODE) \ diff --git a/target/hexagon/helper.h b/target/hexagon/helper.h index 28591417040..47958c48ea9 100644 --- a/target/hexagon/helper.h +++ b/target/hexagon/helper.h @@ -18,7 +18,7 @@ #include "internal.h" #include "helper_protos_generated.h.inc" =20 -DEF_HELPER_FLAGS_3(hexagon_raise_exception, TCG_CALL_NO_RETURN, noreturn, = env, i32, i32) +DEF_HELPER_FLAGS_3(raise_exception, TCG_CALL_NO_RETURN, noreturn, env, i32= , i32) DEF_HELPER_2(commit_store, void, env, int) DEF_HELPER_3(gather_store, void, env, i32, int) DEF_HELPER_1(commit_hvx_stores, void, env) @@ -138,7 +138,7 @@ DEF_HELPER_3(sreg_write_masked, void, env, i32, i32) DEF_HELPER_3(setprio, void, env, i32, i32) DEF_HELPER_2(start, void, env, i32) DEF_HELPER_1(stop, void, env) -DEF_HELPER_1(hexagon_wait, void, env) +DEF_HELPER_1(wait, void, env) DEF_HELPER_2(resume, void, env, i32) DEF_HELPER_1(resched, void, env) DEF_HELPER_3(modify_ssr, void, env, i32, i32) diff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c index 9850dc07289..82d38dc0b08 100644 --- a/target/hexagon/op_helper.c +++ b/target/hexagon/op_helper.c @@ -93,7 +93,7 @@ G_NORETURN void hexagon_raise_exception_err(CPUHexagonSta= te *env, do_raise_exception(env, exception, pc, 0); } =20 -G_NORETURN void HELPER(hexagon_raise_exception)(CPUHexagonState *env, uint= 32_t excp, +G_NORETURN void HELPER(raise_exception)(CPUHexagonState *env, uint32_t exc= p, uint32_t PC) { hexagon_raise_exception_err(env, excp, PC); @@ -1839,7 +1839,7 @@ void HELPER(resched)(CPUHexagonState *env) resched(env); } =20 -void HELPER(hexagon_wait)(CPUHexagonState *env) +void HELPER(wait)(CPUHexagonState *env) { BQL_LOCK_GUARD(); =20 diff --git a/target/hexagon/translate.c b/target/hexagon/translate.c index 2c18f5eebff..e2a5038a1a5 100644 --- a/target/hexagon/translate.c +++ b/target/hexagon/translate.c @@ -139,7 +139,7 @@ intptr_t ctx_tmp_vreg_off(DisasContext *ctx, int regnum, static void gen_precise_exception(int cause, uint32_t PC) { tcg_gen_movi_i32(hex_cause_code, cause); - gen_helper_hexagon_raise_exception(tcg_env, tcg_constant_i32(HEX_EVENT= _PRECISE), + gen_helper_raise_exception(tcg_env, tcg_constant_i32(HEX_EVENT_PRECISE= ), tcg_constant_i32(PC)); } =20 @@ -1146,7 +1146,7 @@ static void check_imprecise_exception(DisasContext *c= tx) TCGLabel *label =3D gen_new_label(); =20 tcg_gen_brcondi_tl(TCG_COND_EQ, hex_imprecise_exception, 0, label); - gen_helper_hexagon_raise_exception(tcg_env, hex_imprecise_exception, P= C); + gen_helper_raise_exception(tcg_env, hex_imprecise_exception, PC); gen_set_label(label); } #endif --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792444949; cv=none; d=zohomail.com; s=zohoarc; b=LJFHsE2c84M07pUtq0xSrBZqzpts4EeEbnxF0l2KzcW77fKbNOZzNtiitv1q6I7Py9QS8RhcnQ3LezwgMC4yyqemqL+Mmh2jVHsfPARWEL1WXrPeKP392q1uTabK3/t0D0WK2fr309Ji9wtTamOpWg4RilJRSnBlK6QJ9f2yjbA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792444949; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=kYCjosJDbOVu3JKFRh2Q9ZFgFXtqELeu0Md1O5c0fwQ=; b=B3klKeGvGUNkNawBIoyJSTVzeBCgWisuM1I2qHZfdA6rbNWTi3C8kEqfOL+R0q1tqnL47fCbzBB+IyT47mJTOxr6h4LVXCAaZ16k0ZD92IBMal/XQYy4vOTvCmNW/JCWTNtlLNr966l0B6bmMY05G03cMRRw/+SwpFTChEyhw0Q= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792444949263209.55095706607517; Mon, 19 Oct 2026 14:22:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIung-0001km-VB; Mon, 19 Oct 2026 17:21:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunR-0001hZ-4V for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:29 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunP-0005iw-G7 for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:28 -0400 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJJuAo3672236 for ; Mon, 19 Oct 2026 21:21:26 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf3xbb32-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:26 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ab926c236aso2465544a91.0 for ; Mon, 19 Oct 2026 14:21:26 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=kYCjosJDbOV u3JKFRh2Q9ZFgFXtqELeu0Md1O5c0fwQ=; b=arTdp3SiBZ6L6RgDg/aACMzMvWN 6WaTu+Y3SVWqO4/10gkb6dVbAB48Mm0DZKk7HBj8q01Rrg7ldk+WkY9aM9dswo/E JiRqKCXcjiASIzrsukyXKCtxfnnPkGs4TZngLjrIgPpy46z2D3gTAtuPCMTHOnxV sJayAvkcogrnTWpu+u0b2XDCXOMejpprgkdkoLgHIL3kAscVpyVhmUgsIdOMtmOh XCo9npUsYAkIykOsT72Ob1CmlXKokITQrH7oN6lGx6CdZsI8Ee0VTzSCBh3o2ALS 4wkX9DinZF76g7kNJ7tnMIOwgsE6HOOaowMrg+0JmdKguxwCrChZrmlzSlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444885; x=1793049685; 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:content-type; bh=kYCjosJDbOVu3JKFRh2Q9ZFgFXtqELeu0Md1O5c0fwQ=; b=Nx1uiYA7RXDF6gHAXiy7jPIHDpKiW4NIuOB41qSMvB44Mly8SLd3eWGyzURhvXi+hI IYVmkr2eXmjG5DQMVnFbnkP4/dJFQPP/thEZEzSbytRJtHWNZyIYfWaHAubqaF70vXu1 BuadUW7H+0Ny42yJenFEs17KhHbllsniV7oW9+0dQ7Iv+9gzdzn1pGXMV27jgs38QVK+ nGSjgafH9ZauTR6oQcJBsm00KP3LBEfFqCSPhvzApJGGFFfBUGnoRnj8iecT/ZKBbri1 o05b3qUjWBYjBluvkR4uNZF9Op73BhMJ5EG5abEFlCgXyPxHzHkj0FsPdtAK46M0hed8 uTXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444885; x=1793049685; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=kYCjosJDbOVu3JKFRh2Q9ZFgFXtqELeu0Md1O5c0fwQ=; b=iYlcrq3eDAIkF48jXzTWwAKyfmXkvsOtD6qkxQ1imeylElm+dFBv3tx33XgMMNTx+T OEoTszXmjMTAdwhKJLcsRG9KuJ3CGK9xAGPtr4pJXkTyv1f/gU9v7Tir2E907RGrHZfG +0ydnVv9xyi+dRtXue/5A0sO+jjIAUe/8TBauXd6BxzC9a6HPT8RXebsG9paXGnKsjJp JyJicEVl3aCDx4brTOa8w2Oq3COG7GOPkNQ1KbOoEOge14+Vs6AXMF8dMbpyEGgW4iOK l1SsQsb3zKwLK1ZG6jcTvRWa3n91cDO+EVojCK3nhKCwhY3SNDjVfj+qL10RI8puZ8XQ Yckw== X-Gm-Message-State: AFq9FYKUx45eobYl5O09lpxCyqCo/7ae6vnBjsMHv/u6KksOnlZjI6PF 0EbMNCEdEShmbepHdmhvtmpFwz+mP6CDYUNRrrqtTwLKMFnETNqT8823IX7EO6QojqVO3+gos9M 4rx1/T/Qw56wKPliM74LZfN6Szy5GlyGVEmyQTdF/J8Qk5Z2NbUoQE4j6iCB8stNRLQ== X-Gm-Gg: AYBFou1g5ImbbTnyxrh1IRXZu0qHhMHEuKWVE6lENVieoA5MVFHhG18MJs/qoyHPjrH EuV6JbGXbbfNFJs0sMYiVnZp0dOSyDQ1UjmWDjUH/8ZgO1h/l275632eDXd/jT9Cov+ngNcAnLL VoqWaFZ0StXAZ9jaFc7R5vxa0PA6iRiDz9jaeZXQPEoXyfILKmz5MOm9DiOJPKx1EMkNVCNifvk VOMPklGZ5dqXJz6HKRJB7b+M5bQNAEO08IBZDLscEVBN8yQc0aLHhvFpOMSESGnIEwdilhRQe5l sOYMOgYCzOSP5M3GkOT4AZUzzsAeAkyT7n4ERTMgmQ1nsCEkF9RxYQi/QmmSVil7XREkQiODYC4 RO3PhueAwiu4WCM03dKpN3theBjuAoixXdgMA1LJFvngE1NNj3fJzMW5MaU1bPek= X-Received: by 2002:a17:90b:1645:b0:3ac:7842:bd50 with SMTP id 98e67ed59e1d1-3aceefc5395mr8093985a91.15.1792444885481; Mon, 19 Oct 2026 14:21:25 -0700 (PDT) X-Received: by 2002:a17:90b:1645:b0:3ac:7842:bd50 with SMTP id 98e67ed59e1d1-3aceefc5395mr8093969a91.15.1792444885058; Mon, 19 Oct 2026 14:21:25 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 22/26] target/hppa: remove explicit target specific prefix Date: Mon, 19 Oct 2026 21:20:41 +0000 Message-ID: <20261019212046.149572-23-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: jXsD453dlCA33wghXgDxiZPiTeOdMMC4 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfXyi6gHTeELqGr n0WWKZiucy7OTMwLC9p5XHJMOocYc4BAA+JUXzCmcbp1ySaMuZdxdqpTdIwuYOk0kRGxAn8ZLDS 7FY3U8eAvonfF7N/VQMA1gQemNeoCb4= X-Authority-Analysis: v=2.4 cv=XPOl2ghE c=1 sm=1 tr=0 ts=6ad689d6 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=sRxLrGkicsVQIPpmWPIA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: jXsD453dlCA33wghXgDxiZPiTeOdMMC4 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX+bBAhP9nMrhf nJe/pbNpgTJLLv35CkzLUc47kFUvzFjkpl1aTnFhzNffKaKGYGIL1atB7d87eX9/QLeOTNdEJaQ lSN8gvwRmwqWcLEZ5BzJRJ2sMXtjs8lZ8XW2HhiRXBgk8YOGfNKU9TvRLjUBP6nWsKrtMC/iaGH 4DMtDDR8Pnsl198w+D5+Ps5bXzbr37P9JVk6uIrdSmOdk0XIqmoxdKeH2qdtnjscVaVHm7VvY9O Yl/GbGMsVyj5JjhUasBMnLc86DOKEkBzUNa7NiFaTt7PheVulvZtR7CUGh3H/zhTKzSvfEFumo7 jSieJuDt09qdefXC/wbHgOoGAwkNq2wg1MAOooaVztsXPtXxqW7Cw8iACGE2hafF/A+F+0IOWNu xi6CV3EfTkxy+Op3r0H/DQMZxYgucxjTzQpNvKdYYYh/zZCHNOh/Rsq6Wp1AmHRJ4Eef/iu28sK xpINizbAYw8jylCS1sQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 adultscore=0 phishscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 lowpriorityscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792444951816158500 Content-Type: text/plain; charset="utf-8" Now that we have a generic mechanism to prefix all helpers, we can undo the recent changes that fixed conflicts between targets in multi-target set. This reverts commit cd095f35b148f3fa0b2000a36af0c9efe2299806 "target/hppa: prefix helpers conflicting with other arch" Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/hppa/helper.h | 6 +++--- target/hppa/op_helper.c | 4 ++-- target/hppa/sys_helper.c | 8 ++++---- target/hppa/translate.c | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/target/hppa/helper.h b/target/hppa/helper.h index 8d7fa1ae348..8369855d78e 100644 --- a/target/hppa/helper.h +++ b/target/hppa/helper.h @@ -1,4 +1,4 @@ -DEF_HELPER_2(hppa_excp, noreturn, env, int) +DEF_HELPER_2(excp, noreturn, env, int) =20 DEF_HELPER_FLAGS_3(stby_b, TCG_CALL_NO_WG, void, env, tl, tl) DEF_HELPER_FLAGS_3(stby_b_parallel, TCG_CALL_NO_WG, void, env, tl, tl) @@ -82,8 +82,8 @@ DEF_HELPER_FLAGS_4(fmpynfadd_d, TCG_CALL_NO_RWG, i64, env= , i64, i64, i64) DEF_HELPER_FLAGS_0(read_interval_timer, TCG_CALL_NO_RWG, tl) =20 #ifndef CONFIG_USER_ONLY -DEF_HELPER_1(hppa_halt, noreturn, env) -DEF_HELPER_1(hppa_reset, noreturn, env) +DEF_HELPER_1(halt, noreturn, env) +DEF_HELPER_1(reset, noreturn, env) DEF_HELPER_1(rfi, void, env) DEF_HELPER_1(rfi_r, void, env) DEF_HELPER_FLAGS_2(b_gate_priv, TCG_CALL_NO_WG, i64, env, i64) diff --git a/target/hppa/op_helper.c b/target/hppa/op_helper.c index ea0680aa9eb..ec7f2a48e4d 100644 --- a/target/hppa/op_helper.c +++ b/target/hppa/op_helper.c @@ -30,7 +30,7 @@ #include "user/page-protection.h" #endif =20 -G_NORETURN void HELPER(hppa_excp)(CPUHPPAState *env, int excp) +G_NORETURN void HELPER(excp)(CPUHPPAState *env, int excp) { CPUState *cs =3D env_cpu(env); =20 @@ -341,7 +341,7 @@ target_ulong HELPER(probe)(CPUHPPAState *env, target_ul= ong addr, if (excp =3D=3D EXCP_DTLB_MISS) { excp =3D EXCP_NA_DTLB_MISS; } - HELPER(hppa_excp)(env, excp); + HELPER(excp)(env, excp); } return (want & prot) !=3D 0; #endif diff --git a/target/hppa/sys_helper.c b/target/hppa/sys_helper.c index ccfc2b48816..4a8bbf32591 100644 --- a/target/hppa/sys_helper.c +++ b/target/hppa/sys_helper.c @@ -48,16 +48,16 @@ void HELPER(write_interval_timer)(CPUHPPAState *env, ta= rget_ulong val) timer_mod(cpu->alarm_timer, timeout); } =20 -void HELPER(hppa_halt)(CPUHPPAState *env) +void HELPER(halt)(CPUHPPAState *env) { qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN); - HELPER(hppa_excp)(env, EXCP_HLT); + HELPER(excp)(env, EXCP_HLT); } =20 -void HELPER(hppa_reset)(CPUHPPAState *env) +void HELPER(reset)(CPUHPPAState *env) { qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET); - HELPER(hppa_excp)(env, EXCP_HLT); + HELPER(excp)(env, EXCP_HLT); } =20 target_ulong HELPER(swap_system_mask)(CPUHPPAState *env, target_ulong nsm) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index befdb58e9a6..41300c0dd73 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -726,7 +726,7 @@ static void install_link(DisasContext *ctx, unsigned li= nk, bool with_sr0) =20 static void gen_excp_1(int exception) { - gen_helper_hppa_excp(tcg_env, tcg_constant_i32(exception)); + gen_helper_excp(tcg_env, tcg_constant_i32(exception)); } =20 static void gen_excp(DisasContext *ctx, int exception) @@ -2450,7 +2450,7 @@ static bool trans_halt(DisasContext *ctx, arg_halt *a) #ifndef CONFIG_USER_ONLY set_psw_xb(ctx, 0); nullify_over(ctx); - gen_helper_hppa_halt(tcg_env); + gen_helper_halt(tcg_env); ctx->base.is_jmp =3D DISAS_NORETURN; return nullify_end(ctx); #endif @@ -2462,7 +2462,7 @@ static bool trans_reset(DisasContext *ctx, arg_reset = *a) #ifndef CONFIG_USER_ONLY set_psw_xb(ctx, 0); nullify_over(ctx); - gen_helper_hppa_reset(tcg_env); + gen_helper_reset(tcg_env); ctx->base.is_jmp =3D DISAS_NORETURN; return nullify_end(ctx); #endif --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445019; cv=none; d=zohomail.com; s=zohoarc; b=gK4Svqq8GyUb/wvZV5ILBkvOeEAKkfYGV6azzJYw6meErmu6c9bRNgvQwqyQaVsIUVyLfLX2jrgWy1UlchDLC8Tv7CpBBVi/nemIP7Ug1aenbfdRERyyRilVW7Vn+rg+jYt4Tl6ltqgGXfox0y2mxi3YCO17dB2vfo3MUeJMDro= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445019; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=PEet8fcpJ7p41p5X98UE1t3J4pyXZ7NQqpPgThPj32c=; b=E+HLri3EDbGaXr6RIbHh1M8sBB/F8/FEteOzmk7oIIbU5Om1QWp2cBQ49eC8Sam9H0fK3zGbkHxTkTRtHK+Ja2bDxm9ciYsoBlEl2k7HClC8rbsZP9ckb/nM6E4I7A1a/xvZx9OOcTQrQ70vDyXb7O3AupeJHjfWOaQMt2o/hZY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792445019842265.78416205875203; Mon, 19 Oct 2026 14:23:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIuni-0001lV-A1; Mon, 19 Oct 2026 17:21:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunT-0001hw-Ln for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:32 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunQ-0005jA-FG for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:30 -0400 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJK0Jo501089 for ; Mon, 19 Oct 2026 21:21:27 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf3fbaqc-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:26 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ab1e771632so80213a91.1 for ; Mon, 19 Oct 2026 14:21:26 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=PEet8fcpJ7p 41p5X98UE1t3J4pyXZ7NQqpPgThPj32c=; b=i+aTDN76xKdlf3O2eW1+cb826XI +MqJ9erveCtw2NOqUfD2AXSd1BBuEvs+iVGa6anZkRDXjhhTVu02l3srRzOeBGp1 VynnM+GkIoKz0wG0hf1bEu29fOH1mYjfxLpY7Y719oonB+vcUgtKb1stTnLxoYZ2 dZTu/1YWGOr+j5A/UJxpLpkKlB5u1l6aoVeCFdCC/wVIzcCwdCCyRgRwrzgQ79/J PnUhR0uWvpBXdKcu3VU4B5dOuNIGqVyHid4RZvaYPpgb31s6juOP5rkrkMIqmyV+ RaQ2XCgwLF84ZPL+q+k1T6ipXzKfwjwb/tD2uM1QGUzvY2VShogAY2M0PTQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444886; x=1793049686; 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:content-type; bh=PEet8fcpJ7p41p5X98UE1t3J4pyXZ7NQqpPgThPj32c=; b=E/FI2C1UreUs8AEKhYCvq44zJMwFFIhXzrRAUxgBkVJ2vc4ONSd8QQT0xu6B6ElY00 bw3ftXrRfdkZMWNsTkpDuw41RS1PNeZ3sWqFOvwl6fbGAAY/EkKMLehKxwn9Xvz/tFQb n0oqnxm/ceb2dqw3/oLIrPm9UH1OBAEEEk8E70G3l9i1a96wo7P1oJI+QPAi6l8nh4uw weC8CkASRvZqw1HERUA/7+/yzgD3FvUAWShj3N7Me+F+69PlGeDcOPbk/Bq38zBkdHPI tVgkx/Rb0x8rdj+cZFSnrlmqkvWrC/lQkz9JyGqGs7JDU4AbK+qlkxxr26dWWoyGkL/L 22vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444886; x=1793049686; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=PEet8fcpJ7p41p5X98UE1t3J4pyXZ7NQqpPgThPj32c=; b=wb5KdxkgHja8tncH0a2hb6AOFdimhBahYRJKaFbiK/kivYLi2QHNX/ZqGU1apE4KiN kjhIJ719BZWM2lAWHIWkkR7xFda1WhZSMhfUda+COFg7YoIjx1kGf6QJTac2ZhyRQ4Sa 5fJlhT3OnQ2Zj2FbLfGxPZPmNN7oiGurILPNnPjXZwTHVw9N2kTBJmY+SyZltDAEEwks cZtUC+ogCx78KyetH9seKkqxCK9+WMVVtzFIwCUsGaUqxa07xXsaFqqQgwEgcd04cGWs cIQTyeHmLFzUNWZhaOzmSSZrSh4i3OJlP/SOE4T5Pvq8KVs7YQYRfvwGU9zNDPH34JoY sJdQ== X-Gm-Message-State: AFq9FYKYACJzdV7P895SbQUdiY6eURzEGgC4qfqYCeyoLc7oeh1rJlDv gOSH66KQQr1oUqLPQA5plIF9A6rU1zM1o3uiZ9pPu32QzsSjkeGo9rMSaINJ42uBk2/qxoUAMMH SIV9JNfq9qWNkfwr9MPMRBLi1CuGszjEIohKEbC06hJ/HWiHhkKIovdTc4Xe3Ej1DJA== X-Gm-Gg: AYBFou3A/smgNe6JqG0zh4QnKxZu2OnJladtrjHjwKmGBUuz59WYvYkauyHlTTalV8L Jm82nAIribHYr5OT8YhcN+/ca1EC0lPLLpr+g9ZWVApg/Sa+kZVYcMc/0FoPplEn2t1nVhuOXKX +FEF1nwGkbX6bdjzsajZYMSXRWqw5da//5fNG3ZsePTnU73IbHBpTtoyMqjaJfAOvEpjKjyiB53 W/OK7Q3zjeFGirAk0Q0CQPbUK/S3OarAFVM2aP/dMuRl9B7ONTZnQjWzR+HgzdB9wwOYN6EJwHD b1dGnlQ3rSMhDxgfgJ1fnw4PtwuGdcLgwGQtT9lDF88o9NZICIQtwwauz9GMJ533XW2fyCAxclr oUuXOllKLUtSG/HJeHg0xn9LqAmuinHjgMkablrvagpFRekPvTvwUZ8f5la8DC6Y= X-Received: by 2002:a17:90b:3ec8:b0:3a0:eec6:b065 with SMTP id 98e67ed59e1d1-3ad64ba5d2emr187647a91.13.1792444886178; Mon, 19 Oct 2026 14:21:26 -0700 (PDT) X-Received: by 2002:a17:90b:3ec8:b0:3a0:eec6:b065 with SMTP id 98e67ed59e1d1-3ad64ba5d2emr187637a91.13.1792444885728; Mon, 19 Oct 2026 14:21:25 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 23/26] target/microblaze: remove explicit target specific prefix Date: Mon, 19 Oct 2026 21:20:42 +0000 Message-ID: <20261019212046.149572-24-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: rOAw_yJa-anMDz8rUUHwh1D46-78Cuqw X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX9y3uj92+GYZX 8xMYoC1qnhld+WfkJyBCENVFX+Rf4FIRVRNoUPF1s22dCD6DbW4xql56I/jlrMC4dgN8BLPNDxQ MghWMOYmxg9y3fWAHMOtWMIoBXfg1OJt6zNrExyV06qQZ0SaYOL58+ZiVnGsO8H0wPc09b8ONWI yNuDdX9u+RjF6eQYO8vgKiczKiDCEkkopLkE1CU/Ll5RSuarw7LuI/IkGaPli0spABpOJY4lljg EkIFW18kibjf341qPX0SFclzZrgdKLZS/32AISPL58x0dsypyBh7C+SsTfV7I+g5TlpWLRTKp9T v61hNRK2b047NaNDSmhkn8WGWl/J9/D+XK7qTx/XruHjegYIJbPGidB9s3nuTSNUtArTMWvsHWu 6Pz13yMJmN0mkdoKwandUJwfyImRHxmlhLbH+bQkmPlmgCTwGLih7A8YxzY7SxD1AAV++fnX55I fUUhCKlhjSCzYgwTbrw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX5wDbRhLAHeIY 1P9PoiqS9B7egJYMV0FjTfDk+aEiqPfu6OFqDtZHNT1i5VT3JC+GCTP0deeDs/0UXzPRA1Lxrdm G6X/C/tXmtCqUHH4AGxcdp08rWg6EQ0= X-Proofpoint-GUID: rOAw_yJa-anMDz8rUUHwh1D46-78Cuqw X-Authority-Analysis: v=2.4 cv=OaANnRTY c=1 sm=1 tr=0 ts=6ad689d6 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=xJBkFjxltbiK57tzlAwA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 bulkscore=0 adultscore=0 clxscore=1015 malwarescore=0 suspectscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445021142158500 Content-Type: text/plain; charset="utf-8" Now that we have a generic mechanism to prefix all helpers, we can undo the recent changes that fixed conflicts between targets in multi-target set. This reverts commit 4da3423973e8faa544744777f629ac82dedc0869 "target/microblaze: prefix helper conflicting with other arch" Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/microblaze/helper.h | 10 +++++----- target/microblaze/op_helper.c | 10 +++++----- target/microblaze/translate.c | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/target/microblaze/helper.h b/target/microblaze/helper.h index 63a94ac4bbc..1429c1727ef 100644 --- a/target/microblaze/helper.h +++ b/target/microblaze/helper.h @@ -1,15 +1,15 @@ -DEF_HELPER_FLAGS_2(microblaze_raise_exception, TCG_CALL_NO_WG, noreturn, e= nv, i32) +DEF_HELPER_FLAGS_2(raise_exception, TCG_CALL_NO_WG, noreturn, env, i32) =20 DEF_HELPER_FLAGS_3(divs, TCG_CALL_NO_WG, i32, env, i32, i32) DEF_HELPER_FLAGS_3(divu, TCG_CALL_NO_WG, i32, env, i32, i32) =20 -DEF_HELPER_FLAGS_3(microblaze_fadd, TCG_CALL_NO_WG, i32, env, i32, i32) +DEF_HELPER_FLAGS_3(fadd, TCG_CALL_NO_WG, i32, env, i32, i32) DEF_HELPER_FLAGS_3(frsub, TCG_CALL_NO_WG, i32, env, i32, i32) -DEF_HELPER_FLAGS_3(microblaze_fmul, TCG_CALL_NO_WG, i32, env, i32, i32) -DEF_HELPER_FLAGS_3(microblaze_fdiv, TCG_CALL_NO_WG, i32, env, i32, i32) +DEF_HELPER_FLAGS_3(fmul, TCG_CALL_NO_WG, i32, env, i32, i32) +DEF_HELPER_FLAGS_3(fdiv, TCG_CALL_NO_WG, i32, env, i32, i32) DEF_HELPER_FLAGS_2(flt, TCG_CALL_NO_WG, i32, env, i32) DEF_HELPER_FLAGS_2(fint, TCG_CALL_NO_WG, i32, env, i32) -DEF_HELPER_FLAGS_2(microblaze_fsqrt, TCG_CALL_NO_WG, i32, env, i32) +DEF_HELPER_FLAGS_2(fsqrt, TCG_CALL_NO_WG, i32, env, i32) =20 DEF_HELPER_FLAGS_3(fcmp_un, TCG_CALL_NO_WG, i32, env, i32, i32) DEF_HELPER_FLAGS_3(fcmp_lt, TCG_CALL_NO_WG, i32, env, i32, i32) diff --git a/target/microblaze/op_helper.c b/target/microblaze/op_helper.c index c53103ecd79..eb244faa7ee 100644 --- a/target/microblaze/op_helper.c +++ b/target/microblaze/op_helper.c @@ -62,7 +62,7 @@ uint32_t HELPER(get)(uint32_t id, uint32_t ctrl) return 0xdead0000 | id; } =20 -void HELPER(microblaze_raise_exception)(CPUMBState *env, uint32_t index) +void HELPER(raise_exception)(CPUMBState *env, uint32_t index) { CPUState *cs =3D env_cpu(env); =20 @@ -154,7 +154,7 @@ static void update_fpu_flags(CPUMBState *env, int flags= , uintptr_t ra) } } =20 -uint32_t HELPER(microblaze_fadd)(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(fadd)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fd, fa, fb; int flags; @@ -183,7 +183,7 @@ uint32_t HELPER(frsub)(CPUMBState *env, uint32_t a, uin= t32_t b) return fd.l; } =20 -uint32_t HELPER(microblaze_fmul)(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(fmul)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fd, fa, fb; int flags; @@ -198,7 +198,7 @@ uint32_t HELPER(microblaze_fmul)(CPUMBState *env, uint3= 2_t a, uint32_t b) return fd.l; } =20 -uint32_t HELPER(microblaze_fdiv)(CPUMBState *env, uint32_t a, uint32_t b) +uint32_t HELPER(fdiv)(CPUMBState *env, uint32_t a, uint32_t b) { CPU_FloatU fd, fa, fb; int flags; @@ -352,7 +352,7 @@ uint32_t HELPER(fint)(CPUMBState *env, uint32_t a) return r; } =20 -uint32_t HELPER(microblaze_fsqrt)(CPUMBState *env, uint32_t a) +uint32_t HELPER(fsqrt)(CPUMBState *env, uint32_t a) { CPU_FloatU fd, fa; int flags; diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 16794059a22..8b219afb5dd 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -100,7 +100,7 @@ static void t_sync_flags(DisasContext *dc) =20 static void gen_raise_exception(DisasContext *dc, uint32_t index) { - gen_helper_microblaze_raise_exception(tcg_env, tcg_constant_i32(index)= ); + gen_helper_raise_exception(tcg_env, tcg_constant_i32(index)); dc->base.is_jmp =3D DISAS_NORETURN; } =20 @@ -421,10 +421,10 @@ static void gen_cmpu(TCGv_i32 out, TCGv_i32 ina, TCGv= _i32 inb) DO_TYPEA(cmp, false, gen_cmp) DO_TYPEA(cmpu, false, gen_cmpu) =20 -ENV_WRAPPER3(gen_fadd, gen_helper_microblaze_fadd) +ENV_WRAPPER3(gen_fadd, gen_helper_fadd) ENV_WRAPPER3(gen_frsub, gen_helper_frsub) -ENV_WRAPPER3(gen_fmul, gen_helper_microblaze_fmul) -ENV_WRAPPER3(gen_fdiv, gen_helper_microblaze_fdiv) +ENV_WRAPPER3(gen_fmul, gen_helper_fmul) +ENV_WRAPPER3(gen_fdiv, gen_helper_fdiv) ENV_WRAPPER3(gen_fcmp_un, gen_helper_fcmp_un) ENV_WRAPPER3(gen_fcmp_lt, gen_helper_fcmp_lt) ENV_WRAPPER3(gen_fcmp_eq, gen_helper_fcmp_eq) @@ -447,7 +447,7 @@ DO_TYPEA_CFG(fcmp_ge, use_fpu, true, gen_fcmp_ge) =20 ENV_WRAPPER2(gen_flt, gen_helper_flt) ENV_WRAPPER2(gen_fint, gen_helper_fint) -ENV_WRAPPER2(gen_fsqrt, gen_helper_microblaze_fsqrt) +ENV_WRAPPER2(gen_fsqrt, gen_helper_fsqrt) =20 DO_TYPEA0_CFG(flt, use_fpu >=3D 2, true, gen_flt) DO_TYPEA0_CFG(fint, use_fpu >=3D 2, true, gen_fint) --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445064; cv=none; d=zohomail.com; s=zohoarc; b=V+I2w3EVfgFkPsLnRJGIeBVqrx/KtoVrw3WoKXfVMcudCfRsBT/41cL1ZJogoHvhfjcUv/NmUNI3Q+e+mNizchqtwC6WYjvbsJhR7yHmfS0ORPgCNMH6qxy4JWsZoTbgCMjaNldBwPLn0+cvPT7Xs8BXoSe7k0WQMColzhxTAzc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445064; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=OeZZsauEYakEG5v7Qjzqb13jLrlbFapj4d+QgIInzw8=; b=mVzXsiLMK5WddypcTA6Cz6IuTNyCA8j1Pwr2VkXxGqrxZAYDy+jJiH9X2paJmUu/4ds0VUcDkRLP5EcGfHgUPEo55S6B4YtYqIm8uqpmJ+efVI+b/FHgTeNZ5/Z491iQWWTObJGIxJyH8pxmEt6w6jztziOmucw/CELanKmZ+Rc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179244506423486.28182721926203; Mon, 19 Oct 2026 14:24:24 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunq-0001n8-2f; Mon, 19 Oct 2026 17:21:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunW-0001iK-6s for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:35 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunR-0005jN-Jo for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:33 -0400 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJKFCR550297 for ; Mon, 19 Oct 2026 21:21:28 GMT Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf47kc6c-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:28 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3ad436a9d00so1185122a91.0 for ; Mon, 19 Oct 2026 14:21:28 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=OeZZsauEYak EG5v7Qjzqb13jLrlbFapj4d+QgIInzw8=; b=AKqWzVpc1U8auhOcfE3gBHJfZ/c C4JLTJrcUrUemLqRyLANsOcsl7PwgZZEGnKMg2zC4DbDwZEE+qAE2hfj38TuNil/ g0Oz/cwJG8fpj1CsWXpt5midv7QuFpb+v3urfJidC4Hz0V5hvuMco69mp76lJ7zZ lwWv+gY4ykn11+9fse15J+QUnwINmUxzlHjoOzLI9CdRZjJ3mrwu+IXutQPRqFXL 9US6epfWCbAxL1ftkgNs5FTnajgKd6GO/bZosvw0Nt6UMCO3/9l1OgBfjoqdho3l JHzl0LjO/zwWd+dsVWsrCXZ9OsfSPwhglbs5pgtd/NHOdSAxCjLbihBQ14g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444888; x=1793049688; 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:content-type; bh=OeZZsauEYakEG5v7Qjzqb13jLrlbFapj4d+QgIInzw8=; b=DIP4uJsr1IfPyw8dy3qlpB+spf7RIi9rjz93T6/KwkRFkRMfaNb4hd7zob8IC0Y1bK KYx1UoUhSVjdgvFZHXib7/lXboViMZA+bpWOx9/n6hadye9+6eMRafc8BoGE9AqAgvvU Ha4h9N6TyfLKMR5hGRy5eE3Xf2BgBnM7fuR2F8QBwGoWuqKwQ9Rr59V0se3lp3AzBNRQ dcrjnMjNDdPuTApD4wZp/DZZT7aJg8xAEAVdMM2/sLHnzvpI5UNf/CAV3E2XVormhGBN JQTXOEHWYShyP141Mz+wOCxP950zqTGriCjAv8/eBKIJd7d2VnC8MnYrfcw6yVOizrPI NgLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444888; x=1793049688; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=OeZZsauEYakEG5v7Qjzqb13jLrlbFapj4d+QgIInzw8=; b=E5K9ZTp2Mn3V/vHD3mgxDE2Q6Aw+8EY2LeeuRZubL77pZ1az6SSH8VTAZNjRi6oUCY pjYI9z6iw3wQJ8Sd5043LB32Fy1kSmcS9QSXN5CyqrvPSDmsO2nVb2i9F7h4hxBjB2h/ an0Es/JQPk/It7395OQVyQVOz+OwJT8ei1tgnTtv9CGmHEBbPag+vu5sDlWZTv3Xc4a/ hGEseAgmPX4GGe5rWE4unwgdxySQYcLQEn/BBi24SgUhccbCIeAtfyVHgmwZs62BkLCb 4zjMGZo9bm68PcT9N9HHuRKu/3tymPk4+Wr28bzJXXz92iOigzB7ls0azPKwgmmsOIwX 5GZQ== X-Gm-Message-State: AFq9FYI5xDAqc1QH6AQIfL0t3aZlkZADo44x3PrUakZYZfTWiA2Oh40E XPVgVssclnt2035wxXX7MEiUN0j3bqvSpR34c7xcfMYhSJpeZcdw+jfJll2Sv9y5IbBUTx5jtB8 /m0FFea8J4Woxx3lVN7miA3pyKDwvzOd+57xcofTAhKzEl/8NzSf9wqlsK7P+RrxVIA== X-Gm-Gg: AYBFou35C/QFpPGLXm/bRjaNomYvANgKPz1OIgzOgj3guwTovw4oxqvVLeyt47sNj6u vnf1jOrLGT56dvKWDyyF+tfJCJKaP5DTFCdIfF/pmV55eoC+LvZG30JihhY42a7Pt1+1obUiPD8 ziEgkVQrRZyDqKMA0Oydfkp9zGLqGE7FzAfsLi2nGo6uGnqArf+nzloPY0lIDMGVdwZC7Hyp8ki 26nEAb4ap6ytDaX86n2/e+XXZTpRABKbXmcZdxJqrGe7A9oooYnkqC1uFyGFtBO7vIo/lPWnA77 PFMqJKyGE3ned4xAtiKg23wOGXrcPRNYqDMQr00aGHpkp0/JgSw34s3WnYljqMS9QMERMhseYui 9nDAQN6BtFdD4sPU8XYho6zw3g66eOOmtHgKWVr1NMWcvhBKG97DYxyXnHT9bciU= X-Received: by 2002:a17:90b:2d86:b0:3ab:33b6:2c27 with SMTP id 98e67ed59e1d1-3aceefbf369mr7070432a91.23.1792444887558; Mon, 19 Oct 2026 14:21:27 -0700 (PDT) X-Received: by 2002:a17:90b:2d86:b0:3ab:33b6:2c27 with SMTP id 98e67ed59e1d1-3aceefbf369mr7070416a91.23.1792444887094; Mon, 19 Oct 2026 14:21:27 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 24/26] target/or1k: remove explicit target specific prefix Date: Mon, 19 Oct 2026 21:20:43 +0000 Message-ID: <20261019212046.149572-25-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: -jna5YhTQkY_eiZ5wGPPanQpiqdROA3Z X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX6Aq1wGVaY717 juqQNdEYWKc0rz0mA4tx8yOtRSK+7VQwPtzyGnZ7lBPkt7SWNwxz45nYNhjJ8cYZbopzY6OGbS7 GbMDUsmkp4HeerdkqYtO/vwkl4dI8c7eHkIYQsXZXxrBMOMKtnS+i5K3ZJZFfyFnwNS5fNhV4xS Cm+JNF1O6KPrfyjdNJY/s262JygOvOJsjkiizYXUPXBOPHnYVyUeiJGRR2Y1slyYLI9jBu1F37y Zgm5z4EFdHlXTWtbju/t2yz9dD8Zr5UBaHemY4Q1voTU+UwsS3sN/UzpQmTgcfakSFOMZcl0nId AItZqbHow46+gZQxWD91WnuIyJN+NyFpa9B9Rj0Zwta570HU9k4W0WPZa0iDo9mCoM4ovgJ8yhV WqySJqdT8chxUPTOdERhJ2yN0zPm49lkmfpiC2shn8mVxyLfUqs9Li22sKJlcCOmca1jPRGBF+G +tqTJKfdIS1+TbUpUTg== X-Proofpoint-GUID: -jna5YhTQkY_eiZ5wGPPanQpiqdROA3Z X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX0ZFKdAX1FHGM VQOrQGx8XE9J9Y41pcpKYGydKNO1d4Dyo18yxHZfqeGCXxB8dfKBZG7en2lLB8jw7vcEIuUXd0l 1mAhKfS4atOB7kVXXnXUJ3LcDi7zykw= X-Authority-Analysis: v=2.4 cv=cLt1IVeN c=1 sm=1 tr=0 ts=6ad689d8 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=s0g2yuqVZqAqKHCRF2MA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 phishscore=0 spamscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445065903158500 Content-Type: text/plain; charset="utf-8" Now that we have a generic mechanism to prefix all helpers, we can undo the recent changes that fixed conflicts between targets in multi-target set. This reverts commit f24061e40d2978a51bf15d7c6fcd7576c709c099 "target/or1k: prefix symbols conflicting with other arch" Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/or1k/helper.h | 2 +- target/or1k/interrupt_helper.c | 2 +- target/or1k/translate.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target/or1k/helper.h b/target/or1k/helper.h index 9f74bed93af..e0a8d402271 100644 --- a/target/or1k/helper.h +++ b/target/or1k/helper.h @@ -59,7 +59,7 @@ FOP_CMP(ult) #undef FOP_CMP =20 /* interrupt */ -DEF_HELPER_FLAGS_1(or1k_rfe, 0, void, env) +DEF_HELPER_FLAGS_1(rfe, 0, void, env) =20 /* sys */ DEF_HELPER_FLAGS_3(mtspr, 0, void, env, i32, i32) diff --git a/target/or1k/interrupt_helper.c b/target/or1k/interrupt_helper.c index 91dd2227442..1553ebc71b0 100644 --- a/target/or1k/interrupt_helper.c +++ b/target/or1k/interrupt_helper.c @@ -22,7 +22,7 @@ #include "cpu.h" #include "exec/helper-proto.h" =20 -void HELPER(or1k_rfe)(CPUOpenRISCState *env) +void HELPER(rfe)(CPUOpenRISCState *env) { env->pc =3D env->epcr; env->lock_addr =3D -1; diff --git a/target/or1k/translate.c b/target/or1k/translate.c index 6972dc7d630..e00ef45b9b7 100644 --- a/target/or1k/translate.c +++ b/target/or1k/translate.c @@ -1110,7 +1110,7 @@ static bool trans_l_rfe(DisasContext *dc, arg_l_rfe *= a) if (is_user(dc)) { gen_illegal_exception(dc); } else { - gen_helper_or1k_rfe(tcg_env); + gen_helper_rfe(tcg_env); dc->base.is_jmp =3D DISAS_EXIT; } return true; --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792445052; cv=none; d=zohomail.com; s=zohoarc; b=Q4WK1s+OtG388u10OBfVaQZYrD/wndUtck4x7xsu1jwhQdETF3Rb4B8PBeLigEZxPlha9aNKDB7iPq0AA4yPVNKh7GhXb0tZIIyZavURJAMZtM8lQvYnEHwVU0XSzdT5K2TCXtWaLYRIxlf5zWRQQSGSiklRPb8t9vR6sANoArw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792445052; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ipf+aq3F7C6N+LCBCaFvJBvcalsrKT5o5FtaKJXNHKA=; b=Lf0QPV+avIhkA8lBtmxajJkqiK6c0U2le40qJ9DAzrWqgG5a4z2EeFGycjzTb1ap2e/Nscyl4sWGEDs49GzHDDv3Vls5Iijtq/AaAhvUGozYXxKSAUPjDvwJugrfw53mQqtsE1fp/7H8ck0PduojSIkT0NZaFz2ftb80tzHeZIY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792445052372641.6394544951403; Mon, 19 Oct 2026 14:24:12 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunn-0001md-2W; Mon, 19 Oct 2026 17:21:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunf-0001jg-3Z for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:43 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIund-0005jg-EP for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:42 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJKApi3475832 for ; Mon, 19 Oct 2026 21:21:29 GMT Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdqtf8syu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:29 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3aaee1fc104so3911119a91.1 for ; Mon, 19 Oct 2026 14:21:29 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=ipf+aq3F7C6 N+LCBCaFvJBvcalsrKT5o5FtaKJXNHKA=; b=LnJOnbvNB35fOltVp6YioNPhlQV TAPBT1gdPheTW15UOxWBawS2fwWBA1pqBEtr0Kw+SyZAlR9pRZ/z1GIydZs7xPTA l0UWpvMxcHdvBgTxBWiYPmgDfmBMLVgcOLqjHXENlSFShZPuMeYX3nIjGVadZzLK DxJz2oUGN03ihq0p3l+UUvjkjQfQmh0LTOznQRwyr+bGlbPOSfpgUTQW6zpLwUaq g4X2I080DHCgL7F1Fw14XLYf4MvsocHR6VnOkOCA3mB3EmRzpW/oqVJHBVUPUVoo nG1hxQwo4Hk0odnR1hB2QyjSMHDTGuEQBgdSnvTbRudu/HUVQ0p/ZV5GVdA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444889; x=1793049689; 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:content-type; bh=ipf+aq3F7C6N+LCBCaFvJBvcalsrKT5o5FtaKJXNHKA=; b=PulEvbAyZms8ZFQnKWY+8OoSJeUL3G1bxTePN7jdSvd7DAvL77gCta95B32zwToJu+ /7q0wd5ZN8qu3ITARqIXAm2DIEbfZL9S3G0fyB+vn08d7t0P7ubfOI6cjaLd+x1cSFVH t0mHZ3DnZFdf7hya7MAvD9CPAwx1ktJTmyhbGtptTbAETWuIldbi5SwpWI0r/ibqiAni edE6Ki3DnxedKHiykbKLyQzMUyyLK7WizALWLwQ7LxRNalCAECiVzNTgC5dRQu4aiobc LE5dLtNe9BmQT3s8CxoejubENSc4ioQlx6CmCaKTbuaN/TyDElW6VI0N9QhKTDr8rSdf iBQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444889; x=1793049689; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=ipf+aq3F7C6N+LCBCaFvJBvcalsrKT5o5FtaKJXNHKA=; b=Nx1hRAn+VlQo13JJi0vA5qnREZwEgH0et460orwjfjeDs6tm4h+Ul0FboLuhdKuzCe yFzjERGh6Y4IUU3NNBglK5aIYFATqxJRtPW7isUqjpCDcyjloapCDu5pGi9jDrNHzV1g 0zzR5liUeNSZnbvKlmfQti+Mjt+sjl71ABryEDa7uNgIvhxyOr+tD645PX2tskiS1FrE w8lbm5EVkjL4zDhx1KyQr4g7oJ1qrVFcqjpDUT6BdX0kRQHaU7NSnqEJa5SQrxPQedFH UsuFtYURq8x8PM3JcydaKvw7gajL1ATzuL/O8gHV7j6W/C1HErUeSGp0k8+yBSUQsmQt Hz4w== X-Gm-Message-State: AFq9FYI5vVsJuYCrBDXfnYCNctAxkvwEwjCrp2ywmCek9cX87Nikzoju EiM9k/xATlmv2l55Ruc2RA4x0NHu+oV0ssLWC26COc/WGQp6Vrn+bmKAdVYQQpzzffHZlvFuivQ a2vZTkxg2YjZK72uS05Eqb+LIXyyprz2bKK9kdSGdwZDAQDJhXsSefbUOZUZJpwmvag== X-Gm-Gg: AYBFou3OkADO29GGMkyC+mQ4WzkGnJJoaw0s1I9KdCIwzIc2efjOLSeNGdYS25elbgH 7biB0REC6IQtNgSYPxCbRTU14TaYmSWbijOBEznIGhfy7mLP08CoKvtj1UaMYjPYrMtLhwDyAII k9usm8sDu58GlfrJrFR9DyKWOGNHNUerv9vt3fsnHpjFmbFz0/A16RGB7NK1mwA+UrS3XL3eAaC smKw1am9ISi9XTE8BOiPcOH1zBPqo0l5BakOVmhPGE5ZVrkGKytG91KOUyoo7lP0XnoEwP2/Wsw E6lpmXrD0b4WufjZKHHiX7tPc2ksJAVQvsrOxl4lfLoSHY0n7s2sRbV/0vfRiI4MOp3m4wJjsSC OKcaOA+B+hg2YnORLz/Kq1EOwYmW3jijUJwq768h7cQScFseotg8Y2IANwyRUEO0= X-Received: by 2002:a17:90b:2646:b0:3ac:9d14:fe9f with SMTP id 98e67ed59e1d1-3acef29e804mr7216151a91.31.1792444888611; Mon, 19 Oct 2026 14:21:28 -0700 (PDT) X-Received: by 2002:a17:90b:2646:b0:3ac:9d14:fe9f with SMTP id 98e67ed59e1d1-3acef29e804mr7216138a91.31.1792444888102; Mon, 19 Oct 2026 14:21:28 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 25/26] target/rx: remove explicit target specific prefix Date: Mon, 19 Oct 2026 21:20:44 +0000 Message-ID: <20261019212046.149572-26-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=SpEFe/O0 c=1 sm=1 tr=0 ts=6ad689d9 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=xJBkFjxltbiK57tzlAwA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX5B1bqWChZzvO 9bALFRzP9mq9XM6E/ON8jxxLXcVg5nLE+iEB0+cCDn0CmSu0ummEAeIumB4npEg6q0q6Hje8gmJ Wd27sFAH2VhuJzCq4zPAfUH3FbQWmikS6DpQ24kEpoK/Z5h2iIpk8YXyPK3ARqFKReTw/EfOZau dFrBtYat0Mjlsiof0kfqML24EhJudFMFSLRtNmWWLC3UHhLdy9s37prImBRC3KFf+Ul5FXUbumL y1Zfj4O96w+hpjaGVthxJtJZeRsP+DRct9WNxb83I0o3VoQ9YD9EoM5GtQnMhcRTUhEgNoSp4si 9uRdPYXAcMz9Ysm+FAhjUbhehz8rEwda1w0OSy4xJgb+ULZrmQjwY91fSXDEdYuN5spU5rYnwd/ ivXuueT1LatHQjVlgYf5s3ib0zOsH3spD+QVgs1sJOM2fgiwoL7DYm6Hz66O1tXM4s1jUKsOPuq poK0kxoewF28zuTU/Cg== X-Proofpoint-GUID: C9gPmV_kLgaaxpqzk1atnTLiJw54M9Xa X-Proofpoint-ORIG-GUID: C9gPmV_kLgaaxpqzk1atnTLiJw54M9Xa X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX6RRQfs5u7f06 PSf6NbsSynvsf7xCaxNap+syGyDhJ+IJ80IQoob8Lqrc+QmOghZr3vDBJp003j6Tnl+bpv1+OnX kDsjlv52tHwFW4hxj+pHGIa1twCSVRI= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 malwarescore=0 suspectscore=0 impostorscore=0 adultscore=0 priorityscore=1501 phishscore=0 clxscore=1015 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792445053682158500 Content-Type: text/plain; charset="utf-8" Now that we have a generic mechanism to prefix all helpers, we can undo the recent changes that fixed conflicts between targets in multi-target set. This reverts commit 5490e0e4a5dcada1aabfc7df772ddee54f9022c5 "target/rx: prefix helpers conflicting with other arch" Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/rx/helper.h | 12 ++++++------ target/rx/op_helper.c | 12 ++++++------ target/rx/translate.c | 14 +++++++------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/target/rx/helper.h b/target/rx/helper.h index b1ef843be1e..8cc38b0cb71 100644 --- a/target/rx/helper.h +++ b/target/rx/helper.h @@ -4,11 +4,11 @@ DEF_HELPER_1(raise_privilege_violation, noreturn, env) DEF_HELPER_1(wait, noreturn, env) DEF_HELPER_2(rxint, noreturn, env, i32) DEF_HELPER_1(rxbrk, noreturn, env) -DEF_HELPER_3(rx_fadd, f32, env, f32, f32) -DEF_HELPER_3(rx_fsub, f32, env, f32, f32) -DEF_HELPER_3(rx_fmul, f32, env, f32, f32) -DEF_HELPER_3(rx_fdiv, f32, env, f32, f32) -DEF_HELPER_3(rx_fcmp, void, env, f32, f32) +DEF_HELPER_3(fadd, f32, env, f32, f32) +DEF_HELPER_3(fsub, f32, env, f32, f32) +DEF_HELPER_3(fmul, f32, env, f32, f32) +DEF_HELPER_3(fdiv, f32, env, f32, f32) +DEF_HELPER_3(fcmp, void, env, f32, f32) DEF_HELPER_2(ftoi, i32, env, f32) DEF_HELPER_2(round, i32, env, f32) DEF_HELPER_2(itof, f32, env, i32) @@ -18,7 +18,7 @@ DEF_HELPER_2(set_psw_rte, void, env, i32) DEF_HELPER_2(set_psw, void, env, i32) DEF_HELPER_1(pack_psw, i32, env) DEF_HELPER_3(div, i32, env, i32, i32) -DEF_HELPER_3(rx_divu, i32, env, i32, i32) +DEF_HELPER_3(divu, i32, env, i32, i32) DEF_HELPER_1(scmpu, void, env) DEF_HELPER_1(smovu, void, env) DEF_HELPER_1(smovf, void, env) diff --git a/target/rx/op_helper.c b/target/rx/op_helper.c index 3c64014db6d..60976aa965e 100644 --- a/target/rx/op_helper.c +++ b/target/rx/op_helper.c @@ -147,12 +147,12 @@ void HELPER(set_fpsw)(CPURXState *env, uint32_t val) return ret; \ } =20 -FLOATOP(rx_fadd, float32_add) -FLOATOP(rx_fsub, float32_sub) -FLOATOP(rx_fmul, float32_mul) -FLOATOP(rx_fdiv, float32_div) +FLOATOP(fadd, float32_add) +FLOATOP(fsub, float32_sub) +FLOATOP(fmul, float32_mul) +FLOATOP(fdiv, float32_div) =20 -void HELPER(rx_fcmp)(CPURXState *env, float32 t0, float32 t1) +void HELPER(fcmp)(CPURXState *env, float32 t0, float32 t1) { int st; st =3D float32_compare(t0, t1, &env->fp_status); @@ -407,7 +407,7 @@ uint32_t HELPER(div)(CPURXState *env, uint32_t num, uin= t32_t den) return ret; } =20 -uint32_t HELPER(rx_divu)(CPURXState *env, uint32_t num, uint32_t den) +uint32_t HELPER(divu)(CPURXState *env, uint32_t num, uint32_t den) { uint32_t ret =3D num; if (den !=3D 0) { diff --git a/target/rx/translate.c b/target/rx/translate.c index bd445bc0634..132d495710c 100644 --- a/target/rx/translate.c +++ b/target/rx/translate.c @@ -1252,7 +1252,7 @@ static void rx_div(TCGv_i32 ret, TCGv_i32 arg1, TCGv_= i32 arg2) =20 static void rx_divu(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2) { - gen_helper_rx_divu(ret, tcg_env, arg1, arg2); + gen_helper_divu(ret, tcg_env, arg1, arg2); } =20 /* div #imm, rd */ @@ -1864,16 +1864,16 @@ static bool trans_SATR(DisasContext *ctx, arg_SATR = *a) return true; \ } =20 -FOP(FADD, rx_fadd) -FOP(FSUB, rx_fsub) -FOP(FMUL, rx_fmul) -FOP(FDIV, rx_fdiv) +FOP(FADD, fadd) +FOP(FSUB, fsub) +FOP(FMUL, fmul) +FOP(FDIV, fdiv) =20 /* fcmp #imm, rd */ static bool trans_FCMP_ir(DisasContext *ctx, arg_FCMP_ir * a) { TCGv_i32 imm =3D tcg_constant_i32(li(ctx, 0)); - gen_helper_rx_fcmp(tcg_env, cpu_regs[a->rd], imm); + gen_helper_fcmp(tcg_env, cpu_regs[a->rd], imm); return true; } =20 @@ -1884,7 +1884,7 @@ static bool trans_FCMP_mr(DisasContext *ctx, arg_FCMP= _mr *a) TCGv_i32 val, mem; mem =3D tcg_temp_new_i32(); val =3D rx_load_source(ctx, mem, a->ld, MO_32, a->rs); - gen_helper_rx_fcmp(tcg_env, cpu_regs[a->rd], val); + gen_helper_fcmp(tcg_env, cpu_regs[a->rd], val); return true; } =20 --=20 2.43.0 From nobody Mon Nov 23 04:44:18 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792444974; cv=none; d=zohomail.com; s=zohoarc; b=kgFN047EMt5txQwhKjZZ+XxPqfRsaEra4qW/FMJUd6a5zBdu8VTl7q9wuD1LPXwkEgP1vQZAG3BaIJM3lAzwb3gQ3I7cNl7uACxqP05k3BXuTPmb4gUFdO/5jOj1UrgaR7T3EqgoVDCHzZeSGzHRD976KbkrbSFmjbUeriqFC78= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792444974; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=o6twrwWrCbtM6CHNdAoCxuG7GiYkEzntfJw6u+B2yOw=; b=CoHqQG415ETINLRs01B277G0RtBB0bAxFA8/G4f331lc+/35jZePaJg886Do67e5t7SaEc2N1AtH6U5Q9E5MGGYGUEUdTX/NWO+POyrCiwI1XbPJC+j4sUNmuhQ1QJXJRF51SA77Y6U6PH1O+WlNgYGQI9hPebgTfwf1gprSusk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792444974350540.44346950611; Mon, 19 Oct 2026 14:22:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIunj-0001la-Ty; Mon, 19 Oct 2026 17:21:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunX-0001is-Rm for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:39 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIunV-0005jl-89 for qemu-devel@nongnu.org; Mon, 19 Oct 2026 17:21:35 -0400 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JJKMdJ2158065 for ; Mon, 19 Oct 2026 21:21:30 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hdf65kajp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 21:21:30 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3a46f0f158dso97911a91.1 for ; Mon, 19 Oct 2026 14:21:30 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ad60ec4457sm863243a91.6.2026.10.19.14.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 14:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=o6twrwWrCbt M6CHNdAoCxuG7GiYkEzntfJw6u+B2yOw=; b=jUW0bER7J6nZs2B+xFWzuAOGNMJ Ml8U1ltNGDMUr+DWrMA6r1cq8acPgc4yBI1uUIChzqnL+VJ54B4yIaAsxN+y4gp7 xgSRC5k6AEEuIm+IU1yJflB5d8lVimir+SfghlW9uQRImcJDwKn7DYAQxgRzQAJ+ 6c+GVWoStSP2lqQmhX4BbRp5ikU+OYiog/PM8vLEFLI2wuPGCsEoSujL7EIroMkB /Qw3Vaw5SSVKtS0+e/GC7K/C8Yqj2PZLdWNHZ2G3JAmxW4XKtQaaiOqDODZ6ncux klLPuVXzlfDaCLhhgqTcBIEZh8ZkDtQI3ki61M0q49Lp1xAkdhVuO4bo96g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792444890; x=1793049690; 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:content-type; bh=o6twrwWrCbtM6CHNdAoCxuG7GiYkEzntfJw6u+B2yOw=; b=Lgcvay8Rt/SExFfWhdv0bs2cjiYkCVxCCIxByJ7XsMHFC3/Br+9HNrWh7fQKhze3UM eH7qYtjJchwgmZeoCNkxxpYZSDSmU/yrc6+pDmxZDoiqa1+Zzd3b6JJ60mmdtjWPbG5o psxfLvclk5DQweo3kr6LhhGRlK/cEMrZiOtxpq56qmwxDCxOf3HKxfFW86MplQ2th8Dw FLlN+jyK10Yg7oDeP52Qco4hMdfv2LBxbDt47TGBxC3u+uFgAc39s19dOyZz62lI26zN XKwnXUJIsam4kn4Cr+M6DSZomT3Uy148ZF1Q3on1hfDNrdH7RxRd9fiud9J85FPWn5Em UQgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792444890; x=1793049690; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=o6twrwWrCbtM6CHNdAoCxuG7GiYkEzntfJw6u+B2yOw=; b=BbEZIaWnyGPVgBd2NNeR/xiHIrSeEHTLAkD9MY8ygpcNHlWiEmPE8OQLe0k6HhvO8O sOujzDNk24kBNDTcqsvGxoVLFfPuCM24tt3sMCwoV1uPCm3GCVO46RKihGmVPp+SK8EC sDSu/8fTJRNnMVO88RMaGuV16Z2D9R1Ln6S90m29XOxne7hWXnE32zuBTuTISGcfjlC8 Q2RPlk5KkGLLcMQLlik8g3EeWg6D3iHIfYXI75B1sSKB/xxFDEibA1ICdcRpDknQ06Wk f12qyy4sZ/GpCy38kPXjIId82QPhrepLoNM60dZE8Lh6I2LCTBvxY+NvI6KncDHQYBdx //vw== X-Gm-Message-State: AFq9FYKEUKRyGqn7jwrExyH24gyO5F4QQPGmoQkhf6D00T51pvRv1kdG t4K78U33cQ4PAiZnavtChMgVgSZNfDiatSBxRPg6xPKmvngDasV+5QOmv74Ovl4LSyHxsa4vEiy e+ssJb+qDUiSMU/22DJU2FUOTPiVJreq6IG5GtFeMfyeFGRZlgkVBViWeHzU1utAn0w== X-Gm-Gg: AYBFou3Lyc/fBi3ENooo3n2m9bTHF2DguJrnQ+n1ccOia6WoUbjVvx9tAwEf1eJ2OoQ XIMBXadRgvkiesh4fhvIzHZ2tfvXfzXkAl7Mrjr5NLffx3Euy77HWWN88IgoYvXVampvWLZNh9B OxTQFb8eKBf/XUq1f6sraw0I6+qDIXmhPlfgG33vkOXI40EAxFHaZCGBYu7XRvrnuuUjj3kReto sWyOoOAYmTt6+0Jn/gjZSTFtftORtz02w2E/U8VYOcsYQpL0uNwaUBOAcAnej8iiCjP6HqzAlxi kfzXiwzpG8Ov80MEKyaiIuBt9IbT6AeVUxuPhLYS8fquBRYkJnxT/wzZccdoRKSBWPc91IZvU5l Cw8U7VqdFgL51ay1pwZmyYGDHkukqXfUAA9efckYYNUsbvUq6rGbAtJdKaBQCLdI= X-Received: by 2002:a17:90b:560d:b0:3ab:b39f:41ca with SMTP id 98e67ed59e1d1-3ad64bd2235mr173633a91.31.1792444889965; Mon, 19 Oct 2026 14:21:29 -0700 (PDT) X-Received: by 2002:a17:90b:560d:b0:3ab:b39f:41ca with SMTP id 98e67ed59e1d1-3ad64bd2235mr173624a91.31.1792444889439; Mon, 19 Oct 2026 14:21:29 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Anton Johansson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Alistair Francis , Pierrick Bouvier Subject: [PATCH 26/26] target/tricore: remove explicit target specific prefix Date: Mon, 19 Oct 2026 21:20:45 +0000 Message-ID: <20261019212046.149572-27-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> References: <20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfX/AOFEPlqfTHH keEKspMiVQhZmREAM7T77MwsUPK/NPOg/3AtMNWpPvTZX9O545WH03LNLUirwRxsIEt57NFl34I DuYfDDKT8iFm2xvK6lUJ5K5X7RqFNwo= X-Proofpoint-ORIG-GUID: dRHSduy0EFsiq711LOfMNacaTzmOlvk9 X-Authority-Analysis: v=2.4 cv=Y5ptIReN c=1 sm=1 tr=0 ts=6ad689da cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=jgB6yt7H7Q370FkDtF8A:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA4NSBTYWx0ZWRfXy2vYft9wOFg/ p8ujI5CPV0xFECRqTGBtoTMlHheIm66MVzEMN/uVD4oXcJLCV7xHdIibHjT2+ymdWzbPBn+XATV ZYQ0MRrcUunijTsvOVwvIwJrHnKZBFic2iC2nfpMGQvq/rrHVXb/nw7QMkA0nlvHHzzaCSRky3D d7wcNdu5Iysy99zCjymxMOumokXl6IWZMg3fCt5IP9RedmNVlCCQQPX+mcE6FipxlV9+8M8G+PP MqZoTuCNbuRdVNADYmr23QEOej0sxBUwDGFJ5+iA2ozDc39uGvAFJpaccf6HAPJuh54o1ezuteU 6jpXm0sU6fx9FzQTtm4EhdI19bwb78AqvgfbB42t7qz03ZqXln+XxhGiKAzAhuxSiMKsxjcIDox q2bYUPxJhCeb+kntCSTKjj02cBWjj10lzg3MZocBmCXeb6Bs+sghjFyjcVWWYuRIaLmy+GQjlr0 tde0Uc41Fu+jkjxMYXw== X-Proofpoint-GUID: dRHSduy0EFsiq711LOfMNacaTzmOlvk9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_05,2026-10-19_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 phishscore=0 bulkscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190085 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=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792444976510158500 Content-Type: text/plain; charset="utf-8" Now that we have a generic mechanism to prefix all helpers, we can undo the recent changes that fixed conflicts between targets in multi-target set. This reverts commit 7858012634be7b987d9cb4c4520e55ccffedb2db "target/tricore: prefix helpers conflicting with other arch" Signed-off-by: Pierrick Bouvier Acked-by: Yonggang Luo Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/tricore/fpu_helper.c | 12 ++++++------ target/tricore/helper.h | 14 +++++++------- target/tricore/translate.c | 14 +++++++------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/target/tricore/fpu_helper.c b/target/tricore/fpu_helper.c index 9d323a9b664..81fec300ff9 100644 --- a/target/tricore/fpu_helper.c +++ b/target/tricore/fpu_helper.c @@ -118,7 +118,7 @@ static void f_update_psw_flags(CPUTriCoreState *env, ui= nt8_t flags) } =20 #define FADD_SUB(op) = \ -uint32_t HELPER(tricore_f##op)(CPUTriCoreState *env, uint32_t r1, uint32_t= r2) \ +uint32_t HELPER(f##op)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) = \ { = \ float32 arg1 =3D make_float32(r1); = \ float32 arg2 =3D make_float32(r2); = \ @@ -144,7 +144,7 @@ uint32_t HELPER(tricore_f##op)(CPUTriCoreState *env, ui= nt32_t r1, uint32_t r2) \ FADD_SUB(add) FADD_SUB(sub) =20 -uint32_t HELPER(tricore_fmul)(CPUTriCoreState *env, uint32_t r1, uint32_t = r2) +uint32_t HELPER(fmul)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { uint32_t flags; float32 arg1 =3D make_float32(r1); @@ -251,7 +251,7 @@ uint32_t HELPER(qseed)(CPUTriCoreState *env, uint32_t r= 1) return (uint32_t) result; } =20 -uint32_t HELPER(tricore_fdiv)(CPUTriCoreState *env, uint32_t r1, uint32_t = r2) +uint32_t HELPER(fdiv)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { uint32_t flags; float32 arg1 =3D make_float32(r1); @@ -331,7 +331,7 @@ uint32_t HELPER(fmsub)(CPUTriCoreState *env, uint32_t r= 1, return (uint32_t)f_result; } =20 -uint32_t HELPER(tricore_fcmp)(CPUTriCoreState *env, uint32_t r1, uint32_t = r2) +uint32_t HELPER(fcmp)(CPUTriCoreState *env, uint32_t r1, uint32_t r2) { uint32_t result, flags; float32 arg1 =3D make_float32(r1); @@ -354,7 +354,7 @@ uint32_t HELPER(tricore_fcmp)(CPUTriCoreState *env, uin= t32_t r1, uint32_t r2) return result; } =20 -uint32_t HELPER(tricore_ftoi)(CPUTriCoreState *env, uint32_t arg) +uint32_t HELPER(ftoi)(CPUTriCoreState *env, uint32_t arg) { float32 f_arg =3D make_float32(arg); int32_t result, flags; @@ -447,7 +447,7 @@ uint32_t HELPER(ftohp)(CPUTriCoreState *env, uint32_t a= rg) return result; } =20 -uint32_t HELPER(tricore_itof)(CPUTriCoreState *env, uint32_t arg) +uint32_t HELPER(itof)(CPUTriCoreState *env, uint32_t arg) { float32 f_result; uint32_t flags; diff --git a/target/tricore/helper.h b/target/tricore/helper.h index 6073fd70379..1d97d078b00 100644 --- a/target/tricore/helper.h +++ b/target/tricore/helper.h @@ -102,18 +102,18 @@ DEF_HELPER_FLAGS_1(parity, TCG_CALL_NO_RWG_SE, i32, i= 32) /* float */ DEF_HELPER_FLAGS_4(pack, TCG_CALL_NO_RWG_SE, i32, i32, i32, i32, i32) DEF_HELPER_1(unpack, i64, i32) -DEF_HELPER_3(tricore_fadd, i32, env, i32, i32) -DEF_HELPER_3(tricore_fsub, i32, env, i32, i32) -DEF_HELPER_3(tricore_fmul, i32, env, i32, i32) -DEF_HELPER_3(tricore_fdiv, i32, env, i32, i32) +DEF_HELPER_3(fadd, i32, env, i32, i32) +DEF_HELPER_3(fsub, i32, env, i32, i32) +DEF_HELPER_3(fmul, i32, env, i32, i32) +DEF_HELPER_3(fdiv, i32, env, i32, i32) DEF_HELPER_4(fmadd, i32, env, i32, i32, i32) DEF_HELPER_4(fmsub, i32, env, i32, i32, i32) -DEF_HELPER_3(tricore_fcmp, i32, env, i32, i32) +DEF_HELPER_3(fcmp, i32, env, i32, i32) DEF_HELPER_2(qseed, i32, env, i32) -DEF_HELPER_2(tricore_ftoi, i32, env, i32) +DEF_HELPER_2(ftoi, i32, env, i32) DEF_HELPER_2(ftohp, i32, env, i32) DEF_HELPER_2(hptof, i32, env, i32) -DEF_HELPER_2(tricore_itof, i32, env, i32) +DEF_HELPER_2(itof, i32, env, i32) DEF_HELPER_2(utof, i32, env, i32) DEF_HELPER_2(ftoiz, i32, env, i32) DEF_HELPER_2(ftou, i32, env, i32) diff --git a/target/tricore/translate.c b/target/tricore/translate.c index 81db388e5ee..8cd6b58f66b 100644 --- a/target/tricore/translate.c +++ b/target/tricore/translate.c @@ -6290,10 +6290,10 @@ static void decode_rr_divide(DisasContext *ctx) } break; case OPC2_32_RR_MUL_F: - gen_helper_tricore_fmul(cpu_gpr_d[r3], tcg_env, cpu_gpr_d[r1], cpu= _gpr_d[r2]); + gen_helper_fmul(cpu_gpr_d[r3], tcg_env, cpu_gpr_d[r1], cpu_gpr_d[r= 2]); break; case OPC2_32_RR_DIV_F: - gen_helper_tricore_fdiv(cpu_gpr_d[r3], tcg_env, cpu_gpr_d[r1], cpu= _gpr_d[r2]); + gen_helper_fdiv(cpu_gpr_d[r3], tcg_env, cpu_gpr_d[r1], cpu_gpr_d[r= 2]); break; case OPC2_32_RR_FTOHP: if (has_feature(ctx, TRICORE_FEATURE_162)) { @@ -6310,13 +6310,13 @@ static void decode_rr_divide(DisasContext *ctx) } break; case OPC2_32_RR_CMP_F: - gen_helper_tricore_fcmp(cpu_gpr_d[r3], tcg_env, cpu_gpr_d[r1], cpu= _gpr_d[r2]); + gen_helper_fcmp(cpu_gpr_d[r3], tcg_env, cpu_gpr_d[r1], cpu_gpr_d[r= 2]); break; case OPC2_32_RR_FTOI: - gen_helper_tricore_ftoi(cpu_gpr_d[r3], tcg_env, cpu_gpr_d[r1]); + gen_helper_ftoi(cpu_gpr_d[r3], tcg_env, cpu_gpr_d[r1]); break; case OPC2_32_RR_ITOF: - gen_helper_tricore_itof(cpu_gpr_d[r3], tcg_env, cpu_gpr_d[r1]); + gen_helper_itof(cpu_gpr_d[r3], tcg_env, cpu_gpr_d[r1]); break; case OPC2_32_RR_FTOU: gen_helper_ftou(cpu_gpr_d[r3], tcg_env, cpu_gpr_d[r1]); @@ -6725,10 +6725,10 @@ static void decode_rrr_divide(DisasContext *ctx) } break; case OPC2_32_RRR_ADD_F: - gen_helper_tricore_fadd(cpu_gpr_d[r4], tcg_env, cpu_gpr_d[r1], cpu= _gpr_d[r3]); + gen_helper_fadd(cpu_gpr_d[r4], tcg_env, cpu_gpr_d[r1], cpu_gpr_d[r= 3]); break; case OPC2_32_RRR_SUB_F: - gen_helper_tricore_fsub(cpu_gpr_d[r4], tcg_env, cpu_gpr_d[r1], cpu= _gpr_d[r3]); + gen_helper_fsub(cpu_gpr_d[r4], tcg_env, cpu_gpr_d[r1], cpu_gpr_d[r= 3]); break; case OPC2_32_RRR_MADD_F: gen_helper_fmadd(cpu_gpr_d[r4], tcg_env, cpu_gpr_d[r1], --=20 2.43.0