On Mon, Jan 12, 2026 at 7:05 PM Djordje Todorovic <[email protected]> wrote: > > Add missing return statement after logging the error when cs is NULL. > > Resolves: Coverity CID 1644077 > > Signed-off-by: Djordje Todorovic <[email protected]>
Reviewed-by: Alistair Francis <[email protected]> Alistair > --- > target/riscv/cpu.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c > index 3b9d17d58d..10ece4bf63 100644 > --- a/target/riscv/cpu.c > +++ b/target/riscv/cpu.c > @@ -83,6 +83,7 @@ void cpu_set_exception_base(int vp_index, target_ulong > address) > qemu_log_mask(LOG_GUEST_ERROR, > "cpu_set_exception_base: invalid vp_index: %u", > vp_index); > + return; > } > cpu = RISCV_CPU(cs); > cpu->env.resetvec = address; > -- > 2.34.1
