]> git.proxmox.com Git - mirror_qemu.git/commit - target/s390x/cpu.h
s390x/cpumodel: wire up cpu type + id for TCG
authorDavid Hildenbrand <david@redhat.com>
Fri, 9 Jun 2017 13:34:26 +0000 (15:34 +0200)
committerRichard Henderson <rth@twiddle.net>
Tue, 13 Jun 2017 18:09:39 +0000 (11:09 -0700)
commit076d4d39b65f50ca1bba3d3c8a8f1cf977c1c3f0
tree83b357618c62624cc4baf42094e8c50129b674b7
parentbecf8217deb2afc347d5172d9f30c8a8964b8b27
s390x/cpumodel: wire up cpu type + id for TCG

Let's properly expose the CPU type (machine-type number) via "STORE CPU
ID" and "STORE SUBSYSTEM INFORMATION".

As TCG emulates basic mode, the CPU identification number has the format
"Annnnn", whereby A is the CPU address, and n are parts of the CPU serial
number (0 for us for now).

A specification exception will be injected if the address is not aligned
to a double word. Low address protection will not be checked as
we're missing some more general support for that.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170609133426.11447-3-david@redhat.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target/s390x/cpu.h
target/s390x/cpu_models.c
target/s390x/insn-data.def
target/s390x/misc_helper.c
target/s390x/translate.c