From patchwork Wed Aug 18 19:18:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 498964 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp987742jab; Wed, 18 Aug 2021 12:55:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqcvD8tjUDm5rmQSZ0U976L5DZ/SREgO5b0YvtYaii53/mokXDemoEEiq4LbWQ60G9Z8C8 X-Received: by 2002:ab0:249:: with SMTP id 67mr8311791uas.103.1629316538894; Wed, 18 Aug 2021 12:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629316538; cv=none; d=google.com; s=arc-20160816; b=P1B/nHFA1wHK+coj45bZw4X8Pz24AgpUj+IGeJURd2+ECQgrvAoIUkVKzqH2EKdePA 8jVt9ieEwz8cACqR6XK/2X/bSBMBqS90BkTljk1O/AxdWZwbL9C53L5+0PUOcTPy1g2I gQhWDXlv+/tE2bd/NNXTJj3wwcbHpcMSY4HMJzow7CDno1RmCZs0Ag0gpN1rNcD47RBQ /lIpeYYpvIV0RCg8HHeaSVyCK2H31Cfpsz8yJeY7igzLGg4nD9YqEjjJkOo2rbtyyjhY R3ibFqmSmcoBeHkzYTcKnZEiuE/i92bffB6nteAGiS6Wf6ZGmNrIimZ25oCLO8kJClka Oq+g== 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=kL7S1VIhGWd0zPGO5R9RGYtF+Izlm+bII/GL/xjRg10=; b=vAYvH0x/QEKgx/wdqxZiT4uyVNVEf8P0MdPGizM6t876kvGDE/Hq+zLBNKiyrAdg1H lXsE+FdAUg8s3w8U4masjf9OcyGtlFhCHpWvHIG+KjuoHn4lRz9WBShzKls621yjqT0x 6QaVFGP3Osqcjyn9CatQs44VOntJ9sh08HX3Q7Lins56X0g45Z2Q/Ni50yEUvQyC9yFi K9MWfpe/VjBL3eV2RcWrO1e9whhhC9qdpAu9p9s7X3Qwp7PUWFfNbB7taDIqimyRNW+y OBp96HivZoiRpRH3ah7VkK/NlIaOkT7119crV88GGIB22PvH7NGTa6PYIVJkBJV7MA/w MfeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xmjXMErP; 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 s14si747405uap.154.2021.08.18.12.55.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Aug 2021 12:55:38 -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=xmjXMErP; 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]:33172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGRey-0008Ow-Pe for patch@linaro.org; Wed, 18 Aug 2021 15:55:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGR9h-0006d4-8b for qemu-devel@nongnu.org; Wed, 18 Aug 2021 15:23:17 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:43852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGR9f-0002e3-M6 for qemu-devel@nongnu.org; Wed, 18 Aug 2021 15:23:17 -0400 Received: by mail-pj1-x1031.google.com with SMTP id qe12-20020a17090b4f8c00b00179321cbae7so3069276pjb.2 for ; Wed, 18 Aug 2021 12:23:15 -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=kL7S1VIhGWd0zPGO5R9RGYtF+Izlm+bII/GL/xjRg10=; b=xmjXMErPkRHtOVYdoOnIUPnXyzdj5z0ssS+ziboy5OUrRgEN28TvCJH5iACG57k9+d QoQ3An9CYZtpSm2BboOR5/5B2TKklDKydtO6wn7mpaULxKBHQPB6CfAtA/JKmPR5CvHe zo3LDAFcMequwBZMb5HEiOA6nk3sHISlkOwB0hRaYe03MAca0B2UluDK6UOzXqF+pFzc 1fmB5PaDOXe+N9kGHHTo3He+WGr8F1S2zrztQHElT/zDyPqZn7+kiUGBTOeHDetVMx+8 ZPToDuY9ShXD+rJrRziLeV8UU2k1xvMTf+lVZGR2teQDw7hLZ6/q4hl/oxyQCZ0m8nt+ IA/A== 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=kL7S1VIhGWd0zPGO5R9RGYtF+Izlm+bII/GL/xjRg10=; b=cFt4cOtJ6fVgtmUG86rIrWMyTyBkUliD6EQ1nMa87/zeOa/1JtD6StD9+MkopakO8g r/wDTW3aZg8YYUbVZfRKGn+GkQjr/M+UG0e6yQIfjB+Z28MY1Id81/a6Rijn9lLyODDY oZfcRH5r06UtO92eFY9uFs4TnjNXi0RltO6/0w+OPqUmIAGcl05W9ftEGjcCqDblYJL+ 7WlRQBUPQVdwRR7AsFX6oaTLisxvkOGZob5+ap9BnJcp7eItpvDqGgMMdK4bMkWVzSYQ 6iUbWfgeLOq9XD++kqu6GPU89fH+ss8EVnZh/Ehyldm7CjxIpMsTDltbl8JZb5FycG9O mTHA== X-Gm-Message-State: AOAM530QLTOSmaKCzyOCVdotPWVFWYyOAGjdphgQ+7TPg9JZY7qiU9VS 4GgnpnglDOaOrPvlHmRRTyCDyenFK6h4pg== X-Received: by 2002:a17:902:e744:b029:12d:6479:83a3 with SMTP id p4-20020a170902e744b029012d647983a3mr8403180plf.30.1629314594084; Wed, 18 Aug 2021 12:23:14 -0700 (PDT) Received: from localhost.localdomain ([173.197.107.15]) by smtp.gmail.com with ESMTPSA id w82sm569302pff.112.2021.08.18.12.23.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 12:23:13 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 40/66] target/sparc: Use cpu_*_mmu instead of helper_*_mmu Date: Wed, 18 Aug 2021 09:18:54 -1000 Message-Id: <20210818191920.390759-41-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210818191920.390759-1-richard.henderson@linaro.org> References: <20210818191920.390759-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1031.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: Mark Cave-Ayland , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The helper_*_mmu functions were the only thing available when this code was written. This could have been adjusted when we added cpu_*_mmuidx_ra, but now we can most easily use the newest set of interfaces. Reviewed-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/sparc/ldst_helper.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 2.25.1 diff --git a/target/sparc/ldst_helper.c b/target/sparc/ldst_helper.c index 299fc386ea..a3e1cf9b6e 100644 --- a/target/sparc/ldst_helper.c +++ b/target/sparc/ldst_helper.c @@ -1328,27 +1328,27 @@ uint64_t helper_ld_asi(CPUSPARCState *env, target_ulong addr, oi = make_memop_idx(memop, idx); switch (size) { case 1: - ret = helper_ret_ldub_mmu(env, addr, oi, GETPC()); + ret = cpu_ldb_mmu(env, addr, oi, GETPC()); break; case 2: if (asi & 8) { - ret = helper_le_lduw_mmu(env, addr, oi, GETPC()); + ret = cpu_ldw_le_mmu(env, addr, oi, GETPC()); } else { - ret = helper_be_lduw_mmu(env, addr, oi, GETPC()); + ret = cpu_ldw_be_mmu(env, addr, oi, GETPC()); } break; case 4: if (asi & 8) { - ret = helper_le_ldul_mmu(env, addr, oi, GETPC()); + ret = cpu_ldl_le_mmu(env, addr, oi, GETPC()); } else { - ret = helper_be_ldul_mmu(env, addr, oi, GETPC()); + ret = cpu_ldl_be_mmu(env, addr, oi, GETPC()); } break; case 8: if (asi & 8) { - ret = helper_le_ldq_mmu(env, addr, oi, GETPC()); + ret = cpu_ldq_le_mmu(env, addr, oi, GETPC()); } else { - ret = helper_be_ldq_mmu(env, addr, oi, GETPC()); + ret = cpu_ldq_be_mmu(env, addr, oi, GETPC()); } break; default: