OSDN Git Service

monitor: Prevent sign-extension of 32-bit addresses printed by info tlb
authorAustin Clements <amdragon@MIT.EDU>
Sun, 21 Aug 2011 18:49:45 +0000 (14:49 -0400)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 21 Aug 2011 19:50:03 +0000 (19:50 +0000)
commit94ac5cd20c6e441e0ed3aec5c98d6cbefb7f503f
tree4198ad8dd3e2cf14f7ba9bd968764a7a87652af8
parentaec7c6dc683314d1e5bed09a9cc98dab086ead82
monitor: Prevent sign-extension of 32-bit addresses printed by info tlb

This is the same fix that was recently applied to info mem.  Before
this change, info tlb output looked like:

ffffffffffffc000000000000fffc000 --------W
ffffffffffffd000000000000fffd000 --------W
ffffffffffffe000000000000fffe000 --------W
fffffffffffff000000000000ffff000 --------W

With this change, it looks like

00000000ffffc000000000000fffc000 --------W
00000000ffffd000000000000fffd000 --------W
00000000ffffe000000000000fffe000 --------W
00000000fffff000000000000ffff000 --------W

Signed-off-by: Austin Clements <amdragon@mit.edu>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
monitor.c