Revision 59abb061
b/exec-obsolete.h | ||
---|---|---|
77 | 77 |
} |
78 | 78 |
|
79 | 79 |
static inline void cpu_physical_memory_mask_dirty_range(ram_addr_t start, |
80 |
int length,
|
|
80 |
ram_addr_t length,
|
|
81 | 81 |
int dirty_flags) |
82 | 82 |
{ |
83 |
int i, mask, len;
|
|
83 |
int mask;
|
|
84 | 84 |
uint8_t *p; |
85 |
ram_addr_t addr, end; |
|
85 | 86 |
|
86 |
len = length >> TARGET_PAGE_BITS;
|
|
87 |
end = start + length;
|
|
87 | 88 |
mask = ~dirty_flags; |
88 | 89 |
p = ram_list.phys_dirty + (start >> TARGET_PAGE_BITS); |
89 |
for (i = 0; i < len; i++) {
|
|
90 |
p[i] &= mask;
|
|
90 |
for (addr = start; addr <= end; addr += TARGET_PAGE_SIZE) {
|
|
91 |
*p++ &= mask;
|
|
91 | 92 |
} |
92 | 93 |
} |
93 | 94 |
|
Also available in: Unified diff