qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] target-arm: use extended address bits from supersection short descriptor
@ 2015-06-02  8:42 Sergey Fedorov
  0 siblings, 0 replies; only message in thread
From: Sergey Fedorov @ 2015-06-02  8:42 UTC (permalink / raw)
  To: qemu-devel; +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 <serge.fdrv@gmail.com>
---
 target-arm/helper.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target-arm/helper.c b/target-arm/helper.c
index 1cc4993..0a97312 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-02  8:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02  8:42 [Qemu-devel] [PATCH v2] target-arm: use extended address bits from supersection short descriptor 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).