qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 09/11] target/loongarch: Add lock when writing timer clear re


From: Richard Henderson
Subject: Re: [PATCH 09/11] target/loongarch: Add lock when writing timer clear reg
Date: Mon, 4 Jul 2022 10:49:35 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 7/1/22 15:04, Xiaojuan Yang wrote:
There is such error info when running linux kernel:
     tcg_handle_interrupt: assertion failed: (qemu_mutex_iothread_locked()).
     calling stack:
     #0 in raise () at /lib64/libc.so.6
     #1 in abort () at /lib64/libc.so.6
     #2 in g_assertion_message_expr.cold () at /lib64/libglib-2.0.so.0
     #3 in g_assertion_message_expr () at /lib64/libglib-2.0.so.0
     #4 in tcg_handle_interrupt (cpu=0x632000030800, mask=2) at 
../accel/tcg/tcg-accel-ops.c:79
     #5 in cpu_interrupt (cpu=0x632000030800, mask=2) at ../softmmu/cpus.c:248
     #6 in loongarch_cpu_set_irq (opaque=0x632000030800, irq=11, level=0)
        at ../target/loongarch/cpu.c:100
     #7 in helper_csrwr_ticlr (env=0x632000039440, val=1) at 
../target/loongarch/csr_helper.c:85
     #8 in code_gen_buffer ()
     #9 in cpu_tb_exec (cpu=0x632000030800, itb=0x7fff946ac280, 
tb_exit=0x7ffe4fcb6c30)
        at ../accel/tcg/cpu-exec.c:358

Add mutex iothread lock around loongarch_cpu_set_irq in csrwr_ticlr() to
fix the bug.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]