Remove the mask in the call to ram_release_pages(). Nothing else does
it, and if the offset has that bits set, we have a lot of trouble.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
ram_addr_t offset, uint8_t *source_buf)
{
RAMState *rs = ram_state;
- uint8_t *p = block->host + (offset & TARGET_PAGE_MASK);
+ uint8_t *p = block->host + offset;
bool zero_page = false;
int ret;
}
exit:
- ram_release_page(block->idstr, offset & TARGET_PAGE_MASK);
+ ram_release_page(block->idstr, offset);
return zero_page;
}