Commit 5d04f23bdf3f99c3c4c731e1897a760f067a34e0
1 parent
40e8a53b
tcg: remove tcg_global_reg2_new_hack()
This patch removes the unused tcg_global_reg2_new_hack() function, which was added in r4438 to work around a register shortage problem regarding dyngen. The only ever user of this function was removed in r4577. Signed-off-by: Stuart Brady <stuart.brady@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6150 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
0 additions
and
39 deletions
tcg/tcg.c
| ... | ... | @@ -313,43 +313,6 @@ TCGv_i64 tcg_global_reg_new_i64(int reg, const char *name) |
| 313 | 313 | return MAKE_TCGV_I64(idx); |
| 314 | 314 | } |
| 315 | 315 | |
| 316 | -#if TCG_TARGET_REG_BITS == 32 | |
| 317 | -/* temporary hack to avoid register shortage for tcg_qemu_st64() */ | |
| 318 | -TCGv_i64 tcg_global_reg2_new_hack(TCGType type, int reg1, int reg2, | |
| 319 | - const char *name) | |
| 320 | -{ | |
| 321 | - TCGContext *s = &tcg_ctx; | |
| 322 | - TCGTemp *ts; | |
| 323 | - int idx; | |
| 324 | - char buf[64]; | |
| 325 | - | |
| 326 | - if (type != TCG_TYPE_I64) | |
| 327 | - tcg_abort(); | |
| 328 | - idx = s->nb_globals; | |
| 329 | - tcg_temp_alloc(s, s->nb_globals + 2); | |
| 330 | - ts = &s->temps[s->nb_globals]; | |
| 331 | - ts->base_type = type; | |
| 332 | - ts->type = TCG_TYPE_I32; | |
| 333 | - ts->fixed_reg = 1; | |
| 334 | - ts->reg = reg1; | |
| 335 | - pstrcpy(buf, sizeof(buf), name); | |
| 336 | - pstrcat(buf, sizeof(buf), "_0"); | |
| 337 | - ts->name = strdup(buf); | |
| 338 | - | |
| 339 | - ts++; | |
| 340 | - ts->base_type = type; | |
| 341 | - ts->type = TCG_TYPE_I32; | |
| 342 | - ts->fixed_reg = 1; | |
| 343 | - ts->reg = reg2; | |
| 344 | - pstrcpy(buf, sizeof(buf), name); | |
| 345 | - pstrcat(buf, sizeof(buf), "_1"); | |
| 346 | - ts->name = strdup(buf); | |
| 347 | - | |
| 348 | - s->nb_globals += 2; | |
| 349 | - return MAKE_TCGV_I64(idx); | |
| 350 | -} | |
| 351 | -#endif | |
| 352 | - | |
| 353 | 316 | static inline int tcg_global_mem_new_internal(TCGType type, int reg, |
| 354 | 317 | tcg_target_long offset, |
| 355 | 318 | const char *name) | ... | ... |
tcg/tcg.h
| ... | ... | @@ -319,8 +319,6 @@ int tcg_gen_code_search_pc(TCGContext *s, uint8_t *gen_code_buf, long offset); |
| 319 | 319 | |
| 320 | 320 | void tcg_set_frame(TCGContext *s, int reg, |
| 321 | 321 | tcg_target_long start, tcg_target_long size); |
| 322 | -TCGv_i64 tcg_global_reg2_new_hack(TCGType type, int reg1, int reg2, | |
| 323 | - const char *name); | |
| 324 | 322 | |
| 325 | 323 | TCGv_i32 tcg_global_reg_new_i32(int reg, const char *name); |
| 326 | 324 | TCGv_i32 tcg_global_mem_new_i32(int reg, tcg_target_long offset, | ... | ... |