From patchwork Fri May 31 13:42:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 165519 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp772273ili; Fri, 31 May 2019 06:44:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKatL+lHRhPevpqoZ4vc05M7BZXVceYI/2DUDb6PNTuFv+PRbLpJiFwmUgjcpDUrYv3yws X-Received: by 2002:ac8:73c3:: with SMTP id v3mr9233929qtp.70.1559310242411; Fri, 31 May 2019 06:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559310242; cv=none; d=google.com; s=arc-20160816; b=fvPHO/APArLLNmaErVZZfez8DujuPvxDI4pD2JZ8ly5BTwEgJYckBNJOGL7RQpuiiN fy74pWUxCDmqM6uG4/o0hZddMhdu8JkPQVUkcSgYC50thk89MweTH0Tw7cf/tIgHyF4N 7Wgy9TCJKkmRdM7ee6Qcbhafgf2BMjIWHMY3nUdtEJ/ccll7zs3BQ7TKpk+JY4A9fCeG kd8FO0EXNgKPT4b0ySZ7NWUg46qw8SNOUuLylK4cGe8U9Jym1FjCV+Cu/jPOm2oM8Om4 6i45Yh6/OiCFYjh1kGilZTdI9sgFl6hHPEA6VtJZqNxYnZAyO7eFQ+qXIEYKPlyP4Ryd xVoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature; bh=JcjDx8lv6syXknEH6gXvbh3NkQrjO+4cM/hkpXquMSM=; b=iHZspMrAbjVcfXiG6GgSOzso0t1zcWJ1QN2WeEPwS/xeDnynPU4AM/6d7HMc47mCWG 2UojcTYeblEJwXPwGzk6NqoNqVeN0QdfeFI6nVLmDr9NleN9EU7q+z1i1QSDIM5xhefb vmYZpp4Z+Xnaeq/LSiLJkYFfrleqwaRB2C+d6d3aSyWGwDzI0uMC+ggZt3aGPRh9jRZe tQk4lFWHAHJp5LbHLHrwOopUXYCKLUESBiMR6hblgT2QCLgk1LjdMJqwtvjR6wMiArzm YJGV5+gvO6RzIaMIfueJ4/dyoZbxpFfJqoXuWJpTnxsxu4NnIpr1shqLWbiZ6a/lib65 k/vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cpqucE0d; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 42si1210999qto.84.2019.05.31.06.44.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 31 May 2019 06:44:02 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cpqucE0d; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:43766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWhpC-0007UV-04 for patch@linaro.org; Fri, 31 May 2019 09:44:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWhoW-0007GB-FM for qemu-devel@nongnu.org; Fri, 31 May 2019 09:43:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWhoV-0008ML-87 for qemu-devel@nongnu.org; Fri, 31 May 2019 09:43:20 -0400 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]:36676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWhoV-0008LV-2g for qemu-devel@nongnu.org; Fri, 31 May 2019 09:43:19 -0400 Received: by mail-oi1-x22f.google.com with SMTP id y124so7751565oiy.3 for ; Fri, 31 May 2019 06:43:18 -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:mime-version :content-transfer-encoding; bh=JcjDx8lv6syXknEH6gXvbh3NkQrjO+4cM/hkpXquMSM=; b=cpqucE0dL4H6AunrKPaRzyrliVPAit0WBXvAK71v+o/iL2gmRqnAfJR3dR8Qr0qtgT SJhSNS+qs0519zhJPeOyY1qn5gUAKSPSTSHoXwg4ayrvsrZBEEXxTgim0Rck4c7C7EeJ DZoKGaO+G4e7jgZZwi7YbliQV+OGDj5PcF/E4lh/R1sztAEkJcqU5JOXJtdPsv3BOFaO ysVWpTZGiPc0q5e+b4UiTH68gAZ6rbHL5N80A6l3qLE4IAgfsJmVf7HC2YEFFLLn1Fsi kV0oripFY/0oDUQhVp+J2gZ4xtiaZHp72+TqeeQ97SUXbQUsd2t7k5hrBgnCSJxIZw+d UCog== 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:mime-version :content-transfer-encoding; bh=JcjDx8lv6syXknEH6gXvbh3NkQrjO+4cM/hkpXquMSM=; b=V/SMu2Me+G3xmP0pK5kAi2BtynUbQFtfZQjNOLOmzWUBF+sNkDOxjqkxG+L7bhfbey kRdUpPX6G1aCYPcq4k+E2yK4bqPGpCIFyFHbEmpg34QfAIBFOA3jJh/679c6j//tsOTQ JV3eT4tUIYIjENgto1f+BE3QHXdROpv+3zzvvJ7vaAU1Mt58Zxvl8jDYwCn8py0iAs8a oEea3tnNK0QY08Zk24MMAcyToMNgydGotRMnfU4oDlEVE7+ryHN8Th7XwSwrOeYbPcsM tqlSDGlDj5suC8gZ3GVBZ0ZJj99KAQT09CDjIlc2fHpylUSKtFrm7l+awydytEVpi5n8 nYLg== X-Gm-Message-State: APjAAAWzHYHJ2Gw3XQz72a6cg25uroU8lHgNpwPIK7zpkjDC3dXIMtkC xpLtFJl7ptSGXEDWWtsbvojLbMwZxejXkg== X-Received: by 2002:aca:ed04:: with SMTP id l4mr5927787oih.64.1559310197521; Fri, 31 May 2019 06:43:17 -0700 (PDT) Received: from localhost.localdomain (168.189-204-159.bestelclientes.com.mx. [189.204.159.168]) by smtp.gmail.com with ESMTPSA id r23sm2391176otg.49.2019.05.31.06.43.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 May 2019 06:43:16 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 31 May 2019 08:42:52 -0500 Message-Id: <20190531134315.4109-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 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::22f Subject: [Qemu-devel] [PATCH v16 00/23] Add RX architecture 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The v14 patch set, from which I had prepared the pull request, contained errors within make check-qtest-rx. I have added 4 new patches, 12 through 15, to address those failures. These are placed before the enablement patch 16 so that there is no point at which these tests both run and fail. I have not tried to extract the changes that Sato-san made in his v15 patch set and folded in to previous patches. I have appended the disassembler patches that have been reviewed. Hopefully this is the version that can be merged, so that normal development can proceed from there. r~ Richard Henderson (11): target/rx: Convert to CPUClass::tlb_fill target/rx: Add RX to SysEmuTarget target/rx: Fix cpu types and names tests: Add rx to machine-none-test.c hw/rx: Honor -accel qtest target/rx: Disassemble rx_index_addr into a string target/rx: Replace operand with prt_ldmi in disassembler target/rx: Use prt_ldmi for XCHG_mr disassembly target/rx: Emit all disassembly in one prt() target/rx: Collect all bytes during disassembly target/rx: Dump bytes for each insn during disassembly Yoshinori Sato (12): target/rx: TCG translation target/rx: TCG helper target/rx: CPU definition target/rx: RX disassembler hw/intc: RX62N interrupt controller (ICUa) hw/timer: RX62N internal timer modules hw/char: RX62N serial communication interface (SCI) hw/rx: RX Target hardware definition qemu/bitops.h: Add extract8 and extract16 hw/registerfields.h: Add 8bit and 16bit register macros Add rx-softmmu MAINTAINERS: Add RX include/disas/dis-asm.h | 5 + include/hw/char/renesas_sci.h | 45 + include/hw/intc/rx_icu.h | 56 + include/hw/registerfields.h | 32 +- include/hw/rx/rx.h | 7 + include/hw/rx/rx62n.h | 94 ++ include/hw/timer/renesas_cmt.h | 38 + include/hw/timer/renesas_tmr.h | 53 + include/qemu/bitops.h | 38 + include/sysemu/arch_init.h | 1 + target/rx/cpu.h | 227 +++ target/rx/helper.h | 31 + arch_init.c | 2 + hw/char/renesas_sci.c | 340 +++++ hw/intc/rx_icu.c | 376 +++++ hw/rx/rx-virt.c | 105 ++ hw/rx/rx62n.c | 246 ++++ hw/timer/renesas_cmt.c | 275 ++++ hw/timer/renesas_tmr.c | 455 ++++++ target/rx/cpu.c | 245 ++++ target/rx/disas.c | 1446 +++++++++++++++++++ target/rx/gdbstub.c | 112 ++ target/rx/helper.c | 148 ++ target/rx/monitor.c | 38 + target/rx/op_helper.c | 470 ++++++ target/rx/translate.c | 2432 ++++++++++++++++++++++++++++++++ tests/machine-none-test.c | 1 + MAINTAINERS | 19 + configure | 8 + default-configs/rx-softmmu.mak | 3 + hw/Kconfig | 1 + hw/char/Kconfig | 3 + hw/char/Makefile.objs | 1 + hw/intc/Kconfig | 3 + hw/intc/Makefile.objs | 1 + hw/rx/Kconfig | 14 + hw/rx/Makefile.objs | 2 + hw/timer/Kconfig | 6 + hw/timer/Makefile.objs | 3 + qapi/common.json | 3 +- target/rx/Makefile.objs | 12 + target/rx/insns.decode | 621 ++++++++ 42 files changed, 8016 insertions(+), 2 deletions(-) create mode 100644 include/hw/char/renesas_sci.h create mode 100644 include/hw/intc/rx_icu.h create mode 100644 include/hw/rx/rx.h create mode 100644 include/hw/rx/rx62n.h create mode 100644 include/hw/timer/renesas_cmt.h create mode 100644 include/hw/timer/renesas_tmr.h create mode 100644 target/rx/cpu.h create mode 100644 target/rx/helper.h create mode 100644 hw/char/renesas_sci.c create mode 100644 hw/intc/rx_icu.c create mode 100644 hw/rx/rx-virt.c create mode 100644 hw/rx/rx62n.c create mode 100644 hw/timer/renesas_cmt.c create mode 100644 hw/timer/renesas_tmr.c create mode 100644 target/rx/cpu.c create mode 100644 target/rx/disas.c create mode 100644 target/rx/gdbstub.c create mode 100644 target/rx/helper.c create mode 100644 target/rx/monitor.c create mode 100644 target/rx/op_helper.c create mode 100644 target/rx/translate.c create mode 100644 default-configs/rx-softmmu.mak create mode 100644 hw/rx/Kconfig create mode 100644 hw/rx/Makefile.objs create mode 100644 target/rx/Makefile.objs create mode 100644 target/rx/insns.decode -- 2.17.1 Tested-by: Philippe Mathieu-Daudé