Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1011254iob; Wed, 4 May 2022 12:39:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0vre4fAG5+Orh/16a6e09o0Cv9F9R2rLjeluS6HYXrpEBCW4EYoPms0xYYJnTlXuoEGpE X-Received: by 2002:a17:902:ccc7:b0:15a:30ec:e8fa with SMTP id z7-20020a170902ccc700b0015a30ece8famr24048491ple.166.1651693159455; Wed, 04 May 2022 12:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651693159; cv=none; d=google.com; s=arc-20160816; b=dEXJf4Wyzm1VQHmbpGyg/wlkxih8ejti3YqG1YZdD8ebjS2V3wxiZpz6ZD8uAmvuiH BxZ1oMpZD7OmnbxWqPtTeCgysIPOqPgHzMBPu7BZFGC3KFkxIwIc7BzWN8FepooACtDU XMvQpXqyjkrYe2OvOYYfE4sCSgM3cEEXhPYpWsR7ZgN80Jyew70YXS3smvoBzChp24fm 5dJjuLvDyBTGHDjHHXCciMb2pePgEyXHCjV+3NYUUl79zhm12QnsHv+BM+MREVn9gXwt xGglRKfYYT1F6cslDryMR9lArDOJIJWehLLIg31U8hcvafY9w/pJ8MHMJcbu8ZO3QwWf lXdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Wv+QAKoXYa5FdarxsSFuATIydt8Bd7pDfEI2EBNpl4w=; b=f0xbzNS7erWA/sADfvwMowsnRcc0ueepHhz5lXn+kMNE3QniWxvWmjj8DGHv61WQbh 8cKrgL7CJ696NQqefgHAGbrcEwilxc0fF445WFS1gHNY6iFVOO2WC70zQZZmeSXzobT+ VHhls4PLSG/Gan6JThNoRC7arNikFpVhcWtYGDSTwmu8HnpRrfx8begFDrc/Ue7gBCoA bUeah1NfW3kU5k78Pd0Xhhvmk6+8RwpvIb63HUhmgp0iV5prP4Sg7ytdc356znrrPont z2SUg+TZjZ4DAjVnTx3d07LkRhPQwu+yDRRj3Mt3kTIrlgNB1UWsqiB2OPNZM5sMHIit mN9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=SuY9kwWJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020a17090ad3c700b001d952fffcfcsi5571035pjw.31.2022.05.04.12.39.03; Wed, 04 May 2022 12:39:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=SuY9kwWJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348571AbiEDLM6 (ORCPT + 99 others); Wed, 4 May 2022 07:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234023AbiEDLM5 (ORCPT ); Wed, 4 May 2022 07:12:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 400ED24584 for ; Wed, 4 May 2022 04:09:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E6153B822B7 for ; Wed, 4 May 2022 11:09:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20658C385A5; Wed, 4 May 2022 11:09:19 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="SuY9kwWJ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1651662557; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Wv+QAKoXYa5FdarxsSFuATIydt8Bd7pDfEI2EBNpl4w=; b=SuY9kwWJM1EIf1QWdAd/lGEHlbhD2ZeYQZEj3eVFlGzs13BK+GhoAvnS+nGEi8pFHhGleV L2S5UugRxXXBOF9OnI0Snou2KsnSIPPEtSqSR6YhCdCVNeba1lW7EC1Iwb2WY7w4T8bUHI AvCkCWnRYZWvz5KAGEDsD/ZpMdmwqPQ= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 2558d3b2 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 4 May 2022 11:09:17 +0000 (UTC) From: "Jason A. Donenfeld" To: openrisc@lists.librecores.org, linux-kernel@vger.kernel.org Cc: "Jason A. Donenfeld" , Stafford Horne Subject: [PATCH] openrisc: remove bogus nops and shutdowns Date: Wed, 4 May 2022 13:09:11 +0200 Message-Id: <20220504110911.283525-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nop 42 is some leftover debugging thing by the looks of it. Nop 1 will shut down the simulator, which isn't what we want, since it makes it possible to handle errors. Cc: Stafford Horne Signed-off-by: Jason A. Donenfeld --- arch/openrisc/mm/fault.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/openrisc/mm/fault.c b/arch/openrisc/mm/fault.c index 80bb66ad42f6..860da58d7509 100644 --- a/arch/openrisc/mm/fault.c +++ b/arch/openrisc/mm/fault.c @@ -223,8 +223,6 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long address, { const struct exception_table_entry *entry; - __asm__ __volatile__("l.nop 42"); - if ((entry = search_exception_tables(regs->pc)) != NULL) { /* Adjust the instruction pointer in the stackframe */ regs->pc = entry->fixup; @@ -252,9 +250,6 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long address, */ out_of_memory: - __asm__ __volatile__("l.nop 42"); - __asm__ __volatile__("l.nop 1"); - mmap_read_unlock(mm); if (!user_mode(regs)) goto no_context; -- 2.35.1