From patchwork Fri Dec 9 15:15:26 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: 632257 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp916773pvb; Fri, 9 Dec 2022 07:16:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf7hgWmh3mwoEwuC6SfmlyNaUzvc4x80I+CMEeekTyRapYP4pUGNmwIH9ZAOd4RQEOyzNAbV X-Received: by 2002:a05:6214:70a:b0:4c6:ef2f:827a with SMTP id c10-20020a056214070a00b004c6ef2f827amr7270736qvz.5.1670598987715; Fri, 09 Dec 2022 07:16:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670598987; cv=none; d=google.com; s=arc-20160816; b=FHbThFB11EMlp7LGsESb5EOmnhtIs5MAvTH+ZXL7tpNDbcoKhB8HfFsaaOkvEvFWOO q48SqFegVzThekHdX0GRCQo4/YElIw/XR16NfEj+NaJesIFPSf1eQSCGeJw4WALCD0G6 R+SVdkJhlOmSvECErr42FBahMEthCC+C8+wsb0GniJqUpTUbKx3xUInevS5VE3n5l3fj mcm4IH5fkSgi1KMjS5qt+S+Z0W8TuwsAfFeei3qz3QDx5fjwEhYqPih0gCjzC0Tsi7+T 5QCFEsAn09+2SbrKKhE2eaM/9RBOXn6hvt9MJ1aSdQZqm3p/eIe78pe2qi3uRLamKlxa I8xg== 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=yhSJfJVg80YIcgRy8fjjtA35XXy79tWPwer5e9varSM=; b=Qo47dDFOztQZ6tY/3cBfl/A4VIMlan1rcQZRcCtPrqHxOc/Xrw5jsr0zvXjPRjoLhN WdTI6ISSLZbURn6+FVUVbDsHXfcnQaqCwKfp1Px7T3owGq9iRZtaclOzQF0MGLearbid gM50M4HU0RvbYPTPmTd01+Zkr1gFbN4tzyLI0PhEEc5iNNgi2z7nA/fLqIZgqkyWpO8e VFZsLhV9+iMmaHqh/bEAl3BgxKfFFLb5SeGoTFs/l/u/CiBzlH0xQHglt0mCmT9xClHk F/hWiRKlf40A3g7BwuyPipkNHQAsaSU/xc84KePPGoMAYgDCU8qYcypK00uVQAlterpC 445A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Eq4/PRUK"; 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 z14-20020a056214040e00b004ad0f5cf00esi922351qvx.117.2022.12.09.07.16.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Dec 2022 07:16:27 -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="Eq4/PRUK"; 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 1p3f6L-0004qt-4q; Fri, 09 Dec 2022 10:15:49 -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 1p3f6B-0004n1-PZ for qemu-devel@nongnu.org; Fri, 09 Dec 2022 10:15:43 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3f6A-000822-5D for qemu-devel@nongnu.org; Fri, 09 Dec 2022 10:15:39 -0500 Received: by mail-wr1-x433.google.com with SMTP id h12so5497024wrv.10 for ; Fri, 09 Dec 2022 07:15:37 -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=yhSJfJVg80YIcgRy8fjjtA35XXy79tWPwer5e9varSM=; b=Eq4/PRUKuVDVZRSZ4NKlMYs2jY39iiGJFBcpWX0COi/o4knpcl/lCvI0KZ+IiYrCGy oEISKrSy1tDoFe9RW0v4rUsWzCC/CXe24+ciC/pW6d9hzZwjgIKq/y+tZyZUoHbct4Cx 0XkL+1emjqMtusdtDUR/86TC1A3lJgrjK6syy2bbeVLKo0N/CSswEzb6rR/KL3w12MaR OEVRi6h7BXuA1j6Mfec2TUjHQtvSsX7Ig3oMofBRrnhWld7bq/dmnirVtCwAzBTS5paa Hba4m7mdtwo04XE0PeVk3pJ7Sij29rBcTkO/FYz2iCycRzb0udHXePpNHVnCqXWygoml NF8Q== 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=yhSJfJVg80YIcgRy8fjjtA35XXy79tWPwer5e9varSM=; b=0gP5WTY1qqcAuC6K06UB2t/7+Y+w2scnn7wvnRXNibzVKUgj4Ey+G7zl+7yQLXur+s 9RKquIH/yH81DxtmI/bB2r9LZdP5fkfl3VoVzvVVImQLjNDiDW6r9efluDqzrJgNmggN v6QAaZOrnD0X2+lDL3t4GbYaA0R+4cIqX+VnzvWrHLxdbbGa1j6r2QjoMlUEifSNtZED oSEB3+P+NHx5qHrmm2aAlufZ3rGd7VBBIqJ6Dk9HEvM+/iav6ffbeSdbLWrI7GLt82UB ZD69yjf/oakqY4UOGvZGloha8ZW50YSUG2TzT+CEBNNqRd1xPbHmznBnu9NonqRPh0Dz o9TQ== X-Gm-Message-State: ANoB5plTDXa4D9Xun5AnnJHFOO+w78KXcG7jDBYhaE+ATAwvDfDs+dRg 1sYPAdMFCrm/WC7/Lvnr3eyGCv5UGv88LfiqnOw= X-Received: by 2002:a5d:420c:0:b0:242:639e:e30b with SMTP id n12-20020a5d420c000000b00242639ee30bmr3526265wrq.40.1670598935522; Fri, 09 Dec 2022 07:15:35 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id k8-20020a5d5188000000b002421888a011sm1548549wrv.69.2022.12.09.07.15.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Dec 2022 07:15:35 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Jiaxun Yang , Bernhard Beschow , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno Subject: [PATCH-for-8.0 0/7] hw/mips: Make gt64xxx_pci.c endian-agnostic Date: Fri, 9 Dec 2022 16:15:26 +0100 Message-Id: <20221209151533.69516-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::433; envelope-from=philmd@linaro.org; helo=mail-wr1-x433.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 Respining an old/unfinished series... Add the 'cpu-little-endian' qdev property to the GT64120 north bridge so [target-specific] machines can set its endianness, allowing it to be endian agnostic. Philippe Mathieu-Daudé (7): hw/mips/Kconfig: Introduce CONFIG_GT64120 to select gt64xxx_pci.c hw/mips/gt64xxx_pci: Let the GT64120 manage the lower 512MiB hole hw/mips/gt64xxx_pci: Manage endian bits with the RegisterField API hw/mips/gt64xxx_pci: Add a 'cpu-little-endian' qdev property hw/mips/malta: Explicit GT64120 endianness upon device creation hw/mips/meson: Make gt64xxx_pci.c endian-agnostic hw/mips/gt64xxx_pci: Move it to hw/pci-host/ MAINTAINERS | 2 +- configs/devices/mips-softmmu/common.mak | 1 - hw/mips/Kconfig | 1 + hw/mips/malta.c | 11 ++-- hw/mips/meson.build | 2 +- hw/mips/trace-events | 6 --- hw/pci-host/Kconfig | 6 +++ hw/{mips/gt64xxx_pci.c => pci-host/gt64120.c} | 54 ++++++++++++++----- hw/pci-host/meson.build | 1 + hw/pci-host/trace-events | 7 +++ meson.build | 1 - 11 files changed, 62 insertions(+), 30 deletions(-) delete mode 100644 hw/mips/trace-events rename hw/{mips/gt64xxx_pci.c => pci-host/gt64120.c} (95%)