From patchwork Thu Jun 29 12:02:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1801469 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=bdMgOZ46; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QsHCZ3XQfz20ZV for ; Thu, 29 Jun 2023 22:03:22 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEqMZ-0002LJ-7v; Thu, 29 Jun 2023 08:03:03 -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 1qEqMY-0002Kl-6r for qemu-devel@nongnu.org; Thu, 29 Jun 2023 08:03:02 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEqMW-0005FK-JV for qemu-devel@nongnu.org; Thu, 29 Jun 2023 08:03:01 -0400 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-311394406d0so556703f8f.2 for ; Thu, 29 Jun 2023 05:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688040178; x=1690632178; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rtqq+hD2yz2b0nLytSPEROIxhKxIpnYBcjnLBP197u4=; b=bdMgOZ46UsRRCYKPKEupFJ8Qlv7XLB8/ZPw6FPBHm4Q7B+KEjr9boECzlUK5s3dAUA gpgkpgKmBKNCJyVw274T1ZoEfgTQ+spY9Rqbadh5D4qNufyfVa5P4pMH/Pz/EK8WbUfl DLntgBij/byAOn8TJru/R51Zg9SAg1CV/gasQn5FQoEjuuwD+/k0O0GBybUL8dx6BBbu qMpOTnjArA1sqhqpuSG3ualrQLEppNcFYk+0QJt1/0mDlgTCXxttFpsHbkSbjDHNpI9O uxpxDgidfqV9aZIFDxP4Ru+JDm8HJrR8TcVGw9RECKINSpn5vsM2IqBRRLvBhAlToY+I cybg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688040178; x=1690632178; 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=rtqq+hD2yz2b0nLytSPEROIxhKxIpnYBcjnLBP197u4=; b=aY43sStB9CVMBXv/eGTvQrDij3bYuOKPYeP7Pjc8mB73E6BivnKmcomDiaisRny34Z WqgM0ggHC3i5nX4YAbInXfPcgZ2+AeRkC762xvO2K/QYUeQQvr4Si/gbapMd2rJNSjRq okKWgjmivxrdyujeCx+RIy1KYD6zj+9AX7C+59IBg1b8MnHQzSKr8M6U1T7mNWJiAoMp gPcAoSoa3NGQhfTes+PX5gaztmOOpi2kPzS5RTWfCcRumyyFsYpQfhFmRksyPS2zhcSK T4YVil46TydVfShgOA98tryVGxgwanLUn2Hu+chL1+dKK53/ozZSx3GpfBrf3xcqRROX 0mMA== X-Gm-Message-State: AC+VfDwYyJEye7ZQ0eWRIJGN6vhGzT2hhZUlzrLQLvflO3m0f+u1QDSJ O7WNkYT3Bq8xH6P1aPCC8d3pz03cHKdHlEpWlNo= X-Google-Smtp-Source: ACHHUZ4pNJs1sHotE5LPL1332jgUjS9dZAE9K5EV450ITiaDxwt5CUtP8lJOQ5az7Oofzw4k0GFBVg== X-Received: by 2002:a5d:500e:0:b0:314:f8c:a06f with SMTP id e14-20020a5d500e000000b003140f8ca06fmr3244011wrt.57.1688040178635; Thu, 29 Jun 2023 05:02:58 -0700 (PDT) Received: from m1x-phil.lan ([176.176.166.242]) by smtp.gmail.com with ESMTPSA id o10-20020a5d58ca000000b0031128382ed0sm15680406wrf.83.2023.06.29.05.02.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Jun 2023 05:02:58 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Marcel Apfelbaum , qemu-riscv@nongnu.org, Bin Meng , Daniel Henrique Barboza , Richard Henderson , Yanan Wang , Alistair Francis , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Weiwei Li , Palmer Dabbelt , Eduardo Habkost , Liu Zhiwei Subject: [PATCH 0/2] accel/tcg: Remove qemu_tcg_mttcg_enabled() Date: Thu, 29 Jun 2023 14:02:53 +0200 Message-Id: <20230629120255.85581-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=philmd@linaro.org; helo=mail-wr1-x433.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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Remove qemu_tcg_mttcg_enabled(): - check for CF_PARALLEL in riscv cpu_init(), - directly check 'mttcg_enabled' in TCG code. Philippe Mathieu-Daudé (2): target/riscv: Check for CF_PARALLEL instead of qemu_tcg_mttcg_enabled accel/tcg: Replace qemu_tcg_mttcg_enabled() by mttcg_enabled accel/tcg/tcg-accel-ops-mttcg.h | 8 ++++++++ include/hw/core/cpu.h | 9 --------- accel/tcg/tcg-accel-ops.c | 2 +- target/riscv/cpu.c | 2 +- tcg/region.c | 3 ++- 5 files changed, 12 insertions(+), 12 deletions(-)