Home
last modified time | relevance | path

Searched hist:"4 bac52f5c4b3dd5d0bd7568377ad7e957d5e3c6a" (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/target/s390x/
H A Dhelper.hdiff 4bac52f5c4b3dd5d0bd7568377ad7e957d5e3c6a Fri Dec 08 10:02:05 CST 2017 David Hildenbrand <david@redhat.com> 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>
H A Dcpu_models.cdiff 4bac52f5c4b3dd5d0bd7568377ad7e957d5e3c6a Fri Dec 08 10:02:05 CST 2017 David Hildenbrand <david@redhat.com> 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>