diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-03-01 10:44:50 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-05-23 16:53:45 +0200 |
commit | e4e697940dff612b789b0858270c20a8b680f78d (patch) | |
tree | a45241d86e8f4078279d2dfc9ba420eb8f1655b9 /translate-all.c | |
parent | 5b5660adf1fdb61db14ec681b10463b8cba633f1 (diff) | |
download | qemu-e4e697940dff612b789b0858270c20a8b680f78d.zip qemu-e4e697940dff612b789b0858270c20a8b680f78d.tar.gz qemu-e4e697940dff612b789b0858270c20a8b680f78d.tar.bz2 |
memory: remove unnecessary masking of MemoryRegion ram_addr
mr->ram_block->offset is already aligned to both host and target size
(see qemu_ram_alloc_internal). Remove further masking as it is
unnecessary.
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'translate-all.c')
-rw-r--r-- | translate-all.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/translate-all.c b/translate-all.c index 1c1c855..c599dc4 100644 --- a/translate-all.c +++ b/translate-all.c @@ -1555,8 +1555,7 @@ void tb_invalidate_phys_addr(AddressSpace *as, hwaddr addr) rcu_read_unlock(); return; } - ram_addr = (memory_region_get_ram_addr(mr) & TARGET_PAGE_MASK) - + addr; + ram_addr = memory_region_get_ram_addr(mr) + addr; tb_invalidate_phys_page_range(ram_addr, ram_addr + 1, 0); rcu_read_unlock(); } |