[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Debugging heterogeneous SoC
From: |
Alistair Francis |
Subject: |
Re: Debugging heterogeneous SoC |
Date: |
Tue, 28 Jan 2020 16:42:56 -0800 |
On Tue, Jan 28, 2020 at 4:29 PM Nikita Ermakov <address@hidden> 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.c, it is searches only the first cluster and it always finds
> cluster with E51 core, if I understand it correctly.
> In the GDB with `info threads` I could see only E51 core but none of the U54
> cores.
>
> Is it possible to somehow get an access to another CPU cluster in the
> GDB/QEMU?
Use these commands to attach GDB to QEMU:
target extended-remote :1234
add-inferior
inferior 2
attach 2
set schedule-multiple
info threads
Alistair
>
> --
> Thanks,
> Nikita
> B8 00 4C CD 21