From patchwork Wed Dec 18 18:20:59 2024 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: 851758 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp1078516wrq; Wed, 18 Dec 2024 10:23:22 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUxHt1bFikEujhMmjY1T4y0plOpsA+pSe+rixaA6EW1wSTS4+AiEvQMvJ7npa0Un6SyPLW6xg==@linaro.org X-Google-Smtp-Source: AGHT+IF8wayL/sJ0UH0KK4YPMI0ZE+PKxoRAxBMnLos0dt/3/VpO77gI1Zt3uvrgQcNLgaLUSJX3 X-Received: by 2002:a05:620a:318b:b0:7b6:d00d:108b with SMTP id af79cd13be357-7b9aa8f392fmr47100885a.19.1734546202497; Wed, 18 Dec 2024 10:23:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734546202; cv=none; d=google.com; s=arc-20240605; b=ldNrOatyitl/ufb+aJS1XxcIHaRyUlGv2CoOPhafmjcHz13+oYYQ03nrSxKyL3GuV0 qf7cA21zDH6Uvact2/GeXW96pemWPHZgqaYbuoqN74Q40ShiMdBerq6O9Gf2WEbWV0WF 7/LJfviBuv4qRgMMB1E7kpi2i2DVNVpB6OKl966Mgl1kh9+U+i1hONFTRoCYny8x1sFo ukLKmI3RsdO/7yGkemhr/BLLodw+DsTbe+vy0E5JI0uUTe9a+w/pgzKeCWJA9oLufxUv q6ENE299/h6sTBbdcXlg/2DgVL3bLsHXXdpvc1CgoA+rQ+diD/iqFzw35JYh9oaqd+8A u4FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=rjw+OVRcrKaViPr2n2sn4Q8Gz6HM/7SEwuqxJQ/MKXY=; fh=aDK3AYW/tYhipRsN4fimbcHK1l9GCjVTlWyiAdYPq8A=; b=OSWx2qiWjNTH4Jq24CHSVm1GzLjBuoZL+9rMMBlFoXIeSE6SNeGVIxqFZIiDinNQDi zGLOFsVl7sGRQ0/wngRZRLEpoHtM7ppIkKKoKbSdoP6VUMdw4tkRsQE6el/pUn+1HAsd 0XBiQGPjDyS6eFxJAYJdB5q3B0BJXiLVesiOqV0shOUX7ErSVjxBSM9jBTJFra4kak6T X3GKNOqbWKxSxg/U+BTvIL6tLgmu5bm8yOUyotWMnWV/MP0X809Tf6Ezdx3dYvVOfaIw h+xzvHCs+XTUfI8p2ywcdlPtWxD5Li1veGR0MtCs8RfWwAzF4VS7XAFOh7jKHIVkqy+e HZsA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OfEOAr1N; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b7048cc1easi1187234285a.413.2024.12.18.10.23.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Dec 2024 10:23:22 -0800 (PST) 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=OfEOAr1N; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNyfc-00005y-J0; Wed, 18 Dec 2024 13:21:16 -0500 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 1tNyfZ-0008QR-28 for qemu-devel@nongnu.org; Wed, 18 Dec 2024 13:21:13 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNyfX-0001kE-D8 for qemu-devel@nongnu.org; Wed, 18 Dec 2024 13:21:12 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-43625c4a50dso47922655e9.0 for ; Wed, 18 Dec 2024 10:21:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734546069; x=1735150869; 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=rjw+OVRcrKaViPr2n2sn4Q8Gz6HM/7SEwuqxJQ/MKXY=; b=OfEOAr1NzJNWRI+SXEHSKfrSouxg7gtnMIwCTWNLQPW4WwRSLK4dyfF04Ikm5thXke 3uwNNSttbqyC78Z7KL0JlsErr1RfUGKI6LIpVQErgywWIFVwUT+VubAfO4gLP4L5ZbIj YyYo487g3atiLbE8Oni+/664c9zSAdGLXVqWPDhld7CHSc4ZyEXAPXNk56+QS52A9KIJ J+GS+E0oedGwOfY6xJMuAHrdEHTg7RkB2PR+kSwD0J3Ft+wApfK1exxs6+N2Aws4s+J/ SOq0RGB48V4Epp8Se3Q7stghao9WV9ir5wLveWk4JQmZ9gOAJurI+h8zXsIIK//+GSAZ lUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734546069; x=1735150869; 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=rjw+OVRcrKaViPr2n2sn4Q8Gz6HM/7SEwuqxJQ/MKXY=; b=sNQKTm527KlZzJVHJ+vWgHyQ//uKMSbAboi1joh0npKKpb2xcuUkSS6Bxst30N+V/y DEcw2gYhdpIMjnX6MsMLvSVW/+I5bJuTaz9+USpVcDMoNKgCCwWpeReWqJJ7ODxIF4LS G4pYu+SD7nO06NJvYJDg+CiCr1vpYNE4ye4VW9N1n+A/qPkeIzUhqmLE3M1zsjPGLbe6 Myu7qzAU3w0Ra16AwfHxPbC3SwSJw/E35+F+UpfDF7yYyEdqodE+vaTNe7rNmBiRP9pY PQZyc9WPHmaZ0h8S0rnjEqhDPSRqL8vm2g6C/ll7bxaQFGVb/KctzMrXsHfKWeUsO4ao 75+g== X-Gm-Message-State: AOJu0YxtPuOOuASWNIlNYS5bf5+U6184n8U62w/nF/Ld2NzuKN9XxCMS 6ZvTWd1GuKi2uIkrzDAPrqH78YpQINZRue8u/iRoirBuEJbrhSKMBiXW7ED4GPdclzZxK90p6y6 8 X-Gm-Gg: ASbGncuqnewK1G/BWBYOp6SgAhz4L/O3Wfrl8LfU49BDrrwNY9pXmGaEuggWbYKyBFJ C/WT75UvyXRuahtiut5jV16FJOKDVhp+o/2rLqkf/kmEPVjSKb5TKDOXqcrYdT0B4zanLFdhrJl rn2SUmld/GyNJ/hYwTBZq+lHVUK7K6cODXKxIQ2D49gAvvLFPGhGzNmv3dLapLEp0aUnWMzkZvI YEs/uWgobxF3u/bKhZjP4AKEz4BQzduEWSHBtXuOi+uHl6RVLffk767s3aHYXMt56atGEHjjNwW D1/4 X-Received: by 2002:a05:600c:35cb:b0:434:a386:6ae with SMTP id 5b1f17b1804b1-43655347ed6mr31691665e9.7.1734546068966; Wed, 18 Dec 2024 10:21:08 -0800 (PST) Received: from localhost.localdomain ([78.196.4.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43656b2038asm27331455e9.44.2024.12.18.10.21.07 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 18 Dec 2024 10:21:08 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Harsh Prateek Bora , Nicholas Piggin , Daniel Henrique Barboza , "Edgar E. Iglesias" , =?utf-8?q?Daniel_P=2E_Berra?= =?utf-8?q?ng=C3=A9?= , BALATON Zoltan , qemu-ppc@nongnu.org, =?utf-8?q?Marc-An?= =?utf-8?q?dr=C3=A9_Lureau?= , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Peter Maydell Subject: [PATCH v3 0/7] hw/ppc: Remove tswap() calls Date: Wed, 18 Dec 2024 19:20:59 +0100 Message-ID: <20241218182106.78800-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.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=unavailable 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 Remove the tswap() calls on ePAPR, and convert them to big-endian LD/ST API on sPAPR. Build-tested only. Philippe Mathieu-Daudé (7): meson: Run some compiler checks using -Wno-unused-value hw/ppc/spapr: Convert HPTE() macro as hpte_get() method hw/ppc/spapr: Convert HPTE_VALID() macro as hpte_is_valid() method hw/ppc/spapr: Convert HPTE_DIRTY() macro as hpte_is_dirty() method hw/ppc/spapr: Convert CLEAN_HPTE() macro as hpte_set_clean() method hw/ppc/spapr: Convert DIRTY_HPTE() macro as hpte_set_dirty() method hw/ppc/epapr: Do not swap ePAPR magic value meson.build | 11 +++++--- hw/ppc/sam460ex.c | 2 +- hw/ppc/spapr.c | 63 +++++++++++++++++++++++++++++-------------- hw/ppc/virtex_ml507.c | 2 +- 4 files changed, 52 insertions(+), 26 deletions(-)