target-i386: Deconstruct the cpu_T array

All references to cpu_T are done with a constant index. It aids
readability to decompose the array into two scalar variables.

Backports commit 1d1cc4d0f481b2939c7e9f6606e571b2fc81971a from qemu
This commit is contained in:
Richard Henderson 2018-02-20 10:51:01 -05:00 committed by Lioncash
parent 5d45260df7
commit 65a78ebb26
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
3 changed files with 669 additions and 656 deletions

File diff suppressed because it is too large Load diff

View file

@ -39,8 +39,8 @@ void x86_release(void *ctx)
// arch specific
g_free(s->cpu_A0);
g_free(s->cpu_T[0]);
g_free(s->cpu_T[1]);
g_free(s->cpu_T0);
g_free(s->cpu_T1);
g_free(s->cpu_tmp0);
g_free(s->cpu_tmp4);
g_free(s->cpu_cc_srcT);

View file

@ -728,7 +728,8 @@ struct TCGContext {
void *cpu_cc_dst, *cpu_cc_src, *cpu_cc_src2, *cpu_cc_srcT;
/* qemu/target-i386/translate.c: local temps */
void *cpu_T[2];
void *cpu_T0; // Actually a TCGv
void *cpu_T1; // Actually a TCGv
/* qemu/target-i386/translate.c: local register indexes (only used inside old micro ops) */
void *cpu_tmp0, *cpu_tmp4;