mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/avr: 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-10-philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
50cb36ce77
commit
2db5b94d83
4 changed files with 13 additions and 33 deletions
|
@ -2657,11 +2657,10 @@ static bool canonicalize_skip(DisasContext *ctx)
|
|||
static void avr_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cs)
|
||||
{
|
||||
DisasContext *ctx = container_of(dcbase, DisasContext, base);
|
||||
CPUAVRState *env = cpu_env(cs);
|
||||
uint32_t tb_flags = ctx->base.tb->flags;
|
||||
|
||||
ctx->cs = cs;
|
||||
ctx->env = env;
|
||||
ctx->env = cpu_env(cs);
|
||||
ctx->npc = ctx->base.pc_first / 2;
|
||||
|
||||
ctx->skip_cond = TCG_COND_NEVER;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue