From patchwork Fri May 17 04:51:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 10947371 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 6D5C76C5 for ; Fri, 17 May 2019 05:03:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BA431FF29 for ; Fri, 17 May 2019 05:03:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F9B21FFDB; Fri, 17 May 2019 05:03:03 +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=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 D3AAE1FF29 for ; Fri, 17 May 2019 05:03:02 +0000 (UTC) Received: from localhost ([127.0.0.1]:42400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRV1K-000736-3O for patchwork-qemu-devel@patchwork.kernel.org; Fri, 17 May 2019 01:03:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRUqZ-0006IF-Ot for qemu-devel@nongnu.org; Fri, 17 May 2019 00:51:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRUqX-0007oy-PR for qemu-devel@nongnu.org; Fri, 17 May 2019 00:51:55 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:40203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRUqX-0007o3-GH for qemu-devel@nongnu.org; Fri, 17 May 2019 00:51:53 -0400 Received: by mail-pf1-x442.google.com with SMTP id u17so3038930pfn.7 for ; Thu, 16 May 2019 21:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5Wb4o8hGJvfUpM2qJ6vfNYYMCW70cYJebXgl3I7+Ni0=; b=weCcnbQYZYedyd3baYFPk2UQrlLnjpYjxp9hMDK7KJ6w/7H9vaHhUEH1yju6yr94lm 4j63DEPhd/ih/v85Gu7nce3FshFD7Q2j5/7gitvxIOkKG2sRcV8+UuBYvTtpuiI78wtz m2ljfZTBUMu7S8sNVAz8ZVymjGnyNsydV7xKj4bKqNt+RKOMPioN/0fIAGy75SQLvzuD bDVJ/mXSRH8dJ+S1wdrVqDvThSUi32rPHspIWWT70XcVRpaDVZXbhID+g1yK0DgSkIpU CaMuFTLUQ2INE5FZJmc8r3nwJTAICjaSHsDSW6bkSVt508dz7OYJUQm/ZZUVoWrd6ZjJ RI0A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=5Wb4o8hGJvfUpM2qJ6vfNYYMCW70cYJebXgl3I7+Ni0=; b=PLlHA35WSJS3wn+AdGyscxwTrp4ojJPGhVI4ndR24TC5hAqxYt+tzZlccIWHJX6aXk k6+9wdQD3weeoYTslWhX2iadlO0aYGAXDbF0SrDUHxvb6cAImOp4Yk9MVgHvlI/8tUzT Rh+odCNi1Z+k8PZ4htkl5MpZPOQoIclnCHdwuEokUBjIr658zFj0AHvU8k4aQX0juVsZ 9OWnkNlRK5K6fPBDLDYJi2fbKIYjgtND0c5CWsZPjEQ6aju9pnLUIeQTB9nmgR9heUv2 +q2Ye4ND23J72xnZ6wjdRMOroRD4lB5E0yXGxllXlsvjE6H1YswbKrmmDk8AnSQNuWr6 NDUg== X-Gm-Message-State: APjAAAVU/tsYwRr7dz38ZhBPe/Ofd/CVBz9/iNsQV0vysq2yQ3Ru9TpI 0c9DHCdoHG7oXyUSPu3euoZ2Ox/rIoc= X-Google-Smtp-Source: APXvYqy7PLA2goRbLUHzDjh9FxGnqbFsqgutWKCKA3s4USbcDFfJzyVPTklN/gBuMS9gBVDti3mPiQ== X-Received: by 2002:a62:1a51:: with SMTP id a78mr57275928pfa.133.1558068712285; Thu, 16 May 2019 21:51:52 -0700 (PDT) Received: from localhost.localdomain (97-113-13-231.tukw.qwest.net. [97.113.13.231]) by smtp.gmail.com with ESMTPSA id 132sm7709625pga.79.2019.05.16.21.51.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 21:51:51 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 16 May 2019 21:51:35 -0700 Message-Id: <20190517045136.3509-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190517045136.3509-1-richard.henderson@linaro.org> References: <20190517045136.3509-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::442 Subject: [Qemu-devel] [PATCH v14 12/13] Add rx-softmmu 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: philmd@redhat.com, ysato@users.sourceforge.jp Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Yoshinori Sato Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Yoshinori Sato Message-Id: <20190516055244.95559-10-ysato@users.sourceforge.jp> Signed-off-by: Richard Henderson --- include/sysemu/arch_init.h | 1 + arch_init.c | 2 ++ configure | 8 ++++++++ default-configs/rx-softmmu.mak | 3 +++ hw/Kconfig | 1 + 5 files changed, 15 insertions(+) create mode 100644 default-configs/rx-softmmu.mak diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index 10cbafe970..3f4f844f7b 100644 --- a/include/sysemu/arch_init.h +++ b/include/sysemu/arch_init.h @@ -25,6 +25,7 @@ enum { QEMU_ARCH_NIOS2 = (1 << 17), QEMU_ARCH_HPPA = (1 << 18), QEMU_ARCH_RISCV = (1 << 19), + QEMU_ARCH_RX = (1 << 20), }; extern const uint32_t arch_type; diff --git a/arch_init.c b/arch_init.c index f4f3f610c8..cc25ddd7ca 100644 --- a/arch_init.c +++ b/arch_init.c @@ -74,6 +74,8 @@ int graphic_depth = 32; #define QEMU_ARCH QEMU_ARCH_PPC #elif defined(TARGET_RISCV) #define QEMU_ARCH QEMU_ARCH_RISCV +#elif defined(TARGET_RX) +#define QEMU_ARCH QEMU_ARCH_RX #elif defined(TARGET_S390X) #define QEMU_ARCH QEMU_ARCH_S390X #elif defined(TARGET_SH4) diff --git a/configure b/configure index 8999698bc2..28782762dd 100755 --- a/configure +++ b/configure @@ -7547,6 +7547,11 @@ case "$target_name" in gdb_xml_files="riscv-64bit-cpu.xml riscv-64bit-fpu.xml riscv-64bit-csr.xml" target_compiler=$cross_cc_riscv64 ;; + rx) + TARGET_ARCH=rx + bflt="yes" + target_compiler=$cross_cc_rx + ;; sh4|sh4eb) TARGET_ARCH=sh4 bflt="yes" @@ -7767,6 +7772,9 @@ for i in $ARCH $TARGET_BASE_ARCH ; do riscv*) disas_config "RISCV" ;; + rx) + disas_config "RX" + ;; s390*) disas_config "S390" ;; diff --git a/default-configs/rx-softmmu.mak b/default-configs/rx-softmmu.mak new file mode 100644 index 0000000000..a3eecefb11 --- /dev/null +++ b/default-configs/rx-softmmu.mak @@ -0,0 +1,3 @@ +# Default configuration for rx-softmmu + +CONFIG_RX_VIRT=y diff --git a/hw/Kconfig b/hw/Kconfig index 88b9f15007..63a071092e 100644 --- a/hw/Kconfig +++ b/hw/Kconfig @@ -53,6 +53,7 @@ source nios2/Kconfig source openrisc/Kconfig source ppc/Kconfig source riscv/Kconfig +source rx/Kconfig source s390x/Kconfig source sh4/Kconfig source sparc/Kconfig