-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support -addr
for AArch64
#9
Comments
Sounds good! |
I think the -addr option was overall not well thought out.
|
I built the kernel with: make O=out/aarch64 CC=clang ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig
make O=out/aarch64 CC=clang ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Then ran it with QEMU and a busybox initramfs like this: qemu-system-aarch64 \
-machine virt,virtualization=on \
-cpu cortex-a53 \
-smp 2 \
-m 1024 \
-nographic \
-serial stdio \
-nodefaults \
-kernel out/aarch64/arch/arm64/boot/Image \
-append 'kvm-arm.mode=nvhe nokaslr' \
-initrd busybox-initramfs.cpio.gz \
-S -s The important bits there are
I do think having convenience flags like |
Sorry for the delay, but I tried to also resolve some other issues in gdb-pt-dump. I removed '-addr' and added the arch-specific args '-cr3', '-ttbr0_el1', '-ttbr1_el1', '-satp'. Could you check if it works for you? I haven't looked into supporting a hypervisor, so EL2 are currently not supported. |
It seems like only x86 supports the
-addr
argument at the moment. It would be useful to have this in other architectures, like AArch64, so I can print out page tables that aren't stored inTTBR0_EL1
orTTBR1_EL1
(likeTTBR0_EL2
for example).The text was updated successfully, but these errors were encountered: