Received: from mailapp01.imgtec.com ([195.59.15.196]:29715 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27009381AbbJEJvPhMgH5 (ORCPT ); Mon, 5 Oct 2015 11:51:15 +0200 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id D31EE77AD2F7C for ; Mon, 5 Oct 2015 10:51:07 +0100 (IST) Subject: Re: [PATCH] MIPS: BPF: Disable JIT on R3000 (MIPS-I) References: <1441481368.15927.0.camel@decadent.org.uk> <20151005092440.GA1389@linux-mips.org> From: Markos Chandras Message-ID: <5612480C.2040006@imgtec.com> Date: Mon, 5 Oct 2015 10:51:08 +0100 MIME-Version: 1.0 In-Reply-To: <20151005092440.GA1389@linux-mips.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: linux-mips@linux-mips.org Message-ID: <20151005095108.urzSvek5QA4ob4QcN7LEZSV5YQ1MKx462dErPgq__wg@z> On 10/05/2015 10:24 AM, Ralf Baechle wrote: > On Sat, Sep 05, 2015 at 08:29:28PM +0100, Ben Hutchings wrote: > >> The JIT does not include the load delay slots required by MIPS-I >> processors. > > See 0c5d187828588dd1b36cb93b4481a8db467ef3e8 (MIPS: BPF: Fix load delay > slots.) for a proper fix. Since this patch didn't make it to the LMO and never discussed, i must say that it's probably not complete. The bpf_jit.c code also emits load instructions (for example see emit_load_imm). So I guess you need to extend your patch to cover the C code as well. -- markos