Skip to content

Conversation

@AnimeshAgarwal28
Copy link

Summary:
This PR implements a generator that emits rv_opcode_data entries for QEMU from the Unified DB.

Usage:

python3 generate_opcode_table.py \
  --include-all \
  --output ./rvi_opcode_data.snippet

This command emits rv_opcode_data that mirror the layout used in qemu/disas/riscv.c. Unsupported opcodes are listed at the end of the output.

Note:
This PR is stacked over #1258.

- Implement a generator that generates insn32.decode for qemu.
- Move load_full_instructions to generator.py so that other generators
  can use it.

Resolves issue: riscv-software-src#1255
Implement a generator that emits rv_opcode_data entries straight
from the Unified DB.

Signed-off-by: Animesh Agarwal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant