Lines Matching refs:block
2 * virtual page mapping and translated block handling
1042 /* we generate a block containing just the instruction
1129 /* we generate a block containing just the instruction
1195 /* Allocate a new translation block. Flush the translation buffer if
1641 "show CPU state before block translation" },
1881 /* Note: start and end must be within the same ram block. */
2484 RAMBlock *block, *next_block;
2490 QLIST_FOREACH(block, &ram_list.blocks, next) {
2493 end = block->offset + block->length;
2510 RAMBlock *block;
2513 QLIST_FOREACH(block, &ram_list.blocks, next)
2514 last = MAX(last, block->offset + block->length);
2522 RAMBlock *new_block, *block;
2538 QLIST_FOREACH(block, &ram_list.blocks, next) {
2539 if (!strcmp(block->idstr, new_block->idstr)) {
2620 RAMBlock *block;
2622 QLIST_FOREACH(block, &ram_list.blocks, next) {
2623 if (addr == block->offset) {
2624 QLIST_REMOVE(block, next);
2625 if (block->flags & RAM_PREALLOC_MASK) {
2629 if (block->fd) {
2630 munmap(block->host, block->length);
2631 close(block->fd);
2633 qemu_vfree(block->host);
2640 munmap(block->host, block->length);
2642 qemu_vfree(block->host);
2645 qemu_free(block);
2656 RAMBlock *block;
2661 QLIST_FOREACH(block, &ram_list.blocks, next) {
2662 offset = addr - block->offset;
2663 if (offset < block->length) {
2664 vaddr = block->host + offset;
2665 if (block->flags & RAM_PREALLOC_MASK) {
2672 if (block->fd) {
2680 flags, block->fd, offset);
2717 and knows it isn't going to access beyond the end of the block.
2724 RAMBlock *block;
2726 QLIST_FOREACH(block, &ram_list.blocks, next) {
2727 if (addr - block->offset < block->length) {
2729 if (block != QLIST_FIRST(&ram_list.blocks)) {
2730 QLIST_REMOVE(block, next);
2731 QLIST_INSERT_HEAD(&ram_list.blocks, block, next);
2733 return block->host + (addr - block->offset);
2748 RAMBlock *block;
2750 QLIST_FOREACH(block, &ram_list.blocks, next) {
2751 if (addr - block->offset < block->length) {
2752 return block->host + (addr - block->offset);
2764 RAMBlock *block;
2767 QLIST_FOREACH(block, &ram_list.blocks, next) {
2768 if (host - block->host < block->length) {
2769 *ram_addr = block->offset + (host - block->host);
3884 we have already translated the block once so it's probably ok. */