aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2023-06-05 13:39:47 +0200
committerThomas Huth <thuth@redhat.com>2023-06-05 20:48:34 +0200
commit71b11cbe1c34411238703abe24bfaf2e9712c30d (patch)
tree722c3f1a7cbf0525ada8658f8dd2ea1baf6c9dc6 /linux-user
parent7d5b0d68647c8f966c6e4e68ed669127186b4701 (diff)
downloadqemu-71b11cbe1c34411238703abe24bfaf2e9712c30d.zip
qemu-71b11cbe1c34411238703abe24bfaf2e9712c30d.tar.gz
qemu-71b11cbe1c34411238703abe24bfaf2e9712c30d.tar.bz2
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: 076d4d39b65f ("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>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions