Re: [PATCH bpf-next v2 6/8] arm32, bpf: add support for 64 bit division instruction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 06, 2023 at 06:33:18PM +0000, Puranjay Mohan wrote:
> +	/* Recover {R3, R2} and {R1, R0} from stack if they are not Rd */
> +	if (rd[1] != ARM_R0 && rd[1] != ARM_R2) {
> +		emit(ARM_POP(BIT(ARM_R0) | BIT(ARM_R1)), ctx);
> +		emit(ARM_POP(BIT(ARM_R2) | BIT(ARM_R3)), ctx);
> +	} else if (rd[1] != ARM_R0) {
> +		emit(ARM_POP(BIT(ARM_R0) | BIT(ARM_R1)), ctx);
> +		emit(ARM_ADD_I(ARM_SP, ARM_SP, 8), ctx);
> +	} else if (rd[1] != ARM_R2) {
> +		emit(ARM_ADD_I(ARM_SP, ARM_SP, 8), ctx);
> +		emit(ARM_POP(BIT(ARM_R2) | BIT(ARM_R3)), ctx);
> +	} else {
> +		emit(ARM_ADD_I(ARM_SP, ARM_SP, 16), ctx);
> +	}

As mentioned in the continuing discussion of the previous patch series,
all these cases aren't reachable.

Thanks.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux