On 1/29/22 01:56, Philipp Tomsich wrote:
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: Philipp Tomsich<philipp.toms...@vrull.eu>
Suggested-by: Richard Henderson<richard.hender...@linaro.org>
---
Changes in v3:
- (new patch) copy pointer to element cfg into DisasContext
target/riscv/translate.c | 2 ++
1 file changed, 2 insertions(+)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~