From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVduU-0002BC-5Q for qemu-devel@nongnu.org; Tue, 16 Feb 2016 06:35:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVduT-0004Hj-2o for qemu-devel@nongnu.org; Tue, 16 Feb 2016 06:35:14 -0500 From: Andrew Jeffery Date: Tue, 16 Feb 2016 22:04:54 +1030 Message-Id: <1455622497-25966-1-git-send-email-andrew@aj.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 0/3] Add ASPEED AST2400 machine model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: openbmc@lists.ozlabs.org, qemu-arm@nongnu.org Hi all, This is the first time I've implemented QEMU device models so no doubt th= e patches contain misunderstandings and/or oversights - happy to hear any feedback!=20 This patch series implements enough of the ASPEED AST2400 (ARMv5 SoC) mac= hine model to boot an aspeed_defconfig Linux kernel[1]. The device model patch= es in turn only partially implement the hardware features of the timer and AVIC= , again mostly just enough to boot Linux. The addition of the AST2400 to QEMU is motivated by use of the SoC as a B= MC in OpenPOWER[2][3] machines and the ongoing development of OpenBMC[4]. The presence of a machine model for the AST2400 will help with development an= d testing of the OpenBMC stack. I posted an initial revision to the OpenBMC mailing list (CC'ed) for revi= ew, hence the v2. Cheers, Andrew [1] git fetch git@github.com:openbmc/linux.git dev-4.3 [2] http://openpowerfoundation.org/ [3] https://github.com/open-power/ [4] https://github.com/openbmc/openbmc =3D=3D=3D Since v1: Address comments from C=C3=A9dric Le Goater: General: * Use tracing infrastructure instead of internal DPRINTF * Enforce access size constraints and alignment in MemoryRegionOps hw/timer/aspeed_timer.c: * Refactor initialisation of and respect requested clock rates (APB/Ext= ernal) * Simplify some index calculations =3D=3D=3D Andrew Jeffery (3): hw/timer: Add ASPEED AST2400 timer device model hw/intc: Add (new) ASPEED AST2400 AVIC device model hw/arm: Add ASPEED AST2400 machine type default-configs/arm-softmmu.mak | 2 + hw/arm/Makefile.objs | 1 + hw/arm/ast2400.c | 139 ++++++++++++++++++ hw/intc/Makefile.objs | 1 + hw/intc/aspeed_vic.c | 256 +++++++++++++++++++++++++++++++++ hw/timer/Makefile.objs | 2 + hw/timer/aspeed_timer.c | 308 ++++++++++++++++++++++++++++++++++= ++++++ include/hw/intc/aspeed_vic.h | 40 ++++++ include/hw/timer/aspeed_timer.h | 55 +++++++ trace-events | 22 +++ 10 files changed, 826 insertions(+) create mode 100644 hw/arm/ast2400.c create mode 100644 hw/intc/aspeed_vic.c create mode 100644 hw/timer/aspeed_timer.c create mode 100644 include/hw/intc/aspeed_vic.h create mode 100644 include/hw/timer/aspeed_timer.h --=20 2.5.0