From nobody Mon Feb 9 19:08:22 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1539913159033526.4221495807427; Thu, 18 Oct 2018 18:39:19 -0700 (PDT) Received: from localhost ([::1]:46059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDJkq-00007U-QY for importer@patchew.org; Thu, 18 Oct 2018 21:39:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDJFl-0004pQ-1H for qemu-devel@nongnu.org; Thu, 18 Oct 2018 21:07:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDJFj-0003KK-A9 for qemu-devel@nongnu.org; Thu, 18 Oct 2018 21:07:00 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:48005) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gDJFi-00032C-Rc for qemu-devel@nongnu.org; Thu, 18 Oct 2018 21:06:59 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 75AA922975; Thu, 18 Oct 2018 21:06:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 18 Oct 2018 21:06:33 -0400 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 2006D102E9; Thu, 18 Oct 2018 21:06:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h= from:to:cc:subject:date:message-id:in-reply-to:references; s= mesmtp; bh=oQj9wa70Ll28eo0vdVBtQJF2RZ6OSOude8mT0dA6flc=; b=AwRJC c2qzdmCdAEvi9lIgeVW7HAFE3nTn3guCqGfuO4CQRInokR1MoJu+F+wwDQ/AnEyQ DNf3wk71bZ8HuO/66jW232LIR+EQfpGS+MADbPgwgCnmxIBPJH/iCNJnfvw+buVn baF+QhUmNu3XZ1sruS3fAXbg5k2QVsqqMTKjA4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=oQj9wa70Ll28eo0vdVBtQJF2RZ6OS Oude8mT0dA6flc=; b=IkrpgkskF3gzGctKRuzS6/WEW3EhWkho0UKvndERZRi0T DUKM/Yg2MPz2MsCf4yfuzE93Ca22U89clRaFg6LqfrmtIqI3H+4/DEhqu36e+Vs1 muKzTWpD4UHLq/e1gt4RP2BHzotZ2Tvs9/6rWGB5ZrhlI2pj+ZqkwM3aAr50jIc5 tMkrPLq/HKCLOxxkNlUu9kHjsrVMw2t8Y2fQ8eAOKdyPtHFuy8MhMmwKwVJQm/4t ZyEkXkQDwq3GC7hzlR7DP1WaHeqsPoK74mvKa/N6muFeXUGeUMc4BV4ZnCSywi87 SdoAuayoWNjt3zNIbreu8JRCMa3qF8nEeZcrsd35Q== X-ME-Sender: X-ME-Proxy: From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Thu, 18 Oct 2018 21:06:02 -0400 Message-Id: <20181019010625.25294-34-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181019010625.25294-1-cota@braap.org> References: <20181019010625.25294-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.29 Subject: [Qemu-devel] [RFC v3 33/56] cris: convert to cpu_interrupt_request X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , "Edgar E. Iglesias" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Cc: "Edgar E. Iglesias" Signed-off-by: Emilio G. Cota --- target/cris/cpu.c | 2 +- target/cris/helper.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target/cris/cpu.c b/target/cris/cpu.c index a23aba2688..3cdba581e6 100644 --- a/target/cris/cpu.c +++ b/target/cris/cpu.c @@ -37,7 +37,7 @@ static void cris_cpu_set_pc(CPUState *cs, vaddr value) =20 static bool cris_cpu_has_work(CPUState *cs) { - return cs->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI= ); + return cpu_interrupt_request(cs) & (CPU_INTERRUPT_HARD | CPU_INTERRUPT= _NMI); } =20 /* CPUClass::reset() */ diff --git a/target/cris/helper.c b/target/cris/helper.c index d2ec349191..e3fa19363f 100644 --- a/target/cris/helper.c +++ b/target/cris/helper.c @@ -116,7 +116,7 @@ int cris_cpu_handle_mmu_fault(CPUState *cs, vaddr addre= ss, int size, int rw, if (r > 0) { qemu_log_mask(CPU_LOG_MMU, "%s returns %d irqreq=3D%x addr=3D%" VADDR_PRIx " phy=3D%x= vec=3D%x" - " pc=3D%x\n", __func__, r, cs->interrupt_request, address, + " pc=3D%x\n", __func__, r, cpu_interrupt_request(cs), addr= ess, res.phy, res.bf_vec, env->pc); } return r; @@ -130,7 +130,7 @@ void crisv10_cpu_do_interrupt(CPUState *cs) =20 D_LOG("exception index=3D%d interrupt_req=3D%d\n", cs->exception_index, - cs->interrupt_request); + cpu_interrupt_request(cs)); =20 if (env->dslot) { /* CRISv10 never takes interrupts while in a delay-slot. */ @@ -192,7 +192,7 @@ void cris_cpu_do_interrupt(CPUState *cs) =20 D_LOG("exception index=3D%d interrupt_req=3D%d\n", cs->exception_index, - cs->interrupt_request); + cpu_interrupt_request(cs)); =20 switch (cs->exception_index) { case EXCP_BREAK: --=20 2.17.1