diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2013-12-18 19:17:32 +0000 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2014-07-07 10:37:40 +0000 |
commit | 643f59322432d77165329dfabe2d040d7e30dae8 (patch) | |
tree | 768ec853126b43325b43f4dfa05ffa69a94961d0 /xen-mapcache.c | |
parent | 4aba9eb138e5d68c400de0b116f15217d7a92d3a (diff) | |
download | qemu-643f59322432d77165329dfabe2d040d7e30dae8.zip qemu-643f59322432d77165329dfabe2d040d7e30dae8.tar.gz qemu-643f59322432d77165329dfabe2d040d7e30dae8.tar.bz2 |
xen: build on ARM
Collection of fixes to build QEMU with Xen support on ARM:
- use xenstore_read_fe_uint64 to retrieve the page-ref (xenfb);
- use xen_pfn_t instead of unsigned long in xenfb;
- unsigned long/xenpfn_t in xen_remove_from_physmap;
- in xen-mapcache.c use HOST_LONG_BITS to check for QEMU's address space
size.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'xen-mapcache.c')
-rw-r--r-- | xen-mapcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen-mapcache.c b/xen-mapcache.c index eda914a..66da1a6 100644 --- a/xen-mapcache.c +++ b/xen-mapcache.c @@ -33,10 +33,10 @@ # define DPRINTF(fmt, ...) do { } while (0) #endif -#if defined(__i386__) +#if HOST_LONG_BITS == 32 # define MCACHE_BUCKET_SHIFT 16 # define MCACHE_MAX_SIZE (1UL<<31) /* 2GB Cap */ -#elif defined(__x86_64__) +#else # define MCACHE_BUCKET_SHIFT 20 # define MCACHE_MAX_SIZE (1UL<<35) /* 32GB Cap */ #endif |