Skip to content

Commit

Permalink
target/hexagon: Convert to tcg_ops restore_state_to_opc
Browse files Browse the repository at this point in the history
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
  • Loading branch information
rth7680 committed Oct 26, 2022
1 parent 4060474 commit 9015781
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions target/hexagon/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,13 @@ static bool hexagon_cpu_has_work(CPUState *cs)
return true;
}

void restore_state_to_opc(CPUHexagonState *env, TranslationBlock *tb,
target_ulong *data)
static void hexagon_restore_state_to_opc(CPUState *cs,
const TranslationBlock *tb,
const uint64_t *data)
{
HexagonCPU *cpu = HEXAGON_CPU(cs);
CPUHexagonState *env = &cpu->env;

env->gpr[HEX_REG_PC] = data[0];
}

Expand Down Expand Up @@ -327,6 +331,7 @@ static void hexagon_cpu_init(Object *obj)
static const struct TCGCPUOps hexagon_tcg_ops = {
.initialize = hexagon_translate_init,
.synchronize_from_tb = hexagon_cpu_synchronize_from_tb,
.restore_state_to_opc = hexagon_restore_state_to_opc,
};

static void hexagon_cpu_class_init(ObjectClass *c, void *data)
Expand Down

0 comments on commit 9015781

Please sign in to comment.