On 1/31/22 10:57, 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>

---

(no changes since v3)
...
+    const struct RISCVCPUConfig *cfg_ptr;

Use the typedef.  With that,
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to