From nobody Tue Feb 10 09:58:41 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1621317057; cv=none; d=zohomail.com; s=zohoarc; b=BwveaXNVbjQCcJVXaPFRaDJLQL0ACJxAkhZcnV2qW57PXFdZ6F4rMkf2fKpPa11DMyMDhPz/YI6N9rDUs33hu80ilFDdSnUKQEGhyWjciYGuAlhoMu6rKmQsXUXpeWJ2cVxlkpelT+c9qekdPxP4K6uIRyQ+NlyPygr+2ukjCnU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621317057; 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=tBYRQbt6xPcCME+W6J9kE+VbYAyyaGboYaEyRvAIKHI=; b=HC9tdQXBll/2cRwCMOZsJjVt7+04x/shXr30APUm0fL5EatJjw3be6XsVzX+coIsd7HgaZFbDm8eR8VMhNjPF27ksdDRDT5F9FkKHDpPQjuoknWWVOAH/8DFBx5LGMVYzacyA3ERRZLgGOnbCKckZWcIx8qBs95qeRah+vbhvgk= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 162131705747616.864117870059317; Mon, 17 May 2021 22:50:57 -0700 (PDT) Received: from localhost ([::1]:38376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lisd6-00026D-7A for importer@patchew.org; Tue, 18 May 2021 01:50:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lisKY-00074U-J2 for qemu-devel@nongnu.org; Tue, 18 May 2021 01:31:46 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:57357) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lisKV-000703-HA for qemu-devel@nongnu.org; Tue, 18 May 2021 01:31:46 -0400 Received: from quad ([82.142.31.78]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MxEYY-1lXw9E3mTg-00xeb3; Tue, 18 May 2021 07:31:33 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 01/59] linux-user: Remove dead code Date: Tue, 18 May 2021 07:30:33 +0200 Message-Id: <20210518053131.87212-2-laurent@vivier.eu> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210518053131.87212-1-laurent@vivier.eu> References: <20210518053131.87212-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Ip1ZvOtP7xYEkSpHNWbooJeYLch8ubTt5WoARl2WMWJghYvkco4 Ls9GjwxUlH9AgHTrbgTm/0KXy8CF63VuxxS/Jw4nbaWU84aQYPoqCGC6ParS6hLI+e3X0vN GMsdLDpY0G23mdLXHSiZ444Aqbvl86e0xcqfxISmK1voKgiPkt4M6PbiBo3dS6BHdtRnmdB EXJOhj+7nRhMicYc9VyJQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:hoKxoXimWq0=:HAfNzhPDDPW0JssiBVNDXV t6LtbipFMDrGe5AwjcE14jtKN4RWq51AOOMqc5SXFd6NvUjNNSQfvAZQJy+QbqBARSvvLRgqC 7J4dwAVzocw6A+AcrcMImqfGRpHpzEYLZQ1sNSWX7ZSa/7joQzQrSm2jgjm/ynxZcIv0uoer+ M54qEC2DTZkMoziot/zd59hBmYT8+mOqdHy1djYeJqAyOsNEfsaPBzRlSThtF0CQ/DfpLCHrU A5kZvdfAU2ApRFcJwX+qwaFv8eCz9bymJSlBbqvm7H7E4G4S4d9Zx2Sln08GgKm1BY4g4ztZC gzCVnzqAJ802UHt3R4Cr9UagX+CkQzUgf9SKcDsrPOfrzEm/KfZ1B4t7Pb6fj0LLYMLEzYgcD pJp8uvWQgoZPe21RQDTCMN6Y32GpKwvsxFir8TOTS9pVkuRP5DSD6+vL0EhFp6jRvThflL2LA tR5pWAZOEaXY4cqQNC2QXquoSnGeEWytutC73F6/H7zDdHhFxF11hEqNktx1E3jRhwzw8l/eE ASWKulNMh30BYldN64yo30= 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: none client-ip=217.72.192.74; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daud=C3=A9 We can not use watchpoints in user-mode emulation because we need the softmmu slow path to detect accesses to watchpointed memory. This code is expanded as empty stub in "hw/core/cpu.h" anyway, so we can drop it. Reviewed-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20210303214708.1727801-18-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- linux-user/main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 7995b6e7a6de..4dfc47ad3b63 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -205,7 +205,6 @@ CPUArchState *cpu_copy(CPUArchState *env) CPUState *new_cpu =3D cpu_create(cpu_type); CPUArchState *new_env =3D new_cpu->env_ptr; CPUBreakpoint *bp; - CPUWatchpoint *wp; =20 /* Reset non arch specific state */ cpu_reset(new_cpu); @@ -217,13 +216,9 @@ CPUArchState *cpu_copy(CPUArchState *env) Note: Once we support ptrace with hw-debug register access, make su= re BP_CPU break/watchpoints are handled correctly on clone. */ QTAILQ_INIT(&new_cpu->breakpoints); - QTAILQ_INIT(&new_cpu->watchpoints); QTAILQ_FOREACH(bp, &cpu->breakpoints, entry) { cpu_breakpoint_insert(new_cpu, bp->pc, bp->flags, NULL); } - QTAILQ_FOREACH(wp, &cpu->watchpoints, entry) { - cpu_watchpoint_insert(new_cpu, wp->vaddr, wp->len, wp->flags, NULL= ); - } =20 return new_env; } --=20 2.31.1