[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH 03/14] target/ppc: remove getVSR()/pu
From: |
Richard Henderson |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH 03/14] target/ppc: remove getVSR()/putVSR() from int_helper.c |
Date: |
Tue, 30 Apr 2019 09:32:44 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 4/28/19 7:38 AM, Mark Cave-Ayland wrote:
> void helper_xxextractuw(CPUPPCState *env, target_ulong xtn,
> target_ulong xbn, uint32_t index)
> {
> - ppc_vsr_t xt, xb;
> + ppc_vsr_t *xt = &env->vsr[xtn];
> + ppc_vsr_t *xb = &env->vsr[xbn];
> size_t es = sizeof(uint32_t);
> uint32_t ext_index;
> int i;
>
> - getVSR(xbn, &xb, env);
> - memset(&xt, 0, sizeof(xt));
> + memset(xt, 0, sizeof(ppc_vsr_t));
This fails if xt == xb.
Similarly for xxinsertw.
r~
- [Qemu-ppc] [PATCH 00/14] target/ppc: remove getVSR()/putVSR() and further tidy-up, Mark Cave-Ayland, 2019/04/28
- [Qemu-ppc] [PATCH 02/14] target/ppc: remove getVSR()/putVSR() from mem_helper.c, Mark Cave-Ayland, 2019/04/28
- [Qemu-ppc] [PATCH 03/14] target/ppc: remove getVSR()/putVSR() from int_helper.c, Mark Cave-Ayland, 2019/04/28
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 03/14] target/ppc: remove getVSR()/putVSR() from int_helper.c,
Richard Henderson <=
- [Qemu-ppc] [PATCH 06/14] target/ppc: introduce GEN_VSX_HELPER_X2_AB macro to fpu_helper.c, Mark Cave-Ayland, 2019/04/28
- [Qemu-ppc] [PATCH 08/14] target/ppc: introduce GEN_VSX_HELPER_R3 macro to fpu_helper.c, Mark Cave-Ayland, 2019/04/28
- [Qemu-ppc] [PATCH 09/14] target/ppc: introduce GEN_VSX_HELPER_R2 macro to fpu_helper.c, Mark Cave-Ayland, 2019/04/28
- [Qemu-ppc] [PATCH 07/14] target/ppc: introduce GEN_VSX_HELPER_X1 macro to fpu_helper.c, Mark Cave-Ayland, 2019/04/28
- [Qemu-ppc] [PATCH 04/14] target/ppc: introduce GEN_VSX_HELPER_X3 macro to fpu_helper.c, Mark Cave-Ayland, 2019/04/28