target/riscv/kvm: handle the exit with debug reason
authorChao Du <duchao@eswincomputing.com>
Thu, 6 Jun 2024 01:45:00 +0000 (01:45 +0000)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 26 Jun 2024 12:46:48 +0000 (22:46 +1000)
commitb60520392daf977bca26010960f78c4885db7e9f
treef5fb6634bd6697d8d66a07ae7bb0b979cf11c734
parent80b605056d59bb5ee979e2e6ba60528fb3f9eb1b
target/riscv/kvm: handle the exit with debug reason

If the breakpoint belongs to the userspace then set the ret value.

Signed-off-by: Chao Du <duchao@eswincomputing.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20240606014501.20763-3-duchao@eswincomputing.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/kvm/kvm-cpu.c