qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-arm: Fix translation level on early translation faults
@ 2016-03-02 18:04 Sergey Sorokin
  2016-03-02 19:19 ` Sergey Fedorov
  2016-03-02 21:36 ` [Qemu-devel] " Sergey Fedorov
  0 siblings, 2 replies; 10+ messages in thread
From: Sergey Sorokin @ 2016-03-02 18:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, qemu-arm, Sergey Sorokin

Qemu reports translation fault on 1st level instead of 0th level in case of
AArch64 address translation if the translation table walk is disabled or
the address is in the gap between the two regions.

Signed-off-by: Sergey Sorokin <afarallax@yandex.ru>
---
 target-arm/helper.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target-arm/helper.c b/target-arm/helper.c
index 18c8296..09f920c 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -7238,6 +7238,7 @@ static bool get_phys_addr_lpae(CPUARMState *env, target_ulong address,
      * support for those page table walks.
      */
     if (arm_el_is_aa64(env, el)) {
+        level = 0;
         va_size = 64;
         if (el > 1) {
             if (mmu_idx != ARMMMUIdx_S2NS) {
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-03-04 15:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-02 18:04 [Qemu-devel] [PATCH] target-arm: Fix translation level on early translation faults Sergey Sorokin
2016-03-02 19:19 ` Sergey Fedorov
2016-03-03 13:49   ` Peter Maydell
2016-03-03 14:48     ` Sergey Fedorov
2016-03-03 14:55       ` [Qemu-devel] [Qemu-arm] " Peter Maydell
2016-03-03 16:37         ` Sergey Fedorov
2016-03-03 16:54           ` Peter Maydell
2016-03-04 15:03             ` Sergey Sorokin
2016-03-04 15:18               ` Peter Maydell
2016-03-02 21:36 ` [Qemu-devel] " Sergey Fedorov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).