From patchwork Sat Sep 30 03:11:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 728089 Delivered-To: patch@linaro.org Received: by 2002:a5d:60c8:0:b0:31d:da82:a3b4 with SMTP id x8csp752459wrt; Fri, 29 Sep 2023 20:12:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEweN6Tr/I/4ESl8uX/JJft34oPPKaudB9K3H2ImIb5WahBCcukD35tTrCfW+E5qDVqDXw4 X-Received: by 2002:a0c:ab4d:0:b0:658:65ed:7e8 with SMTP id i13-20020a0cab4d000000b0065865ed07e8mr5066630qvb.57.1696043525112; Fri, 29 Sep 2023 20:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696043525; cv=none; d=google.com; s=arc-20160816; b=wyZKjse/MbImGj7/W73d5yoi/kqKr3NvAKtvJPHQ4g/SSOb91PVaZ0rtgRRSy7FoCS iVhqtOTxy6cLwjs2RI/LcS9euUvQPT9O2L08bnWpS845iYmgbxku7+aN8hxS55BzeYmR Dwru44zLVaWgLfHMRXteJhLBGG+voqKvRQts5hNS7nnNWUeopRe7gEYgD+0Y22I3t3Ry WvAbPGbZLYj8EIBnK4cSNP3TVTZDM+qtmz6q+34eZhKv75QMonSTEqOn4Ohmxh04p4rw 1bMkndVaVsbuSXKvwCe++pqvN7en8xCVE9ZvTdrNVFUUs5ucBjPR3HkDd8KzITQx0MEc 2+kA== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=yDhQouHtI0bFcQQSACQjQbPDcgLaFXjYo7GpM00vPgg=; fh=UQCixiNfr28ZOrfhmxiGPA65dFhly8CmRsnoYC6xI9k=; b=encJERoF9OtUammsUHnp+rxlVBmY+lRbpF0YraH9PYMzQTb8c0sNwmH1rwUx5X7y6I z/YNIP+b5bYFalotJZDRmIyszXfRTSc4Y9Q+CZeiFQig1jUoIaG14OqXpTW7SQ4SNXc6 CjqThCKsCFx53nPC6oSqzM3IPHoNi9LtqpkgkoPyyc7jRfVbUKV7K+tpk1OM8xelKgqk nwSFO0CSOb4RsWOxrcyZO/PYcEaki+tu1VaWb7q3H93gRT39c3fH1aTUR2TZ2LVffkTZ apg2qwAJL0vt1HscrRIIiwFCgp43TFtVt+us5iTC6uy70UithVZSIxtaSo4AZsoBZWr9 Bj4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=plj3Usld; 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 y9-20020a0cf149000000b0065b0c9f60a7si5789252qvl.200.2023.09.29.20.12.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Sep 2023 20:12:05 -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=plj3Usld; 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 1qmQO1-0001Re-FL; Fri, 29 Sep 2023 23:11:21 -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 1qmQNz-0001Qr-Jw for qemu-devel@nongnu.org; Fri, 29 Sep 2023 23:11:19 -0400 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qmQNy-0000CI-2W for qemu-devel@nongnu.org; Fri, 29 Sep 2023 23:11:19 -0400 Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-6c64a3c4912so467734a34.3 for ; Fri, 29 Sep 2023 20:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696043476; x=1696648276; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yDhQouHtI0bFcQQSACQjQbPDcgLaFXjYo7GpM00vPgg=; b=plj3Usldzd6WntgrczxEQPi006uOiLNY1i/XXddiB9D0NBDNNIE5UvL9OWlQ/2m4TW MO82jvGnSqFIJdRCjU19woNzDLeSL/faNwMFXvP/+N6J531eDrajro72HHCPlRqfW7p0 jEwRpTH2A0Hu5xicLBr5InWMd1JtnBZ4sbuEzEeIbwKIrS+lLaeJKE1aFD5F2lNulv3D DJ8l5YzVQDtDj18CxTsVmF5jg5m1tYdsbw7F88dusza+RnS6Q2aJhI3c23S5Ef7rH8rU Hb6kRvR3kvNc1lILtCBW5PLH9HcpAbijpFiN2Hm18dxyoaF5OVVi+7JRWt+f8uKenJru Wwhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696043476; x=1696648276; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yDhQouHtI0bFcQQSACQjQbPDcgLaFXjYo7GpM00vPgg=; b=R3LWBLxEDl6qMa0uB39zT6szIGcOc8B7YneI02/vS1jDdCjmSxYBeRK8zz0MQtaDHz rBWLUiGsnNa1hIfYWCwFYPfl4tFHCTEoWIHzzEU8Lqtm7JEpmcBfnP9CNPZLm6EJZqJP 8KcwMSjWx+gQGIZ/hwLNVAEfivJFcIFxAA8MEzZ8nwN4R4uJwziohtcbil3Xmn7Z9/sG Sxlkf8JnHXKSrfs+mZI1AI6ZLN6JAGbtcWfl5Awvea7S7VPn3OXp34SaRdC1LFdyfNBh 9Ci514f0jiHBqXanRYlFlPlsAHewtcNaBZ2nK6be26UprcJDFyvliljQepoEGU5JXrbF OvOA== X-Gm-Message-State: AOJu0Yz8RN8TSo+F+H6LZX1T7qSVYKhirCbCwIug+XZSb6I5Ck/eDqOk KwBYAniSmIyYgyWsqrLWj5tJasxzedMmxYH4ol4= X-Received: by 2002:a9d:6249:0:b0:6b9:ed64:1423 with SMTP id i9-20020a9d6249000000b006b9ed641423mr6281045otk.2.1696043476416; Fri, 29 Sep 2023 20:11:16 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id gp15-20020a17090adf0f00b002790ded9c6dsm2146821pjb.31.2023.09.29.20.11.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 20:11:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org Subject: [PATCH v2 0/2] Split out tcg init functions to tcg/startup.h Date: Fri, 29 Sep 2023 20:11:12 -0700 Message-Id: <20230930031114.1042913-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32c; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32c.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Supercedes: <20230923130843.3708899-1-peter.maydell@linaro.org> ("[PATCH] tcg.h: Split out runtime-only functions into tcg/runtime.h") I thought "startup.h" was perhaps a better name than "runtime.h", at least for the functions moved, since it's about starting up either tcg or tcg within a new thread. By removing the argument to tcg_prologue_init(), we can simplify the users even further, since they no longer require TCGContext. Adding tcg_init() seems to match the other two as a startup-y function and allows tcg-all.c to avoid "tcg.h" as well. r~ Richard Henderson (2): tcg: Remove argument to tcg_prologue_init tcg: Split out tcg init functions to tcg/startup.h include/tcg/startup.h | 58 +++++++++++++++++++++++++++++++++ include/tcg/tcg.h | 3 -- accel/tcg/tcg-accel-ops-mttcg.c | 2 +- accel/tcg/tcg-accel-ops-rr.c | 2 +- accel/tcg/tcg-all.c | 4 +-- bsd-user/main.c | 4 +-- linux-user/main.c | 4 +-- linux-user/syscall.c | 2 +- tcg/tcg.c | 4 ++- 9 files changed, 70 insertions(+), 13 deletions(-) create mode 100644 include/tcg/startup.h Reviewed-by: Philippe Mathieu-Daudé