Re: [PATCH 1/2] target/riscv: use RISCVException enum in exception helpers

2025-01-05 Thread Philippe Mathieu-Daudé
On 19/12/24 18: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 RIS

Re: [PATCH 1/2] target/riscv: use RISCVException enum in exception helpers

2025-01-05 Thread Alistair Francis
On Fri, Dec 20, 2024 at 3:49 AM 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 'exc

Re: [PATCH 1/2] target/riscv: use RISCVException enum in exception helpers

2024-12-19 Thread Richard Henderson
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 RIS

[PATCH 1/2] target/riscv: use RISCVException enum in exception helpers

2024-12-19 Thread Daniel Henrique Barboza
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 tha