From patchwork Thu Mar 26 19:30:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Foley X-Patchwork-Id: 184884 Delivered-To: patch@linaro.org Received: by 2002:a92:de47:0:0:0:0:0 with SMTP id e7csp457580ilr; Thu, 26 Mar 2020 12:50:26 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuCvkShXQgMACEu9Pd76pghRN+QVDMwBGjS9vH99afmnbb2n041sb6QyrRSZ76bYBifIOkm X-Received: by 2002:a37:5209:: with SMTP id g9mr10452554qkb.237.1585252225883; Thu, 26 Mar 2020 12:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585252225; cv=none; d=google.com; s=arc-20160816; b=y937qP2jT//wuNQUzwCZTW3ye1Sir7zj6kg+muG8aUcfi0/OXni4/OZRAuxz2G14P6 1WHDOAvH70vWBXWX0KF9WMTO59Ll7Oos3LtSIts4rr4/BBjQHSOzRPDpaGZ99leqq1Je abvupYZ/TaIyh36wZjCTbl1msttvPjSFw7F/u9TNT1HksiVzkWuB5R3kjdPuagpdJFk+ kfjKcXrDCSkHVn4oJNJxV++Kq8wUMTYQhky+zR/i7bIPgoA6shmR3mWPn64P5lkaczsm vGTKOd0ahVqbIQYfRCMWcrzGNQ49roMZyrcSdsY2vzFIGb2RlaSKo85ZkPchvP77yEXM NW+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=Ja5jtqBc7H99f27FAjdrB7FncoyyAxec67WX9+PhDps=; b=ZUhco4U1sRGUkVP9/SkWkANqNkuwSApIb2idxvsFeeet9P24Yj6pcu/QU7HIk5YWk5 S19QhR9OBuwnw4Ip3OvdYbfxVZh6DcA6l11psYh3do8clcNdN6jUfFdfR0zHq1AMMSFn e6EcI8+SV5RhPtYui4amKPZd2EEZSaKsbYd4GdQG3/RuzW18IqpPjUmuqE5tZwPo4mHb ZFdZbrrB2tIHFfssQchBjwWL6R0rqfqY0L1Jm2AWB+xCPeqt5k14v7L7PP2wk4cvDgXg h5YTWNFsy8Ox0u10cDm4TSOCPhI6sToCn0TH7aaJ67edjlf/m+ZMTIPZERp+fe23ksag 5cnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NQfygxxJ; 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=fail (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 p21si2075853qkj.34.2020.03.26.12.50.25 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Mar 2020 12:50:25 -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=fail header.i=@linaro.org header.s=google header.b=NQfygxxJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:58946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHYWH-0003MX-B6 for patch@linaro.org; Thu, 26 Mar 2020 15:50:25 -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) 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-Received: by 2002:ac8:748d:: with SMTP id v13mr10390444qtq.390.1585251474881; Thu, 26 Mar 2020 12:37:54 -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) 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Robert Foley --- hw/semihosting/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 Reviewed-by: Alex Bennée 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 user_data) { CPUState *cs = (CPUState *) data; /* cpu_handle_halt won't know we have work so just unbung here */ - cs->halted = 0; + cpu_halted_set(cs, 0); qemu_cpu_kick(cs); } @@ -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 = g_slist_prepend(c->sleeping_cpus, current_cpu); - current_cpu->halted = 1; + cpu_halted_set(current_cpu, 1); current_cpu->exception_index = EXCP_HALTED; cpu_loop_exit(current_cpu); /* never returns */