Commit 82642adcd6ed5e0d45dd1f9df044ed224dfdf036
1 parent
6767d333
Shrink tb_jmp_offset to two entries, the other two are never used.
Showing
2 changed files
with
1 additions
and
8 deletions
exec-all.h
... | ... | @@ -140,7 +140,7 @@ struct TranslationBlock { |
140 | 140 | the code of this one. */ |
141 | 141 | uint16_t tb_next_offset[2]; /* offset of original jump target */ |
142 | 142 | #ifdef USE_DIRECT_JUMP |
143 | - uint16_t tb_jmp_offset[4]; /* offset of jump instruction */ | |
143 | + uint16_t tb_jmp_offset[2]; /* offset of jump instruction */ | |
144 | 144 | #else |
145 | 145 | unsigned long tb_next[2]; /* address of jump generated code */ |
146 | 146 | #endif |
... | ... | @@ -229,9 +229,6 @@ static inline void tb_set_jmp_target(TranslationBlock *tb, |
229 | 229 | |
230 | 230 | offset = tb->tb_jmp_offset[n]; |
231 | 231 | tb_set_jmp_target1((unsigned long)(tb->tc_ptr + offset), addr); |
232 | - offset = tb->tb_jmp_offset[n + 2]; | |
233 | - if (offset != 0xffff) | |
234 | - tb_set_jmp_target1((unsigned long)(tb->tc_ptr + offset), addr); | |
235 | 232 | } |
236 | 233 | |
237 | 234 | #else | ... | ... |
translate-all.c
... | ... | @@ -103,10 +103,6 @@ int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr) |
103 | 103 | #ifdef USE_DIRECT_JUMP |
104 | 104 | s->tb_jmp_offset = tb->tb_jmp_offset; |
105 | 105 | s->tb_next = NULL; |
106 | - /* the following two entries are optional (only used for string ops) */ | |
107 | - /* XXX: not used ? */ | |
108 | - tb->tb_jmp_offset[2] = 0xffff; | |
109 | - tb->tb_jmp_offset[3] = 0xffff; | |
110 | 106 | #else |
111 | 107 | s->tb_jmp_offset = NULL; |
112 | 108 | s->tb_next = tb->tb_next; | ... | ... |