Commit 8579095b81e985fdcdba923d7b3ad75ddf69cb87
1 parent
ecbb5ea1
target-alpha: remove helper_load_implver
There is no need to use an helper. Directly load the value with tcg code. Signed-off-by: Tristan Gingold <gingold@adacore.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7074 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
3 changed files
with
3 additions
and
7 deletions
target-alpha/helper.h
target-alpha/op_helper.c
target-alpha/translate.c
... | ... | @@ -51,6 +51,7 @@ struct DisasContext { |
51 | 51 | #if !defined (CONFIG_USER_ONLY) |
52 | 52 | int pal_mode; |
53 | 53 | #endif |
54 | + CPUAlphaState *env; | |
54 | 55 | uint32_t amask; |
55 | 56 | }; |
56 | 57 | |
... | ... | @@ -1175,7 +1176,7 @@ static always_inline int translate_one (DisasContext *ctx, uint32_t insn) |
1175 | 1176 | case 0x6C: |
1176 | 1177 | /* IMPLVER */ |
1177 | 1178 | if (rc != 31) |
1178 | - gen_helper_load_implver(cpu_ir[rc]); | |
1179 | + tcg_gen_movi_i64(cpu_ir[rc], ctx->env->implver); | |
1179 | 1180 | break; |
1180 | 1181 | default: |
1181 | 1182 | goto invalid_opc; |
... | ... | @@ -2352,6 +2353,7 @@ static always_inline void gen_intermediate_code_internal (CPUState *env, |
2352 | 2353 | gen_opc_end = gen_opc_buf + OPC_MAX_SIZE; |
2353 | 2354 | ctx.pc = pc_start; |
2354 | 2355 | ctx.amask = env->amask; |
2356 | + ctx.env = env; | |
2355 | 2357 | #if defined (CONFIG_USER_ONLY) |
2356 | 2358 | ctx.mem_idx = 0; |
2357 | 2359 | #else | ... | ... |