On 8/12/22 16:57, Furquan Shaikh wrote:
I am not sure if I understood your comment correctly. Currently, qemu has a check in `riscv_cpu_do_interrupt` to allow semihosting calls only in S and M modes. This prevents semihosting calls from U mode. This patch changes the default behavior of checking `>= PRV_S` for semihosting and instead replaces it with the usage of ebreak{m,s,u,vs,vu} properties to allow the user to configure what modes should allow semihosting calls when `-semihosting` argument is selected.
Why do you need such fine-grained control? What is the use-case? r~