On 7/3/2026 12:10 AM, Philippe Mathieu-Daudé wrote:
On 2/7/26 15:51, Daniel Henrique Barboza wrote:
These arrays are used internally in tcg/csr.c and in cpu.c in the satp
options logic, which is common for both KVM and TCG.

Move it to cpu.c to allow KVM to keep using it in --disable-tcg builds.

Signed-off-by: Daniel Henrique Barboza <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
---
  target/riscv/cpu.c     | 13 +++++++++++++
  target/riscv/cpu.h     |  2 --
  target/riscv/tcg/csr.c | 12 ------------
  target/riscv/tcg/csr.h |  3 +++
  4 files changed, 16 insertions(+), 14 deletions(-)

Preferrably before patch #2 "target/riscv: move TCG only files to tcg
subdir" if not too much trouble:

Done.  I'll send a v4 with the change.

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Thx!




Reply via email to