Received: from eggs.gnu.org ([2001:4830:134:3::10]:44822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eApP5-0005r9-KV for qemu-devel@nongnu.org; Fri, 03 Nov 2017 23:45:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eApP4-0000RR-Mx for qemu-devel@nongnu.org; Fri, 03 Nov 2017 23:45:51 -0400 Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:49274) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eApP4-0000QE-Dk for qemu-devel@nongnu.org; Fri, 03 Nov 2017 23:45:50 -0400 Received: by mail-lf0-x230.google.com with SMTP id w21so5156609lfc.6 for ; Fri, 03 Nov 2017 20:45:49 -0700 (PDT) From: Max Filippov Date: Fri, 3 Nov 2017 20:45:05 -0700 Message-Id: <1509767121-26925-1-git-send-email-jcmvbkbc@gmail.com> Subject: [Qemu-devel] [PATCH 00/16] target/xtensa: switch to libisa List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Richard Henderson , Max Filippov Hello, this series adds libisa to the Xtensa target, changes decoder and instruction translators to use it, switches existing xtensa cores to use it, adds support for a number of new instructions and adds disassembler for Xtensa. Libisa is the canonical way of dealing with Xtensa instructions decoding and encoding. Libisa is a configuration-independent library with a stable interface plus generated configuration-specific xtensa-modules.c file with implementations of decoding and encoding functions. Libisa is MIT-licensed and originally distributed xtensa-modules.c files are also MIT-licensed and are available as a part of the xtensa configuration overlay. This transition makes it possible to support variable-encoding instructions of the core ISA, like const16, and will allow to support advanced Xtensa features, like FLIX and TIE. Development branch is available at: git://github.com/OSLL/qemu-xtensa.git xtensa-libisa Max Filippov (16): target/xtensa: pass actual frame size to the entry helper target/xtensa: import libisa source target/xtensa: extract core opcode translators target/xtensa: extract FPU2000 opcode translators target/xtensa: update import_core.sh script for libisa target/xtensa: switch dc232b to libisa target/xtensa: switch dc233c to libisa target/xtensa: switch fsf to libisa target/xtensa: use libisa for instruction decoding target/xtensa: tests: fix memctl SR test target/xtensa: drop DisasContext::litbase target/xtensa: add internal/noop SRs and opcodes target/xtensa: implement salt/saltu target/xtensa: implement GPIO32 target/xtensa: implement const16 target/xtensa: implement disassembler MAINTAINERS | 1 + disas/Makefile.objs | 1 + disas/xtensa.c | 133 + include/disas/bfd.h | 1 + include/hw/xtensa/xtensa-isa.h | 838 ++ target/xtensa/Makefile.objs | 1 + target/xtensa/core-dc232b.c | 4 + target/xtensa/core-dc232b/xtensa-modules.c | 14106 +++++++++++++++++++++++++ target/xtensa/core-dc233c.c | 4 + target/xtensa/core-dc233c/xtensa-modules.c | 15233 +++++++++++++++++++++++++++ target/xtensa/core-fsf.c | 5 + target/xtensa/core-fsf/xtensa-modules.c | 9842 +++++++++++++++++ target/xtensa/cpu.c | 9 + target/xtensa/cpu.h | 31 + target/xtensa/helper.c | 37 + target/xtensa/import_core.sh | 14 + target/xtensa/op_helper.c | 2 +- target/xtensa/translate.c | 5883 +++++++---- target/xtensa/xtensa-isa-internal.h | 231 + target/xtensa/xtensa-isa.c | 1745 +++ target/xtensa/xtensa-isa.h | 1 + tests/tcg/xtensa/test_sr.S | 2 +- 22 files changed, 45951 insertions(+), 2173 deletions(-) create mode 100644 disas/xtensa.c create mode 100644 include/hw/xtensa/xtensa-isa.h create mode 100644 target/xtensa/core-dc232b/xtensa-modules.c create mode 100644 target/xtensa/core-dc233c/xtensa-modules.c create mode 100644 target/xtensa/core-fsf/xtensa-modules.c create mode 100644 target/xtensa/xtensa-isa-internal.h create mode 100644 target/xtensa/xtensa-isa.c create mode 100644 target/xtensa/xtensa-isa.h -- 2.1.4