diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-29 17:45:03 +0100 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2024-03-12 12:04:24 +0100 |
| commit | 794511bc51bc89f384063103653e5f40c75cd49e (patch) | |
| tree | 40a3bfeacf2c870cb079db006e9460ef1fd977d6 /target/ppc/user_only_helper.c | |
| parent | 074bd799e73a23b0ce05ed45f2668ceb31db144e (diff) | |
| download | focaccia-qemu-794511bc51bc89f384063103653e5f40c75cd49e.tar.gz focaccia-qemu-794511bc51bc89f384063103653e5f40c75cd49e.zip | |
target/ppc: Prefer fast cpu_env() over slower CPU QOM cast macro
Mechanical patch produced running the command documented in scripts/coccinelle/cpu_env.cocci_template header. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240129164514.73104-22-philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'target/ppc/user_only_helper.c')
| -rw-r--r-- | target/ppc/user_only_helper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/ppc/user_only_helper.c b/target/ppc/user_only_helper.c index 7ff76f7a06..a4d07a0d0d 100644 --- a/target/ppc/user_only_helper.c +++ b/target/ppc/user_only_helper.c @@ -27,8 +27,7 @@ void ppc_cpu_record_sigsegv(CPUState *cs, vaddr address, MMUAccessType access_type, bool maperr, uintptr_t retaddr) { - PowerPCCPU *cpu = POWERPC_CPU(cs); - CPUPPCState *env = &cpu->env; + CPUPPCState *env = cpu_env(cs); int exception, error_code; /* |