Re: [PATCH v9 06/17] target/riscv: zicfilp `lpad` impl and branch tracking

2024-08-26 Thread Alistair Francis
On Tue, Aug 27, 2024 at 1:33 AM Deepak Gupta wrote: > > Implements setting lp expected when `jalr` is encountered and implements > `lpad` instruction of zicfilp. `lpad` instruction is taken out of > auipc x0, . This is an existing HINTNOP space. If `lpad` is > target of an indirect branch, cpu che

[PATCH v9 06/17] target/riscv: zicfilp `lpad` impl and branch tracking

2024-08-26 Thread Deepak Gupta
Implements setting lp expected when `jalr` is encountered and implements `lpad` instruction of zicfilp. `lpad` instruction is taken out of auipc x0, . This is an existing HINTNOP space. If `lpad` is target of an indirect branch, cpu checks for 20 bit value in x7 upper with 20 bit value embedded in