From patchwork Wed Oct 23 15:00:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 177316 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp897806ill; Wed, 23 Oct 2019 08:40:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOaHyCfj8bbVqHkPOERLbspEkAbYu8IZejeMRMtHNj/Kxum7iyRpf+zh2RQDc6ezWPCTtm X-Received: by 2002:a0c:f7c9:: with SMTP id f9mr4519732qvo.60.1571845223878; Wed, 23 Oct 2019 08:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571845223; cv=none; d=google.com; s=arc-20160816; b=CDSGcAb14mT2cEScU/GY2iQqVmNX4A9n3ipQYwax5b5/VYxsdbXIv1sv0u7JAtXSR+ JSqPgOJD/znt5Jn1QsqfdTfL2z0A7bIRvPVFKERBuSMGuNXn8/lzbWMIeYwEPjrWCwfq H5Y+1a90Smlynw2EGsDNDkXLv9UgoK+xzreoaJd9EYOilzzuP6+SCe9zXS/zp/EPznbQ w1oyaJElXsKQLiC2z3VaNC6evOaddlPhG0MkPF47jhCxBw4goWxFU2b73sSHuVIb1Hp5 vztA6M/uJy8f2vYMiYeY8vrTO88/RqJLoTaarDhlhThOBAoRWI6UXAWRp6mcRQAkxq0C QAoQ== 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:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=uBYls1SEkoMOURVj/C3yUJq0TivKPiwCZV3WGA+/blg=; b=Gv2cjcQSqJvSV8ERVtbR2IAaXpKMppzzMaoXjs1ZVhsF7uDEKQcGmCDRZMWb4RqjbK w3WnStCRFz9XADkZi2h3XVfOtkR0bw8CLMcVDrBhbtq17BU1mET/Sx5VetBWTGXs2UZK qxh/ToTJn9VwprrI6CxjFGjFvfXgzbXmubpm003hYbYyd2fnAXmZeLMqO/kTUEahm/9P WmK5muLl6Km0+A1sTblBojZhWKfjYRANEXb1dngON6UQ4X1PGpHp4UzB49fLDMYbp3C7 gw8tks97ZPxQ0ZGvpTbldcPbH6WVT0fg5AYWDWqu1wvMdB79SEQlX82rFtLvM7iGOk4Z skeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jX7BbMZt; 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 z25si18382397qkj.297.2019.10.23.08.40.23 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Oct 2019 08:40:23 -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=jX7BbMZt; 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]:39688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNIkI-0008W7-Py for patch@linaro.org; Wed, 23 Oct 2019 11:40:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35328) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNI8v-0008CZ-Bw for qemu-devel@nongnu.org; Wed, 23 Oct 2019 11:01:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNI8s-0001I3-7e for qemu-devel@nongnu.org; Wed, 23 Oct 2019 11:01:45 -0400 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]:36630) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNI8r-0001B1-UV for qemu-devel@nongnu.org; Wed, 23 Oct 2019 11:01:42 -0400 Received: by mail-qk1-x743.google.com with SMTP id y189so20056655qkc.3 for ; Wed, 23 Oct 2019 08:01:33 -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; bh=uBYls1SEkoMOURVj/C3yUJq0TivKPiwCZV3WGA+/blg=; b=jX7BbMZtmCMcQNAA2JyC6isSAjc+uHKsYPzLSkyYxQgRloKo42DLTG2el1Pwy7imCD c9eiFdTNnoxf7+6KQUiKcQDjBaDlGXbeDOOq1a5hMcR4PF9SEeeHXAjNZlavdHdnohSA bzHeCUYYPhi67/lGkgfVTnkE2nsbg8B5aX3RbNaszoXSBi57+5WP74ubw5Bwe1bSe8n/ /gHB3Tj0jR4d4nWsuoNI0Ium1zSjP1SF6wk1kgXNhL7o3wYmzyOzdiVWuSE0ThUWxOxj bmYckK8vgNfJtWX6FGtPLMxneKPIv2sGvgebn7RciW9zPEmKHZCois8utIQdhpoXp54G UIog== 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; bh=uBYls1SEkoMOURVj/C3yUJq0TivKPiwCZV3WGA+/blg=; b=orJwcMH/xDNV2ljl6j3uPiOBtoAoC6yNHXrosPZvbPRn37D8fRntTPt0Hyo5nxLDon 6hhHx0vqn+lw6tedBHN0wgm4/d4dJbqtSLbTCX8aWaPcfqlTNNp2/ah/+40HIAzxEyLz GHZtBPD9B4cWpZQ30OJDA3o+Wo+K5F+cVXHW/supw9T4RCqvJPVLrGw8EdhWP0CA0uJi DuX6R7wetLAruC9IJaWqAygwuyrsmdk4ZhwLzsHvn32BNEcXooRVLIfLd1CV9s/ZPoJF Dxq6SadMEgzLkokszJ9NAK9OjvTHLuL52dnvu0seL6S6rL45Pz22Dna8sdplw1tULdKz ejsA== X-Gm-Message-State: APjAAAWsp5G/ZPUpO1YugOZpe6prmK+kCWYUptIfPcpMiFFiKQjEOI8I JgipNCCiBIqy6M+STYlwRGxWpJjWNvA= X-Received: by 2002:a05:620a:204b:: with SMTP id d11mr8974408qka.379.1571842891810; Wed, 23 Oct 2019 08:01:31 -0700 (PDT) Received: from localhost.localdomain (198-4-20-64.static.cosmoweb.net. [64.20.4.198]) by smtp.gmail.com with ESMTPSA id l189sm11030168qke.69.2019.10.23.08.01.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 08:01:31 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v9 22/24] linux-user/aarch64: Rebuild hflags for TARGET_WORDS_BIGENDIAN Date: Wed, 23 Oct 2019 11:00:55 -0400 Message-Id: <20191023150057.25731-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191023150057.25731-1-richard.henderson@linaro.org> References: <20191023150057.25731-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::743 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: peter.maydell@linaro.org, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Continue setting, but not relying upon, env->hflags. Signed-off-by: Richard Henderson --- linux-user/aarch64/cpu_loop.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/linux-user/aarch64/cpu_loop.c b/linux-user/aarch64/cpu_loop.c index 1295fa8531..31c845a70d 100644 --- a/linux-user/aarch64/cpu_loop.c +++ b/linux-user/aarch64/cpu_loop.c @@ -173,6 +173,7 @@ void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs) for (i = 1; i < 4; ++i) { env->cp15.sctlr_el[i] |= SCTLR_EE; } + arm_rebuild_hflags(env); #endif if (cpu_isar_feature(aa64_pauth, cpu)) {