From nobody Thu Oct 16 04:35:25 2025 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=1745351949; cv=none; d=zohomail.com; s=zohoarc; b=PnIkLySSCUSYeC+0fTn1Nt47e5ixcpoO7CB3+yTdPTB+qkYURNKaBsWSxIGIxmLBy/Il4XLRuvDUaL1B4Gs613xBlSKPXMEQ4Uat4JnEwmmzjICL5W0ncw1Y/XuVXDux93gf9PIoEBNcSDyQiTm5kYt0N8ZbX2EPGoF53yOEb4s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1745351949; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Uk2ZrawXZYiOMoISYC3G3yGzQ++x7vjYflwSfXkzRVo=; b=D/x0ZyLTkh/bufh2SX5jrjqy1Yj7v+um1ebsjaSvYx2VNBPDqvHROdgjMnDKrd74UuzeXiC8mpDshxE1tAOuRtNncEUzeCi3Gfqrc7ntDbZ2QN8xuqAbSJ/8gV8ei0VqY+50fg+h3mU/5XC8tfXhI2WGv7miAUkGrUETstRgBkE= 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 1745351949680191.96793375849245; Tue, 22 Apr 2025 12:59:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u7JRU-0002AJ-9Y; Tue, 22 Apr 2025 15:38:04 -0400 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 1u7JP1-0005B3-DK for qemu-devel@nongnu.org; Tue, 22 Apr 2025 15:35:31 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u7JOy-00074f-Ho for qemu-devel@nongnu.org; Tue, 22 Apr 2025 15:35:30 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-2255003f4c6so63588525ad.0 for ; Tue, 22 Apr 2025 12:35:27 -0700 (PDT) Received: from stoup.. (71-212-47-143.tukw.qwest.net. [71.212.47.143]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22c50fdf1f1sm88996795ad.237.2025.04.22.12.35.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Apr 2025 12:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1745350526; x=1745955326; 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=Uk2ZrawXZYiOMoISYC3G3yGzQ++x7vjYflwSfXkzRVo=; b=ALi5vwPqYr3cHuZKemP9+QGASB/90ShuMYUGXn2YswkM2FPoo1z2z2fw71pXGPlzza Wd4BuFQrsKTuDKES78x3jrI0zq6vEDrtvpmn2qc+CinKikgjny7wySoFWzakMoV7mAWp KQBplEl0BybX8PeoR7mPwIuid8pdUYxgV5CC2fA5xLuXoMVbNw3lzGw5d8YinIUriS84 BrDCR8rJY+sVw4zFbxxCD0aWXVKCthkxraOqy94leW4P8I850BGD3vOo3/mZu+oaqUOZ m5R1YJV7ehzS7hI4ewPfewacvqox82Ijf6w0LloVF8Q5DgGO577rZtsMl/rlJs8654TW rkbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745350526; x=1745955326; 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=Uk2ZrawXZYiOMoISYC3G3yGzQ++x7vjYflwSfXkzRVo=; b=LqW9PbTq5++8vOwOQfvqsQOJxWOCO5FKlT9nCYAKIPq33PuhADxoD7+wVm+e8JtyHq leGN2ZJkjAzXBKWk+u5pz3CkHzcELHZ74YUjLxTWylngBL0SudcCjNwc+14bPnzmw4mZ cakYPh793AUYAQQGyMIgNUQZBZb+Dlm+RBnNL3IdYMo+euS2dZlmG+Nf8ZLG8JTgItCP +7d5km+8OEka0Luau17FgYlonYC09X26fCOI0kv7dpbFmeggO2zzx3329+aAus5xjJYn fn4mHn7h42x6KJjYd7OUdtp8zbnP+3WrcJp6Ui2fBM8DZn/Aju9bKMRy+CN9zx4IQlZV qbzQ== X-Gm-Message-State: AOJu0YwtIewePReSkCjJ10WS70QqqJoGQqXblsUMWqatH/AFD8VWO876 suxQp9lxxTaFiVmLFRHd/5asRL+athwp5cBW5QmyjEX0ik5Z5ukW3TncUz/SKINDC0Thkm037FP b X-Gm-Gg: ASbGncuA4r5xM0W+wXXW4NkWL4vR+hH0aej9Rr7+MycYFUFw/bPSLrPpmJLKL6mOxJ4 jYRKA7q44QnWqLVSZVvyLcyVbLoKOBnQzA3Xch9kwjQqcG6woyxUIVJyKQaQkYZ6uik2y4y10P0 itO7oyJcZVJKHzqSHfhtySeWhmwiDbXuKFrLboe7HAJ2Upi1fPTqMG/uP7LimE6+p9j6a3kJe/i GJWAvDQiUm/1n5CvRaE1PB7Iuo6SUt9+K3yLr6+bRYEAe67szFGFqCWVZtecJeuaztl6ClgRnZN UDVZ6EiNH3XBYNwYEYiLePvhnYPI6pxH2fhlLbF1utKoK8C9qbR3ZED0cxHPdgkNsIoTxvniAsU = X-Google-Smtp-Source: AGHT+IH7WMAJRlPRMEw/0aNBxQE02SPMnBWKDXOONk2f7iOo9BnqdHywyjXGKM4UGS4n54APAsk2Hg== X-Received: by 2002:a17:903:947:b0:223:517c:bfa1 with SMTP id d9443c01a7336-22c5360c7admr276939285ad.38.1745350526622; Tue, 22 Apr 2025 12:35:26 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Pierrick Bouvier Subject: [PATCH 101/147] exec/cpu-all: move cpu_copy to linux-user/qemu.h Date: Tue, 22 Apr 2025 12:27:30 -0700 Message-ID: <20250422192819.302784-102-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250422192819.302784-1-richard.henderson@linaro.org> References: <20250422192819.302784-1-richard.henderson@linaro.org> MIME-Version: 1.0 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::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.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 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1745351950479019100 Content-Type: text/plain; charset="utf-8" From: Pierrick Bouvier Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Signed-off-by: Richard Henderson Message-ID: <20250325045915.994760-3-pierrick.bouvier@linaro.org> --- include/exec/cpu-all.h | 2 -- linux-user/qemu.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 5c4379f0d0..2aaaf0548d 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -31,8 +31,6 @@ #endif =20 =20 -CPUArchState *cpu_copy(CPUArchState *env); - #include "cpu.h" =20 /* Validate correct placement of CPUArchState. */ diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 5f00750151..948de8431a 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -362,4 +362,7 @@ void *lock_user_string(abi_ulong guest_addr); #define unlock_user_struct(host_ptr, guest_addr, copy) \ unlock_user(host_ptr, guest_addr, (copy) ? sizeof(*host_ptr) : 0) =20 +/* Clone cpu state */ +CPUArchState *cpu_copy(CPUArchState *env); + #endif /* QEMU_H */ --=20 2.43.0