From patchwork Tue Oct 24 08:30:03 2023 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: 737530 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp1917098wrl; Tue, 24 Oct 2023 01:32:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHESObH/W/bb+cvirTyem5DZENuNsoq7/wSxmonVxAFTwr6RNbOaEfnvzAX+yBCBtz2tdwW X-Received: by 2002:a05:622a:11c2:b0:410:87a:be98 with SMTP id n2-20020a05622a11c200b00410087abe98mr15040208qtk.20.1698136335696; Tue, 24 Oct 2023 01:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698136335; cv=none; d=google.com; s=arc-20160816; b=OSjGbTCq8VM5ESxvHm9/Bupdd7koIsJlbhGQRAxLFBApzQiVsCHa0gx+IkxTeiiL4E rNpeFeBEUzHsjZGKdJegsvDmSt7x99dl9/aEZpBoughop4mG0JChc7DfIy7OzfMaDTgB d9Gzi5z7bJY9oF6fW+FCoynfEGAWYGv+PNcurZ2ZB7hn8ojVDN9By3E8mtvVP7Nfyt7U iqW3f9lOaOGjn10OHsAn6ACH/bXsw6rhttRp69H/lxJHgNmU3onVwuRjdRlHLvYTdDg5 ciTOFww2Eh/puvHA/v6BJwlp6IRcfpd8ru8eCxbIZrXvZP2LYogx7iNLS7X6hfiy6uE8 dMQQ== 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=DofkXsCTvbZe2X7DyAN5f8buT8fMjFe1M1dZcn34LJc=; fh=Mdf52nFo9awWRQAQ5n4MPOk7ZtnLcdGEXbk4ZWEzep8=; b=altIyDOMbELG+N1wjRJu332JDdoNsWHxfaq55SacKt46Evwyixgy5/usngI56QMcse fyowtKfyIPyP3QL0RBNR9HeAPix4tKvMcQ0IF68fvQqEE7SmBslOpakzrzVmCZ1SD+k0 9xkj7bPqq/nm5PfyS+AfGQdKKU+RDUOMoxVJIHfO+PBfyYOAAymzZP7FbmrYT479ppIR la2WcIvX36mp7epvcjJ1DfeBX24r2wJeyFeTNN6qA1aS9PTmHtQMskZKCW1O/DTQ6ipX PqWxFBbwsMx9uqj6v64XHhQicl4MkfJloPl1bd2jUROFukw7172YRgPTKeprcnSG9NER e74Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fc9NeE5z; 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 z6-20020a05622a060600b004181f36343fsi7201201qta.775.2023.10.24.01.32.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Oct 2023 01:32:15 -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=Fc9NeE5z; 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 1qvCnx-0001Vs-AF; Tue, 24 Oct 2023 04:30:25 -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 1qvCnv-0001VK-OH for qemu-devel@nongnu.org; Tue, 24 Oct 2023 04:30:23 -0400 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvCnn-00012J-Sr for qemu-devel@nongnu.org; Tue, 24 Oct 2023 04:30:23 -0400 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2c4fe37f166so60393071fa.1 for ; Tue, 24 Oct 2023 01:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698136213; x=1698741013; 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=DofkXsCTvbZe2X7DyAN5f8buT8fMjFe1M1dZcn34LJc=; b=Fc9NeE5z7qkq2QVnCeJIsjsEXVsXdchnLDiiuRbnAoKYWP9yft2ZVoVAnu2nzoQ/+k 7SPI84kU8NJC6nfFaiuQF0kD0VF4UasEEyqZrq3axwSqzqD9z963sRL+h/uro8aQspMP yMSdhvjt7T21genyf2E/5/h3EnndODzaOjRqFrG1N1cW6ewLx1F6JzkypODyok/wMnjT pJd8SPKaeYZVh2EAUm95tWVz37nO6PXmpeeryG6FZa1J661EiSyYPfpr+UjvoHhqDPgy lzLtRn4umnbNoXgRf8eMjeYOwTxr9BLbmbbS+k8/OOM2vBcQf4RxrNCm2DPY8+9yUxj1 EIdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698136213; x=1698741013; 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=DofkXsCTvbZe2X7DyAN5f8buT8fMjFe1M1dZcn34LJc=; b=MDFMe3lYt4blOrgb5TALKcSVY0eO0xMIIPomFNfnWFznXmkVDdAKNTw9o9J+2Dk9ue 1fq5DeScMLVdkJi8Rs9ThCoY0dD9exY989HVcW6saDF7HqbnLlWKVLIP6dBa9VvJVL4U zbkb+Qj7DuwbG0QUTORKo1qxD8c9CUZB1xP3trF3v66eSAbo2C1Oo8aPIxmXaiLNNike iKfPFOrXdFsPtbRVTT0EtbucNjf3GAV9cvf0c6O5dkck4zSULfU+9CSyraTWK0rR/VHJ P49xthJpT0nKnOFpdCEleLYPWNxlvc0rkTr5mRRbt9JE/pLEA0lN/xbCKDPNN3EHnLvr ss1w== X-Gm-Message-State: AOJu0YwwFqbat8/y27nQ7ekUy+J0eji2LU5zf+keKER/BP/Icy5YLu96 y5t7DTWn8ySZRpt/aNpez64Gpd920d9voyCgCjg= X-Received: by 2002:a2e:a7cc:0:b0:2c5:fb9:49b6 with SMTP id x12-20020a2ea7cc000000b002c50fb949b6mr11124885ljp.10.1698136213130; Tue, 24 Oct 2023 01:30:13 -0700 (PDT) Received: from m1x-phil.lan (sem44-h01-176-172-55-165.dsl.sta.abo.bbox.fr. [176.172.55.165]) by smtp.gmail.com with ESMTPSA id l8-20020a05600c1d0800b0040531f5c51asm11506348wms.5.2023.10.24.01.30.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 24 Oct 2023 01:30:12 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Thomas Huth , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 0/6] hw/m68k: Strengthen QOM/SysBus API uses Date: Tue, 24 Oct 2023 10:30:03 +0200 Message-ID: <20231024083010.12453-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=philmd@linaro.org; helo=mail-lj1-x22e.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 All series reviewed. v2: - Addressed Thomas comments in patches 1-2 - Added R-b tags Avoid QOM objects poking at each other internals: - Pass "link" properties - Access MMIO via SysBus API - Simplify using sysbus_create_simple() Philippe Mathieu-Daudé (6): hw/m68k/irqc: Pass CPU using QOM link property hw/m68k/mcf5206: Pass CPU using QOM link property hw/m68k/mcf_intc: Expose MMIO region via SysBus API hw/m68k/mcf_intc: Pass CPU using QOM link property hw/m68k/next-cube: Do not open-code sysbus_create_simple() hw/m68k/virt: Do not open-code sysbus_create_simple() include/hw/intc/m68k_irqc.h | 1 + hw/intc/m68k_irqc.c | 10 +++++++++- hw/m68k/an5206.c | 6 ++++-- hw/m68k/mcf5206.c | 9 ++++++++- hw/m68k/mcf_intc.c | 21 ++++++++++++++------- hw/m68k/next-cube.c | 9 ++------- hw/m68k/virt.c | 9 ++++----- 7 files changed, 42 insertions(+), 23 deletions(-)