Re: [Qemu-devel] [PATCH v4 22/29] target-ppc: Add POWER8's MMCR2/MMCRS SPRs

2014-06-03 Thread Alexey Kardashevskiy
On 06/04/2014 09:42 AM, Alexey Kardashevskiy wrote: > On 06/04/2014 03:10 AM, Tom Musta wrote: >> On 6/3/2014 4:27 AM, Alexey Kardashevskiy wrote: >>> This adds POWER8 specific PMU MMCR2/MMCRS SPRs. >>> >>> This adds a spr_write_ureg helper for changing a hypv-privileged SPR when >>> it is accessed

Re: [Qemu-devel] [PATCH v4 22/29] target-ppc: Add POWER8's MMCR2/MMCRS SPRs

2014-06-03 Thread Alexey Kardashevskiy
On 06/04/2014 03:10 AM, Tom Musta wrote: > On 6/3/2014 4:27 AM, Alexey Kardashevskiy wrote: >> This adds POWER8 specific PMU MMCR2/MMCRS SPRs. >> >> This adds a spr_write_ureg helper for changing a hypv-privileged SPR when >> it is accessed via its user-privileged mirror. A spr_read_ureg() is >> al

Re: [Qemu-devel] [PATCH v4 22/29] target-ppc: Add POWER8's MMCR2/MMCRS SPRs

2014-06-03 Thread Tom Musta
On 6/3/2014 4:27 AM, Alexey Kardashevskiy wrote: > This adds POWER8 specific PMU MMCR2/MMCRS SPRs. > > This adds a spr_write_ureg helper for changing a hypv-privileged SPR when > it is accessed via its user-privileged mirror. A spr_read_ureg() is > already there. Since the new helper is only used

[Qemu-devel] [PATCH v4 22/29] target-ppc: Add POWER8's MMCR2/MMCRS SPRs

2014-06-03 Thread Alexey Kardashevskiy
This adds POWER8 specific PMU MMCR2/MMCRS SPRs. This adds a spr_write_ureg helper for changing a hypv-privileged SPR when it is accessed via its user-privileged mirror. A spr_read_ureg() is already there. Since the new helper is only used by book3s CPUs, it is limited to TARGET_PPC64 to make gcc h