From nobody Wed Nov 12 23:19:21 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1574572278; cv=none; d=zohomail.com; s=zohoarc; b=EDp12j5r7ShaWv2majDTb2B84yS47UCMFK65suyB9BkdZMj6Gp2O8YwBLAJRnMGWDfJhhAIhUi4bbCViNrC+Rhr4lr2F3D8nPFiMN7syV7ixPlelbt+WlP5DeL/X9GcnK9bzxZpnkXl5PvW27ho0e5y/gq4dLvBp7AFEDV78GCk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574572278; 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=lmKu0nadoIAF5aXT323Ji4zM6wR9fpqsiNsQ/AlTLlc=; b=isJsIHtLSsMJuSLAO3j+W5qW3cuekJnksTsdi29+rkFmISzFVYmQ0NckomZ0faIv8hqL0dz6YM8baw7Pi3e2J+/vftd1YUhyeArp/DVbM1phRfqGXzwgDx1Bly0l4GC42ijA4xndRH9FQramoQUo6ssvyJpdkiA2bQJInPExJb8= 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 1574572278150857.3616860261302; Sat, 23 Nov 2019 21:11:18 -0800 (PST) Received: from localhost ([::1]:33938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iYkB2-0004rk-Nw for importer@patchew.org; Sun, 24 Nov 2019 00:11:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60547) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iYk3Q-0003up-GQ for qemu-devel@nongnu.org; Sun, 24 Nov 2019 00:03:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iYk3P-0007dx-6e for qemu-devel@nongnu.org; Sun, 24 Nov 2019 00:03:24 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:45228) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iYk3P-0007dW-0c for qemu-devel@nongnu.org; Sun, 24 Nov 2019 00:03:23 -0500 Received: by mail-wr1-x441.google.com with SMTP id z10so13344367wrs.12 for ; Sat, 23 Nov 2019 21:03:22 -0800 (PST) Received: from 8c859074c0ff.ant.amazon.com.com (bzq-79-178-10-38.red.bezeqint.net. [79.178.10.38]) by smtp.gmail.com with ESMTPSA id t185sm4173976wmf.45.2019.11.23.21.03.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 23 Nov 2019 21:03:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lmKu0nadoIAF5aXT323Ji4zM6wR9fpqsiNsQ/AlTLlc=; b=pSDTCsljsmM5N7FSP+1oieM7loAjgnAiiHxi1GTewJX6OMRW6dXBTbUdoZF9ngsZkI hyzSyZikuQerxbDc4QMX+rolmuqmr02d1MABlNYj5EIFH63u50N8fv+oBcXI1YiEYlc6 saGM8+ALVkZNrn1tT+ysqVbH5bQ8P92vtE2XyPQdXxDjEPJhUamPFr0ruySI5XUCxQov w/VAxkVnTB8b3lUl0WmUDscZZM4QlUzyTj3NpVnjf9psqbDwgAgyoRQP0ehsiV0UQaSu HWPY2w8ZiOfNmkAdpshcYhO5RYwMr5lCPLNInsFG5Qhi5RKA1F4CKGl4zw99u022VYeA sfSA== 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=lmKu0nadoIAF5aXT323Ji4zM6wR9fpqsiNsQ/AlTLlc=; b=jeQMcFDpdOATWIG/vwrEtckKw/Nlwmmry/0kAjUHCbURxbndu8IKogVywHJHuH/1eW +WM6gysGGw4/ldA4fP2wpHC1MX5gkTlmkovXl5ZBfCS9wM3K9kTpGAzYzwS7ez+NXiF2 njsavup8ilfnU4LIA2XoAHgum5JoAfGebEeO2d18zLr37WO+7gGs7kasDprsX/F5jLGa VXfAB/WIdDyJpNIcVYK7t4+JRHehF3oL/qU0rpS576wUs1Pd9e4jIHRQVzwWHfolH4pF aUEl46br1+g/eo5zmDNUow0UVnZyZd5vMntPJf5FDgXQXaOJh9NPbvRqh4rFDnXOoXRD R9LA== X-Gm-Message-State: APjAAAVba3apdyeRNcuxUkc4wLO/ASJtdthpSll4DTQX0ccprpjdwAya uZnoB7uhoFAJeNArXsWlF9xeVF/kE/pwqb89 X-Google-Smtp-Source: APXvYqy7NgZooijVDPPdPwbTk5qb0zfFErEABRpsv22omr91FT7q8cnXKZ3ewlEvd4v/ka7bF3PPeA== X-Received: by 2002:adf:dd4d:: with SMTP id u13mr6031896wrm.394.1574571801626; Sat, 23 Nov 2019 21:03:21 -0800 (PST) From: Michael Rolnik To: qemu-devel@nongnu.org Subject: [PATCH v36 14/17] target/avr: Update build system Date: Sun, 24 Nov 2019 07:02:22 +0200 Message-Id: <20191124050225.30351-15-mrolnik@gmail.com> X-Mailer: git-send-email 2.17.2 (Apple Git-113) In-Reply-To: <20191124050225.30351-1-mrolnik@gmail.com> References: <20191124050225.30351-1-mrolnik@gmail.com> MIME-Version: 1.0 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: thuth@redhat.com, Michael Rolnik , richard.henderson@linaro.org, dovgaluk@ispras.ru, imammedo@redhat.com, philmd@redhat.com, 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) Make AVR support buildable Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Aleksandar Markovic --- 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 6099be1d84..e9dab313d5 100755 --- a/configure +++ b/configure @@ -7649,6 +7649,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) @@ -7868,6 +7872,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..d1e1c28118 --- /dev/null +++ b/default-configs/avr-softmmu.mak @@ -0,0 +1,5 @@ +# Default configuration for avr-softmmu + +# Boards: +# +CONFIG_AVR_SAMPLE=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.17.2 (Apple Git-113)