]> git.proxmox.com Git - qemu.git/blobdiff - cpu-all.h
PPC: Fix TLB invalidation bug within the PPC interrupt handler.
[qemu.git] / cpu-all.h
index 9621c3c92e9707fefe7e08e5b07440715d33e092..45125180658306563cc34eca96750827a8e286da 100644 (file)
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -204,7 +204,8 @@ extern unsigned long reserved_va;
 #else
 #define h2g_valid(x) ({ \
     unsigned long __guest = (unsigned long)(x) - GUEST_BASE; \
-    __guest < (1ul << TARGET_VIRT_ADDR_SPACE_BITS); \
+    (__guest < (1ul << TARGET_VIRT_ADDR_SPACE_BITS)) && \
+    (!RESERVED_VA || (__guest < RESERVED_VA)); \
 })
 #endif