From patchwork Mon Oct 1 22:09:27 2018 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: 977502 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Dzm4lcb9"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42PGyj5YPyz9s3l for ; Tue, 2 Oct 2018 08:23:41 +1000 (AEST) Received: from localhost ([::1]:40932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g76bL-0006pA-94 for incoming@patchwork.ozlabs.org; Mon, 01 Oct 2018 18:23:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g76XW-00041R-GI for qemu-devel@nongnu.org; Mon, 01 Oct 2018 18:19:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g76O3-0007DM-W3 for qemu-devel@nongnu.org; Mon, 01 Oct 2018 18:09:59 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:55763) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g76O3-0007D7-L6 for qemu-devel@nongnu.org; Mon, 01 Oct 2018 18:09:55 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 206-v6so276134wmb.5 for ; Mon, 01 Oct 2018 15:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RLEHl5+qYAzwptWUn8CdFX8z1MOcBdKXpjWL76lZxqU=; b=Dzm4lcb9kcNs4nIV2UFbI1SKZkCGLWVnH5WujBL8awGqC8P6m4G2ilxsefnNRJBl+L PzxpMYbSMYd8H71YPQllIPa7d+A2RbA1jal1xN/CU3EL3JzjjTMs50DxYxYoRtzP9H4s +w14/iHTwCQNHsX/pLDdTf4xXIR04OW3OBAkQAg+duuIM+2BEtFk5BnuqKLyc5Uf5L7G 1f6di3UYZsl7/87YGjktNPDz1Cvg7yD1rjfNrK+P22rufniciAlPmr7X7cWKZBCbJvq9 EqY3HaVLjzSB6dtXfVeptkZ8VHxUyJHG6EvR7qG/uB65f9hCwphoXDwTIhgiOgmbrSeL VhNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=RLEHl5+qYAzwptWUn8CdFX8z1MOcBdKXpjWL76lZxqU=; b=Yj5bjivvpEaQ9iCrlpGXhTH/E0Z4yFo7ZXSAwRm3Sb358YnjefGym06elsYaB+k4Gd 334w/G3EyBOec4R9qt+YV7C52apSkh3ocmI55EUgYwFXHQavBlXY3CtuGH9/NW1VZDyD mkqEcQVMvHsRFsqOYZox1uu9Ac9adG1HpbRq1LYlfmeNpiJj3CwobQMtSBo4CoZ1VjKP kHP5jyi1t8aIPi2K9q2L2/gRvLDR889VTNp8QMnBlQzdWvThEENscf847GdrQrksV+st o6U2L3gHxHxgWdb+/GV+c1YsljXOSVhdzFWAtlnzPFX26qZH94b1Hr9Yn7znqimrdanL tw0A== X-Gm-Message-State: ABuFfoi8LGgbUPyIm0hIqDIxU18gRjQIsq+W3lCXjZwsc8gm5OielNPv 136Q3/+wBQ2rbGjN8yGpZTo= X-Google-Smtp-Source: ACcGV630TOEb1eBlZGNIwqQSy8ojpa6Z5rVmy+T8JgCIfpWtZ8tGu+hToD2Mbe9Yw2wEVx191t+HdA== X-Received: by 2002:a1c:9cd3:: with SMTP id f202-v6mr384wme.148.1538431794212; Mon, 01 Oct 2018 15:09:54 -0700 (PDT) Received: from x1.local (11.red-88-24-160.staticip.rima-tde.net. [88.24.160.11]) by smtp.gmail.com with ESMTPSA id 185-v6sm13554914wmy.38.2018.10.01.15.09.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 15:09:53 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Peter Maydell , =?utf-8?q?C=C3=A9dric_Le_Goa?= =?utf-8?q?ter?= Date: Tue, 2 Oct 2018 00:09:27 +0200 Message-Id: <20181001220942.2382-1-f4bug@amsat.org> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32d Subject: [Qemu-devel] [PATCH 00/15] another SysBusDevice::init to Device::realize cleanup X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Eduardo Habkost , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Peter suggested [1] another crusade for this merge window, then Cédric jumped on his horse [2]. My turn on my dromedary. - convert few devices to DeviceState::realize, - kill the empty_slot device, - remove unuseful class_init() code [RFC, do we want to keep this?] - few other minor fixes catched while editing Regards, Phil. [1] https://lists.gnu.org/archive/html/qemu-devel/2018-09/msg03605.html [2] https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg00001.html Philippe Mathieu-Daudé (15): trace-events: Fix copy/paste typo hw/timer/sun4v-rtc: Convert from DPRINTF() macro to trace events hw/timer/sun4v-rtc: Use DeviceState::realize rather than SysBusDevice::init hw/ssi/xilinx_spi: Use DeviceState::realize rather than SysBusDevice::init hw/sh4/sh_pci: Use DeviceState::realize rather than SysBusDevice::init hw/pci-host/bonito: Use DeviceState::realize rather than SysBusDevice::init hw/mips/gt64xxx_pci: Convert gt64120_reset() function into Device reset method hw/mips/gt64xxx_pci: Mark as bridge device hw/mips/malta: Replace 'empty_slot' by 'unimplemented_device' hw/sparc64/niagara: Replace 'empty_slot' by 'unimplemented_device' hw/sparc/sun4m: Replace 'empty_slot' by 'unimplemented_device' hw/core: Remove the 'empty_slot' device hw/alpha/typhoon: Remove unuseful code hw/hppa/dino: Remove unuseful code hw/mips/malta: Remove unuseful code default-configs/mips-softmmu-common.mak | 1 - default-configs/sparc-softmmu.mak | 1 - default-configs/sparc64-softmmu.mak | 1 - include/hw/empty_slot.h | 7 -- hw/alpha/typhoon.c | 13 --- hw/core/empty_slot.c | 103 ------------------------ hw/hppa/dino.c | 7 -- hw/mips/gt64xxx_pci.c | 18 +---- hw/mips/mips_malta.c | 17 +--- hw/pci-host/bonito.c | 9 +-- hw/sh4/sh_pci.c | 20 +++-- hw/sparc/sun4m.c | 24 +++--- hw/sparc64/niagara.c | 4 +- hw/ssi/xilinx_spi.c | 9 +-- hw/timer/sun4v-rtc.c | 23 ++---- hw/core/Makefile.objs | 1 - hw/timer/trace-events | 6 +- 17 files changed, 50 insertions(+), 214 deletions(-) delete mode 100644 include/hw/empty_slot.h delete mode 100644 hw/core/empty_slot.c