From patchwork Mon Jan 28 02:09:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10783187 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 051E991E for ; Mon, 28 Jan 2019 02:16:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E89412A64D for ; Mon, 28 Jan 2019 02:16:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD2CE2A64C; Mon, 28 Jan 2019 02:16:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 897F52A649 for ; Mon, 28 Jan 2019 02:16:25 +0000 (UTC) Received: from localhost ([127.0.0.1]:52850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnwTH-0007aX-SR for patchwork-qemu-devel@patchwork.kernel.org; Sun, 27 Jan 2019 21:16:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnwPo-0004zY-HC for qemu-devel@nongnu.org; Sun, 27 Jan 2019 21:12:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnwN7-0005cs-AM for qemu-devel@nongnu.org; Sun, 27 Jan 2019 21:10:01 -0500 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]:46519) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gnwN6-0005c1-Pr for qemu-devel@nongnu.org; Sun, 27 Jan 2019 21:10:01 -0500 Received: by mail-lf1-x144.google.com with SMTP id f5so10645660lfc.13 for ; Sun, 27 Jan 2019 18:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=gZbqTQGLbaueKCF6x4ClA5ToMlEOp2ixi0luSfvam9E=; b=ewuSuePBFP5fwgcgJXd+Rm+V8OzynvD6Z5nzBAfObfGf/DCVSJULJbtJliGeAgkR0Y O95i6uFm0DJh8nm7BMyGg44B3UQq433HrZJkVitiXmV8VV4P8EO4PfdGN0oS5scz1/nH IQqJmpsIHkWpswnaSW5ArN2fme7WiSIPXKQtp+YLdZe4lbuljl0o2Or7OazcjsGylVbU 8PSVK0uTq9jlZTcfdHcU2boZX8wxf3kxkHrBneGNo2xXqFV7iANYdbkj6bsatqU+q+zS bI0C8fMdes03GNnr8Ywk3XT7KQemK5yuQsEv1hb1Xm0LR2B8g7ru+mm7TOopu1XA4adI jFlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gZbqTQGLbaueKCF6x4ClA5ToMlEOp2ixi0luSfvam9E=; b=L8ftkNKqQMga6gAPz326KQL+f1GCuyxJfe6ECOHYkUja3YiZ406JKpZurJyzskIUg7 LjZU0Zv4fJbjXDNMt5TuBRAw7OVpNKpTnLNB1M6UhbnwF54eEJ18aqylJ4vEmY/VzyB1 N0bjY8hv3DnBeN08kvF2Bix4BIpYEK8mb46Kib0WA/7vv5AI/pQ58N6tOIqwM/4NFgnd FbTCaaM1QBcp+3h7ZT/Qr36rMVPVQekBMqGZ06anHYqAyplI+YXhJ0k8BtLTXIEUJBR7 xkHNp/w7A7e5bdRZzFTJ8/QZPoyDpujU0bzyMTrFKq4yufa1vXiLvisSLHHjyMMcCZK+ PVgw== X-Gm-Message-State: AJcUukdIO/kF0HWs9l4RZu5gqL9vkH8lBCAn/h63joh+/+5qNY8wmq95 yWko3x0LbdvnlfXYcWLYNY+DI8RfObk= X-Google-Smtp-Source: ALg8bN5oeWyBfM2lchPTZ6PicENcmAchekSI2orFxPz1loKpmC7bSGq94HP9cO58CCcqME7eTItl4Q== X-Received: by 2002:a19:c345:: with SMTP id t66mr12608976lff.55.1548641398060; Sun, 27 Jan 2019 18:09:58 -0800 (PST) Received: from octofox.hsd1.ca.comcast.net. (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id q20sm2649852lfj.20.2019.01.27.18.09.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Jan 2019 18:09:57 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Sun, 27 Jan 2019 18:09:33 -0800 Message-Id: <20190128020937.22775-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::144 Subject: [Qemu-devel] [PATCH 0/4] target/xtensa: add SMP linux capable hardware 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: Max Filippov Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hello, this series adds SMP-capable interrupt controller model amd instantiates it on the XTFPGA boards when more than one CPU is specified in command line. It also adds an MMUv2 SMP-capable xtensa core. Max Filippov (4): target/xtensa: expose core runstall as an IRQ line target/xtensa: add MX interrupt controller hw/xtensa: xtfpga: use MX PIC for SMP target-xtensa: add test_mmuhifi_c3 core hw/xtensa/Makefile.objs | 1 + hw/xtensa/mx_pic.c | 354 + hw/xtensa/pic_cpu.c | 12 + hw/xtensa/xtfpga.c | 22 +- include/hw/xtensa/mx_pic.h | 44 + target/xtensa/Makefile.objs | 1 + target/xtensa/core-test_mmuhifi_c3.c | 53 + target/xtensa/core-test_mmuhifi_c3/core-isa.h | 384 + .../xtensa/core-test_mmuhifi_c3/gdb-config.inc.c | 140 + .../core-test_mmuhifi_c3/xtensa-modules.inc.c | 36403 +++++++++++++++++++ target/xtensa/cpu.h | 2 + 11 files changed, 37415 insertions(+), 1 deletion(-) create mode 100644 hw/xtensa/mx_pic.c create mode 100644 include/hw/xtensa/mx_pic.h create mode 100644 target/xtensa/core-test_mmuhifi_c3.c create mode 100644 target/xtensa/core-test_mmuhifi_c3/core-isa.h create mode 100644 target/xtensa/core-test_mmuhifi_c3/gdb-config.inc.c create mode 100644 target/xtensa/core-test_mmuhifi_c3/xtensa-modules.inc.c