From nobody Wed Feb 11 00:56:38 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1654558278; cv=none; d=zohomail.com; s=zohoarc; b=eQUammmXOOIiYnShQuq2T1N89IGDkOHBcRf0LO77JKwtBD45SQV8v7oNk2Wucggplx0KCnagHvmIWl/ZT1o/PthnqVWhTZOGqz4VUhf+qekhqKu/mmNpUp/44ORzwrpc9ix+H6wuFNwHFvXZm51Biaap8CkPaObgOrOTrVThr58= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654558278; 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=orDJBcxXhPFgqlL4Stw6ZA+/WM99GbM6modqMxMEw+8=; b=iPovp7XNalRhrQJ+WTOy7MO44cs0V+zsIVonqLlR4/tRr/ahh3jDVZ9QbmuSjjAWGYJxQmad7scxhwT6gY/66tOTd3tgkfe2wWV+33ho5MOm0tHGWtHojuJt2otBty6Or3jMGb95YUYxwcaBjR95s1NnGrA0fxSs24Lj/DRzFA0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1654558278532406.30632379726023; Mon, 6 Jun 2022 16:31:18 -0700 (PDT) Received: from localhost ([::1]:54754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyMBp-0004Hp-HU for importer@patchew.org; Mon, 06 Jun 2022 19:31:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyLwK-0001ga-FJ for qemu-devel@nongnu.org; Mon, 06 Jun 2022 19:15:16 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:36647) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyLwE-0003xh-CY for qemu-devel@nongnu.org; Mon, 06 Jun 2022 19:15:13 -0400 Received: by mail-pf1-x42f.google.com with SMTP id 15so13944844pfy.3 for ; Mon, 06 Jun 2022 16:15:09 -0700 (PDT) Received: from stoup.. ([2602:ae:1547:e101:dd1c:9738:3e40:ffe0]) by smtp.gmail.com with ESMTPSA id 2-20020a170902c24200b00162523fdb8fsm10954623plg.252.2022.06.06.16.15.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 16:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=orDJBcxXhPFgqlL4Stw6ZA+/WM99GbM6modqMxMEw+8=; b=mO9tmX9GLRtxTaLGnx7pyBcXAFGvJPHtJxyn9mxN7hnv6jzZYREA7ST1PZX4oPfY6v VEkzk3+1n9rFvP/rvUVpPjD+Az2UVsmD82B8tN13CIBGz+sHGgsqBAgSXrsluT6qK4SS Vz/ghWEcOM/Wde0SLI5HiOywMr4I056ZSOa/KRpe1UiFPNjuN4RVpbUdPZjjp6dkqWFS jk5lce++pJOGSoLkUwB1wZ8cd2/IKTCjbYNgChExoqGihrt6mqp60GUPVtTkVwrj03bt K4Hbxdh3S299GMnH219t4R9nKn041kYt9MD+C5kIh6VJc89vyg196fXEWpJPGrBzmn22 TD7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=orDJBcxXhPFgqlL4Stw6ZA+/WM99GbM6modqMxMEw+8=; b=xlVFUIyiCKl/aS6jDe2tVP2363XCZscaVIORITj6JBh2DvtUBreU0h03YSTluVTDov 4QsZwjhA50OX8KEqK83yiKk9UeHu9md7Vq7oNz49Nh/lrXJovj+V0R741uCF2lsX5PRg ZidRTbCFcv+VRo4AsnvAwUeJtbZ9I2zfNt/vuW690lu2fQ7hTlngGIvp6amxccIimi0b q7AYb7NYf73OEQX1uitSBQOhfFQGye/GE/c4+Wq5d7m9DM9pRy+PpiM7kemGBKsStx5N xULwzLYkiE6zLPBLNbPqpYCuzLJ8dq847yOQfyhEn9SipUgd/TN8SYu3q5SOjO1kiQnV gBdQ== X-Gm-Message-State: AOAM530S0V6ew5HV1MlM2C6JJLfKkwifsxKffHEk53iOdMoPBSSc/BCM bG8vk/+g9+umPUozWauTy2Yv+XkNk5UvhA== X-Google-Smtp-Source: ABdhPJyiUkH5MQSrKaySQKBG3S8WAsbrFB+F9gfdR1j3Z31/uEoq5jKRZ3f/4FIOmq4Bb55cz2ItGQ== X-Received: by 2002:a05:6a00:4503:b0:51b:de97:7f2c with SMTP id cw3-20020a056a00450300b0051bde977f2cmr20539593pfb.12.1654557308115; Mon, 06 Jun 2022 16:15:08 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =gaosong@loongson.cn, yangxiaojuan@loongson.cn, Song Gao , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 17/43] target/loongarch: Add target build suport Date: Mon, 6 Jun 2022 16:14:24 -0700 Message-Id: <20220606231450.448443-18-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220606231450.448443-1-richard.henderson@linaro.org> References: <20220606231450.448443-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42f.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1654558279780100001 From: Song Gao Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20220606124333.2060567-18-yangxiaojuan@loongson.cn> Signed-off-by: Richard Henderson --- target/loongarch/meson.build | 19 +++++++++++++++++++ target/meson.build | 1 + 2 files changed, 20 insertions(+) create mode 100644 target/loongarch/meson.build diff --git a/target/loongarch/meson.build b/target/loongarch/meson.build new file mode 100644 index 0000000000..bcb076e55f --- /dev/null +++ b/target/loongarch/meson.build @@ -0,0 +1,19 @@ +gen =3D decodetree.process('insns.decode') + +loongarch_ss =3D ss.source_set() +loongarch_ss.add(files( + 'cpu.c', + 'disas.c', +)) +loongarch_tcg_ss =3D ss.source_set() +loongarch_tcg_ss.add(gen) +loongarch_tcg_ss.add(files( + 'fpu_helper.c', + 'op_helper.c', + 'translate.c', +)) +loongarch_tcg_ss.add(zlib) + +loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss]) + +target_arch +=3D {'loongarch': loongarch_ss} diff --git a/target/meson.build b/target/meson.build index 2f6940255e..a53a60486f 100644 --- a/target/meson.build +++ b/target/meson.build @@ -5,6 +5,7 @@ subdir('cris') subdir('hexagon') subdir('hppa') subdir('i386') +subdir('loongarch') subdir('m68k') subdir('microblaze') subdir('mips') --=20 2.34.1