mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/microblaze: 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-18-philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
e22a456036
commit
da9536433f
3 changed files with 4 additions and 8 deletions
|
@ -252,8 +252,7 @@ hwaddr mb_cpu_get_phys_page_attrs_debug(CPUState *cs, vaddr addr,
|
|||
|
||||
bool mb_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
|
||||
{
|
||||
MicroBlazeCPU *cpu = MICROBLAZE_CPU(cs);
|
||||
CPUMBState *env = &cpu->env;
|
||||
CPUMBState *env = cpu_env(cs);
|
||||
|
||||
if ((interrupt_request & CPU_INTERRUPT_HARD)
|
||||
&& (env->msr & MSR_IE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue