[PATCH] ARM: net: JIT compiler for packet filters

Nicolas Pitre nico at fluxnic.net
Mon Dec 19 12:42:49 EST 2011


On Mon, 19 Dec 2011, Mircea Gherzan wrote:

> +static inline void _emit(int cond, u32 inst, struct jit_ctx *ctx)
> +{
> +	if (ctx->target != NULL)
> +		ctx->target[ctx->idx] = inst | (cond << 28);
> +
> +	ctx->idx++;
> +}

You might consider the patch titled "ARM: Add generic instruction opcode 
manipulation helpers" that Dave Martin just posted and rely on it to 
make your code compatible with BE8 mode as well.

Also it seems that you are making the distinction between pre-ARMv7 and 
ARMv7+ while in most cases it should be pre-ARMv6 and ARMv6+


Nicolas



More information about the linux-arm-kernel mailing list