qemu-e2k/target-s390x
Alex Bennée e0eeb4a21a cpus: pass CPUState to run_on_cpu helpers
CPUState is a fairly common pointer to pass to these helpers. This means
if you need other arguments for the async_run_on_cpu case you end up
having to do a g_malloc to stuff additional data into the routine. For
the current users this isn't a massive deal but for MTTCG this gets
cumbersome when the only other parameter is often an address.

This adds the typedef run_on_cpu_func for helper functions which has an
explicit CPUState * passed as the first parameter. All the users of
run_on_cpu and async_run_on_cpu have had their helpers updated to use
CPUState where available.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
[Sergey Fedorov:
 - eliminate more CPUState in user data;
 - remove unnecessary user data passing;
 - fix target-s390x/kvm.c and target-s390x/misc_helper.c]
Signed-off-by: Sergey Fedorov <sergey.fedorov@linaro.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au> (ppc parts)
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> (s390 parts)
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <1470158864-17651-3-git-send-email-alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-09-27 11:57:29 +02:00
..
arch_dump.c
cc_helper.c cpu: move exec-all.h inclusion out of cpu.h 2016-05-19 16:42:29 +02:00
cpu_features_def.h s390x/cpumodel: introduce CPU features 2016-09-06 17:06:49 +02:00
cpu_features.c s390x/cpumodel: introduce CPU feature group definitions 2016-09-06 17:06:49 +02:00
cpu_features.h s390x/cpumodel: introduce CPU feature group definitions 2016-09-06 17:06:49 +02:00
cpu_models.c s390x/cpumodel: implement QMP interface "query-cpu-model-baseline" 2016-09-06 17:06:51 +02:00
cpu_models.h s390x/kvm: implement CPU model support 2016-09-06 17:06:50 +02:00
cpu-qom.h s390x/cpumodel: register defined CPU models as subclasses 2016-09-06 17:06:49 +02:00
cpu.c cpus: pass CPUState to run_on_cpu helpers 2016-09-27 11:57:29 +02:00
cpu.h cpus: pass CPUState to run_on_cpu helpers 2016-09-27 11:57:29 +02:00
fpu_helper.c softfloat: Implement run-time-configurable meaning of signaling NaN bit 2016-06-24 13:40:37 +01:00
gdbstub.c cpu: move exec-all.h inclusion out of cpu.h 2016-05-19 16:42:29 +02:00
gen-features.c s390x/kvm: let the CPU model control CMM(A) 2016-09-06 17:06:51 +02:00
helper.c s390x/cpumodel: "host" and "qemu" as CPU subclasses 2016-09-06 17:06:49 +02:00
helper.h softfloat: Implement run-time-configurable meaning of signaling NaN bit 2016-06-24 13:40:37 +01:00
insn-data.def
insn-format.def
int_helper.c cpu: move exec-all.h inclusion out of cpu.h 2016-05-19 16:42:29 +02:00
interrupt.c s390x: reorganize CSS bits between cpu.h and other headers 2016-05-19 16:42:28 +02:00
ioinst.c s390x/ioinst: advertise fcs facility 2016-09-05 15:15:16 +02:00
kvm.c cpus: pass CPUState to run_on_cpu helpers 2016-09-27 11:57:29 +02:00
machine.c s390x/cpumodel: let the CPU model handle feature checks 2016-09-06 17:06:50 +02:00
Makefile.objs s390x/cpumodel: generate CPU feature lists for CPU models 2016-09-06 17:06:49 +02:00
mem_helper.c Fix confusing argument names in some common functions 2016-07-12 13:06:08 +01:00
misc_helper.c cpus: pass CPUState to run_on_cpu helpers 2016-09-27 11:57:29 +02:00
mmu_helper.c
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
translate.c softfloat: Implement run-time-configurable meaning of signaling NaN bit 2016-06-24 13:40:37 +01:00