Message ID | 20210818191920.390759-40-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp973891jab; Wed, 18 Aug 2021 12:35:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTmbH0oZElsThJqy854KPnhdD+4WzdswgoIWrfUqh0zJ1qAExLWNtsF4d5+AIpYXqlcT8X X-Received: by 2002:a92:c241:: with SMTP id k1mr7241449ilo.270.1629315312567; Wed, 18 Aug 2021 12:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629315312; cv=none; d=google.com; s=arc-20160816; b=aQaoh89kpVBEJ0M9R5piE2aOviFqwDet7QkQa2yNeUB+AYOYdbZHHVLtYcjOzznBbX 7r8vVtrwXc5MQgIyV4d4GmieMzsePmzNf3Ax4RkA2IwQElI+p2eTp6hYk2Cbw0L6ZeXw 9tWAKSFdnXvvh2UyvLObHNgCpfiH2g6ZWFGILe/wV7Oi1tCeNmOFHZglorS9cjsvDH7P IvRbgVD/i5pYYqsM2UwA1rJdUB2Ly7Ouz1w7EZxgQKKsxgTp2MYSSdtAB6J2pYq21SBz SFvuTIvYyBLY/f/OWpeZloIlrCVtjbUMMXC4yl0PEQcB6dOaIJWNgT6k1T3KnzA6I+ai iXlA== 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=rrhEH74uRU5wNo7wx1ajciBORCdhKaW0yGEoPAQT7ZY=; b=t0HndQx2KbNv5+7/GF3LDWbpaAkP1pKXKd0fXjkGPZD7FtlKxglcCIL2rO9Y3TTgzR bqotCmT+EOF3HueJ3FpYOBKAOUJJv0vjrv5lXR0Q+8Ku04vJnQ/SVh9Z/BnXjrMkNvDv Eu47GhGKHdY+vgr2NcGDonvWrP4Uimle9U7hDCh4q9RNiH52qpCnsInXfVS0qCLWRVB7 dFdemMi0XVMKOp08BZMri7XM0cnSVleZyKFAq4DCdIv6Ze1gWTrlMombaCELClQQEcxP HRgwZHm2WhdU4Y+z74g3YntFvq26q7lAcMB6B7RRMt3p1ezYYu4cmR+h+kgqt9t0E0pt omJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=F9sv85+J; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k10si763127ilc.6.2021.08.18.12.35.12 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Aug 2021 12:35:12 -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=fail header.i=@linaro.org header.s=google header.b=F9sv85+J; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1mGRLE-0006Hr-0A for patch@linaro.org; Wed, 18 Aug 2021 15:35:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1mGR6j-0001Gj-LV for qemu-devel@nongnu.org; Wed, 18 Aug 2021 15:20:13 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:34362) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1mGR6i-0000PN-4e for qemu-devel@nongnu.org; Wed, 18 Aug 2021 15:20:13 -0400 Received: by mail-pl1-x62e.google.com with SMTP id u1so2469700plr.1 for <qemu-devel@nongnu.org>; Wed, 18 Aug 2021 12:20:11 -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=rrhEH74uRU5wNo7wx1ajciBORCdhKaW0yGEoPAQT7ZY=; b=F9sv85+Jw6v3QZNL2IXJmTczCp/NzC5jO7N0x2Tx/5zENT9yw0DRlZb+rab8quLXWl HkHdlvmqEpJMJpbxtWdcbHoZBAeLBJFqQ4ixi0lGciVgxLprfq1J9T+i5eh7jQ1C7GQN X73nbcC3EtbLfuom5ETnVt0aTQkilWFj1g/YXOVPfP7T7VM39fAEWmxM+aORZmqCGQlw S/MgVKzU9QKie9LpdOXWe2W3FJyB6QgetXO9QuMJUs42vodeTF+m5qEIUDnF8nYL8tu6 w8L5y3ne2aTzT1KK6eA90PkGr1/ekXfdk9ZGH/r7cgNAZ5EZYNF+SvNVKsLG1ogz47Za 5OIA== 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=rrhEH74uRU5wNo7wx1ajciBORCdhKaW0yGEoPAQT7ZY=; b=qVya21nZJsVlFcLH9dKckoJd6EKwDsr4eWpMsYYRpJd+B8GZLsynlHAjZscjZ5hXJB VGqKUbNFIDmQvbEotaGNY6hNUdUbJXgwa07bs2dvKvTwGNqgJEkZOusKJnszzjN2Lm4d 1b2zM5rLf2l79iKSuyPEvx8182pb4PZBk1dzsulTdOv6EZI7aycV2TtB15q+BlQKTT3n 7rcDgnA5G5k4mbY/ZubQOOQ+6yARgol6xEqXHqILCloe/Ohbyr6+xJuQoDGhNNboDamH pO9tXNsvczjaWKc+cBCqfmvVBQ+Y8+uLDvjpIus5tUatctYjhyfySw8qF34iNepR1Isp V8zw== X-Gm-Message-State: AOAM532uEyjjoHEnoF8wa0kGyUJTPYfPr88QEWKLkvY1HMzPHCjA+viX tsfus9Iyi640XxftyWRMgQQ9GxRirmk9Jg== X-Received: by 2002:a17:90b:18f:: with SMTP id t15mr10657686pjs.168.1629314410989; Wed, 18 Aug 2021 12:20:10 -0700 (PDT) Received: from localhost.localdomain ([173.197.107.15]) by smtp.gmail.com with ESMTPSA id a6sm524108pjs.40.2021.08.18.12.20.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 12:20:10 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v3 39/66] target/s390x: Use cpu_*_mmu instead of helper_*_mmu Date: Wed, 18 Aug 2021 09:18:53 -1000 Message-Id: <20210818191920.390759-40-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>, David Hildenbrand <david@redhat.com> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
Unaligned access for user-only
|
expand
|
diff --git a/target/s390x/tcg/mem_helper.c b/target/s390x/tcg/mem_helper.c index b20a82a914..4115cadbd7 100644 --- a/target/s390x/tcg/mem_helper.c +++ b/target/s390x/tcg/mem_helper.c @@ -248,13 +248,13 @@ static void do_access_memset(CPUS390XState *env, vaddr vaddr, char *haddr, * page. This is especially relevant to speed up TLB_NOTDIRTY. */ g_assert(size > 0); - helper_ret_stb_mmu(env, vaddr, byte, oi, ra); + cpu_stb_mmu(env, vaddr, byte, oi, ra); haddr = tlb_vaddr_to_host(env, vaddr, MMU_DATA_STORE, mmu_idx); if (likely(haddr)) { memset(haddr + 1, byte, size - 1); } else { for (i = 1; i < size; i++) { - helper_ret_stb_mmu(env, vaddr + i, byte, oi, ra); + cpu_stb_mmu(env, vaddr + i, byte, oi, ra); } } } @@ -290,7 +290,7 @@ static uint8_t do_access_get_byte(CPUS390XState *env, vaddr vaddr, char **haddr, * Do a single access and test if we can then get access to the * page. This is especially relevant to speed up TLB_NOTDIRTY. */ - byte = helper_ret_ldub_mmu(env, vaddr + offset, oi, ra); + byte = cpu_ldb_mmu(env, vaddr + offset, oi, ra); *haddr = tlb_vaddr_to_host(env, vaddr, MMU_DATA_LOAD, mmu_idx); return byte; #endif @@ -324,7 +324,7 @@ static void do_access_set_byte(CPUS390XState *env, vaddr vaddr, char **haddr, * Do a single access and test if we can then get access to the * page. This is especially relevant to speed up TLB_NOTDIRTY. */ - helper_ret_stb_mmu(env, vaddr + offset, byte, oi, ra); + cpu_stb_mmu(env, vaddr + offset, byte, oi, ra); *haddr = tlb_vaddr_to_host(env, vaddr, MMU_DATA_STORE, mmu_idx); #endif }