diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-01-15 08:31:00 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-01-15 08:31:00 +0000 |
commit | 2d5b50749adeda4e45066290deec19aa8e2322c3 (patch) | |
tree | 14936260420d3f59ae1345a3a86a92285f70ed12 /monitor.c | |
parent | 0601740a5db12ea7ae0f2f7826f0cfb05854500a (diff) |
monitor: fix a typo
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>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |