Message ID | 20221224235720.842093-9-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp932809pvb; Sat, 24 Dec 2022 16:13:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXvPyQ0ZyUaLAmeEh9caicgFmEBzQo+RiqbDyBBupds8AQgfx2SbMKBGO4xzkUGBmJgQpPod X-Received: by 2002:ac8:4682:0:b0:3a7:f642:1d35 with SMTP id g2-20020ac84682000000b003a7f6421d35mr19095504qto.56.1671927220594; Sat, 24 Dec 2022 16:13:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671927220; cv=none; d=google.com; s=arc-20160816; b=D0PwhxUnU5ZM2NVFTKG4PEQZ7urQetTWKEY+wufvhpry1SBAbKHcdcvo8KZiHoWTaz Sexi/O5fiol6paLXQgpwH6FI02kWAdAHCEuTorC1ecG1Zoe4mWLGsrv1ec8Jo7owQFpJ ED1n8lh/5TYVFFqE485JYbB3aBs+lIYtQJ14gAPs/B4SfSTKDdj/3JQvwFvBBrN76FQU rkWSztHy2dVIvy+DHS0+xv4QmcW0IGg4hy2fJEP2/O3PqhpLb2bUIdCGvhjzsHfBS7cU S/ja08VBhiYW2n6hm041gPY+2xK7Kvup5PAYEMaT9TpTgLyMX3t47fu46uDeC+SaP6KD +UjA== 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=plDIoOrc/jMHxHch1a/joN0jkJOzT26vJ1hDyyzmh0Q=; b=Wkc8IK06czyPpCCkfipTeN3TduMkzELQgyPZQeHO8+Jr1jdEiWT8n/XkjHeSeJ1Z5C 057Mq9qx+k0hDBIYqT823Ajl7wtcNSEoPN9dc6TE2DyCVZfOEVM+egP309SWf2E8DWQh +vAUAe19LC47Ihonmvvx+nJ3+LJ9RGIQec9u33aG5JgtlBNcccaAG2sOlq5DVgdNHzRI 7rk768i9tXCn8A+V8dwMRUHl82Q5s0vGXILZ0Xb9Pgv6n334/PHjzMNz+XvA+RB8o/Cz /7wVcD/8ko5lFHBhEaeAGbY5fbqpE8p05T7bk9vRfEw7i2PVxGq2NkixQNczRIgpeSod xfPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SVJR9OLW; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bn40-20020a05620a2ae800b00704b2fde598si2614386qkb.585.2022.12.24.16.13.40 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 24 Dec 2022 16:13: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=SVJR9OLW; 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 <qemu-devel-bounces@nongnu.org>) id 1p9EOV-0002Id-AK; Sat, 24 Dec 2022 18:57:35 -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 <richard.henderson@linaro.org>) id 1p9EOT-0002Hw-Tw for qemu-devel@nongnu.org; Sat, 24 Dec 2022 18:57:33 -0500 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1p9EOR-0006Ge-L5 for qemu-devel@nongnu.org; Sat, 24 Dec 2022 18:57:33 -0500 Received: by mail-pl1-x62d.google.com with SMTP id 19so1057972plo.12 for <qemu-devel@nongnu.org>; Sat, 24 Dec 2022 15:57:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=plDIoOrc/jMHxHch1a/joN0jkJOzT26vJ1hDyyzmh0Q=; b=SVJR9OLWTPY0kvUpYdGN8umjNIccKQiPrX9sSCj8WfQ+pkdML+NAgj2fvTzqjqXw6e NyM8/quHvzzf1YgGFmdlMtVsFtxrbD+2cUnq4t0KgSR0iZ6x76Yf8IsIveG1W9hCwgv+ VZVuaBGgl/ROXlEKXgxKxSdugHb8EViOuUZ4lpaEgKAs5sdbVrqizJibvEPVPHgXt80w wydAfL7GpZdx8GfWMjMRjEpEa8d2jNPYD2raTuPzJH4Kze2XWpyWgB/FwkaQQL1l7oRR VmgjIeCnUy9+FjNw7ba2iHKQjHiujPb8x/O+dFVijanoa4vAiASNwxEScFz3SzINEQiq GkfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=plDIoOrc/jMHxHch1a/joN0jkJOzT26vJ1hDyyzmh0Q=; b=leVu2j3ZDf0Me8Q+oqwWN1UELOouLonvJDmu5yLfu1KqZHmSmvGuGskbJe6F/fwqyY Ko6besTHXfJh+kfngKNrDWyDfLLo/3omePe9ivw4h75SHPE3D3Ly2ayeoq0+AggL/N2b AU0donsiALk46x8TQkR8lIRittwpE8AseaZxn+i8H+GhmQ1ZXuGcD05AY7X8GQWACHpq 3iF1lmBi+gu8s0jEN8LtIqI8mA17yCssl3OPqNRBl0T/H6rhWR/UMg8LlJXxhZHiY/hC XKjDN5m6XmJ9bwFdEdfxxe6Glw5Lpj5PyEgQ9HV2udkC6l9kRWaNoL7JEajzcvME6tin S/ug== X-Gm-Message-State: AFqh2koCZx0bye6Pek/rzDcr0I9S2ryc7KdpVajYHr03qeAD0rIx6Hah zcjv+z5ojBBKGRBMFVfL3ucuNt1yB3o44HJ5 X-Received: by 2002:a17:902:e3d5:b0:192:6a20:3cb1 with SMTP id r21-20020a170902e3d500b001926a203cb1mr2945222ple.51.1671926250677; Sat, 24 Dec 2022 15:57:30 -0800 (PST) Received: from stoup.. (76-14-210-194.or.wavecable.com. [76.14.210.194]) by smtp.gmail.com with ESMTPSA id cp12-20020a170902e78c00b00187022627d7sm4599716plb.36.2022.12.24.15.57.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Dec 2022 15:57:30 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org, philmd@linaro.org, Daniel Henrique Barboza <danielhb413@gmail.com> Subject: [PATCH v5 08/43] target/ppc: Use QEMU_IOTHREAD_LOCK_GUARD in cpu_interrupt_exittb Date: Sat, 24 Dec 2022 15:56:45 -0800 Message-Id: <20221224235720.842093-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221224235720.842093-1-richard.henderson@linaro.org> References: <20221224235720.842093-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg misc patches
|
expand
|
diff --git a/target/ppc/helper_regs.c b/target/ppc/helper_regs.c index c0aee5855b..779e7db513 100644 --- a/target/ppc/helper_regs.c +++ b/target/ppc/helper_regs.c @@ -22,6 +22,7 @@ #include "qemu/main-loop.h" #include "exec/exec-all.h" #include "sysemu/kvm.h" +#include "sysemu/tcg.h" #include "helper_regs.h" #include "power8-pmu.h" #include "cpu-models.h" @@ -203,17 +204,10 @@ void cpu_interrupt_exittb(CPUState *cs) { /* * We don't need to worry about translation blocks - * when running with KVM. + * unless running with TCG. */ - if (kvm_enabled()) { - return; - } - - if (!qemu_mutex_iothread_locked()) { - qemu_mutex_lock_iothread(); - cpu_interrupt(cs, CPU_INTERRUPT_EXITTB); - qemu_mutex_unlock_iothread(); - } else { + if (tcg_enabled()) { + QEMU_IOTHREAD_LOCK_GUARD(); cpu_interrupt(cs, CPU_INTERRUPT_EXITTB); } }