qemu/target/ppc
David Gibson 0de6e2a3ca Make qemu_mempath_getpagesize() accept NULL
qemu_mempath_getpagesize() gets the effective (host side) page size for
a block of memory backed by an mmap()ed file on the host.  It requires
the mem_path parameter to be non-NULL.

This ends up meaning all the callers need a different case for handling
anonymous memory (for memory-backend-ram or default memory with -mem-path
is not specified).

We can make all those callers a little simpler by having
qemu_mempath_getpagesize() accept NULL, and treat that as the anonymous
memory case.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
2018-04-27 18:05:22 +10:00
..
translate target/ppc: convert to DisasContextBase 2018-02-16 12:14:39 +11:00
arch_dump.c
compat.c target/ppc: Clarify compat mode max_threads value 2018-01-17 09:35:24 +11:00
cpu-models.c
cpu-models.h
cpu-qom.h
cpu.c
cpu.h cpu: get rid of unused cpu_init() defines 2018-03-19 14:10:36 -03:00
dfp_helper.c
excp_helper.c target/ppc: add support for hypervisor doorbells on book3s CPUs 2018-01-20 17:15:05 +11:00
fpu_helper.c target/*/cpu.h: remove softfloat.h 2018-02-21 10:20:24 +00:00
gdbstub.c ppc: Fix size of ppc64 xer register 2018-04-27 18:05:22 +10:00
helper_regs.h
helper.h target/ppc: add support for hypervisor doorbells on book3s CPUs 2018-01-20 17:15:05 +11:00
int_helper.c target/*/cpu.h: remove softfloat.h 2018-02-21 10:20:24 +00:00
internal.h
kvm_ppc.h spapr/iommu: Enable in-kernel TCE acceleration via VFIO KVM device 2018-02-06 11:08:24 -07:00
kvm-stub.c openpic: move KVM-specific declarations into separate openpic_kvm.h file 2018-03-06 13:16:29 +11:00
kvm.c Make qemu_mempath_getpagesize() accept NULL 2018-04-27 18:05:22 +10:00
machine.c target/ppc: Fix backwards migration of msr_mask 2018-04-10 10:05:38 +10:00
Makefile.objs
mem_helper.c
mfrom_table_gen.c
mfrom_table.c
misc_helper.c
mmu_helper.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
mmu-book3s-v3.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
mmu-book3s-v3.h
mmu-hash32.c
mmu-hash32.h
mmu-hash64.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
mmu-hash64.h
mmu-radix64.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
mmu-radix64.h
monitor.c
timebase_helper.c
trace-events
translate_init.c PowerPC: Add TS bits into msr_mask 2018-03-06 13:16:29 +11:00
translate.c target/ppc: Fix reserved bit mask of dstst instruction 2018-04-27 18:05:22 +10:00
user_only_helper.c accel/tcg: add size paremeter in tlb_fill() 2018-01-25 16:02:24 +01:00