From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzi5M-0006br-BW for qemu-devel@nongnu.org; Tue, 02 Jun 2015 05:02:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yzi5G-0006GY-TP for qemu-devel@nongnu.org; Tue, 02 Jun 2015 05:02:12 -0400 Received: from mail-la0-x235.google.com ([2a00:1450:4010:c03::235]:32825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzi5G-0006GL-H5 for qemu-devel@nongnu.org; Tue, 02 Jun 2015 05:02:06 -0400 Received: by labpy14 with SMTP id py14so108569653lab.0 for ; Tue, 02 Jun 2015 02:02:05 -0700 (PDT) From: Sergey Fedorov Date: Tue, 2 Jun 2015 12:01:58 +0300 Message-Id: <1433235718-30485-1-git-send-email-serge.fdrv@gmail.com> Subject: [Qemu-devel] [PATCH v3] target-arm: use extended address bits from supersection short descriptor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Sergey Fedorov Since ARMv7 with LPAE support, a supersection short translation table descriptor has had extended base address fields which hold bits 39:32 of translated address. These fields are IMPDEF in ARMv6 and ARMv7 without LPAE support. Signed-off-by: Sergey Fedorov --- v3: * needless parenthesis removed v2: * commit message enhanced target-arm/helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index 1cc4993..b2b377a 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -5323,6 +5323,8 @@ static int get_phys_addr_v6(CPUARMState *env, uint32_t address, int access_type, if (desc & (1 << 18)) { /* Supersection. */ phys_addr = (desc & 0xff000000) | (address & 0x00ffffff); + phys_addr |= (uint64_t)extract32(desc, 20, 4) << 32; + phys_addr |= (uint64_t)extract32(desc, 5, 4) << 36; *page_size = 0x1000000; } else { /* Section. */ -- 1.9.1