qemu-e2k/target/s390x
Igor Mammedov 6ad76dfd13 s390x: replace cpu_s390x_init() with cpu_generic_init()
cpu_s390x_init() is used only *-user targets indirectly
via cpu_init() macro and has a hack to assign ids to created
cpus (I'm not sure if 'id' really matters to *-user emulation).

So to on safe side, instead of having custom wrapper to do numbering
replace it with cpu_generic_init() and use S390CPUClass::next_cpu_id
which could serve the same purpose as static variable and move cpu->id
initialization to s390_cpu_initfn for CONFIG_USER_ONLY use-case.

PS:
ifdef is ugly but it allows us to hide s390x detail that isn't
set by *-user targets and reuse generic cpu creation utility
for btoh machine and user emulation.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <1504185578-80843-1-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2017-09-01 11:54:24 -03:00
..
arch_dump.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
cc_helper.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
cpu_features_def.h
cpu_features.c target/s390x: introduce (test|set)_be_bit 2017-07-25 09:17:42 +02:00
cpu_features.h target/s390x: introduce (test|set)_be_bit 2017-07-25 09:17:42 +02:00
cpu_models.c s390x/kvm: move KVM declarations and stubs to separate files 2017-08-30 18:23:26 +02:00
cpu_models.h
cpu-qom.h
cpu.c s390x: replace cpu_s390x_init() with cpu_generic_init() 2017-09-01 11:54:24 -03:00
cpu.h s390x: replace cpu_s390x_init() with cpu_generic_init() 2017-09-01 11:54:24 -03:00
diag.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
excp_helper.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
fpu_helper.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
gdbstub.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
gen-features.c s390/cpumodel: remove KSS from the default model of z14 2017-07-25 09:17:42 +02:00
helper.c s390x: replace cpu_s390x_init() with cpu_generic_init() 2017-09-01 11:54:24 -03:00
helper.h target/s390x: Implement TRTR 2017-07-17 14:13:17 -07:00
insn-data.def target/s390x: Implement TRTR 2017-07-17 14:13:17 -07:00
insn-format.def
int_helper.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
internal.h target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
interrupt.c s390x/kvm: move KVM declarations and stubs to separate files 2017-08-30 18:23:26 +02:00
ioinst.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
kvm_s390x.h s390x/kvm: move KVM declarations and stubs to separate files 2017-08-30 18:23:26 +02:00
kvm-stub.c s390x/kvm: move KVM declarations and stubs to separate files 2017-08-30 18:23:26 +02:00
kvm.c s390x/kvm: move KVM declarations and stubs to separate files 2017-08-30 18:23:26 +02:00
machine.c s390x/kvm: move KVM declarations and stubs to separate files 2017-08-30 18:23:26 +02:00
Makefile.objs s390x/kvm: move KVM declarations and stubs to separate files 2017-08-30 18:23:26 +02:00
mem_helper.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
misc_helper.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
mmu_helper.c s390x/kvm: move KVM declarations and stubs to separate files 2017-08-30 18:23:26 +02:00
trace-events trace-events: fix code style: print 0x before hex numbers 2017-08-01 12:13:07 +01:00
translate.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00