From nobody Mon Feb 9 03:12:58 2026 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=1575832668; cv=none; d=zohomail.com; s=zohoarc; b=aT1ipi1wtBxMbGZc9aG7U/0muQmjv/FruvXxDfBfo5keyWvHF+NMkd44gBxMOaNXgVjs0a/RD8QqQo7lLqm9KVYN6UIrwNi48m7NrrcnJFKJ5gpcQmGkv75LN5Wb3Ql1JMOan2u4egFHZaOlR6gIpevswv7PGHZGtCslL/f01cQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575832668; 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=bBAkK7RIIYk1VUpKqUuyAnxVEw/alh+1UMMALiSqutC3GfPo0gLxaRekX5sbwwaxlrMCNt5GGnXt/TMcao82qgh7BAWPjN/CdeVUD5bo/rlbK3/MspyqbeYiNSn9UeiEbop8YowdDQaY78VuzU7uSiSuYiHkROs/3ghSjTzltEw= 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 1575832668683457.13425706750274; Sun, 8 Dec 2019 11:17:48 -0800 (PST) Received: from localhost ([::1]:32834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ie23v-0001Mc-6j for importer@patchew.org; Sun, 08 Dec 2019 14:17:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37646) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ie1Tz-0002Mo-Dw for qemu-devel@nongnu.org; Sun, 08 Dec 2019 13:40:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ie1Tw-0003Lx-Tz for qemu-devel@nongnu.org; Sun, 08 Dec 2019 13:40:39 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:35781) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ie1Tw-0003Fz-KW for qemu-devel@nongnu.org; Sun, 08 Dec 2019 13:40:36 -0500 Received: by mail-wr1-x444.google.com with SMTP id g17so13563589wro.2 for ; Sun, 08 Dec 2019 10:40:28 -0800 (PST) Received: from 8c859074c0ff.ant.amazon.com.com (bzq-79-180-52-3.red.bezeqint.net. [79.180.52.3]) by smtp.gmail.com with ESMTPSA id h17sm25289717wrs.18.2019.12.08.10.40.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Dec 2019 10:40:26 -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=LCGb/AsYtFVxv8VqGctG3MUWhfA4aGwKMPXV+GKybpf5Sz3jEPpZVoveK7aWiw8+F5 LQBzSd6uwYsLydYhmYvUrb5sWAKYjbNj91M5O30Liqzk0dPgP1GB2Zl2iuu7/QD0MWMV nGznMQ1Z/IxOsqeZopGn+l91oparx4kgAHwTEsSBNx7B57ZsqH/ksyD9FDTedqLz5oMT vGjm/kX4VegKM1MGst8ju98hrkfwIqCogiBx4TeKpMIUZ5cL9GEciojal1Y4ywN8bbUa b2wrVeeD+CQrkEBt31OjAsHgKLy0KDxHOCTN1jDr9+rrrVhVQNzXtCCbXD77rWIfXO33 j9VQ== 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=DS/nkVIDMtIYB0+MWqKvHQio0DVGx3v+pk2oQvV9rxAT2OBe5c4X+PVRQ9tIkoA7C4 0c/eZRgYNsVq7mkJnk7xqS2Urwy2WKesnZzgkNcNCCJk41lGJyN5Mw47FMjr3vtBOgJW 9AFcqN2LOtWLJsNbh1GU6a314sLJXb96EPjeZGQj4Q+aUNpWpptWBJK3WXuoa+G+qKNT nobzJ9FzJOdwsXb9PHM+5WHu88PJha8tei/9fYNuGngku/t2V8DimUMZkZmNEiVrzN/T 0APthp1TxzCxXv3oYYUX0ot5HQAD8SYh+gaOexleMYcQEDWEDVaae4fplkPLxuz5nr85 3x1g== X-Gm-Message-State: APjAAAXe4/XonWtxdGqepHo70EZPaVGrI8lLY4wuB5MpMVATc94OAdMR zASEY4l/Rx/tbkLyIwU47HL4SAcfkhZw7EUY X-Google-Smtp-Source: APXvYqybR2ZBaXntQZUmha60QH5EOq+k1RXa8Xx8+h429h8gUEftFV9uwsfHZoSj1vQP8SnwPqC4sg== X-Received: by 2002:a05:6000:12ce:: with SMTP id l14mr28560733wrx.342.1575830426882; Sun, 08 Dec 2019 10:40:26 -0800 (PST) From: Michael Rolnik To: qemu-devel@nongnu.org Subject: [PATCH v38 19/22] target/avr: Update build system Date: Sun, 8 Dec 2019 20:39:19 +0200 Message-Id: <20191208183922.13757-20-mrolnik@gmail.com> X-Mailer: git-send-email 2.17.2 (Apple Git-113) In-Reply-To: <20191208183922.13757-1-mrolnik@gmail.com> References: <20191208183922.13757-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::444 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 , me@xcancerberox.com.ar, 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)