Skip to content
Snippets Groups Projects
Commit 5e199b6b authored by Philipp Tomsich's avatar Philipp Tomsich Committed by Alistair Francis
Browse files

target/riscv: iterate over a table of decoders


To split up the decoder into multiple functions (both to support
vendor-specific opcodes in separate files and to simplify maintenance
of orthogonal extensions), this changes decode_op to iterate over a
table of decoders predicated on guard functions.

This commit only adds the new structure and the table, allowing for
the easy addition of additional decoders in the future.

Signed-off-by: default avatarPhilipp Tomsich <philipp.tomsich@vrull.eu>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
Message-Id: <20220202005249.3566542-6-philipp.tomsich@vrull.eu>
Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
parent f2a32bec
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment