diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-06 14:36:15 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-04 17:42:46 +0200 |
commit | 1b5ec2346703c060d26ada7d95fe9aaf476b1947 (patch) | |
tree | 8fb0f0308a8390e5674d6dfac7d2b96e98f3767d /cputlb.c | |
parent | 7443b43758ba5eeca8f81ca15fe9fced8983be26 (diff) | |
download | qemu-1b5ec2346703c060d26ada7d95fe9aaf476b1947.tar.gz qemu-1b5ec2346703c060d26ada7d95fe9aaf476b1947.tar.bz2 qemu-1b5ec2346703c060d26ada7d95fe9aaf476b1947.zip |
memory: return MemoryRegion from qemu_ram_addr_from_host
It will be needed in the next patch.
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'cputlb.c')
-rw-r--r-- | cputlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -162,7 +162,7 @@ static inline ram_addr_t qemu_ram_addr_from_host_nofail(void *ptr) { ram_addr_t ram_addr; - if (qemu_ram_addr_from_host(ptr, &ram_addr)) { + if (qemu_ram_addr_from_host(ptr, &ram_addr) == NULL) { fprintf(stderr, "Bad ram pointer %p\n", ptr); abort(); } |