提交 46525e1f 编写于 作者: B blueswir1

Drop unused parameters


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3022 c046a42c-6fe2-441c-8c8c-71466251a162
上级 996ba2cc
...@@ -598,7 +598,8 @@ static inline void gen_goto_tb(DisasContext *s, int tb_num, ...@@ -598,7 +598,8 @@ static inline void gen_goto_tb(DisasContext *s, int tb_num,
} }
} }
static inline void gen_branch2(DisasContext *dc, long tb, target_ulong pc1, target_ulong pc2) static inline void gen_branch2(DisasContext *dc, target_ulong pc1,
target_ulong pc2)
{ {
int l1; int l1;
...@@ -612,7 +613,8 @@ static inline void gen_branch2(DisasContext *dc, long tb, target_ulong pc1, targ ...@@ -612,7 +613,8 @@ static inline void gen_branch2(DisasContext *dc, long tb, target_ulong pc1, targ
gen_goto_tb(dc, 1, pc2, pc2 + 4); gen_goto_tb(dc, 1, pc2, pc2 + 4);
} }
static inline void gen_branch_a(DisasContext *dc, long tb, target_ulong pc1, target_ulong pc2) static inline void gen_branch_a(DisasContext *dc, target_ulong pc1,
target_ulong pc2)
{ {
int l1; int l1;
...@@ -626,12 +628,13 @@ static inline void gen_branch_a(DisasContext *dc, long tb, target_ulong pc1, tar ...@@ -626,12 +628,13 @@ static inline void gen_branch_a(DisasContext *dc, long tb, target_ulong pc1, tar
gen_goto_tb(dc, 1, pc2 + 4, pc2 + 8); gen_goto_tb(dc, 1, pc2 + 4, pc2 + 8);
} }
static inline void gen_branch(DisasContext *dc, long tb, target_ulong pc, target_ulong npc) static inline void gen_branch(DisasContext *dc, target_ulong pc,
target_ulong npc)
{ {
gen_goto_tb(dc, 0, pc, npc); gen_goto_tb(dc, 0, pc, npc);
} }
static inline void gen_generic_branch(DisasContext *dc, target_ulong npc1, target_ulong npc2) static inline void gen_generic_branch(target_ulong npc1, target_ulong npc2)
{ {
int l1, l2; int l1, l2;
...@@ -651,7 +654,7 @@ static inline void gen_generic_branch(DisasContext *dc, target_ulong npc1, targe ...@@ -651,7 +654,7 @@ static inline void gen_generic_branch(DisasContext *dc, target_ulong npc1, targe
static inline void flush_T2(DisasContext * dc) static inline void flush_T2(DisasContext * dc)
{ {
if (dc->npc == JUMP_PC) { if (dc->npc == JUMP_PC) {
gen_generic_branch(dc, dc->jump_pc[0], dc->jump_pc[1]); gen_generic_branch(dc->jump_pc[0], dc->jump_pc[1]);
dc->npc = DYNAMIC_PC; dc->npc = DYNAMIC_PC;
} }
} }
...@@ -659,7 +662,7 @@ static inline void flush_T2(DisasContext * dc) ...@@ -659,7 +662,7 @@ static inline void flush_T2(DisasContext * dc)
static inline void save_npc(DisasContext * dc) static inline void save_npc(DisasContext * dc)
{ {
if (dc->npc == JUMP_PC) { if (dc->npc == JUMP_PC) {
gen_generic_branch(dc, dc->jump_pc[0], dc->jump_pc[1]); gen_generic_branch(dc->jump_pc[0], dc->jump_pc[1]);
dc->npc = DYNAMIC_PC; dc->npc = DYNAMIC_PC;
} else if (dc->npc != DYNAMIC_PC) { } else if (dc->npc != DYNAMIC_PC) {
gen_movl_npc_im(dc->npc); gen_movl_npc_im(dc->npc);
...@@ -675,7 +678,7 @@ static inline void save_state(DisasContext * dc) ...@@ -675,7 +678,7 @@ static inline void save_state(DisasContext * dc)
static inline void gen_mov_pc_npc(DisasContext * dc) static inline void gen_mov_pc_npc(DisasContext * dc)
{ {
if (dc->npc == JUMP_PC) { if (dc->npc == JUMP_PC) {
gen_generic_branch(dc, dc->jump_pc[0], dc->jump_pc[1]); gen_generic_branch(dc->jump_pc[0], dc->jump_pc[1]);
gen_op_mov_pc_npc(); gen_op_mov_pc_npc();
dc->pc = DYNAMIC_PC; dc->pc = DYNAMIC_PC;
} else if (dc->npc == DYNAMIC_PC) { } else if (dc->npc == DYNAMIC_PC) {
...@@ -861,7 +864,7 @@ static void do_branch(DisasContext * dc, int32_t offset, uint32_t insn, int cc) ...@@ -861,7 +864,7 @@ static void do_branch(DisasContext * dc, int32_t offset, uint32_t insn, int cc)
flush_T2(dc); flush_T2(dc);
gen_cond[cc][cond](); gen_cond[cc][cond]();
if (a) { if (a) {
gen_branch_a(dc, (long)dc->tb, target, dc->npc); gen_branch_a(dc, target, dc->npc);
dc->is_br = 1; dc->is_br = 1;
} else { } else {
dc->pc = dc->npc; dc->pc = dc->npc;
...@@ -900,7 +903,7 @@ static void do_fbranch(DisasContext * dc, int32_t offset, uint32_t insn, int cc) ...@@ -900,7 +903,7 @@ static void do_fbranch(DisasContext * dc, int32_t offset, uint32_t insn, int cc)
flush_T2(dc); flush_T2(dc);
gen_fcond[cc][cond](); gen_fcond[cc][cond]();
if (a) { if (a) {
gen_branch_a(dc, (long)dc->tb, target, dc->npc); gen_branch_a(dc, target, dc->npc);
dc->is_br = 1; dc->is_br = 1;
} else { } else {
dc->pc = dc->npc; dc->pc = dc->npc;
...@@ -921,7 +924,7 @@ static void do_branch_reg(DisasContext * dc, int32_t offset, uint32_t insn) ...@@ -921,7 +924,7 @@ static void do_branch_reg(DisasContext * dc, int32_t offset, uint32_t insn)
flush_T2(dc); flush_T2(dc);
gen_cond_reg(cond); gen_cond_reg(cond);
if (a) { if (a) {
gen_branch_a(dc, (long)dc->tb, target, dc->npc); gen_branch_a(dc, target, dc->npc);
dc->is_br = 1; dc->is_br = 1;
} else { } else {
dc->pc = dc->npc; dc->pc = dc->npc;
...@@ -3123,7 +3126,7 @@ static void disas_sparc_insn(DisasContext * dc) ...@@ -3123,7 +3126,7 @@ static void disas_sparc_insn(DisasContext * dc)
gen_op_next_insn(); gen_op_next_insn();
} else if (dc->npc == JUMP_PC) { } else if (dc->npc == JUMP_PC) {
/* we can do a static jump */ /* we can do a static jump */
gen_branch2(dc, (long)dc->tb, dc->jump_pc[0], dc->jump_pc[1]); gen_branch2(dc, dc->jump_pc[0], dc->jump_pc[1]);
dc->is_br = 1; dc->is_br = 1;
} else { } else {
dc->pc = dc->npc; dc->pc = dc->npc;
...@@ -3249,7 +3252,7 @@ static inline int gen_intermediate_code_internal(TranslationBlock * tb, ...@@ -3249,7 +3252,7 @@ static inline int gen_intermediate_code_internal(TranslationBlock * tb,
if (dc->pc != DYNAMIC_PC && if (dc->pc != DYNAMIC_PC &&
(dc->npc != DYNAMIC_PC && dc->npc != JUMP_PC)) { (dc->npc != DYNAMIC_PC && dc->npc != JUMP_PC)) {
/* static PC and NPC: we can use direct chaining */ /* static PC and NPC: we can use direct chaining */
gen_branch(dc, (long)tb, dc->pc, dc->npc); gen_branch(dc, dc->pc, dc->npc);
} else { } else {
if (dc->pc != DYNAMIC_PC) if (dc->pc != DYNAMIC_PC)
gen_jmp_im(dc->pc); gen_jmp_im(dc->pc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册