On 3/5/21 3:54 PM, Keith Packard via wrote:
I don't know of any implementation in hardware or software that supports
modifying this value. I'm not sure we need to support this in the
semihosting code for qemu as I'm pretty sure getting qemu to support
dynamic XLEN values would be a large project

I think it would be fairly trivial, now. We have riscv_cpu_is_32bit (which checks misa, not xlen, fwiw). It's not examined in cpu_get_tb_cpu_state(), but it is many other places.

(a project which I don't
personally feel would offer much value).

Now that's a different story.  I'll take no position there.

However! We do have a function, that can be made into a TCG hook, which could then be queried by semihosting/.


r~

Reply via email to