mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
tcg: Reference count labels
Increment when adding branches, and decrement when removing them. Reviewed-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
15d7409260
commit
d88a117eaa
4 changed files with 25 additions and 1 deletions
|
@ -244,7 +244,8 @@ typedef struct TCGRelocation {
|
|||
|
||||
typedef struct TCGLabel {
|
||||
unsigned has_value : 1;
|
||||
unsigned id : 31;
|
||||
unsigned id : 15;
|
||||
unsigned refs : 16;
|
||||
union {
|
||||
uintptr_t value;
|
||||
tcg_insn_unit *value_ptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue