From patchwork Fri Nov 1 08:51:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 178290 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp186582ill; Fri, 1 Nov 2019 02:04:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxky6k2wp43WsbaBROOsIToSheoRLeVnsH2ARk7t8VNHuZCq3d+TxroPiFFtCQLFrtrOMxH X-Received: by 2002:a17:906:743:: with SMTP id z3mr8430928ejb.142.1572599056984; Fri, 01 Nov 2019 02:04:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572599056; cv=none; d=google.com; s=arc-20160816; b=F2HAmYtB3Fr+NroeCVmJ1Kal4AfMYRW2kuM/skqzy+0A7/3fJ99QP3mTV/xKjfEqUh vLPFqNAmCLsGJR6H9Mhdj6ek1iFlssgF6z35ukSlxNo7J3CG4FqDrJtNtYQDwtCBX4o/ 1RYZntdzzGyvNJL6VuFafnE4deFY6A/+Tb2b5WlCoMwJUPh7y4/+FsFuXuS+AdEYENRW uzgeuCW1NbLmi6l9zREn90ofz8hi6Z3aPV+XcD5vAKF9dNNa/cl6TmHw2ONFa++KVhps VWAYNYRFYM7sahXwtuJLDDdcn7+2jg+dRn6/WW9GZzhmEIm0B2yQqnVvaa+CuUO+iA8m rqPA== 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=rrO+qwPM4Kmir6VZyxAXUgGXFxnOGGraCt67S9SJoFU=; b=LbjIVGCJvaHlKu4GRbDZC5Phem5DSnIQx9cM0mWEPewUlZ9Ys8abIR8qD4nS9gUceC W0nQwk3MMggxzUWiNO4Ofts/BhI85UYJciQDOPk1BpVKhQAMXTALI6F8qWF1wy/WMGv9 xMgTfP9rab9PPUISYlEQSoyVtUgctwWlvpdprxUiYzVyLAPVJ5J26IOCE38bM0RZ4rSw Qu67UuFXXqvxuyBA0OduIus56pB0HBXa+mZk56j7B/6vlLCyUBVlOe95+ePLfrHVmUwD dq/p1FkUQTXbF64HVnO5GbiL1Pix5GRBnmz/XdFGDq2XaB5FBUIqVLsjX+NUII9IRelP MNnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j0tRb9cY; 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 f8si6204244edf.428.2019.11.01.02.04.16 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Nov 2019 02:04:16 -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=j0tRb9cY; 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]:60102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQSqs-0006XJ-Eu for patch@linaro.org; Fri, 01 Nov 2019 05:04:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56555) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQSez-0001BZ-AU for qemu-devel@nongnu.org; Fri, 01 Nov 2019 04:51:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQSey-0000cW-7Z for qemu-devel@nongnu.org; Fri, 01 Nov 2019 04:51:57 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:34564) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQSey-0000YI-1U for qemu-devel@nongnu.org; Fri, 01 Nov 2019 04:51:56 -0400 Received: by mail-wr1-x42d.google.com with SMTP id e6so7115071wrw.1 for ; Fri, 01 Nov 2019 01:51:55 -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=rrO+qwPM4Kmir6VZyxAXUgGXFxnOGGraCt67S9SJoFU=; b=j0tRb9cYn0tON9ckOzHCr5Ts/qCfHuQDrbSQ+54FfC2KjXdrQAfyjZJPdXoWPDBVOC uSRshks7jQNS9WqrhPbWGfxOaTSwCx7KRrrlKOMHb41WLfh0e31Y1hGmcJ6g6DLOtM5B /bqnZyyj6kvY/UPqt4JHwl8GfDR01RlmKRAeT8xbR1qTsbwrMdhqvkVhSJZGNx3s3y2q twEyPw7+yBv90QJl7JMnSfpJ2wlIIzDQbvL76og+s0rVTEjKcJGgjQmQOMnmNDmf5dxi Qgi3PCqk5FVt7pz3xFxi9BpnlS4EfvcLpVXaWcxVtl2lqUZXsvnVU867iVlFZyj8Eiy3 LngQ== 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=rrO+qwPM4Kmir6VZyxAXUgGXFxnOGGraCt67S9SJoFU=; b=RIJdYeJB5/HbTWT+xF/xC67V4GoSk+1ITVUdyqwGajSseYZId6+RHfQOIm3rXSnm13 iAeA5tP21MsWp7FsEERwGUeRB325en4GcT2f/s+1ACMlCu7mdoCmhgbODd97GwEe8pE+ sVEyx7IZzEvvUwV4W6Qtz23WmDSNcqTYXUPdAMGMLVhtm3ilRu747c69cg+eATKICu81 q6sauiIZQS17P7FwhTRkwDFLKn/rvvfCi66cZw+C1z/gMK5GGKgMJDy29R4mDdlDHi4a i5lJ2gS7GTMXSx4kGA7ivW6Frc4SWvnxoEltKzDBOTz6Vb5FsvBMgSPE19+UJCWYTqGr CtwQ== X-Gm-Message-State: APjAAAXMDAw6iV32LqooNDUZ+MpJ6D7/Q67bGIAh54PRRGyimrQEyeJS z0TlkDMVKxOAMTiqe6OPugb8fnPvRj02hSLD X-Received: by 2002:adf:ff81:: with SMTP id j1mr607945wrr.98.1572598314758; Fri, 01 Nov 2019 01:51:54 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id d20sm8818922wra.4.2019.11.01.01.51.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2019 01:51:54 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 10/11] hw/arm/boot: Rebuild hflags when modifying CPUState at boot Date: Fri, 1 Nov 2019 08:51:39 +0000 Message-Id: <20191101085140.5205-11-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191101085140.5205-1-peter.maydell@linaro.org> References: <20191101085140.5205-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::42d 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: "Edgar E. Iglesias" Rebuild hflags when modifying CPUState at boot. Fixes: e979972a6a Signed-off-by: Edgar E. Iglesias Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Reviewed-by: Luc Michel Message-id: 20191031040830.18800-2-edgar.iglesias@xilinx.com Signed-off-by: Peter Maydell --- hw/arm/boot.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 diff --git a/hw/arm/boot.c b/hw/arm/boot.c index c264864c11d..ef6724960c0 100644 --- a/hw/arm/boot.c +++ b/hw/arm/boot.c @@ -786,6 +786,7 @@ static void do_cpu_reset(void *opaque) info->secondary_cpu_reset_hook(cpu, info); } } + arm_rebuild_hflags(env); } }