From nobody Tue Feb 10 07:42:03 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=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1666619269; cv=none; d=zohomail.com; s=zohoarc; b=F1BH/keeC1UG9apvpqTuuz8+gITuOn4xk7XpjWicq7YPi2W7q2heOEytQa3VLmsmLuIiMp9Lv9GjRNWwZZFpgHAPZgWswHsjfQeu0fyD9liHCnQUkFHoRoeDgzCO9mjEoZVsDtg0nLSv6RRn/RBh0dIjFbWWui3jUw/jaSuxW6c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666619269; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=+CkKupTcUlISL2yEb/3shQiouXGSNf8rqXTFn5cdoYg=; b=nq09K8vR79bWc3hlmGm3t+1oWueiZq5esPGc19LVlp4I0BI6MuLuytsLNey96FeRXnXtiXOBptLdFDznc+qOKfCGUCsHMk8ECIMmmhpycPSMbTG2kvCAentcr91880VoUPIh/mB5VoxObG51mRS7qX+9Q3dhN0yQUj6MgqSoR5M= 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=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1666619269037238.54834230797417; Mon, 24 Oct 2022 06:47:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omxSx-0003Rt-Vx; Mon, 24 Oct 2022 09:26:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omxSd-0003NM-PV for qemu-devel@nongnu.org; Mon, 24 Oct 2022 09:25:47 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1omxSb-00041C-Dp for qemu-devel@nongnu.org; Mon, 24 Oct 2022 09:25:46 -0400 Received: by mail-pg1-x52e.google.com with SMTP id 20so8684908pgc.5 for ; Mon, 24 Oct 2022 06:25:45 -0700 (PDT) Received: from stoup.. ([103.100.225.182]) by smtp.gmail.com with ESMTPSA id b12-20020a1709027e0c00b00178ab008364sm17009216plm.37.2022.10.24.06.25.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 06:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=+CkKupTcUlISL2yEb/3shQiouXGSNf8rqXTFn5cdoYg=; b=aukLhvV6t3EeSfe7kxweDUK/Zw/TxVbQJBXIsNJ1J7SJpVAP2n7VRGF2L7x7vjvxXQ 4BUw+1oh9IickIchkEfJ4p5npdknF5XpseU5dp5OTouT+fCaqNW4ESaCsfDMjMcWcUV4 CCtHpL0Nu6E2xq3Gcp2auYQ+TMjrWZ2SJvatoX5hVnTd4faGDd9C8pvWmvVHSeKe9D8j oTa04S5ZXkU0RL7QPbReQkNjGD0MxuzjSLdYSG+gV9cohEyRxw9TwoLQJ9CztXGW3ixD EbPjYJNITbxP8Rdk8Oe7yoCf3zszeIUidbzAK13qGaesp5CRsiyf3q6Uhy/InAufsmP1 VEww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+CkKupTcUlISL2yEb/3shQiouXGSNf8rqXTFn5cdoYg=; b=pa76NNtUXmiFl8l0J79I3ExYMuIp460t5ZGNbP0JVbr80revM+kf5+YpDZHnf8KxAq 5cu+6g1Y1LxxFGmBq644XxesGpZ0rmDaiiDMBFKYNTe8elnyygo2e2DHyrRaaLTWm39t q1XKHgp3dc8n9Zx/CUrmmbG0mSHNyNamgPneDRxJqfvxwXk0kcjyxEBI2vGNKMHpLWuS l1KAg43EN/LG1eavf4Ac/RodGpSc/XLe4cvlhpanmcMLOoNA53WTzvJQut6exYrQh/6f i7NGBLvVPldlQFKBBJjy0jAHaG7CHaXNjMP9qIGyKayTszuE5XvoonoaC0VTb6wtKfK0 67SA== X-Gm-Message-State: ACrzQf0W9MvtWxngrmygIOMskngH+Z+uZHZBFFkjDTlcekPAH4aexgXB qXk5KAhJQFSRoX9iIV6WFm1WC7xvSm4QOg== X-Google-Smtp-Source: AMsMyM5wFWZ7ISiWoTgmAECq+4WT8oQeYuheFX8U/ViPBl/uUH5chIMWxYEDgTjstvJXF3u7hCVVbg== X-Received: by 2002:a63:6b49:0:b0:46a:fcba:308f with SMTP id g70-20020a636b49000000b0046afcba308fmr28494232pgc.8.1666617944049; Mon, 24 Oct 2022 06:25:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 13/29] target/nios2: Convert to tcg_ops restore_state_to_opc Date: Mon, 24 Oct 2022 23:24:43 +1000 Message-Id: <20221024132459.3229709-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221024132459.3229709-1-richard.henderson@linaro.org> References: <20221024132459.3229709-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52e.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1666619269540100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/nios2/cpu.c | 11 +++++++++++ target/nios2/translate.c | 6 ------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/target/nios2/cpu.c b/target/nios2/cpu.c index 2b28429c08..9a5351bc81 100644 --- a/target/nios2/cpu.c +++ b/target/nios2/cpu.c @@ -42,6 +42,16 @@ static vaddr nios2_cpu_get_pc(CPUState *cs) return env->pc; } =20 +static void nios2_restore_state_to_opc(CPUState *cs, + const TranslationBlock *tb, + const uint64_t *data) +{ + Nios2CPU *cpu =3D NIOS2_CPU(cs); + CPUNios2State *env =3D &cpu->env; + + env->pc =3D data[0]; +} + static bool nios2_cpu_has_work(CPUState *cs) { return cs->interrupt_request & CPU_INTERRUPT_HARD; @@ -346,6 +356,7 @@ static const struct SysemuCPUOps nios2_sysemu_ops =3D { =20 static const struct TCGCPUOps nios2_tcg_ops =3D { .initialize =3D nios2_tcg_init, + .restore_state_to_opc =3D nios2_restore_state_to_opc, =20 #ifndef CONFIG_USER_ONLY .tlb_fill =3D nios2_cpu_tlb_fill, diff --git a/target/nios2/translate.c b/target/nios2/translate.c index 8dc0a32c6c..4db8b47744 100644 --- a/target/nios2/translate.c +++ b/target/nios2/translate.c @@ -1110,9 +1110,3 @@ void nios2_tcg_init(void) cpu_pc =3D tcg_global_mem_new(cpu_env, offsetof(CPUNios2State, pc), "pc"); } - -void restore_state_to_opc(CPUNios2State *env, TranslationBlock *tb, - target_ulong *data) -{ - env->pc =3D data[0]; -} --=20 2.34.1