Revision a4841565 exec.c

b/exec.c
2489 2489
ram_addr_t qemu_ram_addr_from_host(void *ptr)
2490 2490
{
2491 2491
    RAMBlock *prev;
2492
    RAMBlock **prevp;
2493 2492
    RAMBlock *block;
2494 2493
    uint8_t *host = ptr;
2495 2494

  
2496 2495
    prev = NULL;
2497
    prevp = &ram_blocks;
2498 2496
    block = ram_blocks;
2499 2497
    while (block && (block->host > host
2500 2498
                     || block->host + block->length <= host)) {
2501
        if (prev)
2502
          prevp = &prev->next;
2503 2499
        prev = block;
2504 2500
        block = block->next;
2505 2501
    }

Also available in: Unified diff