From patchwork Thu Feb 18 16:29:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 384413 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp3828640jao; Thu, 18 Feb 2021 08:35:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuL1/83/KpGnK4l9BDLznoXThZKvjtAVhuLX2BZJKf3SKFSJlU4e7dTWolVBFoge8dEksD X-Received: by 2002:a25:e008:: with SMTP id x8mr7384911ybg.90.1613666152874; Thu, 18 Feb 2021 08:35:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613666152; cv=none; d=google.com; s=arc-20160816; b=zASc2+DJfo3lPoGCppeCEJ+5HI4k1wBSbk3CDQPARKIhbhrqZkvtS5/c6gkJv4W/r7 tN11lRVFhlZ3OPnaXe1yTtXGKXlsf6Tvft3ZVn79PJXwWy1jGQIxN811/5QTTm75zlu9 /oso8T0vtNW991pkFOXZAqN9YklT+tj5WeMuSIDEdk8/PaKfY7oMh9p1THE0vSoVInMC 6aghTnoRWPPu+EkeYgc+oHHs1lsRPG3KdCMxHkDj1nzY1VbAFTml/aLadpWs6IwNgl/h X2HGht31roXLAFnCjIdRpiqE/E5Hz4PRVVgmGoTSoyS2jhivdJhlzl9UavlbhrZKbcDk 4mmw== 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:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=ntVZJ1xQtoh4BFJFPHcEVRj7WQYyZFRRdOmVIIVyMb8=; b=rwA/+cTfxw3VXZ52IbOFKeeCyNT5UK/y8YE3CaxnGSmzHS71wDBPU1kO0xvOoDFGwB c+Wofr0bgVa8UleXz18kzObkzOhDhAkPzaLoH4pQoQ1tABUdtMoJ0d2ruJ3wAyD6DV9O rVmI9QeqPKSCJ+MsLxwXvifS888JzSUUKWjHNp++8at6IoXWhGPw43pqtTYUIBpoJrKp 1Db8drgTmd+H2nFu39hJgFu8o9DJr8lOasa/jwAdNkldewOkzr6kflHP4wxmcyVbIV5K 4mIKsNR7oNoRGtUC57uEOJSB4AHWysPxcRQLBrUoc6ra+Rg9ECchyM4onF+1XdbKIeZQ UH7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lzLRR3tH; 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=pass (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 q197si5849118ybg.327.2021.02.18.08.35.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Feb 2021 08:35:52 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=lzLRR3tH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCmHQ-0004xJ-8s for patch@linaro.org; Thu, 18 Feb 2021 11:35:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCmBc-0000qK-6Q for qemu-devel@nongnu.org; Thu, 18 Feb 2021 11:29:52 -0500 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:37541) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCmBZ-00086j-7I for qemu-devel@nongnu.org; Thu, 18 Feb 2021 11:29:51 -0500 Received: by mail-pf1-x429.google.com with SMTP id b145so1641899pfb.4 for ; Thu, 18 Feb 2021 08:29:48 -0800 (PST) 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=ntVZJ1xQtoh4BFJFPHcEVRj7WQYyZFRRdOmVIIVyMb8=; b=lzLRR3tHAhNDiuMXq2oXDkFg3nSwhLqlXtVwtmZRSF5I8d1z2cW3GPHXTpeheU46rc pz9HgAj6mjvPtSiAswmmo4+Si+8e25Vd41ObqxMSiwcHvO7PrSASnoIAz/oG4PypgOky 8aRzIOcAk7zrHxylfjEnMIld6vJxrrXu33d40TqJPsfPyYysGfOEXXBNQAoJyIKC1hZf 8gVrRD8OxuCZtQsbZYZVaSNqB0IkEyKR0OkwhXtHBmPFbXej4WOCZzhh+16mstMLvEig 2EoediBDzfIhc25CnSZ2OqgbB7N036CPOI8cFvLLL6hy7aSNVv2zWIfVBRY5eEkNPuht /MGQ== 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=ntVZJ1xQtoh4BFJFPHcEVRj7WQYyZFRRdOmVIIVyMb8=; b=SwJ9kVdnFl5LB0SIZiFqhbeuPdVbNgKu4Srrb5cgUoguY1BhWNlXbVQrQ5xKjcjI/p 1kcbME1RMfhLKQReDIL7Lj5AXeAShyVxnqFvM8J23lxpZycxf34p+V1FW4RhXaZJ4kdW SXqvsInr+EvKc+aiACJ07F2jHHR8Kwh172fFn6OcsuNqpRVp4BcnhW4k7BZ9CUUtmnit htlcwp2bDNI729R67vzvfHDvHY+gXv+4BlZC1Gl2HoiGY13ZI04euToVRUEo950G9v2a BiV55aLn0rWz6v8EgJ+HusulLMDIx959AYa1Ma+w9qre6imAM8d+/wOXBawrPDdJlZN4 ROMQ== X-Gm-Message-State: AOAM532SBw8sAQ9UhbTuZ+XA2/UCgPjHl9CGNh7OJEmorz0IM4lUY9uw PB6SQitZsGD/Ut+300BOLw6WVRjS7F7SvA== X-Received: by 2002:a63:1843:: with SMTP id 3mr4665969pgy.253.1613665787464; Thu, 18 Feb 2021 08:29:47 -0800 (PST) Received: from localhost.localdomain (047-051-160-125.biz.spectrum.com. [47.51.160.125]) by smtp.gmail.com with ESMTPSA id k128sm6637956pfd.137.2021.02.18.08.29.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 08:29:46 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL v2 00/35] hexagon initial commit Date: Thu, 18 Feb 2021 08:29:43 -0800 Message-Id: <20210218162944.1756160-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" V2: Patch 35: do not re-find the python executable to use. r~ The following changes since commit 91416a4254015e1e3f602f2b241b9ddb7879c10b: Merge remote-tracking branch 'remotes/stsquad/tags/pull-plugin-updates-180221-1' into staging (2021-02-18 13:27:03 +0000) are available in the Git repository at: https://gitlab.com/rth7680/qemu.git tags/pull-hex-20210218 for you to fetch changes up to 3e7a84eeccc3b3a9b43c6dfb52bd98ea5acebf0a: Hexagon build infrastructure (2021-02-18 08:25:06 -0800) ---------------------------------------------------------------- Initial commit for the Qualcomm Hexagon processor. ---------------------------------------------------------------- Richard Henderson (1): qemu/int128: Add int128_or Taylor Simpson (34): Hexagon Update MAINTAINERS file Hexagon (target/hexagon) README Hexagon (include/elf.h) ELF machine definition Hexagon (target/hexagon) scalar core definition Hexagon (disas) disassembler Hexagon (target/hexagon) register names Hexagon (target/hexagon) scalar core helpers Hexagon (target/hexagon) GDB Stub Hexagon (target/hexagon) architecture types Hexagon (target/hexagon) instruction and packet types Hexagon (target/hexagon) register fields Hexagon (target/hexagon) instruction attributes Hexagon (target/hexagon) instruction/packet decode Hexagon (target/hexagon) instruction printing Hexagon (target/hexagon/arch.[ch]) utility functions Hexagon (target/hexagon/conv_emu.[ch]) utility functions Hexagon (target/hexagon/fma_emu.[ch]) utility functions Hexagon (target/hexagon/imported) arch import Hexagon (target/hexagon) generator phase 1 - C preprocessor for semantics Hexagon (target/hexagon) generator phase 2 - generate header files Hexagon (target/hexagon) generator phase 3 - C preprocessor for decode tree Hexagon (target/hexagon) generater phase 4 - decode tree Hexagon (target/hexagon) opcode data structures Hexagon (target/hexagon) macros Hexagon (target/hexagon) instruction classes Hexagon (target/hexagon) TCG generation Hexagon (target/hexagon) TCG for instructions with multiple definitions Hexagon (target/hexagon) TCG for floating point instructions Hexagon (target/hexagon) translation Hexagon (linux-user/hexagon) Linux user emulation Hexagon (tests/tcg/hexagon) TCG tests - multiarch Hexagon (tests/tcg/hexagon) TCG tests - atomics/load/store/misc Hexagon (tests/tcg/hexagon) TCG tests - floating point Hexagon build infrastructure default-configs/targets/hexagon-linux-user.mak | 1 + meson.build | 1 + include/disas/dis-asm.h | 1 + include/elf.h | 1 + include/qemu/int128.h | 10 + linux-user/hexagon/sockbits.h | 18 + linux-user/hexagon/syscall_nr.h | 322 ++++ linux-user/hexagon/target_cpu.h | 44 + linux-user/hexagon/target_elf.h | 40 + linux-user/hexagon/target_fcntl.h | 18 + linux-user/hexagon/target_signal.h | 34 + linux-user/hexagon/target_structs.h | 54 + linux-user/hexagon/target_syscall.h | 36 + linux-user/hexagon/termbits.h | 18 + linux-user/qemu.h | 2 + linux-user/syscall_defs.h | 33 + target/hexagon/arch.h | 34 + target/hexagon/attribs.h | 35 + target/hexagon/conv_emu.h | 31 + target/hexagon/cpu-param.h | 29 + target/hexagon/cpu.h | 159 ++ target/hexagon/cpu_bits.h | 58 + target/hexagon/decode.h | 32 + target/hexagon/fma_emu.h | 36 + target/hexagon/gen_tcg.h | 319 ++++ target/hexagon/genptr.h | 25 + target/hexagon/helper.h | 88 + target/hexagon/hex_arch_types.h | 38 + target/hexagon/hex_regs.h | 83 + target/hexagon/iclass.h | 50 + target/hexagon/insn.h | 74 + target/hexagon/internal.h | 37 + target/hexagon/macros.h | 592 +++++++ target/hexagon/opcodes.h | 58 + target/hexagon/printinsn.h | 27 + target/hexagon/reg_fields.h | 36 + target/hexagon/translate.h | 93 ++ target/hexagon/attribs_def.h.inc | 97 ++ target/hexagon/reg_fields_def.h.inc | 41 + disas/hexagon.c | 65 + linux-user/elfload.c | 16 + linux-user/hexagon/cpu_loop.c | 100 ++ linux-user/hexagon/signal.c | 276 ++++ target/hexagon/arch.c | 300 ++++ target/hexagon/conv_emu.c | 177 ++ target/hexagon/cpu.c | 318 ++++ target/hexagon/decode.c | 957 +++++++++++ target/hexagon/fma_emu.c | 702 ++++++++ target/hexagon/gdbstub.c | 47 + target/hexagon/gen_dectree_import.c | 188 +++ target/hexagon/gen_semantics.c | 88 + target/hexagon/genptr.c | 331 ++++ target/hexagon/iclass.c | 73 + target/hexagon/op_helper.c | 1064 ++++++++++++ target/hexagon/opcodes.c | 142 ++ target/hexagon/printinsn.c | 146 ++ target/hexagon/reg_fields.c | 27 + target/hexagon/translate.c | 748 +++++++++ tests/tcg/hexagon/atomics.c | 139 ++ tests/tcg/hexagon/dual_stores.c | 60 + tests/tcg/hexagon/fpstuff.c | 370 +++++ tests/tcg/hexagon/mem_noshuf.c | 328 ++++ tests/tcg/hexagon/misc.c | 380 +++++ tests/tcg/hexagon/preg_alias.c | 169 ++ MAINTAINERS | 9 + disas/meson.build | 1 + scripts/gensyscalls.sh | 1 + scripts/qemu-binfmt-conf.sh | 6 +- target/hexagon/README | 235 +++ target/hexagon/dectree.py | 351 ++++ target/hexagon/gen_helper_funcs.py | 220 +++ target/hexagon/gen_helper_protos.py | 150 ++ target/hexagon/gen_op_attribs.py | 39 + target/hexagon/gen_op_regs.py | 110 ++ target/hexagon/gen_opcodes_def.py | 36 + target/hexagon/gen_printinsn.py | 173 ++ target/hexagon/gen_shortcode.py | 60 + target/hexagon/gen_tcg_func_table.py | 58 + target/hexagon/gen_tcg_funcs.py | 485 ++++++ target/hexagon/hex_common.py | 234 +++ target/hexagon/imported/allidefs.def | 30 + target/hexagon/imported/alu.idef | 1258 ++++++++++++++ target/hexagon/imported/branch.idef | 326 ++++ target/hexagon/imported/compare.idef | 619 +++++++ target/hexagon/imported/encode.def | 124 ++ target/hexagon/imported/encode_pp.def | 2110 ++++++++++++++++++++++++ target/hexagon/imported/encode_subinsn.def | 149 ++ target/hexagon/imported/float.idef | 312 ++++ target/hexagon/imported/iclass.def | 51 + target/hexagon/imported/ldst.idef | 286 ++++ target/hexagon/imported/macros.def | 1531 +++++++++++++++++ target/hexagon/imported/mpy.idef | 1208 ++++++++++++++ target/hexagon/imported/shift.idef | 1066 ++++++++++++ target/hexagon/imported/subinsns.idef | 149 ++ target/hexagon/imported/system.idef | 68 + target/hexagon/meson.build | 191 +++ target/meson.build | 1 + tests/tcg/configure.sh | 4 +- tests/tcg/hexagon/Makefile.target | 46 + tests/tcg/hexagon/first.S | 56 + tests/tcg/hexagon/float_convs.ref | 748 +++++++++ tests/tcg/hexagon/float_madds.ref | 768 +++++++++ 102 files changed, 23183 insertions(+), 2 deletions(-) create mode 100644 default-configs/targets/hexagon-linux-user.mak create mode 100644 linux-user/hexagon/sockbits.h create mode 100644 linux-user/hexagon/syscall_nr.h create mode 100644 linux-user/hexagon/target_cpu.h create mode 100644 linux-user/hexagon/target_elf.h create mode 100644 linux-user/hexagon/target_fcntl.h create mode 100644 linux-user/hexagon/target_signal.h create mode 100644 linux-user/hexagon/target_structs.h create mode 100644 linux-user/hexagon/target_syscall.h create mode 100644 linux-user/hexagon/termbits.h create mode 100644 target/hexagon/arch.h create mode 100644 target/hexagon/attribs.h create mode 100644 target/hexagon/conv_emu.h create mode 100644 target/hexagon/cpu-param.h create mode 100644 target/hexagon/cpu.h create mode 100644 target/hexagon/cpu_bits.h create mode 100644 target/hexagon/decode.h create mode 100644 target/hexagon/fma_emu.h create mode 100644 target/hexagon/gen_tcg.h create mode 100644 target/hexagon/genptr.h create mode 100644 target/hexagon/helper.h create mode 100644 target/hexagon/hex_arch_types.h create mode 100644 target/hexagon/hex_regs.h create mode 100644 target/hexagon/iclass.h create mode 100644 target/hexagon/insn.h create mode 100644 target/hexagon/internal.h create mode 100644 target/hexagon/macros.h create mode 100644 target/hexagon/opcodes.h create mode 100644 target/hexagon/printinsn.h create mode 100644 target/hexagon/reg_fields.h create mode 100644 target/hexagon/translate.h create mode 100644 target/hexagon/attribs_def.h.inc create mode 100644 target/hexagon/reg_fields_def.h.inc create mode 100644 disas/hexagon.c create mode 100644 linux-user/hexagon/cpu_loop.c create mode 100644 linux-user/hexagon/signal.c create mode 100644 target/hexagon/arch.c create mode 100644 target/hexagon/conv_emu.c create mode 100644 target/hexagon/cpu.c create mode 100644 target/hexagon/decode.c create mode 100644 target/hexagon/fma_emu.c create mode 100644 target/hexagon/gdbstub.c create mode 100644 target/hexagon/gen_dectree_import.c create mode 100644 target/hexagon/gen_semantics.c create mode 100644 target/hexagon/genptr.c create mode 100644 target/hexagon/iclass.c create mode 100644 target/hexagon/op_helper.c create mode 100644 target/hexagon/opcodes.c create mode 100644 target/hexagon/printinsn.c create mode 100644 target/hexagon/reg_fields.c create mode 100644 target/hexagon/translate.c create mode 100644 tests/tcg/hexagon/atomics.c create mode 100644 tests/tcg/hexagon/dual_stores.c create mode 100644 tests/tcg/hexagon/fpstuff.c create mode 100644 tests/tcg/hexagon/mem_noshuf.c create mode 100644 tests/tcg/hexagon/misc.c create mode 100644 tests/tcg/hexagon/preg_alias.c create mode 100644 target/hexagon/README create mode 100755 target/hexagon/dectree.py create mode 100755 target/hexagon/gen_helper_funcs.py create mode 100755 target/hexagon/gen_helper_protos.py create mode 100755 target/hexagon/gen_op_attribs.py create mode 100755 target/hexagon/gen_op_regs.py create mode 100755 target/hexagon/gen_opcodes_def.py create mode 100755 target/hexagon/gen_printinsn.py create mode 100755 target/hexagon/gen_shortcode.py create mode 100755 target/hexagon/gen_tcg_func_table.py create mode 100755 target/hexagon/gen_tcg_funcs.py create mode 100755 target/hexagon/hex_common.py create mode 100644 target/hexagon/imported/allidefs.def create mode 100644 target/hexagon/imported/alu.idef create mode 100644 target/hexagon/imported/branch.idef create mode 100644 target/hexagon/imported/compare.idef create mode 100644 target/hexagon/imported/encode.def create mode 100644 target/hexagon/imported/encode_pp.def create mode 100644 target/hexagon/imported/encode_subinsn.def create mode 100644 target/hexagon/imported/float.idef create mode 100644 target/hexagon/imported/iclass.def create mode 100644 target/hexagon/imported/ldst.idef create mode 100755 target/hexagon/imported/macros.def create mode 100644 target/hexagon/imported/mpy.idef create mode 100644 target/hexagon/imported/shift.idef create mode 100644 target/hexagon/imported/subinsns.idef create mode 100644 target/hexagon/imported/system.idef create mode 100644 target/hexagon/meson.build create mode 100644 tests/tcg/hexagon/Makefile.target create mode 100644 tests/tcg/hexagon/first.S create mode 100644 tests/tcg/hexagon/float_convs.ref create mode 100644 tests/tcg/hexagon/float_madds.ref