Re: Debugging heterogeneous SoC

2020-01-28 Thread Nikita Ermakov
On Wed, 29 Jan 2020 at 03:43, Alistair Francis wrote: > Use these commands to attach GDB to QEMU: > > target extended-remote :1234 > add-inferior > inferior 2 > attach 2 > set schedule-multiple > info threads > > Alistair > Thank you! It is worked!

Re: Debugging heterogeneous SoC

2020-01-28 Thread Alistair Francis
On Tue, Jan 28, 2020 at 4:29 PM Nikita Ermakov wrote: > > Hello, > > I am trying to debug the sifive_u SoC in the QEMU with GDB. > SiFive Unleashed contains one E51 core and four U54 cores. > In the hw/riscv/sifve_u.c E51 and U54 cores are placed in the different CPU > clusters. > In the gdbstub.

Debugging heterogeneous SoC

2020-01-28 Thread Nikita Ermakov
Hello, I am trying to debug the sifive_u SoC in the QEMU with GDB. SiFive Unleashed contains one E51 core and four U54 cores. In the hw/riscv/sifve_u.c E51 and U54 cores are placed in the different CPU clusters. In the gdbstub.c, it is searches only the first cluster and it always finds cluster wi