hw/char: riscv_htif: Move registers from CPUArchState to HTIFState
commit1237c2d6942709cf82b999b6f6e8624b86ac495f
authorBin Meng <bmeng@tinylab.org>
Thu, 29 Dec 2022 09:18:21 +0000 (29 17:18 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 20 Jan 2023 00:14:13 +0000 (20 10:14 +1000)
treed6ab4b5aed46ad42e20a8a71b04be0b24721611c
parentdadee9e3ce6ee6aad36fe3027eaa0f947358f812
hw/char: riscv_htif: Move registers from CPUArchState to HTIFState

At present for some unknown reason the HTIF registers (fromhost &
tohost) are defined in the RISC-V CPUArchState. It should really
be put in the HTIFState struct as it is only meaningful to HTIF.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221229091828.1945072-6-bmeng@tinylab.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/char/riscv_htif.c
hw/riscv/spike.c
include/hw/char/riscv_htif.h
target/riscv/cpu.h
target/riscv/machine.c