From patchwork Thu Feb 4 01:43:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 376147 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp833460jah; Wed, 3 Feb 2021 17:52:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxg4BEp3w4zaV2TJMsZ3YouzxPjyue856OOVE6Rftkr4oqpf/PaT7wbeVRf1vYDf/VwyxFp X-Received: by 2002:a25:1182:: with SMTP id 124mr8140358ybr.154.1612403548235; Wed, 03 Feb 2021 17:52:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612403548; cv=none; d=google.com; s=arc-20160816; b=O01iICd+w7sEPZ30cLicjhrOnv3XPNW+y26RVJV+crmgWUjw527yIHQ5whGCRiz//v zsc3ROADJfnPbQAJLuOe1gNZCexf7jcYOy9bVhPJ+ITSe8ja4i3CsBzf7Zo+Kaa0JprY J76/QaoAOO6qIwtFwGBG8/vrE5iaXstQCKs8xDlhxl2HkyHL7qelUa7+g043Ml/3wouP glOg+wcFMCbUMXxanxtMx4KxaaIE0Jh2kpRs7j+4amgXe00/r0htG4G8CKg0FA5er0em nHOoznv6lVPMuTBKTOMZEJm4AVJ3y2JzGxef1RMssMXczc+1ass9mkyHTdBvc1rsbFjt yXJg== 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=nVyouWDBw9IpYjnxIdxk6Lk2rEB7Cry5s6L8ndOAdHg=; b=lUcwjS9LjUcN8xncvJLb9qC1D6WfDMI0tf6Lrw0nKb9cztTHgbbwbaBVLOhcaGMzcf UnahPgiZttT2JKJxULzoa6+S1qzRWiYj4YkcBDG0dl3FwD76OBKU3jLytEwMQBH/T/PE gjpsRs4MtzXcnC8xLf4VbunbTichBoprei4WAFfyXFKG6kK9sBSO5JlG/Zs/M7GWfynB ZLbJGDOkW2G/ywofpCvErVFU0hysr1PZ3MgMQYgfKYt9m8lhSiZzxqzoFPN0HrpA3L/H aO+zLU1d7vsAeFvnySiTJkQ0jn9rvpacz/D1WD0L9Y34EsNTI6cKtzHp6WTldMoT/EzE AkVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NdoYMnjH; 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 f7si3667812ybb.37.2021.02.03.17.52.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Feb 2021 17:52:28 -0800 (PST) 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=NdoYMnjH; 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]:47020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7Top-0003mY-Nr for patch@linaro.org; Wed, 03 Feb 2021 20:52:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7TiF-0004fg-RL for qemu-devel@nongnu.org; Wed, 03 Feb 2021 20:45:45 -0500 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:42495) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7TiB-0003f7-Jh for qemu-devel@nongnu.org; Wed, 03 Feb 2021 20:45:39 -0500 Received: by mail-pl1-x634.google.com with SMTP id s15so877782plr.9 for ; Wed, 03 Feb 2021 17:45:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nVyouWDBw9IpYjnxIdxk6Lk2rEB7Cry5s6L8ndOAdHg=; b=NdoYMnjHmyQvM+j4L13WrO6BPZBj853ioYhDZGgZwFbt2clZ1HfMQQJ34JLljDJdJP 0CVJq83vxIS1kxftApmKxnkpxgobCc6FO1DKygYaELvcNrIy3cKyX42st+AgZGAmHnub JsYmBDshCn29rBwvRklehCBP5kSYJMmWaAXOq/1gc6Lxm+t/IB0eX64X0hEkmNL0Y9MJ wv531LFWGgZtBAr2fpvCxCLr7/8rvMbtcjj2n3fahcrPd8GvuaUUdM3rg3UMFN1GqSSf E8WYapmRc6qduRWQ/ux+f13XeYZXYqBMqdGctMQNn9B+XCcylzP1h+ECOopPzVc101NI C9OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nVyouWDBw9IpYjnxIdxk6Lk2rEB7Cry5s6L8ndOAdHg=; b=NWJjHSlDmL4a0heDeMxhq9v+jW5Xbz/6nW1WGn8TOrsoVdWrd0kQ+HLpqp/aI27ul8 ovfg/gYMUFknXbyk0DrqI/npS5RPSVVtaLG44s/A6tIUgT3RPblIP4IMDKrVVdv5E62/ B3yGCFIPma8auLcfa9EHnOZRAJS9ufE20/ICjDV0UskIA0vR3Iw98yTibLTygMo6+VdA qNNaLbm4+4pVQn7EaKxMlGpH9hiXElaJcVTBoUCe/LuqohB2zG+RPj2+GVcqnPs8OvsH 0DnP9yknVthiIEf9pWaA9F+A9iUUnoOO7PuJA7NteCUgJn7RF6pTao/yomhrwTZw5sz1 qsVA== X-Gm-Message-State: AOAM5337r5lQy4T4VIa7OdaVCSnLvK8tJei46cRG1VDUQ3f4TA6bw7d5 wYEKfPOKZQoOejGVA2NQV+eAW5/LsXUjzeti X-Received: by 2002:a17:902:70c3:b029:de:af88:f17e with SMTP id l3-20020a17090270c3b02900deaf88f17emr5771636plt.3.1612403133363; Wed, 03 Feb 2021 17:45:33 -0800 (PST) Received: from localhost.localdomain (cpe-66-27-222-29.hawaii.res.rr.com. [66.27.222.29]) by smtp.gmail.com with ESMTPSA id q132sm3835462pfq.171.2021.02.03.17.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 17:45:32 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 10/93] tcg/tci: Inline tci_write_reg16 into the only caller Date: Wed, 3 Feb 2021 15:43:46 -1000 Message-Id: <20210204014509.882821-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210204014509.882821-1-richard.henderson@linaro.org> References: <20210204014509.882821-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x634.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: sw@weilnetz.de, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Tested-by: Alex Bennée Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/tci.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) -- 2.25.1 diff --git a/tcg/tci.c b/tcg/tci.c index 740244cc54..005d2946c4 100644 --- a/tcg/tci.c +++ b/tcg/tci.c @@ -117,14 +117,6 @@ tci_write_reg(tcg_target_ulong *regs, TCGReg index, tcg_target_ulong value) regs[index] = value; } -#if TCG_TARGET_REG_BITS == 64 -static void -tci_write_reg16(tcg_target_ulong *regs, TCGReg index, uint16_t value) -{ - tci_write_reg(regs, index, value); -} -#endif - static void tci_write_reg32(tcg_target_ulong *regs, TCGReg index, uint32_t value) { @@ -879,7 +871,7 @@ uintptr_t QEMU_DISABLE_CFI tcg_qemu_tb_exec(CPUArchState *env, t0 = *tb_ptr++; t1 = tci_read_r(regs, &tb_ptr); t2 = tci_read_s32(&tb_ptr); - tci_write_reg16(regs, t0, *(uint16_t *)(t1 + t2)); + tci_write_reg(regs, t0, *(uint16_t *)(t1 + t2)); break; case INDEX_op_ld16s_i64: TODO();