On 12/19/24 09:46, Daniel Henrique Barboza wrote:
Do a cosmetic change in riscv_raise_exception() to change 'exception'
type from uint32_t to RISCVException, making it a bit clear that the
arg is directly correlated to the RISCVException enum.

As a side effect, change 'excp' type from int to RISCVException in
generate_exception() to guarantee that all callers of
riscv_raise_exception() will use the enum.

Signed-off-by: Daniel Henrique Barboza<dbarb...@ventanamicro.com>
---
  target/riscv/cpu.h       | 3 ++-
  target/riscv/op_helper.c | 3 ++-
  target/riscv/translate.c | 2 +-
  3 files changed, 5 insertions(+), 3 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to