From patchwork Fri Aug 18 17:20:08 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: 714676 Delivered-To: patch@linaro.org Received: by 2002:a5d:484e:0:b0:317:ecd7:513f with SMTP id n14csp632307wrs; Fri, 18 Aug 2023 10:21:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjcPbaewMoUlpH/QmFaEzr3PWoTjH5Iw4dlNkQ6ykK/IzPyfLUF3/ozr0MoCk2WGWTtYB2 X-Received: by 2002:a05:6808:6288:b0:3a7:8510:ecaa with SMTP id du8-20020a056808628800b003a78510ecaamr3306896oib.27.1692379264739; Fri, 18 Aug 2023 10:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692379264; cv=none; d=google.com; s=arc-20160816; b=bP5HvgVnf2RhwLU/GNWCXsTQGtxXMyggb5dK2Tn3cutAs756weq0Ua765xqYrW9+3D /8UgvxgQxLKqs7pW3hglSUtSFUOrtRxWvvI66bnt9r8mGsUxzmWBPy9i3irrpnU5zXGi gE0FBJJtZ74VzsjOYk32M+oZISD54x0MhUHv5TtayLtp5x3tYJaqmFCXcJfJzpcssgtQ /QYYgc5p6icZgH5sZXbPsoFRh8L2xM2kgAXVK2o3eSu2MhuTDJILLQiVbOEP/c1fPiXy w9ITyRQSJL8wLSfvGqFhqjmyMNUKZnd8fzpe37rQwhi8BP+zHLijqfsX4ob6g9JUnrOR WUXw== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=mDtd+c+3Qy7qT1cETD4DvUtfqEuVRT5+UyNPPIyLIv4=; fh=L83jzy0hhBVNaLcKX8Elyc9wPnQzNxExr67xNuVQva4=; b=mXlgHVNPDZRmGpbCHtATmzp33EhKyUC71AF+uquPHgpi/7dd90CSCEZk4qLmAiUmCW XxMZsikb5lvxF65MWmbePj/7AJIAzCdiMAJG4ZNcOQoH3QmfeVHWZQF9KAy+uAc/pTTA H2a8mCMluktf2VOg1C3n8scMlOaUhhL63B54pLjZJgQrJyaoAJyOMgj4ZV6yesgr/xJZ BaENwjKUSRSU77saLudFsfCrIRaTE8uDlAIbm3rx0ylO9fBk/moCSXFW1q9JrAu4aMfB 0i0XQv2P0wuSobO65AqcqomUFqOB2nQ9rxvryTDMsHDwoN1QOPgNjBh9vfO4b/niE7T7 cAjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qpwnE4mk; 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 fh20-20020a0562141a1400b0063011e798c4si1563246qvb.468.2023.08.18.10.21.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Aug 2023 10:21: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=qpwnE4mk; 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 1qX39b-0004fR-HK; Fri, 18 Aug 2023 13:20:56 -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 1qX396-0004BW-MK for qemu-devel@nongnu.org; Fri, 18 Aug 2023 13:20:34 -0400 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qX393-0001Yf-LA for qemu-devel@nongnu.org; Fri, 18 Aug 2023 13:20:24 -0400 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-522bd411679so1425635a12.0 for ; Fri, 18 Aug 2023 10:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692379220; x=1692984020; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mDtd+c+3Qy7qT1cETD4DvUtfqEuVRT5+UyNPPIyLIv4=; b=qpwnE4mkPEKdVpb9GfEb+T/p4S1qx1egCYbKC6hPYyE0tTIq2cE1UvOTlb+OTPwAOX EKNe8tcmmr11KCaQMkg9qUbUisKGzW5HdrnP0Ljs9DnlSpJpButOoziHP+gDkw36e3wJ 8LCrVlJ185bkxNzJi+fKsuzhi/U8v9ojlfeVvTb6/rmNUb+40zZLtsMriRzs0zuzuDkd CT4oxH6+O7rCqEZIfj8wAQxHKw1fGceECn+hrojNopX/quzGVi/gsZzezz/6t8wt118z hfKXZRQnOBjySWLlhxUAE0oE2NDJW1AWjZ+2NsjPZtXcFQS2ajZQBONkiE4ceGegI8r4 9SYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692379220; x=1692984020; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mDtd+c+3Qy7qT1cETD4DvUtfqEuVRT5+UyNPPIyLIv4=; b=C3gJ7XkgjaEE5DO0PZxfUu0kQ1PA5yyvm+piyRb7tAQsrdEPq+vR/7kXw7s3Dx1rf7 1KoagNFI2rJ9axEpR1sqk5hVIi81zw1OMP3dAVaoPyE8zuyg7p2xfhekFrzxZUaBYkik TD1Q3WYlOnLZuiBFkLIHcxvo58d6uG5vBoMWU6NvaOmgJ6uOY3xyAGDmvSOhl+f8B6x8 /xICvyYW+6ibTu50bcnfTZLAPOngxPjA3vJX5E9BbI/oFMOe2/PT7PTxLJMO/tmoiRIz aosOdRQ8zZFeGmoFIeplIfMy2sojdTSthZOLHIuQX2tdKBteBDdl5yER8S4H8ar9FHgL MNFQ== X-Gm-Message-State: AOJu0YxIYpwulBulvk+tM6bUXuySKTm5kxaIwqRebGp/OZcpM1Meqc81 vgAFOgz/HPNCLCibGCCHOQCAmD0PlHST2/lUUl4= X-Received: by 2002:a17:906:305a:b0:99b:4a29:fb6a with SMTP id d26-20020a170906305a00b0099b4a29fb6amr2580541ejd.59.1692379219750; Fri, 18 Aug 2023 10:20:19 -0700 (PDT) Received: from m1x-phil.lan (cnf78-h01-176-184-27-79.dsl.sta.abo.bbox.fr. [176.184.27.79]) by smtp.gmail.com with ESMTPSA id dt9-20020a170906b78900b0099bcf9c2ec6sm1398869ejb.75.2023.08.18.10.20.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 18 Aug 2023 10:20:19 -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?= , Huacai Chen , Xiaojuan Yang , =?utf-8?q?Alex_Benn=C3=A9e?= , Jiajie Chen , Song Gao Subject: [PATCH v2 0/8] target/loongarch: Cleanups in preparation of loongarch32 support Date: Fri, 18 Aug 2023 19:20:08 +0200 Message-ID: <20230818172016.24504-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=philmd@linaro.org; helo=mail-ed1-x532.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 v2: - Do no rename loongarch_cpu_get/set_pc (rth) - Rebased Jiajie's patches for convenience - Added rth's R-b Jiajie, this series contains few notes I took while reviewing your series adding loongarch32 support [*]. If your series isn't merged, consider rebasing it on this one. Regards, Phil. [*] https://lore.kernel.org/qemu-devel/20230817093121.1053890-1-gaosong@loongson.cn/ Jiajie Chen (3): target/loongarch: Add function to check current arch target/loongarch: Add new object class for loongarch32 cpus target/loongarch: Add GDB support for loongarch32 mode Philippe Mathieu-Daudé (4): target/loongarch: Log I/O write accesses to CSR registers target/loongarch: Remove duplicated disas_set_info assignment target/loongarch: Introduce abstract TYPE_LOONGARCH64_CPU target/loongarch: Extract 64-bit specifics to loongarch64_cpu_class_init Song Gao (1): target/loongarch: Fix loongarch_la464_initfn() misses setting LSPW configs/targets/loongarch64-softmmu.mak | 2 +- target/loongarch/cpu.h | 12 +++++ target/loongarch/cpu.c | 62 +++++++++++++++++++------ target/loongarch/gdbstub.c | 32 ++++++++++--- gdb-xml/loongarch-base32.xml | 45 ++++++++++++++++++ 5 files changed, 132 insertions(+), 21 deletions(-) create mode 100644 gdb-xml/loongarch-base32.xml