From patchwork Mon Jun 6 23:14:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 578955 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:0:0:0:0 with SMTP id o6csp3059801wru; Mon, 6 Jun 2022 16:30:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbyVwD9C9CEn5SCYgum3EHtDoCw3JkOwzCE8B6FzeSHhqiYhYcKnphu9rLcz+H+hbFkAPO X-Received: by 2002:ac8:6b9a:0:b0:304:ba17:c57b with SMTP id z26-20020ac86b9a000000b00304ba17c57bmr20947225qts.450.1654558208353; Mon, 06 Jun 2022 16:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654558208; cv=none; d=google.com; s=arc-20160816; b=GaaqJAOcxWUngyZQfUrd/FKROYbcii7TH1HeHIgZBkvRufFvoT9LlANOVmKkrHEVOx iVaO2GKDeBMq7o8PAaLLnpkBclkp2Off5qfWqAI9h/RbEgEqTR0h+15+0eZCK5o56S5E EeCpGFZnMP6dYqkuLY0n4K0BEXhVgrBTgvnhvzGKojFxXU57v489WhZV5/0IWu+rqqhR AjjkRaFyB5ZYAzNWMqTgyPbPxK8Iq6buwU/z5hmBa1YK0Hn3d3YcoANFBZ2W8tt4meiZ 048rb4GurT+bZZ1Acd/lYVZZ4+9AOaGRRkEKoL1IQDiWw/f75MSXgfJ9i9TnfiEqVSP/ wttw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=orDJBcxXhPFgqlL4Stw6ZA+/WM99GbM6modqMxMEw+8=; b=q3lguavcIAL/6ZsZNarqYFtBj/yIMM3EIKx4/w9U49nng2egajfjdJrTJ9nH60tNqU 1yqcVqZq6THW9f0np0P7ne1f6K9pnhdJE0uT1xM6RIISxEMYdl/YKHO496igCrhrXHQV afV8Hy+4o9Y3p8xl+Jwh1F+Dyc2w6VTyrkSOVGn3Eiya6/VJtreQH1hv/oCQVoDXkoFK /e0raCPx4Yv/aOCwL1sDSnu6hhUT9maKDnqZTEYVhjBlOnJsnEukn7C/WoPmHecDA54B eV7OIZ2bHN2NjCBvEKwebVHOOgaHxOSaZEIwndt5DYyU7VVkQRmUDUWg21sbHFtuuuvy 4xcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mO9tmX9G; 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 a33-20020a05620a43a100b006a6b4cc3d75si3000709qkp.106.2022.06.06.16.30.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Jun 2022 16:30:08 -0700 (PDT) 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=mO9tmX9G; 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]:50656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyMAh-0001Ro-Rx for patch@linaro.org; Mon, 06 Jun 2022 19:30:07 -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) 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-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) 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) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =gaosong@loongson.cn, yangxiaojuan@loongson.cn, Song Gao , =?utf-8?q?Philippe_Mathieu-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 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Song Gao Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé 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 = decodetree.process('insns.decode') + +loongarch_ss = ss.source_set() +loongarch_ss.add(files( + 'cpu.c', + 'disas.c', +)) +loongarch_tcg_ss = 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 += {'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')