qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Getting current PGD on address@hidden


From: Igor R
Subject: [Qemu-devel] Getting current PGD on address@hidden
Date: Sat, 18 Jul 2015 22:30:57 +0300

Hello,

On x86 one can get the current PGD from CR3. What's the right way to
do this on ARM?

In a code based on an old QEMU version, I see the following:
pgd = env->cp15.c2_base0 & env->cp15.c2_base_mask;
But in the recent QEMU version c2_base0 field is absent. Instead,
there's ttbr0[] array. So should I just use ttbr0[current_el]?

Thanks.



reply via email to

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