From nobody Fri Nov 14 06:45:23 2025 Delivered-To: importer@patchew.org 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; Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1585252290; cv=none; d=zohomail.com; s=zohoarc; b=P9RfiEFa3Q/8vUa3HLVwYnnQmR2QeDzsrLNQ1Y62dOkwfpkFD4vLO9lmr2etvthUmof5SvNBFUPItp0lp6McZ0C4fICyufr1lpGaj84prTpLwuk/KjrnY/clBqyYeOX0cyK+dKO2LQZnjcuvytK/Jo8Ri8vZUWfrP85gCzTYMsc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585252290; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=Ja5jtqBc7H99f27FAjdrB7FncoyyAxec67WX9+PhDps=; b=GdyvJIBbLlkox9OwyrQs0zi69xAkawJUUFc01XZ6ghsuznNX8jEfsOwvCU6/6/qV7QBx4wahE+iGJIGsqPgxIPxQl2wmTNmKbkpNjV5IcCVR4lukAzGpQMD2dHJA8Iw+lbQ3z4aBnjt3x67yq63dAjKnpTbbs6AuXwARCRt7JIw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1585252290990307.5663058244478; Thu, 26 Mar 2020 12:51:30 -0700 (PDT) Received: from localhost ([::1]:58984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHYXH-00053W-S9 for importer@patchew.org; Thu, 26 Mar 2020 15:51:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58572) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHYKC-0006ZZ-TA for qemu-devel@nongnu.org; Thu, 26 Mar 2020 15:37:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHYKB-0001Vf-Qg for qemu-devel@nongnu.org; Thu, 26 Mar 2020 15:37:56 -0400 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]:42621) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHYKB-0001VM-Mg for qemu-devel@nongnu.org; Thu, 26 Mar 2020 15:37:55 -0400 Received: by mail-qt1-x844.google.com with SMTP id t9so6522247qto.9 for ; Thu, 26 Mar 2020 12:37:55 -0700 (PDT) Received: from Rfoley-MA01.hsd1.ma.comcast.net ([2601:199:4480:60c0:fd55:4e67:1038:8302]) by smtp.gmail.com with ESMTPSA id u51sm2161916qth.46.2020.03.26.12.37.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 12:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ja5jtqBc7H99f27FAjdrB7FncoyyAxec67WX9+PhDps=; b=NQfygxxJFmusy3RgjUq6zaZAmnBBDKaMp47ANLxKsvYwyQyB7p3Sm9NZa37/ruJdmY 80uErA9Muspj+zA9p8glIeK9uzQr4AMhnVT4+ZleafJJ7/fsjgSLQkxm3AV0n/gsrhe6 9g9KWzJvtX4tq0LbBO6IquZT7NvoGIVLDaP0puI9l5LeMu3pBkbL8G3O29r/Ib1x/UIw cHQ2nxzWPRR8L2sA25XRHa1NCv01Aj1QeL3M3InKzo8BToNHabemn4e1whlwi1x5ot5i MsEDRaCWQE2TphWcNPGg92SDU8QnhY+96P+DobOGrIyUIfILpbx5Jbl/H21DIvqvO79u h+ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ja5jtqBc7H99f27FAjdrB7FncoyyAxec67WX9+PhDps=; b=bz/km7Vcn8rrEPAUUXNvo90HZHE7006YZHOicTBcvsHXLN2E3fSY9XSiPi7gQ1sh2a 5krRi00WIodOl1YTQmZyAhxop91I4LRuFcFZv9zBzXyeaw9wxSNdIcdpFPZ8b8jroI6U +BeN6Um49o9mrG7ZqS2xInIweiWoFaPL4XzvD7Jt0oqWG8pfxi78bq23LPf14sl4iUq4 BtikRFEt55bViMc7lBn2+Auc9mk6Pm4PjpiBI8BTdztV4zLVFup7JBk/9YC0fkXaJ17C habXEgJpwmA9WCXK+TEaZhHNNT6l4Krsp5IWOcuiU56grT6ApQxEHX6G6Yw8OL3xH5Et 1bCQ== X-Gm-Message-State: ANhLgQ1qTYyCvCZmrvkgyPEclcgHoOcR9UscAEbA9JjIGbmqSrJ/YLIA oukmgllwGqkXPkYqKwaln5nnTv2Fz/6+Vg== X-Google-Smtp-Source: ADFU+vuzsVUqu/6su+glkGW68YG5QEMpQr4BZoUGrl5JGBUa2VHJiuB1fViFIF9cwJq7WmawEsG8ow== X-Received: by 2002:ac8:748d:: with SMTP id v13mr10390444qtq.390.1585251474881; Thu, 26 Mar 2020 12:37:54 -0700 (PDT) From: Robert Foley To: qemu-devel@nongnu.org Subject: [PATCH v8 17/74] hw/semihosting: convert to cpu_halted_set Date: Thu, 26 Mar 2020 15:30:59 -0400 Message-Id: <20200326193156.4322-18-robert.foley@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200326193156.4322-1-robert.foley@linaro.org> References: <20200326193156.4322-1-robert.foley@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::844 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: richard.henderson@linaro.org, alex.bennee@linaro.org, robert.foley@linaro.org, peter.puhov@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Robert Foley Reviewed-by: Alex Benn=C3=A9e --- hw/semihosting/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/semihosting/console.c b/hw/semihosting/console.c index 6346bd7f50..f70085f3c1 100644 --- a/hw/semihosting/console.c +++ b/hw/semihosting/console.c @@ -131,7 +131,7 @@ static void console_wake_up(gpointer data, gpointer use= r_data) { CPUState *cs =3D (CPUState *) data; /* cpu_handle_halt won't know we have work so just unbung here */ - cs->halted =3D 0; + cpu_halted_set(cs, 0); qemu_cpu_kick(cs); } =20 @@ -154,7 +154,7 @@ target_ulong qemu_semihosting_console_inc(CPUArchState = *env) g_assert(current_cpu); if (fifo8_is_empty(&c->fifo)) { c->sleeping_cpus =3D g_slist_prepend(c->sleeping_cpus, current_cpu= ); - current_cpu->halted =3D 1; + cpu_halted_set(current_cpu, 1); current_cpu->exception_index =3D EXCP_HALTED; cpu_loop_exit(current_cpu); /* never returns */ --=20 2.17.1