Message ID | 20221224235720.842093-8-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:906:1189:b0:7d5:1b03:224a with SMTP id n9csp1281674eja; Sat, 24 Dec 2022 16:18:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXt2/MfUlsgfGrQiHg7a9luvndSnT5HS56RUlYLmdK4j99kXiQEEOMUhyzKixugdnQPEbnWI X-Received: by 2002:ac8:4b44:0:b0:3a7:ff64:8c00 with SMTP id e4-20020ac84b44000000b003a7ff648c00mr16634085qts.22.1671927371712; Sat, 24 Dec 2022 16:16:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671927371; cv=none; d=google.com; s=arc-20160816; b=pUJqypxriAn3OsJeAKpHeUfr+MtVfoW2keehRdjS+u7f+hO/gBRSZRD/hugdy0p7zE fobePJvGHgD/wnFiHli2qD5MfJvGfdaqY7uW9Nxib/vVpCjhczTgjp7oUrL296E7B/7d z7saskRUYBHWbL0z7y+O8xFWI/VDAQscPg+ldEuolo67xpWaQU4pTHk7xrg1Z5uPGuSC rml1MrmQV9zL7pKq56gAmWKYEbjAXaHvxB+BVWtgnct1CMdUJD2/NVIECXnKR/j8tCdm /jejTpltEkRw6MvcRT3GlX88lQOJnWstCaO9A9DUtFFwn3I4YDQHWgEN4GSt9hejQ1O1 RTwQ== 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=pj3A1RydZ5k++XJlvrH6d1P1H8txrpAYpf5yEofm078=; b=eGV+7ZHL/e1aRwgNznuV6Ff1AaZHfOUjyaoI0B7BwqNBfv5QTKnCIyvdNlos+HWSiS +GQq4OyuErpADd0mZWkOPNVQwJJNoV2Fpk2QQqHzYVL15dMIIHQ3UUWedItUyacLWH2t grlnYx+j10zR2d5nChRYeAkzjfX+iDwnbaerfA6cE+2BFPuHxhrFgBwJEMBW6R9ehFld BbkvTRA6UqYfKQNPNnX702Krcit/fGzhhhdwew47RTHIzGRgkCP2Btqao9pjzD49BfQx dE26tvzgmbpx6f/mmpOlEp43Nss/usXLP+ltpMy17Z37T4AQc54MqXOe3t0ASLmNtkTw GKKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZPvPDBrD; 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 e26-20020ac8491a000000b003a7ed317a2dsi2638066qtq.115.2022.12.24.16.16.11 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 24 Dec 2022 16:16:11 -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=ZPvPDBrD; 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-0002Ia-9J; 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 1p9EOS-0002HQ-NJ for qemu-devel@nongnu.org; Sat, 24 Dec 2022 18:57:32 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) 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 1p9EOQ-0006Gx-Of for qemu-devel@nongnu.org; Sat, 24 Dec 2022 18:57:32 -0500 Received: by mail-pj1-x1030.google.com with SMTP id hd14-20020a17090b458e00b0021909875bccso10213681pjb.1 for <qemu-devel@nongnu.org>; Sat, 24 Dec 2022 15:57:30 -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=pj3A1RydZ5k++XJlvrH6d1P1H8txrpAYpf5yEofm078=; b=ZPvPDBrD3LjzYd+bOA2jDhlPFyel6/LPi78k5RWOeLH1Pdi+39AS63232BDTb8S0GE +BbjqjRchmxJofsjqrQWbO2wKWOv2wT4/izZ7drTfqXjZ0I7hDZEy0YoLNW0+syAduC2 eZydlM9uY3JzhXmqlvdHrh4BfTJ035UjTw016LS0b5Rx0mV33vzYtij/32sBWLzx/Tw/ g+im1DYDNLSsZxBhZ5TUrxFVK4LiLXhQ/4HJjjg7yPS5gi1Y0mRr+rODejdVtTOF9CTC jxrQtKY9mknJJTxqY7zMRiaTRwnntdeveJDnhcLu9zCJeE4Ny+jwgixm1vT2oQMvyCo9 0SBQ== 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=pj3A1RydZ5k++XJlvrH6d1P1H8txrpAYpf5yEofm078=; b=YUlDgyRBccp9K/i2gjuaIEHJS3oiHEBY53UjP1CPvnDV4/KHzhgUDLm3ALiGSgbzRm 4Ht3YNILI2pB09poXYu8WW0lgi3pz8Js5n61nCqtjPRjreeLA1oAt5NY87x1W7cbtgF9 azwYda04w0gnh5n5JNH6IOgEU00HAhO9Gxv5tILYURwn/Kg7rlxQ8yG3p3AA0pbLcOIB UeU9hJangIoIETGpUzbl3iFqgyjlySO42HIsISGzAa4t0wQlE17JgNll6SsonYQrbzwb 1oAh8SpBXsPrI6etl2UzJW4aRH/xB0HAmas9pbwfMn5fWLmu82VZo3RZhZ95W3wpB6a5 1OlA== X-Gm-Message-State: AFqh2koIp+zl5ATtwQM/xMv/eA/6RnX7MVrFKsz6sonu7NT/w4Hnp8yh GWIHQSUJVZwkNakh2nZPDvNXch2QUtQq/Mox X-Received: by 2002:a17:902:e944:b0:189:d8fb:1523 with SMTP id b4-20020a170902e94400b00189d8fb1523mr17004857pll.36.1671926249349; Sat, 24 Dec 2022 15:57:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Dec 2022 15:57:28 -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 07/43] target/ppc: Use QEMU_IOTHREAD_LOCK_GUARD in ppc_maybe_interrupt Date: Sat, 24 Dec 2022 15:56:44 -0800 Message-Id: <20221224235720.842093-8-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::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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/excp_helper.c b/target/ppc/excp_helper.c index add4d54ae7..287659c74d 100644 --- a/target/ppc/excp_helper.c +++ b/target/ppc/excp_helper.c @@ -2163,22 +2163,13 @@ static int ppc_next_unmasked_interrupt(CPUPPCState *env) void ppc_maybe_interrupt(CPUPPCState *env) { CPUState *cs = env_cpu(env); - bool locked = false; - - if (!qemu_mutex_iothread_locked()) { - locked = true; - qemu_mutex_lock_iothread(); - } + QEMU_IOTHREAD_LOCK_GUARD(); if (ppc_next_unmasked_interrupt(env)) { cpu_interrupt(cs, CPU_INTERRUPT_HARD); } else { cpu_reset_interrupt(cs, CPU_INTERRUPT_HARD); } - - if (locked) { - qemu_mutex_unlock_iothread(); - } } #if defined(TARGET_PPC64)