Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4181092ybv; Tue, 25 Feb 2020 14:56:32 -0800 (PST) X-Google-Smtp-Source: APXvYqzsaLGNTPJNzPP52ByjAqdkm3sz07Ercoj47euKP14CnH2ehLDZ+nhUz/wzyf9nFqF9pXiY X-Received: by 2002:aca:f05:: with SMTP id 5mr950935oip.140.1582671392741; Tue, 25 Feb 2020 14:56:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582671392; cv=none; d=google.com; s=arc-20160816; b=cJzpRBJYec+zSfRcMhZG5ZZ4aCV3gSsupyMWR5rB9Du7+KiDLKN2Ih343iyMePzQpq oBFsMMyTaKlCWh3RxpbnWOIMGDaisDdadiX0fDrBg3tlLCYpHpY6oVnUrSunkaV20zYE 0Ph2lBC2au9BZOXPd41KpadiWhk2oJIbWtopk2do3yDQajg+NErjtFFLRx4Jpe6LLJVw 0U3ox7vY0nGCe532QxbbbedNRJNGjNmnI1ho4kfueuZHVPHCiuQA1uCTpYrVVhOqDV68 493N0xPRg/rjBxCL5iGFiMyioO3Rw43l5lRO6hUQO83s73yQm8n0MNU+GcTpOMRDBWGF 4ngA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+h9xKlFLgYhEyczCaUyPJkZiCHIfoFvJ1ayPYu405TU=; b=BO6qm7pEDt0Wi/Zs9yhy/yeD9mdHONBrU6SqgEiHMcQ3ADJCo8fM4/l7KCMXV+fXIM w7J2GV07tgonm4sbSF1EFTIC0+sgqk/h3a8LgxAxDKd94S3FYjpY/zNzcy+9z1ZfOQBi qZG8xqX6Y8hsyMCu6kX5VwfSpX2sEKNW/5uHq6xYeXvuZDQe0BF1TrVuMCeeWVfhOOwC NjTYy+8d2s6C777kActJ//e6P3q2uyIWoQ/eQNlTXk/stW/n3uyXV92syIwv7rectlxj 87bW7RNzHhkP+bD5duD8DWqChAV6Sx9OQQnVjbMwZ+ZtEcNHzZTWglijwQQQXwrff9L/ jDig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="FQ/lLUfP"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si154949oti.126.2020.02.25.14.56.20; Tue, 25 Feb 2020 14:56:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="FQ/lLUfP"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729170AbgBYW4P (ORCPT + 99 others); Tue, 25 Feb 2020 17:56:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:33096 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726827AbgBYW4O (ORCPT ); Tue, 25 Feb 2020 17:56:14 -0500 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9CE98222C2; Tue, 25 Feb 2020 22:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582671374; bh=+h9xKlFLgYhEyczCaUyPJkZiCHIfoFvJ1ayPYu405TU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FQ/lLUfPE3Y6iEMnJeFYI7O3bSpPJzYSqchqXbsWTptclbvzgEGni5KQIAtG/PLlV vpU7Ky6hZB6Ax9AP2F1g0JD8eyKcFm4h0KuGhEIFfDjJFvp782sb8WACyZP8D1iPnj wD+4rfre84YvKkNZ7h03gKiw8EQo3ha5dR+C+39s= Received: by mail-lj1-f178.google.com with SMTP id q8so770086ljb.2; Tue, 25 Feb 2020 14:56:13 -0800 (PST) X-Gm-Message-State: APjAAAVJnR+6+z+XnNcDWCIxrej0sWSLQRiUBmrY5ok5lvOfxagbhSTY pVI4paI00Nt52DrxdzT3ZJ6zrZPXYqFPC8B6bR0= X-Received: by 2002:a2e:b017:: with SMTP id y23mr759482ljk.229.1582671371753; Tue, 25 Feb 2020 14:56:11 -0800 (PST) MIME-Version: 1.0 References: <20200220041608.30289-1-lukenels@cs.washington.edu> In-Reply-To: From: Song Liu Date: Tue, 25 Feb 2020 14:56:00 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 bpf-next] RV32G eBPF JIT To: Luke Nelson Cc: Albert Ou , Alexei Starovoitov , Andrii Nakryiko , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Daniel Borkmann , Jiong Wang , Martin KaFai Lau , Networking , Palmer Dabbelt , Paul Walmsley , Song Liu , Xi Wang , Yonghong Song , bpf , linux-riscv@lists.infradead.org, open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 25, 2020 at 10:37 AM Luke Nelson wrote: > > > > I found a lot of common code between RV32G and RV64G. Can we move > > these code into a header file? > > Certainly! I was planning on doing this in a separate patch to minimize the changes > to the RV64 JIT. I can also do it in another revision of this patch if that seems like a better idea. I would recommend expand this patch into two patches: one patch moves common code to a header, the other adds logic for RV32G. Thanks, Song