s390x/tcg: implement extract-CPU-time facility
commit4bac52f5c4b3dd5d0bd7568377ad7e957d5e3c6a
authorDavid Hildenbrand <david@redhat.com>
Fri, 8 Dec 2017 16:02:05 +0000 (8 17:02 +0100)
committerCornelia Huck <cohuck@redhat.com>
Thu, 14 Dec 2017 16:56:54 +0000 (14 17:56 +0100)
treefef4787eeee9ef5222fcf5ab1b271f3e84c3b7bc
parentad0ccf1e6a45c22d6c0564f8365bf1df39c64c15
s390x/tcg: implement extract-CPU-time facility

It only provides the EXTRACT CPU TIME instruction. We can reuse the stpt
helper, which calculates the CPU timer value.

As the instruction is not privileged, but we don't have a CPU timer
value in case of linux user, we simply reuse cpu_get_host_ticks() to
produce some descending value.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20171208160207.26494-13-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/cpu_models.c
target/s390x/helper.h
target/s390x/insn-data.def
target/s390x/misc_helper.c
target/s390x/translate.c