From patchwork Mon Mar 15 18:46:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 400538 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3683252jai; Mon, 15 Mar 2021 12:04:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU7vfq2oSGvcu5MWJ9hu0nCgldppkiqmU6TQ9sCwYWAhrixJW6LOJXRoNvs02yqzBOHtmr X-Received: by 2002:adf:b1c9:: with SMTP id r9mr1101202wra.51.1615835041381; Mon, 15 Mar 2021 12:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615835041; cv=none; d=google.com; s=arc-20160816; b=UHHJb8n8KKZTpgKgkDr1X6DKRfOWPFlM2kaEU4V9yP5QQQWOGYMKeHduh3rqc6WiLk FtgmrmKhba06au8qkaIqYEzWs9qkKNuEFH6Gsn3C9N+M3NIRAh0NQs0YSLyNOrlbzG5b 1YTSkEq9ep1b7GjYYaCek//cskq7Z2q7zpoaBz65Z2UCtuPNmhKG16u4T1IV6thd3QIB etyJn/JZAbZZN7BYo43qhEkOtpJIXvUDE/EBsAITMywG5MQXMwmDdgNv0YagfrbkAGwy tYjadrt+rtHLnbLpFalmXMYUo/ibW2wi5k9L/JLMPvsZ1Uou9YdOZ7/GOfzy9fl/szWl DpwA== 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=Yn1M+lE2v7EuyDGAcu9RIP6tnxoaTYcb2VMIE3C3SLM=; b=RXKeyFYAMXObL7azssu79wD4znR1tV9bX1nT4nNYiBL2lNrQdv9mDwjI/F1bcwT3vV UsZhtfuEr8LvJImQKK8luEG3COCmPfp+wkE6JSrwRZ87HC9l2PM30jvlFFcqf4R2KvA2 +PEjcditbN7LyzqdJ6fq9tsONiCHDLgUvdcr8hQ9/QE4Zp2ulqOtZ7DbQN2Ap+VLPrXW /1LYHj4Kgi/tuurs/PcRt8poMy1pducG2jUneYOE+nU5svIg2Tbb/vgf4PZPjJLuwWu5 vaAG6+eA+UPOGCdGhg8rmrOU8O37hzIQd6Ru+eXvRo7zEioQIGN6mTgrzEk18tLm6d1x zq5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U24q8Mgu; 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 b13si15264385wri.284.2021.03.15.12.04.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Mar 2021 12:04:01 -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=U24q8Mgu; 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]:55504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLsVU-0004bO-Ar for patch@linaro.org; Mon, 15 Mar 2021 15:04:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLsEf-0007Y0-Ne for qemu-devel@nongnu.org; Mon, 15 Mar 2021 14:46:37 -0400 Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]:39630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLsEd-0001ha-RY for qemu-devel@nongnu.org; Mon, 15 Mar 2021 14:46:37 -0400 Received: by mail-oi1-x234.google.com with SMTP id u62so19691179oib.6 for ; Mon, 15 Mar 2021 11:46:35 -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=Yn1M+lE2v7EuyDGAcu9RIP6tnxoaTYcb2VMIE3C3SLM=; b=U24q8MguD3lrzDPcT0ygbzeATl19chSf3Uz+T6xI+7+FIJDRhoAdsrWslkbcigXCko wSpQ/R2D1kWkwClVnfAOZb0zT5edih+WHd5ojez93+mjnVjM0FbD6uh1BJqlSzMSNMX5 XD6F927PitOo76VVh9aJIgBXC8X9kOu+ocHK/aE7/rUlyV/32RrhHNR69OXulGcNc8pn +155ewB8SLjrITLPJmfYOevO09eoy1huf7ddbRlVXbWOahEa9rU/L2HI9G3qOiI2KGqL k460Dpiq29gP0bcDLo6xseDqvcGxidmf/rmleWmk3hs4AXe37rfLqESbbtTQg403D29L 0sRw== 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=Yn1M+lE2v7EuyDGAcu9RIP6tnxoaTYcb2VMIE3C3SLM=; b=aw/XPctzno5236pvSnVEYVpj2tkUV2VFuWJmDm7J2Jc+a7rStWcFzHHv0ztvXjAKQL 1RSTaXIBokl9Dd0HGkF8585VM67kzv+38Fi6tHIMzOlgVAoQeMgJAEHi7Ew2HIy6jsGs i2w8+WrbYjYMaZm81DTaz2aGaIkebhxi97En3H25cxlJg5MxuFADDdpc2QHsvksicdGr rgKZOrCDPHm2gpHpwuVxWKas8gfwT5389sprA2FUc8rGHHRUo00nmxwOjFS/zTkogxCQ utBd9NXy9fb13kaXTm4KRSKa3SbIPr/ufE15tUBmmVv8dMofPw7fCZYlUeysDulV5AHZ jkMA== X-Gm-Message-State: AOAM530eUY9YhPnNZXMTUEZCvnXr4pM9CUJ6856seaGUfBkkFEXSey81 UYv2SzJjhrhk0Bmf36ge+nwhGFHYZ4rPsYw1 X-Received: by 2002:a54:4419:: with SMTP id k25mr343386oiw.141.1615833994859; Mon, 15 Mar 2021 11:46:34 -0700 (PDT) Received: from localhost.localdomain (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id o25sm7519851otk.11.2021.03.15.11.46.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 11:46:34 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 14/17] hw/ppc/pnv_core: Update hflags after setting msr Date: Mon, 15 Mar 2021 12:46:12 -0600 Message-Id: <20210315184615.1985590-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210315184615.1985590-1-richard.henderson@linaro.org> References: <20210315184615.1985590-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::234; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x234.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: qemu-ppc@nongnu.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- hw/ppc/pnv_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/hw/ppc/pnv_core.c b/hw/ppc/pnv_core.c index bd2bf2e044..8c2a15a0fb 100644 --- a/hw/ppc/pnv_core.c +++ b/hw/ppc/pnv_core.c @@ -29,6 +29,7 @@ #include "hw/ppc/pnv_xscom.h" #include "hw/ppc/xics.h" #include "hw/qdev-properties.h" +#include "helper_regs.h" static const char *pnv_core_cpu_typename(PnvCore *pc) { @@ -55,8 +56,8 @@ static void pnv_core_cpu_reset(PnvCore *pc, PowerPCCPU *cpu) env->gpr[3] = PNV_FDT_ADDR; env->nip = 0x10; env->msr |= MSR_HVB; /* Hypervisor mode */ - env->spr[SPR_HRMOR] = pc->hrmor; + hreg_compute_hflags(env); pcc->intc_reset(pc->chip, cpu); }