summaryrefslogtreecommitdiffstats
path: root/net/tap-linux.c
diff options
context:
space:
mode:
authorAustin Clements <amdragon@MIT.EDU>2011-08-14 23:19:21 -0400
committerBlue Swirl <blauwirbel@gmail.com>2011-08-21 16:42:31 +0000
commitb49ca72dd7c6157324656694a924ad1d781e2916 (patch)
tree7d8e185c4ad5bc3201bf7b9bffd4029019ef21fc /net/tap-linux.c
parent59ad3403c29e6b2b4f7a2f3c20d1c3fd093565ec (diff)
downloadhqemu-b49ca72dd7c6157324656694a924ad1d781e2916.zip
hqemu-b49ca72dd7c6157324656694a924ad1d781e2916.tar.gz
monitor: Prevent sign-extension of 32-bit addresses printed by info mem
Previously, on 32-bit i386, info mem used signed 32-bit int's to store the page table indexes. As a result, address calculation was done in 32 bits and then incorrectly sign-extended to 64 bits, yielding output like ffffffffef000000-ffffffffef031000 0000000000031000 ur- ffffffffef7bc000-ffffffffef7bd000 0000000000001000 urw ffffffffef7bd000-ffffffffef7be000 0000000000001000 ur- This makes these indexes unsigned, which yields correct output 00000000ef000000-00000000ef031000 0000000000031000 ur- 00000000ef7bc000-00000000ef7bd000 0000000000001000 urw 00000000ef7bd000-00000000ef7be000 0000000000001000 ur- Signed-off-by: Austin Clements <amdragon@mit.edu> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'net/tap-linux.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud