From patchwork Wed Oct 26 02:10:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 618758 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp112109pvb; Tue, 25 Oct 2022 19:16:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Lbzs4/8SkzcU7SnVumVHjVjvOf37sd28vAsokU2UunyUvgcv2oZQ+AOfoAkVhs/JaoWSU X-Received: by 2002:a05:6214:20e7:b0:4bb:5e7e:715b with SMTP id 7-20020a05621420e700b004bb5e7e715bmr16683419qvk.20.1666750610016; Tue, 25 Oct 2022 19:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666750610; cv=none; d=google.com; s=arc-20160816; b=RH2M5dW56M6uFIPx2RPUzJeHIOo0i8lakp50v9hV41nSo8ZEx3hvlh0F7rZoxNXuQf YOZJrMEsIsANgW60CwpR8Lg4HP+rqSp9XRGGYYo9t+Ih2ZNunMeBUfpvwOgxAQopkrVu 8B1C+H1fzLn4bKjPDi/OX9sAxSABLG5iqISIa3u7RmmhKjLBYG0uSn6NFhUcjo+D/cCL ToxDIuT6O2KkYpfMRInL8lpVuGNwkl/ruuodl1iwfi7q7RGNbCZGk9aoi7bLlFpWBi6D UYJWg6fXa51o+3RhUHHlp+cfIacnf2MaZTm2G1WYgbyFOTRTARrB93wSx0WnCcrci2Go H61A== 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=xCgUD/CDm7rh2G6Hg1YAveve5hrsKtyPudhnNjch8RI=; b=k7kmX/3RF9+dihytR9AA1332I2yd1UzRZk/M0YAZjQxcP5gUxbYKiWgOTMP0I0rxBN F+ME9KWkC8ZC++QBZuV53DJ0MEk2U9yxDlKRA5t8IP0bpCxjui8461tGH7/1uuhxyL65 luZGGjf5NCqQYrrfnhtDyQRsTAl4aud5IWe/oQ5MoD6U7Q9rGk/bhvX+rF0+ZdM5ZksL QwW8poLTnoGDiPMc3EgRD9HNQ1kY3AdT588oANllVK7j2ubmrmSwR24D/R3xRjq7u4rb IK6kDPSpWiXQVpZq6+aiQiwH9Nw+TsFizYxI4X/5QJXg9d9qRAbiRpTHM0vulAQCtb0a YBeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dkklZ+0V; 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 ci8-20020a05622a260800b0039cde34ac5fsi2395109qtb.628.2022.10.25.19.16.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Oct 2022 19:16:50 -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=dkklZ+0V; 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 1onVuV-0005KA-KL; Tue, 25 Oct 2022 22:12:51 -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 1onVuT-0005Jm-Kz for qemu-devel@nongnu.org; Tue, 25 Oct 2022 22:12:49 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onVuS-0001HO-6x for qemu-devel@nongnu.org; Tue, 25 Oct 2022 22:12:49 -0400 Received: by mail-pg1-x52a.google.com with SMTP id r18so13415702pgr.12 for ; Tue, 25 Oct 2022 19:12:47 -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=xCgUD/CDm7rh2G6Hg1YAveve5hrsKtyPudhnNjch8RI=; b=dkklZ+0VYCYHJy6hkBFIXPoNR53foc4BMrGM7gSaBRPJlk0N+D7JKq04+EugRg85vh AfaQ8k1LCtFFKy7twrQefMAiNqpucjbQfrTNhlHIuw+4sVQsXAeK3ut0V5HSMxFFX0Xh 6304NAzxcxIqOgDhPETK3sNHg9s58+WKhIqIVN/EAaT+zfp5dbQq/I/Ikkglr9anFLqY uvVRRk5XEhxd2hfzDmjtbEkbRCEEx31NkfS/Q7VEkspo2hDZM7qkAxEnLs2yJnTLglth +hmCtZc/klwGw1/lQeuBuclgok8ztflbUWgSerCDN1VAYtXmoMrYeP9O9ObiJdoyKJ3M hlEA== 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=xCgUD/CDm7rh2G6Hg1YAveve5hrsKtyPudhnNjch8RI=; b=7HM3JBacVcL2HAAbzUo+sEKddRgnkjrgVQ1H9XFNDewWTVmgJpRWYQtA/tgdrPcIBU mj8L7Nsme1PmCS1hjDCwRJd7HDoHmAjrK4JmPLoer8prrZelPY0wHDNx5lhH1Jz1Pp7/ 955vrZxiPB63mNyHV6HcNLb8gVBvYQxKDKixaKsZjW76YqbBo8LuOce/s8AkqzoqGy61 SdcsMzuejEDlzru5aihFoFQYxQaZibe2OFqsHLtvH8u6PDiZXBEGQqv/jPHevVjJqV3I ZdPa/JQxwcwMScVKxkM6mKXgNscwO4SeBw3oqTjKOLEHUzwn2qRYSrzgrrxn+vNjpmSJ N3iA== X-Gm-Message-State: ACrzQf2Vxiqhgr+GRJuAEu3txLGsfMEjBsVe0y5l9FABNYXViytKvwNI kbRa23671ZHfnlE4YtHBVL8ojSrCwSnO9ceb X-Received: by 2002:a63:5a08:0:b0:43c:9fcc:cc54 with SMTP id o8-20020a635a08000000b0043c9fcccc54mr35100239pgb.229.1666750366891; Tue, 25 Oct 2022 19:12:46 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 19:12:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 30/47] target/hexagon: Convert to tcg_ops restore_state_to_opc Date: Wed, 26 Oct 2022 12:10:59 +1000 Message-Id: <20221026021116.1988449-31-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::52a; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52a.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/hexagon/cpu.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/target/hexagon/cpu.c b/target/hexagon/cpu.c index fa6d722555..03221fbdc2 100644 --- a/target/hexagon/cpu.c +++ b/target/hexagon/cpu.c @@ -271,9 +271,13 @@ static bool hexagon_cpu_has_work(CPUState *cs) return true; } -void restore_state_to_opc(CPUHexagonState *env, TranslationBlock *tb, - target_ulong *data) +static void hexagon_restore_state_to_opc(CPUState *cs, + const TranslationBlock *tb, + const uint64_t *data) { + HexagonCPU *cpu = HEXAGON_CPU(cs); + CPUHexagonState *env = &cpu->env; + env->gpr[HEX_REG_PC] = data[0]; } @@ -327,6 +331,7 @@ static void hexagon_cpu_init(Object *obj) static const struct TCGCPUOps hexagon_tcg_ops = { .initialize = hexagon_translate_init, .synchronize_from_tb = hexagon_cpu_synchronize_from_tb, + .restore_state_to_opc = hexagon_restore_state_to_opc, }; static void hexagon_cpu_class_init(ObjectClass *c, void *data)