Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp151287iob; Wed, 11 May 2022 11:20:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1DcTKTRF23wZsce8cUCsN8/iJxj6lfx7eh7PchVMu77IKRAeELUrXJacmGyOo/tcrBF/T X-Received: by 2002:ac8:5e47:0:b0:2f3:cb77:9046 with SMTP id i7-20020ac85e47000000b002f3cb779046mr22652364qtx.221.1652293225548; Wed, 11 May 2022 11:20:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652293225; cv=none; d=google.com; s=arc-20160816; b=wBzE7K8JFz2nL7qHnLAvbbFWE6gU/K1Wp/MzV7HDrgKFqmQydpU3DrY72XVcoOqahy BJ8r04Foh5bsQLR2NYxzI/nm4oK+BsSnlbcFiiHQ6k9hCl0dhZWakGIlbaKyrV2aPsvq TsYFbl8dR3O5dJgvDa6N6mq8AeyPFOUz9UA4vAnz+WrIFd/RFhRojebP903BkhX1Y+Wn +cUe/ZQsCYXCW09KBakLAnte6C7xicYGTQy3sN32nXPR6PjafNOTi+nq2gbQD+nXUnKj n78ZrmAhhFi0stycE0wy+cyM6izYbGgfNwSS9RuElEIK5+ghn90OtftUUYbnnjBtDiwY /eGA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=U2b6O7wlGoOuZ+vlwUPed/7D6Hm5L5yvD+oSIqSTMak=; b=N5U6FuxkTf+3mVCWQ1SL92WSXFAK+t+ZLt4qfCdBt065H/gQV0q4eGn4aBsUaPvOO2 mBuSULDw1JT4ujft9TV6vZc6LxHObBljJTeSXv+7JiBxWUHyqU5eBcK7+ISwQA9X6IkM h2/mGp6mLwhrDCyUEW8qEwkA7HKicf/mvApd0WO+3u75/qyLN/O+liBBEhOU5XAwBXO4 FAbTsrqlY03WBCjcYxwiBhdCgfUiM6tYLxUGfxGU+BzVu81nAYDl1vMDc4Qmxd50uj9+ Jf93tc8ye67B8ZejwSN63uYLVnX9V51GtOW6LXOmmlUZ/5A2Nq/Fx6KH4QrXQtWVtbuh lFnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b="JXu/c1yF"; 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 y68-20020a376447000000b006a024f9020esi1470790qkb.525.2022.05.11.11.19.53; Wed, 11 May 2022 11:20:25 -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="JXu/c1yF"; 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 S243843AbiEKNgP (ORCPT + 99 others); Wed, 11 May 2022 09:36:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243872AbiEKNgC (ORCPT ); Wed, 11 May 2022 09:36:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 728E7193FC for ; Wed, 11 May 2022 06:36:00 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 05AAB61BF3 for ; Wed, 11 May 2022 13:36:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05143C34110; Wed, 11 May 2022 13:35:58 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="JXu/c1yF" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1652276157; 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: in-reply-to:in-reply-to:references:references; bh=U2b6O7wlGoOuZ+vlwUPed/7D6Hm5L5yvD+oSIqSTMak=; b=JXu/c1yFt16MmF9DQgOXA6W+ISRsoFc5CXVH46qcrrewAPQc71J16m3OIVSHKoCsgtS9/e xrlRoc32l9eYtYXxKjzjcRi9uEIrAF68g9eTcCnNMse6WlGPaj0A3gVqNUVFUX8rfVHsEl k2XYW+oDqpdPXRYCGPsJ9cSCX64/Aj0= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 4dd239f1 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 11 May 2022 13:35:56 +0000 (UTC) From: "Jason A. Donenfeld" To: openrisc@lists.librecores.org, linux-kernel@vger.kernel.org Cc: "Jason A. Donenfeld" , Stafford Horne Subject: [PATCH v2] openrisc: remove bogus nops and shutdowns Date: Wed, 11 May 2022 15:35:50 +0200 Message-Id: <20220511133550.143236-1-Jason@zx2c4.com> In-Reply-To: References: 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, URIBL_BLOCKED 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 impossible to handle errors. Cc: Stafford Horne Signed-off-by: Jason A. Donenfeld --- Changes v1->v2: - Fixed typo in commit message. 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