lkml.org 
[lkml]   [2023]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] MIPS: ebpf jit: Implement R4000 workarounds
On Mon, 27 Feb 2023, Johan Almbladh wrote:

> > > R4000 is a 64-bit CPU, so the 32-bit JIT implementation will not be
> > > used. From the Makefile:
> > >
> > > ifeq ($(CONFIG_32BIT),y)
> > > obj-$(CONFIG_BPF_JIT) += bpf_jit_comp32.o
> > > else
> > > obj-$(CONFIG_BPF_JIT) += bpf_jit_comp64.o
> > > endif
> >
> > It’s common practice to run 32-bit kernel on R4000 based systems to save some memory :-)
>
> Ok, I understand.

Likewise:

select CPU_R4000_WORKAROUNDS if 64BIT
select CPU_R4400_WORKAROUNDS if 64BIT

This only applies to 64-bit operations, which are not used in 32-bit code
(one reason why these early silicon revisions were originally used with
32-bit software only).

Maciej

\
 
 \ /
  Last update: 2023-03-27 00:37    [W:0.064 / U:3.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site