From patchwork Thu Oct 24 16:26:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 177565 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp2421458ocf; Thu, 24 Oct 2019 09:59:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzev1gN7QKGXQFfq2rR+mqOJIJ3RZSjATRffAyFd94oe3LB0s4H4eKHvjypZk6DVAMTxV3S X-Received: by 2002:ac8:ac4:: with SMTP id g4mr5201975qti.326.1571936364194; Thu, 24 Oct 2019 09:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571936364; cv=none; d=google.com; s=arc-20160816; b=mLMdCW0SQBc7l7NFQLjQD4QEl05pVhGtDDt6LtX2U3IbaadS1gmIuwD2U//y7B/rhe fzLItnR/YxuV4R77BmjY1U4CHzASYrLoToEEwIp3EzGV0xfZ0uZDSQ7S27y5DU7+XwEK 7lpWkgmoY1PTp8N25x+XVtnOYWdH/EYr/hLodNwkYlnMbqn9j/gL4cOMFdLqipFjpUi4 GH0NEuBmWLjQKiAHYwRjgkc37VCIgw9EUK4RCJbE4cUHTpGfi4jwWkr+9yHFZkaSbL5r Ga8mW/l97OpfhLXOqG5opVZSmrSQB1HOXJZR64cdpG4i/xledYnTEwx+Gb/uvVyVOg7M y/vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=hoD3aqwz/kF2U/X48pwyEPkA/UK/DENbEy2Cn4bAuH4=; b=T3XBIlwcIxn0cfZHl0oAI+4RxasFOj1Lwlq0SuDw47ubRWSfZpOASm5fdkYmzyJpB0 cjBispVUaG5dEtNQL0lT0Ejt53ylzW+/N2JurA6s3Swz+j5dQB67pRQ9DDjGTpHtR0yE kICm87uPFLRSKd/9vmyIH1wljHcJcTuiUCe9iRimVUwHBIsnBS8fUGFS3urOzFuDn5W6 EibJQ6kJVNLySiI4KhZmVlW4YW6ShHIFYcYZsd+zh32mQ6c39QU9Hn3Vdq/qE2+iZF9x rvjiVB86dOHHFBn+/k1MPjsH0ocLaRl11kmFF8B3ZRmRC/3NbOGNnlpwGzWUZBPOu7n0 ssHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GGNv6wHw; 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 m5si10587299qtb.134.2019.10.24.09.59.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Oct 2019 09:59:24 -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=GGNv6wHw; 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]:48162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNgSJ-0006Ez-3f for patch@linaro.org; Thu, 24 Oct 2019 12:59:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57999) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNfxw-0007do-E2 for qemu-devel@nongnu.org; Thu, 24 Oct 2019 12:28:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNfxu-0000rY-CE for qemu-devel@nongnu.org; Thu, 24 Oct 2019 12:28:00 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:33457) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNfxu-0000rM-63 for qemu-devel@nongnu.org; Thu, 24 Oct 2019 12:27:58 -0400 Received: by mail-wm1-x330.google.com with SMTP id 6so2365001wmf.0 for ; Thu, 24 Oct 2019 09:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=hoD3aqwz/kF2U/X48pwyEPkA/UK/DENbEy2Cn4bAuH4=; b=GGNv6wHwfTL1QGLGhWzRJa+KjstPTyhmRqBkFGLxoGio2SZHiN+Ztf4zEC30C4/opi XguljHlgb6lOVuAbcNAlVhrx+kSzMwAQZSW7epW7HYOzZ9WwUnDSlxuCxKFlLjF/262V 9qnL579UohCTn2F0xQ/SHaDgOt5B6VxpnKHwSTIkd5C0jh6WMezd0HTiHHht0D5pF1JV BstneN31cXQliFkknfvmuoeBeSp31nwo7u2j0B7GQbynyhGqTrkwkkRw/wrnaLnA0Yor XBqSZnblJQNPnJiod6g7UcUIcuKmJ8ZNSfnYkP8DRnbG/uJ5dPHYWK0+rMC0JPelaCU8 B+qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hoD3aqwz/kF2U/X48pwyEPkA/UK/DENbEy2Cn4bAuH4=; b=spCCN0zFHiN1W+fjTcvYD+/Rx+FRy24c4knoZEWRHX+Hohg7adxwVb0PtlYPADPevL tzSp+0tOtgX5ELVlelgp1FkUTrMc79t7deL+5kqsYGQJFIoDA+gAEd7sFNr4+z65F0Ie hO0hAMKnPVivHaoZWB9QgjRO4QOO06N6q0Mq2PIeXAx4FfmvMjEzJKwF7/CfoS3d5CoI ARyeEM8IFHo3lBpzzewoEQLlgfz+/6S+LMKEf3s5C1qzmIjWdutcUAyKsUMorZb9jl9l 5jfSaBXhb+Lj74FY/Oun0KPyQLkVYf+rlyvPWgtgHjJtmVc69LGbPGR/oQu6sewqQAXj vidA== X-Gm-Message-State: APjAAAWp18pNk594J1rKDEmb4XFkhbZR9yZvHrNPPkgThI0SV5ZX/SC2 PJCHBpKLFuTdArfGls7Tj/ak+zEeMKo= X-Received: by 2002:a1c:6a05:: with SMTP id f5mr5626959wmc.121.1571934477039; Thu, 24 Oct 2019 09:27:57 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id r27sm42606124wrc.55.2019.10.24.09.27.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 09:27:56 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 24/51] linux-user/aarch64: Rebuild hflags for TARGET_WORDS_BIGENDIAN Date: Thu, 24 Oct 2019 17:26:57 +0100 Message-Id: <20191024162724.31675-25-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191024162724.31675-1-peter.maydell@linaro.org> References: <20191024162724.31675-1-peter.maydell@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::330 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Continue setting, but not relying upon, env->hflags. Signed-off-by: Richard Henderson Message-id: 20191023150057.25731-23-richard.henderson@linaro.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- linux-user/aarch64/cpu_loop.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 diff --git a/linux-user/aarch64/cpu_loop.c b/linux-user/aarch64/cpu_loop.c index 1295fa85313..31c845a70d4 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)) {