From nobody Mon Nov 17 12:05:11 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1603750279; cv=none; d=zohomail.com; s=zohoarc; b=HJWgnp7jvzCaFsyaKMKwEeiOZk5QGQEH2ATQb5ICEvDj9q5G9s9iJyUlyrc+Vcw1ZDUhLu12axvMsbqFPNMmWoBNLgDjiq/etUdP7zR6O7uC1jC4iH39vZZm9AEESlFKKtoI685IaLGEUzTlsVHwYyvQmWq+IRUak+Aijoy7Ap4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603750279; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=3vKXYqQl9YpUARXzuCkvHagE3ybWnVa+Zd/P9+vIqTo=; b=gNGsBqQCkfSZ2LMSrAdkvxwCabWeLJ4OVfKJ+Gl9Pl8ENGfdrppPxVgWMzAlRcKAcWiVpVXbTStO7SKyDeWEHJChXO2r3VsuoqJzQwi8GtbVpftEW44wG3KljWcwjGJZHQ6IOdFxsR/urgD7yjLG6Fh33pWX69/j4adW2uMzcS4= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1603750279428835.1444437432835; Mon, 26 Oct 2020 15:11:19 -0700 (PDT) Received: from localhost ([::1]:56362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXAhy-0006BV-8Q for importer@patchew.org; Mon, 26 Oct 2020 18:11:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXAal-0005gO-Ls for qemu-devel@nongnu.org; Mon, 26 Oct 2020 18:03:51 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:36631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXAaj-0005GF-Ud for qemu-devel@nongnu.org; Mon, 26 Oct 2020 18:03:51 -0400 Received: from localhost.localdomain ([82.252.139.38]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N3suW-1kOTNT0bom-00zk6H; Mon, 26 Oct 2020 23:03:47 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 8/8] target/xtensa: enable all coprocessors for linux-user Date: Mon, 26 Oct 2020 23:03:39 +0100 Message-Id: <20201026220339.195790-9-laurent@vivier.eu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201026220339.195790-1-laurent@vivier.eu> References: <20201026220339.195790-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:OAzESyHoUVSYsGs9sf3S2LXlWzkpaRhJnhG9hVEGdi9FPX3khEQ 3lAOAHIlwxOpOwq5cDgec5QWk34hQyu/eGGlfxWGHMgVBAKFNcXGk67ZzIWQ1y+gUnkT2rS hDLxnpun7VfY2ce/Rmuq3MVSbkdxAxatPQj3OrLft4wh0ZHtoed4DKiys3ZanAUOB8V1l8r 2LgUQApeHee0sYO9YrpXA== X-UI-Out-Filterresults: notjunk:1;V03:K0:+VTo9Y2U3jA=:zU8dMITeVOZuYVN9WQJuRV m/M+oOEYWkwNySJekQdS8CCZiXTkFMc6UysGJrscHy1QRlHsPgB0E4UhzyVosXo7yLFjYPjOj PPmm2wnGxKPtTMDi9SJ7a8XkeaYM1oJTABsZQ6Vv6XnGfMXk0mfZ6MgDmQTkvf6ltG4byPKNU ffWpHgRH2Csb64wIVHhyQMs1Zeww0Hc3t3KQKwaS+EBu5fuConotTYYZJZwqw+dGVrUn97UGA TaGFDiTYsIyxjdgiSHtw6GZzW4C6GrC0XvRebJkmEqLmgzYaHXSfq7AGmbNOM5/eTDPdvMIol JtsIkgbP+BypPcqwISj276sVLm0CQ6v72LceRksP7rIuUuCv9ai1RRsgNVzhBilxr0LSSw99S 9SM1GewT16t7rds+oq0LnGixHe4NpTBN5diAM+Q0DTvNLf+CO3G+a5wm6BG5gg20YvaZnOrmD CJek24AFPw== Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=212.227.126.133; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/26 18:03:41 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=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: Max Filippov , Richard Henderson , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Max Filippov Linux userspace always sees coprocessors as enabled. CPENABLE register and coprocessor exceptions are used internally by the kernel to manage lazy coprocessor context switch. None of it is needed for linux-user. Always enable all coprocessors for user emulation. Signed-off-by: Max Filippov Reviewed-by: Richard Henderson Message-Id: <20200829104758.22337-1-jcmvbkbc@gmail.com> Signed-off-by: Laurent Vivier --- target/xtensa/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/xtensa/cpu.c b/target/xtensa/cpu.c index 6a033e778c95..88a32268a18b 100644 --- a/target/xtensa/cpu.c +++ b/target/xtensa/cpu.c @@ -93,6 +93,7 @@ static void xtensa_cpu_reset(DeviceState *dev) !xtensa_abi_call0()) { env->sregs[PS] |=3D PS_WOE; } + env->sregs[CPENABLE] =3D 0xff; #endif env->sregs[VECBASE] =3D env->config->vecbase; env->sregs[IBREAKENABLE] =3D 0; --=20 2.26.2