Skip to content

Commit

Permalink
target-alpha: Change gen_intermediate_code_internal() argument to Alp…
Browse files Browse the repository at this point in the history
…haCPU

Also use bool argument while at it.

Prepares for moving singlestep_enabled field to CPUState.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andreas Färber <afaerber@suse.de>
  • Loading branch information
afaerber committed Jul 9, 2013
1 parent ae06d49 commit 86a35f7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions target-alpha/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3375,10 +3375,11 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
return ret;
}

static inline void gen_intermediate_code_internal(CPUAlphaState *env,
static inline void gen_intermediate_code_internal(AlphaCPU *cpu,
TranslationBlock *tb,
int search_pc)
bool search_pc)
{
CPUAlphaState *env = &cpu->env;
DisasContext ctx, *ctxp = &ctx;
target_ulong pc_start;
uint32_t insn;
Expand Down Expand Up @@ -3502,12 +3503,12 @@ static inline void gen_intermediate_code_internal(CPUAlphaState *env,

void gen_intermediate_code (CPUAlphaState *env, struct TranslationBlock *tb)
{
gen_intermediate_code_internal(env, tb, 0);
gen_intermediate_code_internal(alpha_env_get_cpu(env), tb, false);
}

void gen_intermediate_code_pc (CPUAlphaState *env, struct TranslationBlock *tb)
{
gen_intermediate_code_internal(env, tb, 1);
gen_intermediate_code_internal(alpha_env_get_cpu(env), tb, true);
}

void restore_state_to_opc(CPUAlphaState *env, TranslationBlock *tb, int pc_pos)
Expand Down

0 comments on commit 86a35f7

Please sign in to comment.