mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
tcg: Add temp_global bit to TCGTemp
This avoids needing to test the index of a temp against nb_globals. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
434391390b
commit
fa477d2547
3 changed files with 24 additions and 14 deletions
12
tcg/tcg.h
12
tcg/tcg.h
|
@ -579,10 +579,14 @@ typedef struct TCGTemp {
|
|||
unsigned int indirect_base:1;
|
||||
unsigned int mem_coherent:1;
|
||||
unsigned int mem_allocated:1;
|
||||
unsigned int temp_local:1; /* If true, the temp is saved across
|
||||
basic blocks. Otherwise, it is not
|
||||
preserved across basic blocks. */
|
||||
unsigned int temp_allocated:1; /* never used for code gen */
|
||||
/* If true, the temp is saved across both basic blocks and
|
||||
translation blocks. */
|
||||
unsigned int temp_global:1;
|
||||
/* If true, the temp is saved across basic blocks but dead
|
||||
at the end of translation blocks. If false, the temp is
|
||||
dead at the end of basic blocks. */
|
||||
unsigned int temp_local:1;
|
||||
unsigned int temp_allocated:1;
|
||||
|
||||
tcg_target_long val;
|
||||
struct TCGTemp *mem_base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue