From patchwork Wed Oct 26 02:10:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 618797 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp117599pvb; Tue, 25 Oct 2022 19:30:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ottHtIvYnIzLrQ8W5g/TpmN7k1tv4M8Ia+R4ei9O1tFLCXl7+HMs7Lux8b89KgzVMk92H X-Received: by 2002:a05:622a:5cd:b0:39c:fcaf:7b36 with SMTP id d13-20020a05622a05cd00b0039cfcaf7b36mr30570612qtb.117.1666751422143; Tue, 25 Oct 2022 19:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666751422; cv=none; d=google.com; s=arc-20160816; b=gUiMJsq1mH67jxpXMBO42VkCmAjd+38OarS3HkOm19JM7HRU9yWrFQIP9QwAJMuqfM sw4g137NDsZ294LRHICZyEYkr0JGQq4Y0nTzo3MDl4qhIl/b1A57qDBEWH+tu5p5rwzz zF7JkG7s+/KPsR9vZH7XR2x5sQhQYoi+KPO3E0C3RPhECcajlnI+dIAb4IIkC36Pca14 msVyqC9pbuCi0B1iF9zLAfHwRg5i/LAJR7WdkPP21Gl/b8Io2LJnwjxjx+ULdszHFBFN YrrvG2fK0yL/6YBEnbFA6cu3NYS30xNtPgUuYMRLrwDnpZEUhnGGhlIIWp/PjmDMqO23 p7Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender: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:cc:to :from:dkim-signature; bh=9G9r4XqZ5tNsPMB9JL7bV/JWLZpybHX4NvIu3/hknWg=; b=mP495KWABMqxMx9R+emx3bRyhjM41jOaOl+TuURq75AyeJyV259P9k+DU0Nr/xgRAe AsHhB7b4C6HwgpBQADwH+ioODtoz+FvJPtJA/IzmNLHy5Qap4xVzyGOk9/KvWiUedl0I oANL3g8tLMvkOlBmjX3UPM9QdgrrX9322RFBT/acXgNOVwBFGVQvRUDTRps9a3TVdZCK NucGbSU/bWgVtoKpx0gNwAZPtRGgJo3J9ezuq/BzFjPOS8nFikEYJJgKx8JzwBwOR9Ww eBLUxQqkV2a7bfwFPP8lZbEmCFjmX95o+6tXRJ4wwLyy37b38wxHUhaQsIkuGTLqE3Jk EC6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w+a96H81; 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 ed1-20020ad44ea1000000b004afa227a522si3141283qvb.44.2022.10.25.19.30.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Oct 2022 19:30:22 -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=w+a96H81; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onVuK-0005Hr-AX; Tue, 25 Oct 2022 22:12:40 -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 1onVuI-0005HU-Sp for qemu-devel@nongnu.org; Tue, 25 Oct 2022 22:12:38 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onVuH-0001GB-Bb for qemu-devel@nongnu.org; Tue, 25 Oct 2022 22:12:38 -0400 Received: by mail-pf1-x430.google.com with SMTP id 130so3550585pfu.8 for ; Tue, 25 Oct 2022 19:12:36 -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:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9G9r4XqZ5tNsPMB9JL7bV/JWLZpybHX4NvIu3/hknWg=; b=w+a96H81tBHhEiDAbMQTiJnk1lzxsYJ1KWfiMUKQvcaALxrineBCUjBItCqR9b/Xhh JbgDj3KFnZFUyiNF5RZEvMoeztDdIal9/RWsOgzUjERaBDWIARM7x3bsddnOx90UYqul 3TElrdZk/dfGHibZX64xJw8SP/87M3EGwhHVAuPwr5IRQTZeXVi/7ffjmlrvfzOUsWQ0 PfW+DqPiTzNtRpiwR5ueP5GGJXmHRSuAMegFEXVtLT/pu8SwxAfrQIFHZqDMifogXSvs JE9edR6/1a9Xlm+LT2bA4OG/jMDdIvqO3ut+GJtY6ympneIQCVbwm8cabQ6cyN0wTZeK /duw== 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:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9G9r4XqZ5tNsPMB9JL7bV/JWLZpybHX4NvIu3/hknWg=; b=u8GzpuAYr3ddUIF5gR6Tx+euUtrwEAkzP8nhn/Tv4y2vhhNMw3rhJ7o3xTx+r6u3/e Sj7haQJKqIZFmOfNxnFx9RAuwXfqyjB8pljE320rAxPsAhyS+hb97UX80K26bh0QEUtv musFE1mUokpjdELSaWXnSSRIN0H9MRPzGBQ2Qaqr1F3b2eKtJ1gWJrvSW/mG8cZHYGpv 4LvkjwtkwjKl16Yvy1+QReaKny1IqpLGtK6JzzePF/9/IERVNEITdwaaSnjRLrOsh31t UymeJaIUIq3e8S7e1EvOO28m9dQVGgienpRsZeEnHdZp613FHAmterH807yaqnHAXAh2 WutA== X-Gm-Message-State: ACrzQf34vH8KofKI9HpS2Ow1E9mQWFPNvkQVmfBcPBakvFEzmiNZVW4A GolHQE9hiI3hw85yfbZ9/dzfSkYFnRqmpfqz X-Received: by 2002:a05:6a00:1349:b0:563:654d:ce3f with SMTP id k9-20020a056a00134900b00563654dce3fmr41965931pfu.32.1666750356101; Tue, 25 Oct 2022 19:12:36 -0700 (PDT) Received: from stoup.hotspotlogin.services ([103.100.225.182]) by smtp.gmail.com with ESMTPSA id o29-20020a635d5d000000b0043c9da02729sm1897833pgm.6.2022.10.25.19.12.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 19:12:35 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 26/47] target/alpha: Convert to tcg_ops restore_state_to_opc Date: Wed, 26 Oct 2022 12:10:55 +1000 Message-Id: <20221026021116.1988449-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221026021116.1988449-1-richard.henderson@linaro.org> References: <20221026021116.1988449-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x430.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+patch=linaro.org@nongnu.org Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/alpha/cpu.c | 9 +++++++++ target/alpha/translate.c | 6 ------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/target/alpha/cpu.c b/target/alpha/cpu.c index 979a629d59..270ae787b1 100644 --- a/target/alpha/cpu.c +++ b/target/alpha/cpu.c @@ -40,6 +40,14 @@ static vaddr alpha_cpu_get_pc(CPUState *cs) return cpu->env.pc; } +static void alpha_restore_state_to_opc(CPUState *cs, + const TranslationBlock *tb, + const uint64_t *data) +{ + AlphaCPU *cpu = ALPHA_CPU(cs); + + cpu->env.pc = data[0]; +} static bool alpha_cpu_has_work(CPUState *cs) { @@ -226,6 +234,7 @@ static const struct SysemuCPUOps alpha_sysemu_ops = { static const struct TCGCPUOps alpha_tcg_ops = { .initialize = alpha_translate_init, + .restore_state_to_opc = alpha_restore_state_to_opc, #ifdef CONFIG_USER_ONLY .record_sigsegv = alpha_cpu_record_sigsegv, diff --git a/target/alpha/translate.c b/target/alpha/translate.c index 6766350f56..f9bcdeb717 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -3049,9 +3049,3 @@ void gen_intermediate_code(CPUState *cpu, TranslationBlock *tb, int max_insns, DisasContext dc; translator_loop(cpu, tb, max_insns, pc, host_pc, &alpha_tr_ops, &dc.base); } - -void restore_state_to_opc(CPUAlphaState *env, TranslationBlock *tb, - target_ulong *data) -{ - env->pc = data[0]; -}