Use TARGET_VIRT_ADDR_SPACE_BITS in h2g_valid.
authorRichard Henderson <rth@twiddle.net>
Wed, 10 Mar 2010 22:36:58 +0000 (14:36 -0800)
committerPaul Brook <paul@codesourcery.com>
Fri, 12 Mar 2010 16:28:47 +0000 (16:28 +0000)
commit13c116b420d420be7d64a759cb9281b7d21864f8
tree345a3e65d5860ceda9d284b23e47d19ed5237b9c
parentf2d1d428436712adb7398419a6b4e4322288efb1
Use TARGET_VIRT_ADDR_SPACE_BITS in h2g_valid.

Previously, only 32-bit guests had a proper check for the
validity of the virtual address.  Extend that check to 64-bit
guests with a restricted virtual address space.

Signed-off-by: Richard Henderson <rth@twiddle.net>
cpu-all.h