qemu-e2k/target/s390x
Ilya Leoshkevich 71b11cbe1c s390x/tcg: Fix CPU address returned by STIDP
In qemu-user-s390x, /proc/cpuinfo contains:

	processor 0: version = 00,  identification = 000000,  machine = 8561
	processor 1: version = 00,  identification = 400000,  machine = 8561

The highest nibble is supposed to contain the CPU address, but it's off
by 2 bits. Fix the shift value and provide a symbolic constant for it.

With the fix we get:

	processor 0: version = 00,  identification = 000000,  machine = 8561
	processor 1: version = 00,  identification = 100000,  machine = 8561

Fixes: 076d4d39b6 ("s390x/cpumodel: wire up cpu type + id for TCG")
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20230605113950.1169228-2-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2023-06-05 20:48:34 +02:00
..
kvm dump queue 2022-10-26 10:53:49 -04:00
tcg target/s390x: Fix MXDB and MXDBR 2023-06-05 09:48:29 +02:00
arch_dump.c target/s390x/arch_dump: Simplify memory allocation in s390x_write_elf64_notes() 2023-02-27 09:15:38 +01:00
cpu_features_def.h
cpu_features_def.h.inc s390x/cpumodel: add stfl197 processor-activity-instrumentation extension 1 2022-08-25 21:59:04 +02:00
cpu_features.c hw/s390x/pv: Restrict Protected Virtualization to sysemu 2023-01-09 13:50:13 +01:00
cpu_features.h s390x: pv: Fix diag318 PV fencing 2020-10-22 15:47:27 +02:00
cpu_models_sysemu.c qapi machine: Elide redundant has_FOO in generated C 2022-12-14 20:04:47 +01:00
cpu_models_user.c target/s390x: split sysemu part of cpu models 2021-07-07 14:01:59 +02:00
cpu_models.c s390x/tcg: Fix CPU address returned by STIDP 2023-06-05 20:48:34 +02:00
cpu_models.h s390x/tcg: Fix CPU address returned by STIDP 2023-06-05 20:48:34 +02:00
cpu-dump.c target/s390x: Fix shifting 32-bit values for more than 31 bits 2022-01-17 08:36:33 +01:00
cpu-param.h target/s390x: Remove NB_MMU_MODES define 2023-03-13 06:44:37 -07:00
cpu-qom.h target: Introduce and use OBJECT_DECLARE_CPU_TYPE() macro 2022-03-06 22:23:09 +01:00
cpu-sysemu.c *: Add missing includes of qemu/error-report.h 2023-03-22 15:06:57 +00:00
cpu.c hw/core: Use a callback for target specific query-cpus-fast information 2023-05-16 09:14:18 +02:00
cpu.h target/s390x: Use tcg_gen_qemu_{ld,st}_i128 for LPQ, STPQ 2023-05-23 16:51:19 -07:00
diag.c *: Add missing includes of qemu/error-report.h 2023-03-22 15:06:57 +00:00
gdbstub.c s390x/gdb: Split s390-virt.xml 2023-04-28 08:05:37 +02:00
gen-features.c target/s390x: support PRNO_TRNG instruction 2022-09-26 17:23:11 +02:00
helper.c gdbstub: move register helpers into standalone include 2023-03-07 20:44:08 +00:00
helper.h target/s390x: Fix MXDB and MXDBR 2023-06-05 09:48:29 +02:00
interrupt.c target/s390x: move kvm files into kvm/ 2021-07-07 14:01:59 +02:00
ioinst.c s390x: Fix spelling errors 2022-11-16 10:15:26 +01:00
Kconfig meson: Introduce target-specific Kconfig 2021-07-09 18:21:34 +02:00
machine.c target/s390x: move kvm files into kvm/ 2021-07-07 14:01:59 +02:00
meson.build target/s390x: split sysemu part of cpu models 2021-07-07 14:01:59 +02:00
mmu_helper.c hw/s390x/s390-skeys: lazy storage key enablement under TCG 2021-09-06 16:24:05 +02:00
s390x-internal.h target/s390x: Fix float_comp_to_cc() prototype 2023-03-24 11:46:08 +01:00
sigp.c s390x: sigp: Reorder the SIGP STOP code 2022-01-18 15:00:57 +01:00
trace-events target/s390x: move kvm files into kvm/ 2021-07-07 14:01:59 +02:00
trace.h