From patchwork Tue Dec 13 12:52:15 2022 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: 633512 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp3057154pvb; Tue, 13 Dec 2022 04:54:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf6JOkmIFHi+x6XIVc0Qi9ABHWVVCxndDm4WxehgEhuxkMhdfVDUc1lhAaZu1bJKcYxzoqAz X-Received: by 2002:a05:622a:5c8f:b0:39c:da20:5f8 with SMTP id ge15-20020a05622a5c8f00b0039cda2005f8mr4370579qtb.2.1670936043921; Tue, 13 Dec 2022 04:54:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670936043; cv=none; d=google.com; s=arc-20160816; b=v1j7kFQDTc8nQcBY/GWY5jJrjRYhwvC4wtDUSpPEvNVCHXqtainp5RsZAufwG0mjmK og8IIB25OYyjK46Y3yeIw1okZphAYxt6WnUGE2qkh2fxhpTuY4shVcfuqCjXS+ZP+y9M 2htVW9Jtg1hLQuhoLKOhdpeFv3lp6lM7A8R7RCOzKYJCATqWs5cPiqCRBuwTda6y7T+c KbwCsZ6hdjnP+T7dbLvFucYq7L/5amVv/COa+C3sKRa4As3hj9PnosphkcCUx8U0x0sx GrxCeZ/4MKePFBIysXBWBxll18j9rc1MdjPYsxobmTtToOAI9dri/2q2z2nLaxFg4ksB iKLQ== 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=3bfzNnoI5loXrPkezvGfbdzUW6/ZLveS30TWnXZXaBg=; b=ZEm4zIGwfsqIgUWPMyjExzGUo+6HxzH3DUQx0WP4X/rp2qf6DyyMW45jIEFl2lJHG8 ppAvcE2LFG7Fqm7o2dopGpbZ3A2Qx1h2a6As3WOijqDwTiSM+w2XL6wmYmYfIrK33pVT Zmz3DgX/v/6SgHYPUFNOmlB9oRnBCcHT5js+xOUwTNX3krw87g0FhgbltPtyKrertqaJ D0cs96aSbv+9p9dz69tdn8mmBliulm2ZP4x414PraMjGnKPNvQqVuhsNtMcZWHhM6o57 dCmI+moxU5VOhBGscK8YX3K+1lwNxamH/TqO1kPdOY4cK4GwEDaOBLaS/eGCCcWQWjMA g50w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JM16wLaq; 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 fy18-20020a05622a5a1200b003a4ef619f53si7219944qtb.301.2022.12.13.04.54.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Dec 2022 04:54:03 -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=JM16wLaq; 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 1p54lo-0008VK-BC; Tue, 13 Dec 2022 07:52:28 -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 1p54lk-0008Uh-2F for qemu-devel@nongnu.org; Tue, 13 Dec 2022 07:52:24 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p54li-0002yc-Ez for qemu-devel@nongnu.org; Tue, 13 Dec 2022 07:52:23 -0500 Received: by mail-wm1-x333.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so7805485wmb.2 for ; Tue, 13 Dec 2022 04:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3bfzNnoI5loXrPkezvGfbdzUW6/ZLveS30TWnXZXaBg=; b=JM16wLaqrsHvNIWTJ561XYEmz0daMJhk9cT5BctIO/NWCtE9/Fivhy43SrpItVHXFB 6QodV7H2+sUJON9Yd3UKewPT/be6ixGnqhEHwWhsp8yjFfR2c5jtH3SYB182DGCO7WH9 1oN0QGjzL5g0lpNmxIFnbeG4jH7W8GyJvE1qP9ZYvakeaSEG4KoxDTXNu2nVud+yAQhE EZOH/M3bWGhaBCCtOyxYwvGwwdNWUAgMOZPQVvqi2h9f9rJGuL9RrAfEoxYg436uOB3l DHAjj4Euvp7sZSqbpi2G7rUbA8BjKjXoXs9OXeatF6zCRLfAmQ6VZyehTXCptdvEmf8U amlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=3bfzNnoI5loXrPkezvGfbdzUW6/ZLveS30TWnXZXaBg=; b=xfc4PQcgZKzVypsHOtiY17H+I0VlV9XO56vbVVH7TxBmSMh1Z83KPNIaaU+wLAD7M4 91qppZZs9aVSdQ2ZRSDK2h1KmwCelR9cg+IvUCAS4TBm7MjxQg7QESdP3yCWO5yeaUEf JfarysHp2vedZ1j8WnWg/nMVBP2IPE2eDD1biNgoKAyZIW7Y/cVOVaDagG9o5NttWZK7 OHN/RGb8uxLhHG3aIO+HeVGYZOklzJPX60T36QxnZ1D2navpua/ChqImoPiQppbECbad 5A4EECzcWSVnWqF3s+CeX7MgOPim5k14tTw72eEer6LaByug466zt2BcmwDBdRvAe1q+ YIjQ== X-Gm-Message-State: ANoB5pncaYrt4ZCK9DuDYbe1h9gNwj9N9mYey2N6RuYQ7n4u4SSvhIe6 exuLs2uGAgU6Y2alxSk4CrCTg5NnNjCRpWsadXg= X-Received: by 2002:a7b:c00a:0:b0:3cf:cfcd:1f5 with SMTP id c10-20020a7bc00a000000b003cfcfcd01f5mr15085047wmb.38.1670935940762; Tue, 13 Dec 2022 04:52:20 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id p25-20020a05600c205900b003a6125562e1sm12499949wmg.46.2022.12.13.04.52.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 13 Dec 2022 04:52:20 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Peter Maydell Cc: Daniel Henrique Barboza , BALATON Zoltan , =?utf-8?q?Alex_Benn=C3=A9e?= , Alistair Francis , David Gibson , Jason Wang , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Greg Kurz , qemu-arm@nongnu.org, "Edgar E. Iglesias" , qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [RFC PATCH-for-8.0 0/3] hw/ppc: Remove tswap() calls Date: Tue, 13 Dec 2022 13:52:15 +0100 Message-Id: <20221213125218.39868-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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 Hi, I am trying to remove the tswap() API from system emulation and replace it by more meaningful calls, because tswap depends on the host endianness, and this detail should be irrelevant from the system emulation PoV. In this RFC series I'm trying to convert the PPC calls. Any help in understanding what was the original author intention is welcomed :) Thanks, Phil. Philippe Mathieu-Daudé (3): hw/ppc: Replace tswap32() by const_le32() hw/ppc/spapr: Replace tswap64(HPTE) by cpu_to_be64(HPTE) hw/net/xilinx_ethlite: Replace tswap32() by be32_to_cpu() hw/net/xilinx_ethlite.c | 10 +++++----- hw/ppc/sam460ex.c | 3 ++- hw/ppc/spapr.c | 9 +++++---- hw/ppc/virtex_ml507.c | 3 ++- 4 files changed, 14 insertions(+), 11 deletions(-)