提交 a23a663b 编写于 作者: A aurel32

Fix PHYS_ADDR_MASK: upper bits of a PTE are reserved so they are 52 bits

long. Thanks to Paul Brook for noticing that.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4242 c046a42c-6fe2-441c-8c8c-71466251a162
上级 99c6c082
......@@ -800,7 +800,8 @@ target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
#else
#define PHYS_ADDR_MASK (~0xfff)
/* Bits 52-62 of a PTE are reserved. Bit 63 is the NX bit. */
#define PHYS_ADDR_MASK 0xffffffffff000L
/* return value:
-1 = cannot handle fault
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册