Skip to contentSkip to conversation

tci: Fix type of tci_read_label

PATCH Applied Richard Henderson 3 participants 3 messages Nov 19, 2012 – Nov 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tci: Fix type of tci_read_label

Fixes the pointer truncation that was occurring for branches.

---
 tci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tci.c +2 -2
index 9c87c8e..54cf1d9 100644
@@ -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
Reviewed-by Tested-by on v1 1/1
#1 lore raw

Am 19.11.2012 21:43, schrieb Richard Henderson:

Quoted 16 lines

Fixes the pointer truncation that was occurring for branches.

---
  tci.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
tci.c +0 -0
index 9c87c8e..54cf1d9 100644
@@ -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.

Applied
#2 lore raw
In reply to Richard Henderson

Thanks, applied.

Quoted 28 lines · Richard Henderson

Fixes the pointer truncation that was occurring for branches.

---
 tci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tci.c +2 -3
index 9c87c8e..54cf1d9 100644
@@ -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