qemu/target/ppc
Philippe Mathieu-Daudé ee1004bba6 bulk: Access existing variables initialized to &S->F when available
When a variable is initialized to &struct->field, use it
in place. Rationale: while this makes the code more concise,
this also helps static analyzers.

Mechanical change using the following Coccinelle spatch script:

 @@
 type S, F;
 identifier s, m, v;
 @@
      S *s;
      ...
      F *v = &s->m;
      <+...
 -    &s->m
 +    v
      ...+>

Inspired-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240129164514.73104-2-philmd@linaro.org>
Acked-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
[thuth: Dropped hunks that need a rebase, and fixed sizeof() in pmu_realize()]
Signed-off-by: Thomas Huth <thuth@redhat.com>
2024-03-12 11:46:16 +01:00
..
translate target/ppc: Fix lxv/stxv MSR facility check 2024-02-23 23:16:34 +10:00
arch_dump.c
compat.c
cpu_init.c hw/core/cpu: Remove gdb_get_dynamic_xml member 2024-02-28 09:10:06 +00:00
cpu-models.c
cpu-models.h
cpu-param.h target/ppc: Enable TARGET_PAGE_BITS_VARY for user-only 2024-02-29 11:35:37 -10:00
cpu-qom.h target/ppc: Use GDBFeature for dynamic XML 2024-02-28 09:09:25 +00:00
cpu.c
cpu.h hw/core/cpu: Remove gdb_get_dynamic_xml member 2024-02-28 09:10:06 +00:00
dfp_helper.c
excp_helper.c target/ppc: Fix crash on machine check caused by ifetch 2024-02-23 23:16:34 +10:00
fpu_helper.c
gdbstub.c hw/core/cpu: Remove gdb_get_dynamic_xml member 2024-02-28 09:10:06 +00:00
helper_regs.c target/ppc: Fix move-to timebase SPR access permissions 2024-02-23 23:24:43 +10:00
helper_regs.h
helper.h
insn32.decode
insn64.decode
int_helper.c
internal.h
Kconfig
kvm_ppc.h
kvm.c bulk: Access existing variables initialized to &S->F when available 2024-03-12 11:46:16 +01:00
machine.c
mem_helper.c
meson.build
misc_helper.c
mmu_common.c
mmu_helper.c target/ppc: optimise ppcemb_tlb_t flushing 2024-02-23 23:24:43 +10:00
mmu-book3s-v3.c
mmu-book3s-v3.h
mmu-books.h
mmu-hash32.c
mmu-hash32.h
mmu-hash64.c
mmu-hash64.h
mmu-radix64.c
mmu-radix64.h
power8-pmu-regs.c.inc
power8-pmu.c
power8-pmu.h
ppc-qmp-cmds.c target/ppc: Rename TBL to TB on 64-bit 2024-02-23 23:24:43 +10:00
spr_common.h
tcg-stub.c hw/ppc/spapr_hcall: Allow elision of softmmu_resize_hpt_prep 2024-02-23 23:24:42 +10:00
timebase_helper.c target/ppc: Add SMT support to time facilities 2024-02-23 23:24:43 +10:00
trace-events
trace.h
translate.c target/ppc: Add SMT support to time facilities 2024-02-23 23:24:43 +10:00
user_only_helper.c