tci: Fix type of tci_read_label
PATCH 1/1 tci: Fix type of tci_read_label
Fixes the pointer truncation that was occurring for branches.
Cc Stefan Weil <[email protected]>
Cc Blue Swirl <[email protected]>
Signed-off-by Richard Henderson <[email protected]>
--- tci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tci.c +2 -2
@@ -338,9 +338,9 @@ static uint64_t tci_read_ri64(uint8_t **tb_ptr) }#endif -static target_ulong tci_read_label (uint8_t **tb_ptr) +static tcg_target_ulong tci_read_label (uint8_t **tb_ptr) { -target_ulong label =tci_read_i (tb_ptr); +tcg_target_ulong label =tci_read_i (tb_ptr);assert (label !=0 );return label; }
Signature · 1 line
1.7.11.7
Am 19.11.2012 21:43, schrieb Richard Henderson:
Quoted 16 lines
Fixes the pointer truncation that was occurring for branches.
Cc Stefan Weil<[email protected]>Cc Blue Swirl<[email protected]>Signed-off-by Richard Henderson<[email protected]>--- tci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tci.c +0
-0@@ -338,9 +338,9 @@ static uint64_t tci_read_ri64(uint8_t **tb_ptr) }
tci.c static uint64_t tci_read_ri64(uint8_t **tb_ptr) · line 346
Quoted 10 lines
tci.c +2
-2#endif -static target_ulong tci_read_label (uint8_t **tb_ptr) +static tcg_target_ulong tci_read_label (uint8_t **tb_ptr) { -target_ulong label =tci_read_i (tb_ptr); +tcg_target_ulong label =tci_read_i (tb_ptr);assert (label !=0 );return label; }
Thanks for fixing this.
Reviewed-by Stefan Weil <[email protected]>
Tested-by Stefan Weil <[email protected]>
Blue Swirl
AppliedThanks, applied.
Quoted 28 lines · Richard Henderson
Fixes the pointer truncation that was occurring for branches.
Cc Stefan Weil <[email protected]>Cc Blue Swirl <[email protected]>Signed-off-by Richard Henderson <[email protected]>--- tci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tci.c +2
-3@@ -338,9 +338,9 @@ static uint64_t tci_read_ri64(uint8_t **tb_ptr) }#endif -static target_ulong tci_read_label (uint8_t **tb_ptr) +static tcg_target_ulong tci_read_label (uint8_t **tb_ptr) { -target_ulong label =tci_read_i (tb_ptr); +tcg_target_ulong label =tci_read_i (tb_ptr);assert (label !=0 );return label; } --1.7.11.7