From patchwork Tue Sep 21 02:25:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 514390 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp2641456jao; Mon, 20 Sep 2021 19:32:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx20ikWztPHl9Iu3LbiAzXix8LHLpzvZy9rz20+0e3ce2ykaLZPkPI5PeqjO1HUVsSwps9O X-Received: by 2002:a05:6e02:1786:: with SMTP id y6mr13187017ilu.147.1632191529127; Mon, 20 Sep 2021 19:32:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632191529; cv=none; d=google.com; s=arc-20160816; b=btPysKFR8itSxrT/JbfrKze+WqEFp9SDzfza3tT7ARtW4p8abPN4ZM8OArKe5UiVt0 GACAmkhIXIIfzTBvjHte3wBlXkeUfvMnaZH8KDYdHpEsrd/e9CI9juO4rQvlkXa3mjLN QrF3RQwGTB3vIYwo9nW8gKrvKAlVPoFvHJppwfbvPOlkM/kLCSKaRdinVTRB7sQBt9Do HaCw4L6bOAKPuxQ+3thX4hzvV3UiG9N49fIvqtAjvdvPhYaEGL1PXYzlh28WFZG7IdM+ 8Aoke4RNgCrlzU08nrHFQ7Xlm3tJdcMzWkXuZcgQHOLhx/2VhedFXLoMLQ7wKq3C58Ra 1zrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Ls0KyBh45JfBQfAk7i0S5ef1RFy/+/wZAVM/jQsZv0w=; b=iXfFKyLFeyKakJ3a5C/X36saTX80nClWhMIfr1uGZMwbDCZY7fU2DCKCNZzuK1bxqT Qd2Z5DPBlH8MV7cuHIC3f99btZ8XTfw6UUZCnWItav5M5nhrvjqZr75fvZQKEtluPzam rIV4mrPo0DA3++snNq4kYBYuPAzbAc2lZ3xJw6EIXMKpD4CyqMZFgC4yzXw9lWR9ckmL ATtwUMILTSrn0dAuWipWTsDLtKenQ9eZInHOPT3rkt9vwFdeVDGnR6HjsoarlFKRxk6M 68HaRXYUXqcs7sgG5u58N4ZulPhpINBJNKKVaEC+ZsRcKX79qgf/nu3F22cyqBzjG299 aR9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BzKTvXxr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w8si13296569jaa.127.2021.09.20.19.32.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Sep 2021 19:32:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BzKTvXxr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:48616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSVZo-0000TU-Iu for patch@linaro.org; Mon, 20 Sep 2021 22:32:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSVTi-0005jY-71 for qemu-devel@nongnu.org; Mon, 20 Sep 2021 22:25:50 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:40855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSVTc-0006HO-63 for qemu-devel@nongnu.org; Mon, 20 Sep 2021 22:25:49 -0400 Received: by mail-pl1-x630.google.com with SMTP id n18so12351861plp.7 for ; Mon, 20 Sep 2021 19:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ls0KyBh45JfBQfAk7i0S5ef1RFy/+/wZAVM/jQsZv0w=; b=BzKTvXxrwJ3u+ipdf6Ho1oceOzFUcoyWf8gKaxt0v4h4DbWzmlyZtDuv6iKprDRZOw 8EaulVvfPH0bqUy625k7d0ImUDG29SMECM5qpLMJp9//2bp2h9ZnaIqCFM0yahryYkI3 YIGX1awOIBTQxkRZyHOBA1GDlv+pfUxgUVqHoUs4XK7jxGoKY7Qw5fBsY3i4BZKeBlzT mKpXPiJ0OnSDiYTeJoDp9U3t4S8wbh5xetbOUXJ4+ZvYENBuzikMcSb31hrjzHiomPKc 8r8UfqAjBCQpD54ZASGu4fI6A1yav9rMODRgEPrbNfC2T3mpp8BzLH8ehp9KlB1h74gr S8aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ls0KyBh45JfBQfAk7i0S5ef1RFy/+/wZAVM/jQsZv0w=; b=am4FYBPLB1D8j6CauKxUVySb5JDfVk7/2PNQ/bTa4SB5xG7T4vKFhhFgPjqUe+Komj RlknSBihald5I+lDyqeweYOcHxRozAw3jFy7Be54qlieijq/TypRBHKQnDQR86P1f+PB WacfsLtHFKiFHENy6nf1bK8rcWvDzvhw8dKGMb2Rq4CDAF5HuyELsZxmgzw94XSQentB t3JQ/EziBpsupubpCRgwGAFGWxUBs497lUEvJhqEyOKEGsR/crYxiSIvmEHIIY64rwbZ pT56NF/nlGAJR+7KprbpNoddttY1FdQG+toX0Sgl6BFeiAD35axN194GfFJ3AYXpmCkV 0wcg== X-Gm-Message-State: AOAM533E9PXLtCsvz9OKnsOMHRROrlnA4nYBr9kb4sjHx8R3U7+ePZnA mqM5E826tnyfx28/qZHLtjNGbU2X+HpjRw== X-Received: by 2002:a17:90b:80a:: with SMTP id bk10mr2378971pjb.127.1632191141391; Mon, 20 Sep 2021 19:25:41 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id n9sm15297621pff.37.2021.09.20.19.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 19:25:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 07/10] tcg/sparc: Drop inline markers Date: Mon, 20 Sep 2021 19:25:31 -0700 Message-Id: <20210921022534.365291-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210921022534.365291-1-richard.henderson@linaro.org> References: <20210921022534.365291-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Let the compiler decide about inlining. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/sparc/tcg-target.c.inc | 45 +++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 23 deletions(-) -- 2.25.1 diff --git a/tcg/sparc/tcg-target.c.inc b/tcg/sparc/tcg-target.c.inc index 688827968b..1763253edd 100644 --- a/tcg/sparc/tcg-target.c.inc +++ b/tcg/sparc/tcg-target.c.inc @@ -294,12 +294,12 @@ static const int tcg_target_call_oarg_regs[] = { bool use_vis3_instructions; #endif -static inline int check_fit_i64(int64_t val, unsigned int bits) +static bool check_fit_i64(int64_t val, unsigned int bits) { return val == sextract64(val, 0, bits); } -static inline int check_fit_i32(int32_t val, unsigned int bits) +static bool check_fit_i32(int32_t val, unsigned int bits) { return val == sextract32(val, 0, bits); } @@ -362,14 +362,14 @@ static bool tcg_target_const_match(int64_t val, TCGType type, int ct) } } -static inline void tcg_out_arith(TCGContext *s, TCGReg rd, TCGReg rs1, - TCGReg rs2, int op) +static void tcg_out_arith(TCGContext *s, TCGReg rd, TCGReg rs1, + TCGReg rs2, int op) { tcg_out32(s, op | INSN_RD(rd) | INSN_RS1(rs1) | INSN_RS2(rs2)); } -static inline void tcg_out_arithi(TCGContext *s, TCGReg rd, TCGReg rs1, - int32_t offset, int op) +static void tcg_out_arithi(TCGContext *s, TCGReg rd, TCGReg rs1, + int32_t offset, int op) { tcg_out32(s, op | INSN_RD(rd) | INSN_RS1(rs1) | INSN_IMM13(offset)); } @@ -381,8 +381,7 @@ static void tcg_out_arithc(TCGContext *s, TCGReg rd, TCGReg rs1, | (val2const ? INSN_IMM13(val2) : INSN_RS2(val2))); } -static inline bool tcg_out_mov(TCGContext *s, TCGType type, - TCGReg ret, TCGReg arg) +static bool tcg_out_mov(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg) { if (ret != arg) { tcg_out_arith(s, ret, arg, TCG_REG_G0, ARITH_OR); @@ -390,12 +389,12 @@ static inline bool tcg_out_mov(TCGContext *s, TCGType type, return true; } -static inline void tcg_out_sethi(TCGContext *s, TCGReg ret, uint32_t arg) +static void tcg_out_sethi(TCGContext *s, TCGReg ret, uint32_t arg) { tcg_out32(s, SETHI | INSN_RD(ret) | ((arg & 0xfffffc00) >> 10)); } -static inline void tcg_out_movi_imm13(TCGContext *s, TCGReg ret, int32_t arg) +static void tcg_out_movi_imm13(TCGContext *s, TCGReg ret, int32_t arg) { tcg_out_arithi(s, ret, TCG_REG_G0, arg, ARITH_OR); } @@ -470,14 +469,14 @@ static void tcg_out_movi_int(TCGContext *s, TCGType type, TCGReg ret, } } -static inline void tcg_out_movi(TCGContext *s, TCGType type, - TCGReg ret, tcg_target_long arg) +static void tcg_out_movi(TCGContext *s, TCGType type, + TCGReg ret, tcg_target_long arg) { tcg_out_movi_int(s, type, ret, arg, false); } -static inline void tcg_out_ldst_rr(TCGContext *s, TCGReg data, TCGReg a1, - TCGReg a2, int op) +static void tcg_out_ldst_rr(TCGContext *s, TCGReg data, TCGReg a1, + TCGReg a2, int op) { tcg_out32(s, op | INSN_RD(data) | INSN_RS1(a1) | INSN_RS2(a2)); } @@ -494,20 +493,20 @@ static void tcg_out_ldst(TCGContext *s, TCGReg ret, TCGReg addr, } } -static inline void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret, - TCGReg arg1, intptr_t arg2) +static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret, + TCGReg arg1, intptr_t arg2) { tcg_out_ldst(s, ret, arg1, arg2, (type == TCG_TYPE_I32 ? LDUW : LDX)); } -static inline void tcg_out_st(TCGContext *s, TCGType type, TCGReg arg, - TCGReg arg1, intptr_t arg2) +static void tcg_out_st(TCGContext *s, TCGType type, TCGReg arg, + TCGReg arg1, intptr_t arg2) { tcg_out_ldst(s, arg, arg1, arg2, (type == TCG_TYPE_I32 ? STW : STX)); } -static inline bool tcg_out_sti(TCGContext *s, TCGType type, TCGArg val, - TCGReg base, intptr_t ofs) +static bool tcg_out_sti(TCGContext *s, TCGType type, TCGArg val, + TCGReg base, intptr_t ofs) { if (val == 0) { tcg_out_st(s, type, TCG_REG_G0, base, ofs); @@ -527,12 +526,12 @@ static void tcg_out_ld_ptr(TCGContext *s, TCGReg ret, const void *arg) tcg_out_ld(s, TCG_TYPE_PTR, ret, ret, (uintptr_t)arg & 0x3ff); } -static inline void tcg_out_sety(TCGContext *s, TCGReg rs) +static void tcg_out_sety(TCGContext *s, TCGReg rs) { tcg_out32(s, WRY | INSN_RS1(TCG_REG_G0) | INSN_RS2(rs)); } -static inline void tcg_out_rdy(TCGContext *s, TCGReg rd) +static void tcg_out_rdy(TCGContext *s, TCGReg rd) { tcg_out32(s, RDY | INSN_RD(rd)); } @@ -552,7 +551,7 @@ static void tcg_out_div32(TCGContext *s, TCGReg rd, TCGReg rs1, uns ? ARITH_UDIV : ARITH_SDIV); } -static inline void tcg_out_nop(TCGContext *s) +static void tcg_out_nop(TCGContext *s) { tcg_out32(s, NOP); }