]> git.proxmox.com Git - qemu.git/commitdiff
monitor: fix a typo
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 15 Jan 2011 08:31:00 +0000 (08:31 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 15 Jan 2011 08:31:00 +0000 (08:31 +0000)
Fix usage of wrong variable, spotted by clang:
/src/qemu/monitor.c:2278:36: warning: The left operand of '&' is a garbage value
                        prot = pde & (PG_USER_MASK | PG_RW_MASK |

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
monitor.c

index f2580007f24724842fcc81275fb4b942abe61ac2..d291158c2f5b50b6f589f1ec2d96ef48813b41d4 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -2275,8 +2275,8 @@ static void mem_info_64(Monitor *mon, CPUState *env)
                 end = (l1 << 39) + (l2 << 30);
                 if (pdpe & PG_PRESENT_MASK) {
                     if (pdpe & PG_PSE_MASK) {
-                        prot = pde & (PG_USER_MASK | PG_RW_MASK |
-                                      PG_PRESENT_MASK);
+                        prot = pdpe & (PG_USER_MASK | PG_RW_MASK |
+                                       PG_PRESENT_MASK);
                         mem_print(mon, &start, &last_prot, end, prot);
                     } else {
                         pd_addr = pdpe & 0x3fffffffff000ULL;