Re: [PATCH 2/7] target/riscv: Move target-agnostic definitions to 'cpu-qom.h'

2025-03-05 Thread Philippe Mathieu-Daudé
On 9/2/25 08:34, Paolo Bonzini wrote: On 2/6/25 19:18, Philippe Mathieu-Daudé wrote: "cpu.h" is target-specific. Definitions which can be used by hw/ code when building QOM blocks can be in "cpu-qom.h", which is target-agnostic. Move the MISA bits (removing the pointless target_ulong cast) and

Re: [PATCH 2/7] target/riscv: Move target-agnostic definitions to 'cpu-qom.h'

2025-02-08 Thread Paolo Bonzini
On 2/6/25 19:18, Philippe Mathieu-Daudé wrote: "cpu.h" is target-specific. Definitions which can be used by hw/ code when building QOM blocks can be in "cpu-qom.h", which is target-agnostic. Move the MISA bits (removing the pointless target_ulong cast) and the IRQ index definitions. This seems

Re: [PATCH 2/7] target/riscv: Move target-agnostic definitions to 'cpu-qom.h'

2025-02-08 Thread Philippe Mathieu-Daudé
On 6/2/25 19:18, Philippe Mathieu-Daudé wrote: "cpu.h" is target-specific. Definitions which can be used by hw/ code when building QOM blocks can be in "cpu-qom.h", which is target-agnostic. What I'm trying to allow here are QOM uses such: ../../hw/riscv/opentitan.c:199:61: error: use of undec

[PATCH 2/7] target/riscv: Move target-agnostic definitions to 'cpu-qom.h'

2025-02-06 Thread Philippe Mathieu-Daudé
"cpu.h" is target-specific. Definitions which can be used by hw/ code when building QOM blocks can be in "cpu-qom.h", which is target-agnostic. Move the MISA bits (removing the pointless target_ulong cast) and the IRQ index definitions. Signed-off-by: Philippe Mathieu-Daudé --- target/riscv/cpu