From nobody Thu Nov 13 12:17:13 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=amsat.org ARC-Seal: i=1; a=rsa-sha256; t=1579827799; cv=none; d=zohomail.com; s=zohoarc; b=HSkoOLEugP5EYJw0eCoA80hCafLrH15oTI75y9NGLLE1k4I6dfbS5bCR12TdAuB9bx9UBc9ye9Ak2CrZkKEO0rmM026hVJBcWYWEXlu1z4oMHlmX968QX+Qz4SiuKu3bLEfAKULttYWdoqIzA9w/TZgDQjjThPbtMDzO2YxaQfE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579827799; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=R/V3ZxLfy/2R74Pz6NGLpeVPUx20O4nw7Zu8GDJsXKQ=; b=gJdpARyJiZsqTgCBrf2cUjYRvX1j1UIZvRBAcoz4L1EMDAeBJE4AJv9Oy5J8jp4Eq+Crxr+/w75avKgvitz9MTLFKmnc3s7D4RVnqKg+Suj948xbpoqeB6Ibk9niUg+Bps3yL2ZUfWLT1iGeoN8TnECk13KfeESyqEBlOr1o6m0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1579827799381681.8724482707429; Thu, 23 Jan 2020 17:03:19 -0800 (PST) Received: from localhost ([::1]:36206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iunNV-0007kE-BQ for importer@patchew.org; Thu, 23 Jan 2020 20:03:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44619) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iunD1-0002nB-Mu for qemu-devel@nongnu.org; Thu, 23 Jan 2020 19:52:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iunD0-0005lX-8A for qemu-devel@nongnu.org; Thu, 23 Jan 2020 19:52:27 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:33401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iunD0-0005ih-0u; Thu, 23 Jan 2020 19:52:26 -0500 Received: by mail-wr1-x441.google.com with SMTP id b6so93268wrq.0; Thu, 23 Jan 2020 16:52:25 -0800 (PST) Received: from x1w.redhat.com (113.red-83-57-172.dynamicip.rima-tde.net. [83.57.172.113]) by smtp.gmail.com with ESMTPSA id s139sm4598271wme.35.2020.01.23.16.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 16:52:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=R/V3ZxLfy/2R74Pz6NGLpeVPUx20O4nw7Zu8GDJsXKQ=; b=IYu+2GNm1smweyx+X98CjqnJ3S4SzAqZWw3cb0gpjbCAPJt32isR2vs3ED0P52Vv5Z U3zlsKB/+YT9+GtQ5+Ho9iR10bCEh4oyUxCHJiAQvFipenNzHBn0XeWO+8fhKfcjh6Lj zAWdiIVQikjyRhsVwTajluZwZ5XjL9TENVQuCWM3THl3nRV8kAgd+gT4/Iuk8fYGqFBK DI7hDbHTYrYR7IdU0o8NvWhyF9Z2Cg1c0g4tnRDVVQq9TC9udfN7u/1uZoKUa7QzgBbC 2e1kXOIKi4dbHQ25pPYEGQk3jAalha20bTOyJrjZdKod2vkcEjbtJuxbIb+LHr0GYfp6 tb/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=R/V3ZxLfy/2R74Pz6NGLpeVPUx20O4nw7Zu8GDJsXKQ=; b=oAE5gyjZyUsvblmBZ/WFCCoWlGDx5doVaBDTfNmgVCZi+0+g8IqW0eD+3NdFCjDp/R byyXPAsDkyuLMhuq7GSSiJoTLzrivpO3EXRx4aPLJDy32/hUXc6J/Vf+4OEZbjyDHp/c ub/uluPRUh+xozZo0tUA+OByrWxKZoLejWBQ/MZJvbcBclHTTnRvvTpf2UQgdcY+++cX nYrKewNa9PvBylNZ8egl7Y+uBCKCnAkyNTPdUrvzp0q8N/EE0eUtM4luldBB/YVoaFwt eLLTnrC80HsfHts8ViYTFMXUwI40JQoVuYpDMlpuALwd7wFJY6KemPfJFILUe513SS4P ez5g== X-Gm-Message-State: APjAAAWmZWCbyeA3D2e4TyCrU6a9w/oKDpiQDVbnbxPTzWmCJIHfziqd lo4rkB7UyonvksnloU1TZdeD0B+0 X-Google-Smtp-Source: APXvYqwqpcr0Tq7ZvKG6JB4a1F2M5IOToBnfXxqe9F1wsXeX9lgVh+q4ulGGbOjaxxO+WWAoIm3Njg== X-Received: by 2002:adf:f58a:: with SMTP id f10mr896473wro.105.1579827144799; Thu, 23 Jan 2020 16:52:24 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, mrolnik@gmail.com, richard.henderson@linaro.org, me@xcancerberox.com.ar Subject: [PATCH rc2 22/25] target/avr: Update build system Date: Fri, 24 Jan 2020 01:51:28 +0100 Message-Id: <20200124005131.16276-23-f4bug@amsat.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200124005131.16276-1-f4bug@amsat.org> References: <20200124005131.16276-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 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: Laurent Vivier , Fam Zheng , S.E.Harris@kent.ac.uk, qemu-riscv@nongnu.org, Eduardo Habkost , Sagar Karandikar , dovgaluk@ispras.ru, Aleksandar Markovic , Bastian Koppelmann , thuth@redhat.com, Markus Armbruster , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Alistair Francis , imammedo@redhat.com, Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Palmer Dabbelt , aleksandar.m.mail@gmail.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Michael Rolnik Make AVR support buildable Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Aleksandar Markovic Message-Id: <20200118191416.19934-19-mrolnik@gmail.com> Signed-off-by: Richard Henderson --- configure | 7 +++++++ default-configs/avr-softmmu.mak | 5 +++++ target/avr/Makefile.objs | 34 +++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 default-configs/avr-softmmu.mak create mode 100644 target/avr/Makefile.objs diff --git a/configure b/configure index 557e4382ea..94e79ca634 100755 --- a/configure +++ b/configure @@ -7612,6 +7612,10 @@ case "$target_name" in mttcg=3D"yes" gdb_xml_files=3D"aarch64-core.xml aarch64-fpu.xml arm-core.xml arm-vfp= .xml arm-vfp3.xml arm-neon.xml" ;; + avr) + gdb_xml_files=3D"avr-cpu.xml" + target_compiler=3D$cross_cc_avr + ;; cris) ;; hppa) @@ -7831,6 +7835,9 @@ for i in $ARCH $TARGET_BASE_ARCH ; do disas_config "ARM_A64" fi ;; + avr) + disas_config "AVR" + ;; cris) disas_config "CRIS" ;; diff --git a/default-configs/avr-softmmu.mak b/default-configs/avr-softmmu.= mak new file mode 100644 index 0000000000..80218add98 --- /dev/null +++ b/default-configs/avr-softmmu.mak @@ -0,0 +1,5 @@ +# Default configuration for avr-softmmu + +# Boards: +# +CONFIG_ARDUINO=3Dy diff --git a/target/avr/Makefile.objs b/target/avr/Makefile.objs new file mode 100644 index 0000000000..7523e0c6e2 --- /dev/null +++ b/target/avr/Makefile.objs @@ -0,0 +1,34 @@ +# +# QEMU AVR CPU +# +# Copyright (c) 2019 Michael Rolnik +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, see +# +# + +DECODETREE =3D $(SRC_PATH)/scripts/decodetree.py +decode-y =3D $(SRC_PATH)/target/avr/insn.decode + +target/avr/decode_insn.inc.c: $(decode-y) $(DECODETREE) + $(call quiet-command, \ + $(PYTHON) $(DECODETREE) -o $@ --decode decode_insn --insnwidth 16 $<, \ + "GEN", $(TARGET_DIR)$@) + +target/avr/translate.o: target/avr/decode_insn.inc.c + +obj-y +=3D translate.o cpu.o helper.o +obj-y +=3D gdbstub.o +obj-y +=3D disas.o +obj-$(CONFIG_SOFTMMU) +=3D machine.o --=20 2.21.1