Skip to main content

Module rvc

Module rvc 

Source
Expand description

The RV64C decompressor: every 16-bit instruction is a shorthand for one 32-bit instruction, and the hart executes the expansion. expand returns that 32-bit instruction, or None for an encoding the C extension reserves (an illegal instruction). HINT encodings expand to the base instruction whose destination is x0 or whose effect is nil, as the specification defines them. The hart’s RTL expander is held to this function over all 65,536 encodings, and this function is held to the GNU disassembler.

Functions§

expand
The 32-bit instruction the compressed instruction c stands for, or None for a reserved encoding.
is_compressed
Whether the low two bits mark a 16-bit (compressed) instruction.