mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
target/xtensa: 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-29-philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
39ac0bac99
commit
52049266e5
6 changed files with 10 additions and 20 deletions
|
@ -66,8 +66,7 @@ void HELPER(wsr_ibreaka)(CPUXtensaState *env, uint32_t i, uint32_t v)
|
|||
|
||||
bool xtensa_debug_check_breakpoint(CPUState *cs)
|
||||
{
|
||||
XtensaCPU *cpu = XTENSA_CPU(cs);
|
||||
CPUXtensaState *env = &cpu->env;
|
||||
CPUXtensaState *env = cpu_env(cs);
|
||||
unsigned int i;
|
||||
|
||||
if (xtensa_get_cintlevel(env) >= env->config->debug_level) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue