* Debugging heterogeneous SoC
@ 2020-01-29 0:28 Nikita Ermakov
2020-01-29 0:42 ` Alistair Francis
0 siblings, 1 reply; 3+ messages in thread
From: Nikita Ermakov @ 2020-01-29 0:28 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 542 bytes --]
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?
--
Thanks,
Nikita
B8 00 4C CD 21
[-- Attachment #2: Type: text/html, Size: 742 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Debugging heterogeneous SoC
2020-01-29 0:28 Debugging heterogeneous SoC Nikita Ermakov
@ 2020-01-29 0:42 ` Alistair Francis
2020-01-29 0:55 ` Nikita Ermakov
0 siblings, 1 reply; 3+ messages in thread
From: Alistair Francis @ 2020-01-29 0:42 UTC (permalink / raw)
To: Nikita Ermakov; +Cc: qemu-devel@nongnu.org Developers
On Tue, Jan 28, 2020 at 4:29 PM Nikita Ermakov <arei@altlinux.org> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Debugging heterogeneous SoC
2020-01-29 0:42 ` Alistair Francis
@ 2020-01-29 0:55 ` Nikita Ermakov
0 siblings, 0 replies; 3+ messages in thread
From: Nikita Ermakov @ 2020-01-29 0:55 UTC (permalink / raw)
To: Alistair Francis; +Cc: qemu-devel@nongnu.org Developers
[-- Attachment #1: Type: text/plain, Size: 359 bytes --]
On Wed, 29 Jan 2020 at 03:43, Alistair Francis <alistair23@gmail.com> 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! :)
--
Thanks,
Nikita
B8 00 4C CD 21
[-- Attachment #2: Type: text/html, Size: 820 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-29 0:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-29 0:28 Debugging heterogeneous SoC Nikita Ermakov
2020-01-29 0:42 ` Alistair Francis
2020-01-29 0:55 ` Nikita Ermakov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.