From patchwork Mon Aug 21 12:59:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 715373 Delivered-To: patch@linaro.org Received: by 2002:a5d:484e:0:b0:317:ecd7:513f with SMTP id n14csp1820895wrs; Mon, 21 Aug 2023 06:02:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVLFEnDXM+2BNFR3PG1SNpJCayogaeFKt3Ko6ahD6oAuOAWOYSU+R+DCu75Pz1jkagtOFd X-Received: by 2002:a05:620a:bce:b0:767:954:a743 with SMTP id s14-20020a05620a0bce00b007670954a743mr9164313qki.51.1692622924821; Mon, 21 Aug 2023 06:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692622924; cv=none; d=google.com; s=arc-20160816; b=K0ENeH0aSZ8wtgdS1k55qpNaW/fGTgJ/C/re0fPGK8OioCVz0kDq7lZWAhnUE+DizV Y9+YPtCKOzmLN6PHXT/n0yT+WHWTlf5kAfy9gEzhfOXqc6M8AFcNtnu/tB4/908rFknU WevYPMFmKBmYfil1ShIiEZN5k3qMHK3gD5ih6+24TpRKP8cfpjXGZYp37fFAgy/homOu NDVSfwksMSrridRitDey6dtaoOmTNW4WpFdqUxFo+JfwyIZnULyKq251vNSVQ1WCUd8X Mk1yImS28SLA2TbbGNc9yz8CXVRofnoN04sQAY+mUSCNRIcsalKoMuGIi/YrByKhmj/v VUAg== 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:cc:to :from:dkim-signature; bh=BKQfb1Masg0LUXafLP8DDVqoNx75e63Lg2kg56KHPJU=; fh=6ZlfjzpG5M4zTB3QdUsu1um4KG/wqA9A9dxpvstpjlg=; b=K3MJqf0Nir5vQPhmUp1AGAN49Ji/pBKsAVYuI8WJPfVJLRkQYTXgZrqqTMo2sxODA2 H/VguIHRpLhXE77gMz+IUjgj9n8zW25TcyA0IEuknXHeFPCQtxMexAlpOJCC21W8U3qo 23vDqCy7u6YoU+hEdgIMnWNJd0RGugw84ihxFFzN4JJ80gac429L/SInpvsEKoIiE1kt NXZVDyOUeYpeRs1inZDYwk0QqahSHhQcKTdrzkfGRjBURiVMp5b4w3mT43i4P8RhJkdM rwljeSXBEGBP/c4/byBs8kV49drZ0mgujPf8r/inshOIPHByJp2XgK7z7NlMIPLnZ1PI cQtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EPfeNXFd; 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 10-20020ac8574a000000b0040e9fcf5f03si4811043qtx.758.2023.08.21.06.02.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Aug 2023 06:02:04 -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=EPfeNXFd; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qY4Wz-0000pm-0E; Mon, 21 Aug 2023 09:01:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qY4WC-0000JL-V4 for qemu-devel@nongnu.org; Mon, 21 Aug 2023 09:00:31 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qY4W7-00018W-LI for qemu-devel@nongnu.org; Mon, 21 Aug 2023 09:00:26 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fe12820bffso32873885e9.3 for ; Mon, 21 Aug 2023 06:00:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692622822; x=1693227622; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BKQfb1Masg0LUXafLP8DDVqoNx75e63Lg2kg56KHPJU=; b=EPfeNXFdRxPD+IEi1EH5vbxv/Rxb3+w6X1qydqFslcvxaypRHVXWPW8nurWtgYScs4 gIxGKMnqWajKkMcEg1W/zqOfSTfx7urUCVNiz+kGRDVQ3JC4wbjcPZs4S6HbwXDJ/XGX ceERdWsI1Z69sf2g4ynrlydfSwH2AjV8f4oW/gt2VMXIHOmHPokVXGwrZogk+HwsqPMw m4zQqV5uorRwNQm/qhIlYv1HN8FRKVuCruqiPHbJsPO4eL/31dcbbg4wg8/p0zO8ZmWX pdJeMVGFu8TQD8LWbFfDZbur7g3+PEHrKO78j7XKolcZed/8/LwUolI+Cff3sSVZiJEJ 8Ypg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692622822; x=1693227622; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BKQfb1Masg0LUXafLP8DDVqoNx75e63Lg2kg56KHPJU=; b=aRghPR4DYm73ng1D3BkgqQQD3dcIh6QUGvbYzwMtnV/3l3UD/TM9oFQrql5GJjk/2I oDTgQi8ggSqtCTs1ZdpDZOfpeARxvuRaQLndCqPy4MjrVrIheb1h2UrebtdbLTUaxtWn IkZbL2RiJNwTFSek8wySKfQZ2RoMxFFj0RvRGj1/+9xPqyOkKJ5453sfzGOZmQtyMrOi 5NhkkYnXehVU7S4fLsYF7bBb2M+E5gPbwXu1zmHAWA9AO1D7A9H/3OetyLTxHXORWhxP bZnlShv6pbJy6DO3twbj+SCekBOnPFwmxVIh7caipXk7JXlVZjTkmYCmszmj3ovMfpE2 Namw== X-Gm-Message-State: AOJu0YywNIqk8ub9IaN2eXF0kjh8PM1mhrW0vNeXdyUl8w1DlOPmKBWo thgQJORoy8zYmQaEJd15+INJ2Mcu0XuxDs1FLiU= X-Received: by 2002:a7b:cbcb:0:b0:3fe:34c2:654b with SMTP id n11-20020a7bcbcb000000b003fe34c2654bmr4988052wmi.14.1692622822071; Mon, 21 Aug 2023 06:00:22 -0700 (PDT) Received: from m1x-phil.lan (static-176-182-122-208.ncc.abo.bbox.fr. [176.182.122.208]) by smtp.gmail.com with ESMTPSA id f15-20020a7bcd0f000000b003fe1c332810sm16202208wmj.33.2023.08.21.06.00.20 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 21 Aug 2023 06:00:21 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?A?= =?utf-8?q?lex_Benn=C3=A9e?= , Song Gao , Jiajie Chen , Xiaojuan Yang , Huacai Chen , Richard Henderson Subject: [PATCH v3 3/8] target/loongarch: Fix loongarch_la464_initfn() misses setting LSPW Date: Mon, 21 Aug 2023 14:59:54 +0200 Message-ID: <20230821125959.28666-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230821125959.28666-1-philmd@linaro.org> References: <20230821125959.28666-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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.29 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-bounces+patch=linaro.org@nongnu.org From: Song Gao Reviewed-by: Richard Henderson Signed-off-by: Song Gao Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20230817093121.1053890-11-gaosong@loongson.cn> Signed-off-by: Philippe Mathieu-Daudé --- target/loongarch/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index dc617be36f..a1ebc20330 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -391,6 +391,7 @@ static void loongarch_la464_initfn(Object *obj) data = FIELD_DP32(data, CPUCFG2, LSX, 1), data = FIELD_DP32(data, CPUCFG2, LLFTP, 1); data = FIELD_DP32(data, CPUCFG2, LLFTP_VER, 1); + data = FIELD_DP32(data, CPUCFG2, LSPW, 1); data = FIELD_DP32(data, CPUCFG2, LAM, 1); env->cpucfg[2] = data;