From patchwork Fri Dec 20 21:30:57 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: 852460 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp2288601wrq; Fri, 20 Dec 2024 13:31:24 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXxypq0K627ZO7I+a0sAzRH4QNk4McN4NVEXDFFmBGVPOAN7UJYE43KG7tw+9q3XavZoJjf7g==@linaro.org X-Google-Smtp-Source: AGHT+IGypA7weZXlLDlI1/ZnTmZAd4FyXGGumfS8DakGiCxyv8sUKyjIPmHI4Sr5IK1+Dyi5tPmQ X-Received: by 2002:a05:6214:212b:b0:6d8:94f4:d2a8 with SMTP id 6a1803df08f44-6dd235a9b8amr67823976d6.9.1734730284709; Fri, 20 Dec 2024 13:31:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734730284; cv=none; d=google.com; s=arc-20240605; b=KrnBEvUp8DoIFFzO5qp24ZzRq64d5FvkvW8cYoZvZUz+AgZXwn+q7uoAg40D+7zQp9 PQ8fBq9tASat8UasKWU+n+64bgtjh5hbv8DtSD77nBk4PQSLAn7iT+M1TjfG1uVNN3YG iJkpBQ6ZkgXJ2Xl9TGgIbadHU66oXZFApA1QqUHzkmKSGR3j9fNQh1BZfRTgtxzM0xdb BIJg2VEfrapJpp43tOqzS8HeOPTnvk55MIQW9vVFuohhVpsuoegmL/7wWyAozFLm33gn jwUcB9fJb7RwKW4D9JdfYvYs8SR6Rlu1GIZFiRcje5spiEG19ODYVGWCPsRv/kZbcccu Mfww== 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=QbAYhbljOfTe/v2IHyy0lhx9IvpThPW6vzP8nvtQH3E=; fh=yNkaL6iJ4UGZubT5jP4totJNhnk+FwlqyNNVT/x++mk=; b=PvKbcOT1tSVqS+ccsUCXDpBxvraAUrSUzlhN8qsYemPimNIS0RQnXdxGScNfxJeb6U 69A5+KwWP4xX+hAqwMBtFq+jir5pU3z8qKvUmqHRKor9Q3Ce2hqlM9BmFwgMMdplyUGO 84hJRLSBHOgwrZqhLmusPqL0oAWh57VHVQuuJ39Ys2Kf61Dp8fUhh2StU3KFH2BYCBZ3 NFHmG6036hHbpW7lSkuFQIX/USiLjQUBf27RG/FXaSlpI7Ph6dQDyn6EVMShwxmbFeJL 7+BlpqyPOTh1p9Cpftirmc5YbIigoXGtf9z++lMw6mP7ITnBfFWe1+ssE4PqOrbNpUX7 lxWA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lZw6M2Ds; 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 6a1803df08f44-6dd181385a2si48707766d6.156.2024.12.20.13.31.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Dec 2024 13:31:24 -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=lZw6M2Ds; 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 1tOkaV-0004PX-Dd; Fri, 20 Dec 2024 16:31:11 -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 1tOkaT-0004P0-0f for qemu-devel@nongnu.org; Fri, 20 Dec 2024 16:31:09 -0500 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 1tOkaR-00072q-5t for qemu-devel@nongnu.org; Fri, 20 Dec 2024 16:31:08 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4364a37a1d7so23512865e9.3 for ; Fri, 20 Dec 2024 13:31:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734730265; x=1735335065; 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=QbAYhbljOfTe/v2IHyy0lhx9IvpThPW6vzP8nvtQH3E=; b=lZw6M2DsnyAaONAdo3lCCPl+yNThQGH6mT83gCDjY1PRorwhjKJCJ4+cwb57KoLEII XbBGb2lVryPWI/Ixn09oGiKSwaxwoLXKkqgGaNd4pYRGz5KLED3aRbC+89XtgnWwgotb Lk2vypl1ez9VAfQu1bJsdMo0gWt2M4YzO1K7HgozfodOeYBDd0lYhOw952pFK37W1ETY kGE4kBIMycPTFvkXd5iI8KjrVO2vJM5/KJLN54fClV66L2mPjGd4nOXRXNKhHKFuneuR ULzyAqdFIAvmYxU1t0w9vqvk5aCHKIn8ppjDCyxGhIF3Fwot+Pk7lvGSQh+eXhJAMz7S 3zHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734730265; x=1735335065; 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=QbAYhbljOfTe/v2IHyy0lhx9IvpThPW6vzP8nvtQH3E=; b=wstBlrzZbdIHCV6IffSzPQ0o1bDpwAzwVSNKmi/4fSoaY0l9yftajpzelHFaRZexZM KLkgw/Mgy/7fbkxx1ZO8hU6QLNFPq2cZWHAWgNO/+ri/uE93UBppvo5kQopFkw3PQwP7 Zd1h39mG/F07MCKaJ3ygU5a/m0brxXhBbeZWf6AlKE62uHtmK4M7QMsdVed0Na+0Y8PC vhpt3S5PQ4BIQbF61bLJctpR0CAuQ6pYihLlHuyyIKCeChs1ZkKq/N9xh2y1F0XeR98Q OkZTj3Pglk6lGH8D2srn6dWS1uN/ROD958w8qS1h2dhZm/tgwGbXLw3Cx3z2fE2Xrvji 0TZw== X-Gm-Message-State: AOJu0Yziqg9GDt84jAQu9V2kWXKkY5VFpCyOZJVWSwnw9sxgUOEPZGKD fxorcfeD6j0VIQ+e6z7PIJaJ9AwhrlJOBmrAjxQJU+meUPs2TqYelnHKojPzBvozGf53TlQIvlW D X-Gm-Gg: ASbGncvBxkTYgtLU7gKxcRi/vug67fL6wy0ddIEy7nsMA5SaZHKypkvEwaAQqPRqY9K 7uz0Afi4SFVDOREcs8lmLTyzYGYiAkQklQfj1bCASv7aPVNvZjmVy0o/myyECEkCqiepMDdqG9w 6hWYTmNPnadTZHacFDuczWDJ+d+qMvsj+bHSTvWs/rqwaUM3hWaWrlL1tPuZxyjEyBugF0OhRiX 3VXbH1P0zRyW79kQWJWYr2f+pD4g4twK2QQI9uTxBis4j3FY6DHZ5S2Nz8xL2XRn0mP2Sf5AGg= X-Received: by 2002:a05:600c:4f0f:b0:434:a8ef:442f with SMTP id 5b1f17b1804b1-43668b78d5fmr33951625e9.32.1734730265306; Fri, 20 Dec 2024 13:31:05 -0800 (PST) Received: from localhost.localdomain ([78.196.4.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c8287adsm4873668f8f.16.2024.12.20.13.31.04 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 20 Dec 2024 13:31:04 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Nicholas Piggin , qemu-ppc@nongnu.org, Harsh Prateek Bora , BALATON Zoltan , Daniel Henrique Barboza , "Edgar E. Iglesias" , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= Subject: [PATCH v4 0/6] hw/ppc: Remove tswap() calls Date: Fri, 20 Dec 2024 22:30:57 +0100 Message-ID: <20241220213103.6314-1-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 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=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 Since v3: - Addressed Nick & Harsh review comments Remove the tswap() calls on ePAPR, and convert them to big-endian LD/ST API on sPAPR. Build-tested only. Philippe Mathieu-Daudé (6): hw/ppc/spapr: Convert HPTE() macro as hpte_get_ptr() 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 hw/ppc/sam460ex.c | 2 +- hw/ppc/spapr.c | 63 +++++++++++++++++++++++++++++-------------- hw/ppc/virtex_ml507.c | 2 +- 3 files changed, 45 insertions(+), 22 deletions(-) Reviewed-by: Harsh Prateek Bora