mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 04:05:37 +00:00
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:
parent
5d45260df7
commit
65a78ebb26
File diff suppressed because it is too large
Load diff
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue