[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 04/10] tcg: change cpu_restore_state to return v
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [RFC PATCH 04/10] tcg: change cpu_restore_state to return void |
Date: |
Mon, 17 Sep 2012 18:00:43 +0200 |
The return value is used nowhere.
Signed-off-by: Paolo Bonzini <address@hidden>
---
exec-all.h | 4 ++--
translate-all.c | 9 ++++-----
2 file modificati, 6 inserzioni(+), 7 rimozioni(-)
diff --git a/exec-all.h b/exec-all.h
index dba9609..cecafa1 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -84,8 +84,8 @@ void restore_state_to_opc(CPUArchState *env, struct
TranslationBlock *tb,
void cpu_gen_init(void);
int cpu_gen_code(CPUArchState *env, struct TranslationBlock *tb,
int *gen_code_size_ptr);
-int cpu_restore_state(struct TranslationBlock *tb,
- CPUArchState *env, uintptr_t searched_pc);
+void cpu_restore_state(struct TranslationBlock *tb,
+ CPUArchState *env, uintptr_t searched_pc);
void QEMU_NORETURN cpu_resume_from_signal(CPUArchState *env1, void *puc);
void QEMU_NORETURN cpu_io_recompile(CPUArchState *env, uintptr_t retaddr);
TranslationBlock *tb_gen_code(CPUArchState *env,
diff --git a/translate-all.c b/translate-all.c
index 5bd2d37..f2f9036 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -108,8 +108,8 @@ int cpu_gen_code(CPUArchState *env, TranslationBlock *tb,
int *gen_code_size_ptr
/* The cpu state corresponding to 'searched_pc' is restored.
*/
-int cpu_restore_state(TranslationBlock *tb,
- CPUArchState *env, uintptr_t searched_pc)
+void cpu_restore_state(TranslationBlock *tb,
+ CPUArchState *env, uintptr_t searched_pc)
{
TCGContext *s = &tcg_ctx;
int j;
@@ -135,7 +135,7 @@ int cpu_restore_state(TranslationBlock *tb,
/* find opc index corresponding to search_pc */
tc_ptr = (uintptr_t)tb->tc_ptr;
if (searched_pc < tc_ptr)
- return -1;
+ return;
s->tb_next_offset = tb->tb_next_offset;
#ifdef USE_DIRECT_JUMP
@@ -147,7 +147,7 @@ int cpu_restore_state(TranslationBlock *tb,
#endif
j = tcg_gen_code_search_pc(s, (uint8_t *)tc_ptr, searched_pc - tc_ptr);
if (j < 0)
- return -1;
+ return;
/* now find start of instruction before */
while (gen_opc_instr_start[j] == 0)
j--;
@@ -159,5 +159,4 @@ int cpu_restore_state(TranslationBlock *tb,
s->restore_time += profile_getclock() - ti;
s->restore_count++;
#endif
- return 0;
}
--
1.7.12
- Re: [Qemu-devel] [RFC PATCH 05/10] exec: small adjustments for TCG separation, (continued)
- [Qemu-devel] [RFC PATCH 06/10] monitor: disable info jit if !TCG, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [RFC PATCH 09/10] i386: move TCG functions out of helper.o, non-TCG functions to cpu.o, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [RFC PATCH 07/10] configure: emit summary at the very end, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [RFC PATCH 03/10] vl: implement tcg_enabled() and tcg_available() as for other accelerators, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [RFC PATCH 10/10] build: do not build TCG files if TCG is disabled, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [RFC PATCH 04/10] tcg: change cpu_restore_state to return void,
Paolo Bonzini <=
Re: [Qemu-devel] [RFC PATCH 00/10] Add --disable-tcg, Blue Swirl, 2012/09/17