[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 05/24] bug fix: avoid nop to override next instructi
From: |
Tristan Gingold |
Subject: |
[Qemu-devel] [PATCH 05/24] bug fix: avoid nop to override next instruction |
Date: |
Thu, 19 Mar 2009 15:35:37 +0100 |
While searching PC, always store the pc of a new instruction.
Instructions that didn't generate tcg code (such as nop) prevented the next
one to be referenced.
Signed-off-by: Tristan Gingold <address@hidden>
---
target-alpha/translate.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 09065ac..df50d1c 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -2380,10 +2380,10 @@ static always_inline void
gen_intermediate_code_internal (CPUState *env,
lj++;
while (lj < j)
gen_opc_instr_start[lj++] = 0;
- gen_opc_pc[lj] = ctx.pc;
- gen_opc_instr_start[lj] = 1;
- gen_opc_icount[lj] = num_insns;
}
+ gen_opc_pc[lj] = ctx.pc;
+ gen_opc_instr_start[lj] = 1;
+ gen_opc_icount[lj] = num_insns;
}
if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO))
gen_io_start();
--
1.6.2
- [Qemu-devel] [PATCH 0/24]: add alpha es40 system emulation (v2), Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 01/24] Add support for multi-level phys map., Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 02/24] Fix cpu_physical_memory_rw when operating on IO blocks., Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 03/24] Fix bug: palcode is at least 6 bits., Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 04/24] Fix bug: do not mask address LSBs for ldwu., Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 05/24] bug fix: avoid nop to override next instruction,
Tristan Gingold <=
- [Qemu-devel] [PATCH 06/24] Be slightly more verbose for unassigned_mem_read*, Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 07/24] Increase Alpha physical address size to 44 bits., Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 08/24] Allow 5 mmu indexes., Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 09/24] Split cpu_mmu_index into cpu_mmu_index_data and cpu_mmu_index_code., Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 10/24] Add square wave output support., Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 11/24] Add ali1543 super IO pci device., Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 12/24] Add 21272 chipset (memory and pci controller for alpha), Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 13/24] Add target-alpha/machine.c and hw/es40.c for es40 machine emulation., Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 14/24] Move softmmu_helper.h from exec.h to op_helper.c on alpha., Tristan Gingold, 2009/03/19
- [Qemu-devel] [PATCH 15/24] Document which IPR are used by 21264., Tristan Gingold, 2009/03/19