[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 07/48] Shrink tb_jmp_offset to two entries, the othe
From: |
Riku Voipio |
Subject: |
[Qemu-devel] [PATCH 07/48] Shrink tb_jmp_offset to two entries, the other two are never used. |
Date: |
Fri, 26 Mar 2010 16:06:28 +0000 |
From: Filip Navara <address@hidden>
Signed-Off-By: Riku Voipio <address@hidden>
Signed-off-by: Filip Navara <address@hidden>
---
exec-all.h | 5 +----
translate-all.c | 4 ----
2 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/exec-all.h b/exec-all.h
index 37da2f5..b9f0294 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -143,7 +143,7 @@ struct TranslationBlock {
the code of this one. */
uint16_t tb_next_offset[2]; /* offset of original jump target */
#ifdef USE_DIRECT_JUMP
- uint16_t tb_jmp_offset[4]; /* offset of jump instruction */
+ uint16_t tb_jmp_offset[2]; /* offset of jump instruction */
#else
unsigned long tb_next[2]; /* address of jump generated code */
#endif
@@ -234,9 +234,6 @@ static inline void tb_set_jmp_target(TranslationBlock *tb,
offset = tb->tb_jmp_offset[n];
tb_set_jmp_target1((unsigned long)(tb->tc_ptr + offset), addr);
- offset = tb->tb_jmp_offset[n + 2];
- if (offset != 0xffff)
- tb_set_jmp_target1((unsigned long)(tb->tc_ptr + offset), addr);
}
#else
diff --git a/translate-all.c b/translate-all.c
index 8ef8a0b..8c3f666 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -103,10 +103,6 @@ int cpu_gen_code(CPUState *env, TranslationBlock *tb, int
*gen_code_size_ptr)
#ifdef USE_DIRECT_JUMP
s->tb_jmp_offset = tb->tb_jmp_offset;
s->tb_next = NULL;
- /* the following two entries are optional (only used for string ops) */
- /* XXX: not used ? */
- tb->tb_jmp_offset[2] = 0xffff;
- tb->tb_jmp_offset[3] = 0xffff;
#else
s->tb_jmp_offset = NULL;
s->tb_next = tb->tb_next;
--
1.6.5
- [Qemu-devel] [PATCH 00/48] RFC: omap3 patch collection, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 14/48] multikeyboard support merge, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 16/48] sdl: multitouch and window close suppport, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 13/48] multitouch and window close handler, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 28/48] prepare smc driver support for omap, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 15/48] fix function signature of qemu_chr_open_pty on !linux, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 08/48] Cortex-A8 R2 support and trustzone, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 06/48] Get rid of AREG1 and AREG2., Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 07/48] Shrink tb_jmp_offset to two entries, the other two are never used.,
Riku Voipio <=
- [Qemu-devel] [PATCH 17/48] add multi-sd support, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 23/48] multi-mmc support in init call, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 01/48] arm-dis debug helper, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 18/48] make cursor grab optional, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 47/48] target-arm: fix neon vshll (shift < max), Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 38/48] target-arm: fix neon vrshl instruction, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 40/48] target-arm: fix neon v(r)sra instructions, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 39/48] target-arm: fix neon vrshr instruction, Riku Voipio, 2010/03/26