qemu-arm
[Top][All Lists]
Advanced

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

How to debug AArch64 QEMU in AArch32 mode?


From: Sergey Anufrienko
Subject: How to debug AArch64 QEMU in AArch32 mode?
Date: Sat, 4 Jul 2020 11:49:35 +0300

Hello,

I am writing an AArch64 hypervisor running in AArch64 EL2, which
switches to AArch32 EL1 to run a 32-bit VM. Right now I'm able to only
debug AArch64 code up to the point where "eret" instruction is
executed to switch to AArch32. Setting a breakpoint to the AArch32
entrypoint also doesn't work. I tried GDB multiarch and to switch
architecture at runtime from aarch64 to armv7, but it complains about
incompatible data structures.

Right now the only working way to see what's happening in the 32-bit
EL1 is to use "-d in_asm,cpu", which will correctly display 32-bit ARM
code after the "eret" has been executed.

So the question Is there any way to debug the AArch32 code running in
qemu-system-aarch64?

Thanks!



reply via email to

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