diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2016-01-19 15:57:54 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-01-30 23:37:36 +1100 |
commit | f201987b843910ae929c5ed66700d910b29e9c15 (patch) | |
tree | f9b734939cecaea27a6f4e104d4cf9bc66569c73 /include | |
parent | c920f7b42fc7834bae73a5fd146f58db18bb3f58 (diff) | |
download | qemu-f201987b843910ae929c5ed66700d910b29e9c15.tar.gz qemu-f201987b843910ae929c5ed66700d910b29e9c15.tar.bz2 qemu-f201987b843910ae929c5ed66700d910b29e9c15.zip |
spapr: Remove rtas_st_buffer_direct()
rtas_st_buffer_direct() is a not particularly useful wrapper around
cpu_physical_memory_write(). All the callers are in
rtas_ibm_configure_connector, where it's better handled by local helper.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/ppc/spapr.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index 1e10fc95a9..1f9e722545 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -506,14 +506,6 @@ static inline void rtas_st(target_ulong phys, int n, uint32_t val) stl_be_phys(&address_space_memory, ppc64_phys_to_real(phys + 4*n), val); } -static inline void rtas_st_buffer_direct(target_ulong phys, - target_ulong phys_len, - uint8_t *buffer, uint16_t buffer_len) -{ - cpu_physical_memory_write(ppc64_phys_to_real(phys), buffer, - MIN(buffer_len, phys_len)); -} - typedef void (*spapr_rtas_fn)(PowerPCCPU *cpu, sPAPRMachineState *sm, uint32_t token, uint32_t nargs, target_ulong args, |