summaryrefslogtreecommitdiff
path: root/ioport.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2012-03-10 16:57:10 +0000
committerAvi Kivity <avi@redhat.com>2012-03-19 15:17:21 +0200
commit4200872b37ee59b5432d010becaabf84709798c5 (patch)
treef7bc0032ae184266c5383a79be1cf227f26b1f4a /ioport.c
parent5bd33de6635577744b3c10dd3913bfe8c5ffaf40 (diff)
downloadqemu-4200872b37ee59b5432d010becaabf84709798c5.tar.gz
qemu-4200872b37ee59b5432d010becaabf84709798c5.tar.bz2
qemu-4200872b37ee59b5432d010becaabf84709798c5.zip
ioport: use INT64_MAX for IO ranges
Expression UINT64_MAX + 1 will make the range bigger than what can be represented with a 64 bit type. This would trigger an assert in int128_get64() after the next patch. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'ioport.c')
-rw-r--r--ioport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ioport.c b/ioport.c
index 78a3b890fb..6e4ca0dd91 100644
--- a/ioport.c
+++ b/ioport.c
@@ -385,7 +385,7 @@ static void portio_list_add_1(PortioList *piolist,
* rather than an offset relative to to start + off_low.
*/
memory_region_init_io(region, ops, piolist->opaque, piolist->name,
- UINT64_MAX);
+ INT64_MAX);
memory_region_init_alias(alias, piolist->name,
region, start + off_low, off_high - off_low);
memory_region_add_subregion(piolist->address_space,