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

target/riscv: riscv_tr_init_disas_context: copy pointer-to-cfg into cfg_ptr


As the number of extensions is growing, copying them individiually
into the DisasContext will scale less and less... instead we populate
a pointer to the RISCVCPUConfig structure in the DisasContext.

This adds an extra indirection when checking for the availability of
an extension (compared to copying the fields into DisasContext).
While not a performance problem today, we can always (shallow) copy
the entire structure into the DisasContext (instead of putting a
pointer to it) if this is ever deemed necessary.

Signed-off-by: default avatarPhilipp Tomsich <philipp.tomsich@vrull.eu>
Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
Suggested-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Message-Id: <20220202005249.3566542-3-philipp.tomsich@vrull.eu>
Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
parent 466292bd
No related branches found
No related tags found
Loading
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