[lldb] [llvm] [lldb][RISCV] function calls support in lldb expressions (PR #99336)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 22 04:20:26 PDT 2024
dlav-sc wrote:
> A quick look at the RISCV ISA and it says that the JAL instruction is pc relative and can jump +/- 1MB. JALR gets the upper 20 bits from a general purpose register and it includes 12 low bits in its instruction encoding. I know almost nothing about rv32, but is this what you mean by a Large Memory Model, the use of the JALR instruction? I didn't find the part that talks about how JALR works in rv64, but it seems likely it can specify an arbitrary 64-bit address?
> I know almost nothing about rv32, but is this what you mean by a Large Memory Model, the use of the JALR instruction?
yep.
https://github.com/llvm/llvm-project/pull/99336
More information about the llvm-commits
mailing list