From patchwork Mon Jul 4 09:33:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 587105 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1ec:0:0:0:0 with SMTP id 12csp644425map; Mon, 4 Jul 2022 02:35:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uxbWVr71H6I8XEdja/kGlBxuH+WzsVhwpScBhEYwVPR8vWOLpo/C6g3tTTm2IVWanCgFNI X-Received: by 2002:a81:5c05:0:b0:31c:6154:edb1 with SMTP id q5-20020a815c05000000b0031c6154edb1mr17949734ywb.112.1656927333270; Mon, 04 Jul 2022 02:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656927333; cv=none; d=google.com; s=arc-20160816; b=0H2rFHq9U4Kj20ZGCVPUZM8/RmR1hyzZooCNBXz6DLy8yLGZy79EKVDWH8MiwbbW+e 2Dt1AahZ8wOhXdkoToKI+48pk6gF5f8WwurZkc3sLkAcpG+LVWrLGFFhYxnqrQfPqNes I5BkAkQsH1WsNw0WOnJf/W1Pea31DabNUJSnqbRPsgB149NO14uTUnJdblNiriOhIf5+ ES8CcDlTV66yNfXLB1IPt+qnHorG0wrBcCW/c3e5RDQ8S3K7aCJ4qGo9zScZBdz2TX43 DoBiuTJqTG0fY9lOnpeV3kBFNZ/oucDYd5Q7ZZuD09+iJSVrUhX9WBlQcV8k1XPg0ThA kKtQ== 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=jfQQ/MNFWhWhCmZ0fDK6Z3yWGSF3sEm5B4lXRoyup6I=; b=TMcQ58NZjtai4hnxptjZNa2zuyqybm2IAHi36+Z6X3CPvOP8bav3bgYlCvv1a/Hquo WXPkZl9gvr3qh5C18601X2Hna8evTEn1cApAbS32vQ250DXCqUwtvXG660GSTpD581Ai jzl0qRxxrYzcSzMrHcczYJXKwwaxeo+V/qUh0DIFtRPLFOBOT3yc2owYKIy8cQl8jise NyzeC+9rEtXOGG12Sibrf+oYbjEwt1k8rlwfT2DFhmAeJKO0PRgdAfwJerrvB6Vjd47e PCKhoGeCjfOkpBMtIjQFpenlcoMsej28CS4kM+LeWIv9brVeXiNXDY3yXxYbzczdAS2L ltrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GPt4rEg+; 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 y190-20020a814bc7000000b0031c24cc29b6si18915153ywa.307.2022.07.04.02.35.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jul 2022 02:35:33 -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=GPt4rEg+; 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]:55554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8IUO-0008Kf-Gv for patch@linaro.org; Mon, 04 Jul 2022 05:35:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8IT3-0008Gz-4S for qemu-devel@nongnu.org; Mon, 04 Jul 2022 05:34:09 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:46893) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8IT1-0004vt-Dg for qemu-devel@nongnu.org; Mon, 04 Jul 2022 05:34:08 -0400 Received: by mail-pl1-x62f.google.com with SMTP id l12so2730960plk.13 for ; Mon, 04 Jul 2022 02:34: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=jfQQ/MNFWhWhCmZ0fDK6Z3yWGSF3sEm5B4lXRoyup6I=; b=GPt4rEg+016A0HCaWClohznDEoeMsgn82kpFDB4R4VqTIq1r/XlH1Gyo3nDpOBo6Dh eXsvUon5zGXYJZ6KtKMQc4FKUpWDgLV7QkdBwe5ybd2fJ3CPNRtaTMLRjo8M838NRqdv mBB6NVsbiGAi7G1UkVJnninHDpp8I9fhCM4swMnEbeqNKjVuTl/6I9L/CcaF97xZvxRl vXqFcrkWPBQULOHEKNgulHvm859vuix1UITs7OVOxwVx/wsiyCBJtNFNPdJW9fje+4ol Q8G2kdTknb2fbVTgFAM94iNiGBDLVv1MVMdQEqbCetKPH1N0m4O2LVFBKod8uXZlzGQQ oqDg== 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=jfQQ/MNFWhWhCmZ0fDK6Z3yWGSF3sEm5B4lXRoyup6I=; b=5gxqucRcnxX/SMLorY8HfJsPVFMN/7+famjA7V481eEn/FDdkUJtSxX3xLVS8+/pL8 P5oMhEYmpAPwKyPCj32Lpw6Nx/0+HUX79QqUtWXNbK6I375saBqMoHNUQB1aULZRBAoH jAXRpZynE6p+eq680Z87U5ksRpdu9tEN+eHM6pscipbRezu/oPNeie+B2asmAhHdcEPp exIf8AnKi2qgkSCPcXuyFb4gEQ66bPdeoKjnYy1oncnkvggsSIUbXLUVViG+AQOr3QKg iHfWn6Ihcwcxu1pKGNop9BYgYJU+4h655Y0/Cp1Rc7oQmX5CW/sl6HyX52EexY0u4s9K 0sdA== X-Gm-Message-State: AJIora+WBeEbmhq0NVd/Ejr1+qnKGF/Chfog2Jdt7SocBi3mN5Zd/SUC gsdgWH62ab1o/FRHNv6FSWAKGi0Vmx2XgqgC X-Received: by 2002:a17:90a:cf90:b0:1ef:87d5:4798 with SMTP id i16-20020a17090acf9000b001ef87d54798mr5180961pju.140.1656927245985; Mon, 04 Jul 2022 02:34:05 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id z5-20020aa79e45000000b00525b7f3e906sm15353355pfq.27.2022.07.04.02.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 02:34:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Song Gao , Xiaojuan Yang , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , WANG Xuerui Subject: [PULL 01/23] linux-user: Add LoongArch generic header files Date: Mon, 4 Jul 2022 15:03:35 +0530 Message-Id: <20220704093357.983255-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220704093357.983255-1-richard.henderson@linaro.org> References: <20220704093357.983255-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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 This includes: - sockbits.h - target_errno_defs.h - target_fcntl.h - termbits.h - target_resource.h - target_structs.h Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: WANG Xuerui Message-Id: <20220624031049.1716097-2-gaosong@loongson.cn> Signed-off-by: Richard Henderson --- linux-user/loongarch64/sockbits.h | 11 +++++++++++ linux-user/loongarch64/target_errno_defs.h | 12 ++++++++++++ linux-user/loongarch64/target_fcntl.h | 11 +++++++++++ linux-user/loongarch64/target_prctl.h | 1 + linux-user/loongarch64/target_resource.h | 11 +++++++++++ linux-user/loongarch64/target_structs.h | 11 +++++++++++ linux-user/loongarch64/termbits.h | 11 +++++++++++ 7 files changed, 68 insertions(+) create mode 100644 linux-user/loongarch64/sockbits.h create mode 100644 linux-user/loongarch64/target_errno_defs.h create mode 100644 linux-user/loongarch64/target_fcntl.h create mode 100644 linux-user/loongarch64/target_prctl.h create mode 100644 linux-user/loongarch64/target_resource.h create mode 100644 linux-user/loongarch64/target_structs.h create mode 100644 linux-user/loongarch64/termbits.h diff --git a/linux-user/loongarch64/sockbits.h b/linux-user/loongarch64/sockbits.h new file mode 100644 index 0000000000..1cffcae120 --- /dev/null +++ b/linux-user/loongarch64/sockbits.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (c) 2021 Loongson Technology Corporation Limited + */ + +#ifndef LOONGARCH_TARGET_SOCKBITS_H +#define LOONGARCH_TARGET_SOCKBITS_H + +#include "../generic/sockbits.h" + +#endif diff --git a/linux-user/loongarch64/target_errno_defs.h b/linux-user/loongarch64/target_errno_defs.h new file mode 100644 index 0000000000..c198b8aca9 --- /dev/null +++ b/linux-user/loongarch64/target_errno_defs.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (c) 2021 Loongson Technology Corporation Limited + */ + +#ifndef LOONGARCH_TARGET_ERRNO_DEFS_H +#define LOONGARCH_TARGET_ERRNO_DEFS_H + +/* Target uses generic errno */ +#include "../generic/target_errno_defs.h" + +#endif diff --git a/linux-user/loongarch64/target_fcntl.h b/linux-user/loongarch64/target_fcntl.h new file mode 100644 index 0000000000..99bf586854 --- /dev/null +++ b/linux-user/loongarch64/target_fcntl.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (c) 2021 Loongson Technology Corporation Limited + */ + +#ifndef LOONGARCH_TARGET_FCNTL_H +#define LOONGARCH_TARGET_FCNTL_H + +#include "../generic/fcntl.h" + +#endif diff --git a/linux-user/loongarch64/target_prctl.h b/linux-user/loongarch64/target_prctl.h new file mode 100644 index 0000000000..eb53b31ad5 --- /dev/null +++ b/linux-user/loongarch64/target_prctl.h @@ -0,0 +1 @@ +/* No special prctl support required. */ diff --git a/linux-user/loongarch64/target_resource.h b/linux-user/loongarch64/target_resource.h new file mode 100644 index 0000000000..0f86bf24ee --- /dev/null +++ b/linux-user/loongarch64/target_resource.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (c) 2021 Loongson Technology Corporation Limited + */ + +#ifndef LOONGARCH_TARGET_RESOURCE_H +#define LOONGARCH_TARGET_RESOURCE_H + +#include "../generic/target_resource.h" + +#endif diff --git a/linux-user/loongarch64/target_structs.h b/linux-user/loongarch64/target_structs.h new file mode 100644 index 0000000000..6041441e15 --- /dev/null +++ b/linux-user/loongarch64/target_structs.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (c) 2021 Loongson Technology Corporation Limited + */ + +#ifndef LOONGARCH_TARGET_STRUCTS_H +#define LOONGARCH_TARGET_STRUCTS_H + +#include "../generic/target_structs.h" + +#endif diff --git a/linux-user/loongarch64/termbits.h b/linux-user/loongarch64/termbits.h new file mode 100644 index 0000000000..d425db8748 --- /dev/null +++ b/linux-user/loongarch64/termbits.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (c) 2021 Loongson Technology Corporation Limited + */ + +#ifndef LOONGARCH_TARGET_TERMBITS_H +#define LOONGARCH_TARGET_TERMBITS_H + +#include "../generic/termbits.h" + +#endif