From patchwork Sat May 11 11:53:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 796230 Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp1236122wra; Sat, 11 May 2024 04:56:01 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWQlSGFBnjF2FUPxr3Y76yyAWXiuG9utkFe5PhYzyB58nWyjRaWAe1iBKeTLSNwgltXHMnCxpE/eoco7l9kfCVY X-Google-Smtp-Source: AGHT+IFxihrDH5CWJbM+eCrSoB5Ms8dXldp2Bl0GZ8f6+AyMvHscJ6peSotiBRZfayBGxu7mRNn2 X-Received: by 2002:ae9:e40d:0:b0:790:a929:bad4 with SMTP id af79cd13be357-792c757757fmr583863285a.11.1715428560794; Sat, 11 May 2024 04:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715428560; cv=none; d=google.com; s=arc-20160816; b=HgljUozxoGbqzsF16GjNLj2Egc4UKVuGxdUtq59cwOjyNpmcU0WngEQqPssFVSKaDv ULmGB8G74iBdVBgZQ5hXA5F/e71JBGcmNFaQo2eSgJturzYN2EuvdWughQZjDmpRJrLG /uVXh79iFB78C6j6YeWoFNN8mqo6STL8YK8Ag6ESkdMF9Ddw9BoRCjMmt2VZeUvZHUks BhiBGLUvOTfPkXYX6f49no8+sb0wOOAehq/3h/Sf/DkOdsGU/7cs3r+d5rRCcUYj5AFv b1cvBAp5vi9s38li3bzacTLIAY4itW0c1HpX81caazR12Mql6aG/iTW780E/A8KcRSq/ iT0w== 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=fw1419k9xznNHwWWoHv88CeBNJdgtSAObsXcS2fvzv0=; fh=UQCixiNfr28ZOrfhmxiGPA65dFhly8CmRsnoYC6xI9k=; b=isIKT7Wnav/w6N1po1bwb2u825f6IHcegA6iJSNf58z7x/TPrCokKeyNdNgm7PP46t h9izKFQP1JJFE2X5n5egghPZrr2vQBYTYNM0wWufJMsrJFzvSg/6vfveLETWcCBa4zVX X7nlTcQFl0ouLxRlK1jwxsjXKH4FS+KdbMa5/4cQRXwy9bFA2LNZboJe0rl2Vuq2M72G RXMQpojznBV4MTEKwbWciY0mXBZwT8is6nQ8DBKNBCxvYh0jONK6vDU7mpuMTtFaS1ox HTZWW2ofHJRqYPz6ho6GSSoHlE2exoPUmD2XXHCWKNUiZ2Lv3Jrc6n68jyaLZGdl/mlN PqrQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x7SFmFo7; 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 af79cd13be357-792bf33ada9si536348685a.503.2024.05.11.04.56.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 May 2024 04:56:00 -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=x7SFmFo7; 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 1s5lIn-0000H9-F9; Sat, 11 May 2024 07:54:09 -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 1s5lIm-0000GR-2j for qemu-devel@nongnu.org; Sat, 11 May 2024 07:54:08 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s5lIk-0006wh-8H for qemu-devel@nongnu.org; Sat, 11 May 2024 07:54:07 -0400 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-34d99ec52e1so2146714f8f.3 for ; Sat, 11 May 2024 04:54:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715428444; x=1716033244; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fw1419k9xznNHwWWoHv88CeBNJdgtSAObsXcS2fvzv0=; b=x7SFmFo7z3hoArXdRPz6lISHm8JCniWzvJDzkUmBPUp3M+UWNUFFqbXC4JO98o3Mmi kK9PY9UVS0cNKh+0i/E28TfdX8suAEEJV5YRQLIslB4OrX5ZO8U1TUPsKK27BuWtBneo hq+iMNgd9AcEATC0cgH2bTovZSwax+zH328FnXCetMmaX/qp659/jc+OWMWs9OPEeDn1 zZ9NPRDcDTwRD+JLuyX5pf6uAayuUWMU3GzwwB11QsI3cuSzRZtIzEa5PnybfRKpzjts lNKtKpwCK1HReTUjzGJ3E/VdkK0Ox2jCG4kqrlCBxFrqMX5Ojf83+jjUpzpbjIjhtufw BTUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715428444; x=1716033244; 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=fw1419k9xznNHwWWoHv88CeBNJdgtSAObsXcS2fvzv0=; b=EWyolLoUQYmMLJymDaqPR6UX6N1y3LXswPwZO1qlVpDQo9vkxhvCNLy7dPdRFrrjqt t6aIHqznLT5IZA+LhY64a878jXxm0Icj4fmtQ46OExSbcAwqL5s9rgU4YnlHVXIiX2TN ZRKkGvVsOVRzydJYkCBGLxwK0V9+Tvn4SRzgkMo8kw7qhi8RtJXrPwo1lWj6I25tkDbT Ftl4P/3A7F6kTmI4IaylZpw4r5rY7OMLwsLFi+LVfS0XSaZunfvX9EFfs0TaUawDxkOj H5YXAWHneI1xMF1yPJ9+YhoCO58l+Rwv+84KfV8IVqFh1yfoIvk0gAW+40btcYJyJ+KY kTnA== X-Gm-Message-State: AOJu0YxCxnFDekYbmTUVHNcg4gC7xviqlFrURSuHNEj/3Gs2qtNmCyMb XpKMAn6RwzUUHId7rlSpAN+0maLejAuQXEVmZi/RopaKnEstdhooTK8DkwhkWj+CbrAaukQ+zie j1HM= X-Received: by 2002:a05:6000:551:b0:34d:ae55:8fb9 with SMTP id ffacd0b85a97d-3504aa6339bmr3470883f8f.66.1715428443246; Sat, 11 May 2024 04:54:03 -0700 (PDT) Received: from stoup.. ([195.76.196.165]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502bbbbf20sm6764797f8f.93.2024.05.11.04.54.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 04:54:02 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org Subject: [PATCH 00/17] RISU misc updates Date: Sat, 11 May 2024 13:53:43 +0200 Message-Id: <20240511115400.7587-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x42b.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 Some of these have been sitting on a branch for a couple of years. Except perhaps the first, which I assume to be some sort of odd build error from the time, they still seem reasonable. There are some updates for SME1, but not yet the ZT register for SME2. I'll get to that later after I've done the qemu linux-user work. Finally, let's start phasing out raw binary test cases. We can make it much easier for ourselves if we package test cases in ELF, which "objdump -d" can parse directly, without having to be given all sorts of "-b binary -m some-arch-flags" etc. For future work, I plan to make changes to risugen so that it writes out asm files and invokes the assembler and linker to produce the final output file. r~ Richard Henderson (17): ppc64: Fix include order Fix load_image error check for mmap Standardize reginfo_dump_mismatch printing Add --fulldump and --diffdup options Remove return value from reginfo_dump ppc64: Clean register values in reginfo_init ppc64: Compare all bits of CCR ppc64: Simplify reginfo_is_eq ppc64: Clean up reginfo_dump aarch64: Tidy reginfo dumping ahead of ZA state aarch64: Add support for ZA storage aarch64: Trivial SME test Use bool for reginfo_is_eq aarch64: Use bool for sve_{z,p}reg_is_eq risu: Allow use of ELF test files configure: Enable loongarch64 Build elf test cases instead of raw binaries Makefile | 19 ++-- risu.h | 12 +- risu_reginfo_aarch64.h | 52 ++++++++- risu.c | 178 ++++++++++++++++++++++++++---- risu_ppc64.c | 3 +- risu_reginfo_aarch64.c | 218 +++++++++++++++++++++++++++++-------- risu_reginfo_arm.c | 28 +++-- risu_reginfo_i386.c | 16 +-- risu_reginfo_loongarch64.c | 21 ++-- risu_reginfo_m68k.c | 45 +++----- risu_reginfo_ppc64.c | 134 ++++++++--------------- risu_reginfo_s390x.c | 28 ++--- configure | 4 +- test.ld | 12 ++ test_aarch64.s | 4 +- test_arm.s | 16 ++- test_i386.S | 4 +- test_sme_aarch64.s | 63 +++++++++++ 18 files changed, 588 insertions(+), 269 deletions(-) create mode 100644 test.ld create mode 100644 test_sme_aarch64.s