mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
target/s390x: 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> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20240129164514.73104-25-philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
eb14b021f8
commit
d0143fa9ee
7 changed files with 11 additions and 25 deletions
|
@ -6582,8 +6582,7 @@ void s390x_restore_state_to_opc(CPUState *cs,
|
|||
const TranslationBlock *tb,
|
||||
const uint64_t *data)
|
||||
{
|
||||
S390CPU *cpu = S390_CPU(cs);
|
||||
CPUS390XState *env = &cpu->env;
|
||||
CPUS390XState *env = cpu_env(cs);
|
||||
int cc_op = data[1];
|
||||
|
||||
env->psw.addr = data[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue