From patchwork Mon Apr 29 05:32:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 1092411 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=209.51.188.17; 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=alistair23.me Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44stbz0WSxz9s3l for ; Mon, 29 Apr 2019 15:33:19 +1000 (AEST) Received: from localhost ([127.0.0.1]:52373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKyui-0006HL-TP for incoming@patchwork.ozlabs.org; Mon, 29 Apr 2019 01:33:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKyu9-0006H3-8I for qemu-devel@nongnu.org; Mon, 29 Apr 2019 01:32:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKyu8-00055P-Ck for qemu-devel@nongnu.org; Mon, 29 Apr 2019 01:32:41 -0400 Received: from mail-oln040092253104.outbound.protection.outlook.com ([40.92.253.104]:39646 helo=APC01-SG2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKyu8-000541-33 for qemu-devel@nongnu.org; Mon, 29 Apr 2019 01:32:40 -0400 Received: from SG2APC01FT020.eop-APC01.prod.protection.outlook.com (10.152.250.53) by SG2APC01HT239.eop-APC01.prod.protection.outlook.com (10.152.251.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1835.13; Mon, 29 Apr 2019 05:32:32 +0000 Received: from PSXP216MB0277.KORP216.PROD.OUTLOOK.COM (10.152.250.59) by SG2APC01FT020.mail.protection.outlook.com (10.152.250.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1835.13 via Frontend Transport; Mon, 29 Apr 2019 05:32:32 +0000 Received: from PSXP216MB0277.KORP216.PROD.OUTLOOK.COM ([fe80::d5cf:d2af:3aea:e2a3]) by PSXP216MB0277.KORP216.PROD.OUTLOOK.COM ([fe80::d5cf:d2af:3aea:e2a3%3]) with mapi id 15.20.1835.018; Mon, 29 Apr 2019 05:32:32 +0000 From: Alistair Francis To: "qemu-devel@nongnu.org" Thread-Topic: [PATCH v1 0/5] Add the STM32F405 and Netduino Plus 2 machine Thread-Index: AQHU/kzxL8+/eQLN9UiNhqnVkuDYjg== Date: Mon, 29 Apr 2019 05:32:31 +0000 Message-ID: Accept-Language: en-AU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR01CA0018.prod.exchangelabs.com (2603:10b6:a02:80::31) To PSXP216MB0277.KORP216.PROD.OUTLOOK.COM (2603:1096:300:a::18) x-incomingtopheadermarker: OriginalChecksum:575ECFCD5AFC4AAFC229D24653812C3DC80C3FB5110DB636D28C6496B4A89195; UpperCasedChecksum:83EFBE50A58E113229DBDF6A3315210A04D16BC4765907FDBD60118E5D46A6B0; SizeAsReceived:7358; Count:48 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.21.0 x-tmn: [clv26Bs/waDQ3lT71hGoXWWjOo+kv8by8TP51U8i1kgzCaYVo9DioyCfksZ/Jwyk] x-microsoft-original-message-id: x-ms-publictraffictype: Email x-incomingheadercount: 48 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045); SRVR:SG2APC01HT239; x-ms-traffictypediagnostic: SG2APC01HT239: x-microsoft-antispam-message-info: W3BKkLnxL3Pza2f1a3dlJpc2nph2vpV2OravwSru9Vttt1ZJOPowPrSjTxjfhW8OTA/8g6Y9mhm0Uxm8/wSCUkTyNIDTMd1gHSQg767yhZ5xbFXnAgEint43Rm0XFE/yNGQHeNX06jqzphBVoLZ4srSHjozp273ca1eSyATM0TnCLNBjn9Rlia4eQzLkc0kS MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: ec865ad8-999c-4361-f07b-08d6cc64135c X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2019 05:32:31.9282 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT239 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.92.253.104 Subject: [Qemu-devel] [PATCH v1 0/5] Add the STM32F405 and Netduino Plus 2 machine 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: "alistair23@gmail.com" Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Now that the Arm-M4 CPU has been added to QEMU we can add the Netduino Plus 2 machine. This is very similar to the STM32F205 and Netduino 2 SoC and machine. Alistair Francis (5): armv7m: Allow entry information to be returned hw/misc: Add the STM32F4xx Sysconfig device hw/misc: Add the STM32F4xx EXTI device hw/arm: Add the STM32F4xx SoC hw/arm: Add the Netduino Plus 2 MAINTAINERS | 14 ++ default-configs/arm-softmmu.mak | 4 + hw/arm/Kconfig | 6 + hw/arm/Makefile.objs | 2 + hw/arm/armv7m.c | 6 +- hw/arm/microbit.c | 2 +- hw/arm/mps2-tz.c | 3 +- hw/arm/mps2.c | 2 +- hw/arm/msf2-som.c | 2 +- hw/arm/musca.c | 3 +- hw/arm/netduino2.c | 2 +- hw/arm/netduinoplus2.c | 77 ++++++++ hw/arm/stellaris.c | 3 +- hw/arm/stm32f405_soc.c | 292 +++++++++++++++++++++++++++++ hw/misc/Kconfig | 6 + hw/misc/Makefile.objs | 2 + hw/misc/stm32f4xx_exti.c | 175 +++++++++++++++++ hw/misc/stm32f4xx_syscfg.c | 275 +++++++++++++++++++++++++++ include/hw/arm/arm.h | 4 +- include/hw/arm/stm32f405_soc.h | 70 +++++++ include/hw/misc/stm32f4xx_exti.h | 57 ++++++ include/hw/misc/stm32f4xx_syscfg.h | 62 ++++++ 22 files changed, 1058 insertions(+), 11 deletions(-) create mode 100644 hw/arm/netduinoplus2.c create mode 100644 hw/arm/stm32f405_soc.c create mode 100644 hw/misc/stm32f4xx_exti.c create mode 100644 hw/misc/stm32f4xx_syscfg.c create mode 100644 include/hw/arm/stm32f405_soc.h create mode 100644 include/hw/misc/stm32f4xx_exti.h create mode 100644 include/hw/misc/stm32f4xx_syscfg.h