diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-29 17:45:00 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2024-03-12 12:04:24 +0100 |
commit | 4c44a9805127d8f6f065d40fd9f9c65fcf75bcc2 (patch) | |
tree | 2248f4de779c6e3bc2186cf6f4021191eb7d69a1 /target/mips/sysemu | |
parent | da9536433fe9d35363fea26cee7f2de93c007ec2 (diff) | |
download | qemu-4c44a9805127d8f6f065d40fd9f9c65fcf75bcc2.zip qemu-4c44a9805127d8f6f065d40fd9f9c65fcf75bcc2.tar.gz qemu-4c44a9805127d8f6f065d40fd9f9c65fcf75bcc2.tar.bz2 |
target/mips: 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.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240129164514.73104-19-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'target/mips/sysemu')
-rw-r--r-- | target/mips/sysemu/physaddr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/mips/sysemu/physaddr.c b/target/mips/sysemu/physaddr.c index 13c8bc8f..5c5184e 100644 --- a/target/mips/sysemu/physaddr.c +++ b/target/mips/sysemu/physaddr.c @@ -230,8 +230,7 @@ int get_physical_address(CPUMIPSState *env, hwaddr *physical, hwaddr mips_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) { - MIPSCPU *cpu = MIPS_CPU(cs); - CPUMIPSState *env = &cpu->env; + CPUMIPSState *env = cpu_env(cs); hwaddr phys_addr; int prot; |