From patchwork Fri Feb 23 03:03:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 775125 Delivered-To: patch@linaro.org Received: by 2002:adf:a356:0:b0:33b:4db1:f5b3 with SMTP id d22csp155693wrb; Thu, 22 Feb 2024 19:03:40 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWlCbZrz6l3PR0+mjlwrGt40pDW4qL74ZfwXe/P+evqi/3SNENOp4snGsAK+eP9sSShWrmhKwav/cFFeZCpQjhY X-Google-Smtp-Source: AGHT+IFZbiSbBn8RrIpq8AYaM5HlzuH4e843ufle8idrIH3e1cYBqDX786ewanx3f/L/Oy5hjDYZ X-Received: by 2002:a05:6214:5c04:b0:68f:8a1f:ca25 with SMTP id ly4-20020a0562145c0400b0068f8a1fca25mr7625587qvb.12.1708657420744; Thu, 22 Feb 2024 19:03:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708657420; cv=none; d=google.com; s=arc-20160816; b=VuBi9cuXdEBPRSdsBQfXP/njJEjznNK2yQOqfY3+V0xCU+eOpoeElxOUTfOEf3UfK+ +8A6Ung+fq4ka3XXWb1K7u+JVRbfT7zATANlewomRlepQFIEDXluF7OrseKMkaL/2xWx oJz0PGRVfGfqp/m2Qn9udSHd6lrietERnrbEh8u0PWLDKqRYbRqmwM9GhdacGMBzUEi2 Pr1IlnniVA2XARzokSY6UmsuTB4uz10oYAB2ivIgS7M2+huD12+ArdSRZ4FqS8cvsKJ4 a3zmB0PBUnD9n61lGF4bWTMgKBuK0icpZuoLjY6vVQ3hpLp3amrnKxWUPFQTtaya44xr aorg== 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=SHlUnJMkSLjXViHQWxp6vaRXYVXn1e/U/gKCQwR45lE=; fh=8KSwxPSjG7lTAUAQ/arcVl4mtuWJVDifA7pB1X1/PJk=; b=siEi/ySySAlhgTqugjg9CWFD4HXgUnwdcYlJsxDd7WtxWMNpWI/A4LJgxfbPvFPhMQ cPFfUI18Nw0s0EuR1w/7vGs+W5TQsZxiJsCNAGp5cDWCdplGPyZSmVHSxCtliwpTf/6U J1ZlRdG7KsDJNjW+M3xDyAOuufs2tkSK17F4yjgdkPqXAe4WXpZLOMcl3fa8nZ7rYRFL kj7aqRH6Z4udCVwqX1/saHFVui2tFAYQSGqFehAN8eLc2ijJmuWO0iNHWOhRAPn8cDYR k39Lda0szdlfhhleQmRGe+ophTznXogF/Fm8urfRfLMyfwB4LxIHvfRHunGbrlT6xzTI V2Yg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OHAp4duw; 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 u37-20020a05622a19a500b0042e5fe99218si688395qtc.508.2024.02.22.19.03.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Feb 2024 19:03:40 -0800 (PST) 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=OHAp4duw; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdLqJ-0002br-IL; Thu, 22 Feb 2024 22:03:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdLqH-0002bH-Bn for qemu-devel@nongnu.org; Thu, 22 Feb 2024 22:03:17 -0500 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rdLqF-0000cR-Uq for qemu-devel@nongnu.org; Thu, 22 Feb 2024 22:03:17 -0500 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6e08dd0fa0bso411318b3a.1 for ; Thu, 22 Feb 2024 19:03:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708657394; x=1709262194; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SHlUnJMkSLjXViHQWxp6vaRXYVXn1e/U/gKCQwR45lE=; b=OHAp4duwjt6L6OBs2GKA5uIiRgF3QH5pO1HCXniUppqUjyzkAvLaVZxKglY2JTdiqc O+5UimwD4LCxVBE6hZuP09UitQ8NhNi7NVexlmW8o2kyQPKbqmK8RkBeIQxzhpRBhq0p gNoPGXjebjC0w6Zf6sokT8DgbdpFwylN8vTATgC6v3vBJPXo0uqp2Ic3QEracHY/cSSQ NYE1POZjdp3Idkf2EKw84lb0hOhCpAweQN8UugIXnQgZcT3Mp/IhkebaYVmcmP5SaMST 0SXceMqZinkxXetx2E9Jd0RF6Jq5AvzWPptCaxoCiBSxJ5o8VLKFdqfLSt9FoqjjZr2J EKMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708657394; x=1709262194; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SHlUnJMkSLjXViHQWxp6vaRXYVXn1e/U/gKCQwR45lE=; b=YaZ0USds2u9PV4aAWj+8zblI5CKNBKmbTaNCesD3sjHjZ6wcIuH5UtB87BwYNsNQU/ SO2D9y5qYoQtHgdpdPRc+arjdSZqUXeleQvp7KhW027h3CgwQfhodS6ZfTpC9895P0DP KcgR2rTJNOCvUSdPJuj8bnENTH9LyJ9Pthhj3hey4gGqP+Ay2yWWKvcE0YbW/TxLQntb w6qWhluXvMdnAz06xLPYtIe9DpxIg+pTjqJxHfALdEBaCS8kDjtN2SCAe3GRNBkv3OvL Ygz1fXFZhsu1zQdRl+ahocllo3sYRWLcTD1ttlc6y9slabOIpSM+UpgTe/EcwcSN0VzT hdwg== X-Gm-Message-State: AOJu0Yy+VN1+kCgWoTAZ/2JKu/q3HSLL6diQd0CA4peF1SV71yqoUNFd 2H7qLHSThOF+3KmYqMHZdU94yTJpjOp/+kNQWHgcjYBV7G69AjCinH+wPu2pJB0eHZDal7rYhZe k X-Received: by 2002:a05:6a00:9a3:b0:6e4:74d9:6f0f with SMTP id u35-20020a056a0009a300b006e474d96f0fmr1449327pfg.0.1708657394267; Thu, 22 Feb 2024 19:03:14 -0800 (PST) Received: from stoup.. (173-197-098-125.biz.spectrum.com. [173.197.98.125]) by smtp.gmail.com with ESMTPSA id n38-20020a056a000d6600b006e31f615af6sm11594159pfv.17.2024.02.22.19.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 19:03:13 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu, iii@linux.ibm.com, richard.purdie@linuxfoundation.org, mjt@tls.msk.ru, Song Gao Subject: [PATCH 1/3] linux-user/loongarch64: Remove TARGET_FORCE_SHMLBA Date: Thu, 22 Feb 2024 17:03:07 -1000 Message-Id: <20240223030309.458451-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240223030309.458451-1-richard.henderson@linaro.org> References: <20240223030309.458451-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x431.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-bounces+patch=linaro.org@nongnu.org The upstream linux kernel does not define __ARCH_FORCE_SHMLBA. Cc: Song Gao Signed-off-by: Richard Henderson Reviewed-by: Song Gao --- Did this definition come from the port before it was merged upstream? Or was it incorrectly copied from MIPS? --- linux-user/loongarch64/target_syscall.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/linux-user/loongarch64/target_syscall.h b/linux-user/loongarch64/target_syscall.h index 8b5de52124..39f229bb9c 100644 --- a/linux-user/loongarch64/target_syscall.h +++ b/linux-user/loongarch64/target_syscall.h @@ -38,11 +38,4 @@ struct target_pt_regs { #define TARGET_MCL_FUTURE 2 #define TARGET_MCL_ONFAULT 4 -#define TARGET_FORCE_SHMLBA - -static inline abi_ulong target_shmlba(CPULoongArchState *env) -{ - return 64 * KiB; -} - #endif