From patchwork Thu May 21 16:39:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Foley X-Patchwork-Id: 187041 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1722557ilb; Thu, 21 May 2020 09:59:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXArAenlcLDI9mSLy6zxS2bUVu1j2u96xFr2MGolCJtc6q0TCQcR8+lRx8IZ8q2zzYzXBI X-Received: by 2002:a5b:185:: with SMTP id r5mr13153377ybl.39.1590080347780; Thu, 21 May 2020 09:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590080347; cv=none; d=google.com; s=arc-20160816; b=XHBSsa2cJGkD9+D7H2OKmff8gbpGiDNSB13Mtuk1oEZ6mjVvCg0eNyyP9nYPsg8859 YDN9wmQhuhT1SrgjCtq8JQreGeMHHOiYwUT5jvy3IPCjOakRn6RJja49b3RfqlWfmYEc uYYmjqkVSZ0GRwfg9J5IORoD9SfHFPJeLv4l4RZYs7rK0uvA0X1p3kATT5QGY4KR9R1e xh9F66Vl3IPSXqeGl9T7tGy3avhdoCL/ra05Ox3U080xlst39Opm5BPE6wJ9R6A9FDVT pa0XlH7q9RdDHYV6dsicNScxRVyRax02cRBfLg8n1KkCjEWrTr/VoU5YTGup+OJKPwMu z6kg== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=UAoGpC+tFU+Lrmci3F+3S0Zh/4YRyJd+sLsoLGG3MBc=; b=dCgRUaoeD5jc2zADqd7QysfMnUlfeY7CChzOIhtXMKCr+0SOlR5blhi9/XpkW0keyk 1FekN3PW9rTn7IvRDqpJZvwyf9FJXT0BttsXwEaGAIPSCHP5Xz5LEsFMAKbpy9/JHW0o nuylI/O/5kIiQoPkHWmqP8hVijGZ134pSse625Da5ketvWiUzI2mo1SBTlFMO42jgEKU os5mx2DrCTVm5R5edlLnc2XnOzaZsvI3xFPGUP+AVps5aC5obfZvwY2HE7fP4tPeMAXN ys9a3+n+s+TN4Xgw1kdbDOYaPQR7Vtx8yAQv4laU4fzxY6cCTg0isiWqA+/1vqXKpJJ5 rCRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=e4bgSEXX; 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 r8si5413276ybk.487.2020.05.21.09.59.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 May 2020 09:59:07 -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=e4bgSEXX; 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]:34638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jboXD-00078w-8V for patch@linaro.org; Thu, 21 May 2020 12:59:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jboIi-0003Wz-Sp for qemu-devel@nongnu.org; Thu, 21 May 2020 12:44:08 -0400 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]:38186) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jboIh-0006at-Pb for qemu-devel@nongnu.org; Thu, 21 May 2020 12:44:08 -0400 Received: by mail-qk1-x742.google.com with SMTP id f189so7858946qkd.5 for ; Thu, 21 May 2020 09:44:06 -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 :mime-version:content-transfer-encoding; bh=UAoGpC+tFU+Lrmci3F+3S0Zh/4YRyJd+sLsoLGG3MBc=; b=e4bgSEXXYU4jtFQ+KAAONNIwceOG1mUgyJ1Ijww2v8IqnZ75dWoxmC3vc7sg10DIOY 59VDaLq9hcQnoVctSL+c6jjX+iu25CSkbIp0HyIRf958oqFyAXfpoY12bQQOhh4rw0vD tWStt+y7reh0SO+ZduntebBpRYejvrdF3FhcOZfCHeyZLmcRK8XSnqHKDUcJcKLhhAOH qzLRggIu5pI5/ndS3RQOAWu3m+FX+o3spCE4CIrwUJiXo5cbyOdko1FbHdIIPnxyOEgc 9IA++nfbtQQysJ5oH5phH93HnBJJBl9v4hD38X08yWa3xQ+QnuGvwud6KVOyYQ/NDd1E KCsA== 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:mime-version:content-transfer-encoding; bh=UAoGpC+tFU+Lrmci3F+3S0Zh/4YRyJd+sLsoLGG3MBc=; b=phpP1M1y5FG2ZJORwZaxXSqNuoyycbqq5A69Dmpa/Wg12VyQtAIY6opx2T2FU5s6ZV 2irdni9xkWsBeyzapJWm1eImalIjYQ8NvGzrMz7YFqOONyB2Ahx2i5BKCCZ/2k7xcBBa wlwPh2LpIX9JvY64rVO7PO2RPEQR0DAo9sQYF/xhyyVqWCii7jAQpaIQhS0kn2Rap7+V +r3MVkzogv/eM5gDOZPS+qFjmTIdx8+ZrbF/heigWAQiBNgKyN897m0NSVPeuQnP6G9N aa4o8fNWKY8U2aQFOHwjQ5DdqrdPitmUb/R1wSw7U74AD9lkv1iCIa5SwB1E+Z87Uf+a ttaQ== X-Gm-Message-State: AOAM531NVFBNQNGqZGQYJU4iM0Og2q/9faFv7Q1XoCWYwEUdUUNoylPd NrUMUTc9eMlQWdSohnAYrRxC4V4TzXlZMA== X-Received: by 2002:a37:9e06:: with SMTP id h6mr10566458qke.400.1590079445614; Thu, 21 May 2020 09:44:05 -0700 (PDT) Received: from Rfoley-MA01.hsd1.ma.comcast.net ([2601:199:4480:60c0:1944:c530:655c:5583]) by smtp.gmail.com with ESMTPSA id x24sm5923829qth.57.2020.05.21.09.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2020 09:44:05 -0700 (PDT) From: Robert Foley To: qemu-devel@nongnu.org Subject: [PATCH v9 38/74] openrisc: use cpu_reset_interrupt Date: Thu, 21 May 2020 12:39:35 -0400 Message-Id: <20200521164011.638-39-robert.foley@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200521164011.638-1-robert.foley@linaro.org> References: <20200521164011.638-1-robert.foley@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::742; envelope-from=robert.foley@linaro.org; helo=mail-qk1-x742.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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: robert.foley@linaro.org, richard.henderson@linaro.org, cota@braap.org, peter.puhov@linaro.org, Paolo Bonzini , Stafford Horne , alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Cc: Stafford Horne Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Paolo Bonzini Signed-off-by: Emilio G. Cota Signed-off-by: Robert Foley --- target/openrisc/sys_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/target/openrisc/sys_helper.c b/target/openrisc/sys_helper.c index 2615571ce7..e54c148d4f 100644 --- a/target/openrisc/sys_helper.c +++ b/target/openrisc/sys_helper.c @@ -167,7 +167,7 @@ void HELPER(mtspr)(CPUOpenRISCState *env, target_ulong spr, target_ulong rb) env->ttmr = (rb & ~TTMR_IP) | ip; } else { /* Clear IP bit. */ env->ttmr = rb & ~TTMR_IP; - cs->interrupt_request &= ~CPU_INTERRUPT_TIMER; + cpu_reset_interrupt(cs, CPU_INTERRUPT_TIMER); } cpu_openrisc_timer_update(cpu);