[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v2 02/10] ppc: Add macros to register hypervisor m
From: |
Thomas Huth |
Subject: |
Re: [Qemu-ppc] [PATCH v2 02/10] ppc: Add macros to register hypervisor mode SPRs |
Date: |
Wed, 16 Mar 2016 18:26:46 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 16.03.2016 14:13, Cédric Le Goater wrote:
> From: Benjamin Herrenschmidt <address@hidden>
>
> The current set of spr_register_* macros only take the user and
> supervisor function pointers. To make the transition easy, we
> don't change that but we add "_hv" variants that can be used to
> register all 3 sets.
>
> To simplify the transition, users of the "old" macro will set the
> hypervisor callback to be the same as the supervisor one. The new
> registration function only needs to be used for registers that are
> either hypervisor only or behave differently in HV mode.
>
> Signed-off-by: Benjamin Herrenschmidt <address@hidden>
> Reviewed-by: David Gibson <address@hidden>
> [clg: fixed else if condition in gen_op_mfspr() ]
> Signed-off-by: Cédric Le Goater <address@hidden>
> ---
> target-ppc/translate.c | 26 ++++++++++++++++----------
> target-ppc/translate_init.c | 35 +++++++++++++++++++++++++++++++----
> 2 files changed, 47 insertions(+), 14 deletions(-)
>
[...]
Reviewed-by: Thomas Huth <address@hidden>
- Re: [Qemu-ppc] [PATCH v2 03/10] ppc: Add a bunch of hypervisor SPRs to Book3s, (continued)
- [Qemu-ppc] [PATCH v2 06/10] ppc: Initialize AMOR in PAPR mode, Cédric Le Goater, 2016/03/16
- [Qemu-ppc] [PATCH v2 08/10] ppc: Add POWER8 IAMR register, Cédric Le Goater, 2016/03/16
- [Qemu-ppc] [PATCH v2 10/10] ppc: A couple more dummy POWER8 Book4 regs, Cédric Le Goater, 2016/03/16
- [Qemu-ppc] [PATCH v2 02/10] ppc: Add macros to register hypervisor mode SPRs, Cédric Le Goater, 2016/03/16
- Re: [Qemu-ppc] [PATCH v2 02/10] ppc: Add macros to register hypervisor mode SPRs,
Thomas Huth <=
- [Qemu-ppc] [PATCH v2 09/10] ppc: Add dummy CIABR SPR, Cédric Le Goater, 2016/03/16
- [Qemu-ppc] [PATCH v2 07/10] ppc: Fix writing to AMR/UAMOR, Cédric Le Goater, 2016/03/16