Relative Content

Tag Archive for riscv

How to add a simple RISCV intrinsic in LLVM

I have a simple scalar instruction which I added to LLVM, which takes two inputs from GPR and writes the output also to GPR. I can compile C code using inline assembly for the new instruction. I would like to add it as an intrinsic.

JAL- RICSV Architecture

Why immediate[0] is set to zero for jump and link instruction in riscv architecture? What is the main purpose do do that?

Effective trace algorithm created 3 traps as response to 2 exceptions

I ran RISCV effective trace encoder python script with the following inputs:
0,0,0,0,0×80000104,4,0,0,0,0,0
0,0,0,0,0×80000108,4,0,0,0,0,0
10,0,0,0,0x8000010C,4,0,0,0,0,0
1,6,0xEE,0,0×8000222,0,0,0,0,0,0
2,0,0,0,0x800001b0,0,0,0,0,0,0
0,0,0,0,0x800001e0,4,0,0,0,0,0
0,0,0,0,0x800001e4,4,0,0,0,0,0
0,0,0,0,0x800001e8,4,0,0,0,0,0