Re: [Qemu-devel] [PATCH v2 for-2.12 08/10] s390x/tcg: implement extract-CPU-time facility

2017-12-08 Thread Richard Henderson
On 12/08/2017 07:02 AM, David Hildenbrand wrote: > +/* Store CPU Timer (also used for EXTRACT CPU TIME) */ > +uint64_t HELPER(stpt)(CPUS390XState *env) > +{ > +#if defined(CONFIG_USER_ONLY) > +/* > + * Fake a descending CPU timer. We could get negative values here, > + * but we don't ca

Re: [Qemu-devel] [PATCH v2 for-2.12 08/10] s390x/tcg: implement extract-CPU-time facility

2017-12-08 Thread David Hildenbrand
On 08.12.2017 00:54, Richard Henderson wrote: > On 12/07/2017 08:53 AM, David Hildenbrand wrote: >> 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 >>

Re: [Qemu-devel] [PATCH v2 for-2.12 08/10] s390x/tcg: implement extract-CPU-time facility

2017-12-07 Thread Richard Henderson
On 12/07/2017 08:53 AM, David Hildenbrand wrote: > 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 fake the CPU

[Qemu-devel] [PATCH v2 for-2.12 08/10] s390x/tcg: implement extract-CPU-time facility

2017-12-07 Thread David Hildenbrand
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 fake the CPU timer to be 0. Signed-off-by: David Hildenbrand --- targ