Skip to content

Commit

Permalink
exec: Change memory_region_section_get_iotlb() argument to CPUState
Browse files Browse the repository at this point in the history
It no longer needs CPUArchState since moving watchpoints to CPUState.

Signed-off-by: Andreas Färber <afaerber@suse.de>
  • Loading branch information
afaerber committed Mar 13, 2014
1 parent baea4fa commit bb0e627
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cputlb.c
Expand Up @@ -261,7 +261,7 @@ void tlb_set_page(CPUArchState *env, target_ulong vaddr,
}

code_address = address;
iotlb = memory_region_section_get_iotlb(env, section, vaddr, paddr, xlat,
iotlb = memory_region_section_get_iotlb(cpu, section, vaddr, paddr, xlat,
prot, &address);

index = (vaddr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);
Expand Down
3 changes: 1 addition & 2 deletions exec.c
Expand Up @@ -799,14 +799,13 @@ static void cpu_physical_memory_set_dirty_tracking(bool enable)
in_migration = enable;
}

hwaddr memory_region_section_get_iotlb(CPUArchState *env,
hwaddr memory_region_section_get_iotlb(CPUState *cpu,
MemoryRegionSection *section,
target_ulong vaddr,
hwaddr paddr, hwaddr xlat,
int prot,
target_ulong *address)
{
CPUState *cpu = ENV_GET_CPU(env);
hwaddr iotlb;
CPUWatchpoint *wp;

Expand Down
2 changes: 1 addition & 1 deletion include/exec/cputlb.h
Expand Up @@ -36,7 +36,7 @@ void tb_flush_jmp_cache(CPUState *cpu, target_ulong addr);
MemoryRegionSection *
address_space_translate_for_iotlb(AddressSpace *as, hwaddr addr, hwaddr *xlat,
hwaddr *plen);
hwaddr memory_region_section_get_iotlb(CPUArchState *env,
hwaddr memory_region_section_get_iotlb(CPUState *cpu,
MemoryRegionSection *section,
target_ulong vaddr,
hwaddr paddr, hwaddr xlat,
Expand Down

0 comments on commit bb0e627

Please sign in to comment.