|
From: | Richard Henderson |
Subject: | Re: [PATCH] riscv: Make semihosting configurable for all privilege modes |
Date: | Fri, 12 Aug 2022 17:30:10 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
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~
[Prev in Thread] | Current Thread | [Next in Thread] |