Remove unused variable grab_branch.

This commit is contained in:
Maxim Poliakovski 2020-06-01 23:12:18 +02:00
parent f204caa907
commit d21fdb25d1
3 changed files with 0 additions and 14 deletions

View File

@ -223,7 +223,6 @@ extern BB_end_kind bb_kind;
extern jmp_buf exc_env;
extern bool grab_branch;
extern bool grab_exception;
extern bool grab_return;

View File

@ -43,7 +43,6 @@ bool power_on = 1;
SetPRS ppc_state;
bool grab_branch;
bool grab_exception;
bool grab_return;
bool grab_breakpoint;

View File

@ -1427,7 +1427,6 @@ void ppc_b() {
uint32_t quick_test = (ppc_cur_instruction & 0x03FFFFFC);
adr_li = (quick_test < 0x2000000) ? quick_test : (0xFC000000UL + quick_test);
ppc_next_instruction_address = (uint32_t)(ppc_state.pc + adr_li);
grab_branch = 1;
bb_kind = BB_end_kind::BB_BRANCH;
}
@ -1436,7 +1435,6 @@ void ppc_bl() {
adr_li = (quick_test < 0x2000000) ? quick_test : (0xFC000000UL + quick_test);
ppc_next_instruction_address = (uint32_t)(ppc_state.pc + adr_li);
ppc_state.spr[SPR::LR] = (uint32_t)(ppc_state.pc + 4);
grab_branch = 1;
bb_kind = BB_end_kind::BB_BRANCH;
}
@ -1444,7 +1442,6 @@ void ppc_ba() {
uint32_t quick_test = (ppc_cur_instruction & 0x03FFFFFC);
adr_li = (quick_test < 0x2000000) ? quick_test : (0xFC000000UL + quick_test);
ppc_next_instruction_address = adr_li;
grab_branch = 1;
bb_kind = BB_end_kind::BB_BRANCH;
}
@ -1453,7 +1450,6 @@ void ppc_bla() {
adr_li = (quick_test < 0x2000000) ? quick_test : (0xFC000000UL + quick_test);
ppc_next_instruction_address = adr_li;
ppc_state.spr[SPR::LR] = ppc_state.pc + 4;
grab_branch = 1;
bb_kind = BB_end_kind::BB_BRANCH;
}
@ -1473,7 +1469,6 @@ void ppc_bc()
if (ctr_ok && cnd_ok) {
ppc_next_instruction_address = (ppc_state.pc + br_bd);
grab_branch = 1;
bb_kind = BB_end_kind::BB_BRANCH;
}
}
@ -1494,7 +1489,6 @@ void ppc_bca()
if (ctr_ok && cnd_ok) {
ppc_next_instruction_address = br_bd;
grab_branch = 1;
bb_kind = BB_end_kind::BB_BRANCH;
}
}
@ -1515,7 +1509,6 @@ void ppc_bcl()
if (ctr_ok && cnd_ok) {
ppc_next_instruction_address = (ppc_state.pc + br_bd);
grab_branch = 1;
bb_kind = BB_end_kind::BB_BRANCH;
}
ppc_state.spr[SPR::LR] = ppc_state.pc + 4;
@ -1537,7 +1530,6 @@ void ppc_bcla()
if (ctr_ok && cnd_ok) {
ppc_next_instruction_address = br_bd;
grab_branch = 1;
bb_kind = BB_end_kind::BB_BRANCH;
}
ppc_state.spr[SPR::LR] = ppc_state.pc + 4;
@ -1552,7 +1544,6 @@ void ppc_bcctr()
if (cnd_ok) {
ppc_next_instruction_address = (ppc_state.spr[SPR::CTR] & 0xFFFFFFFCUL);
grab_branch = 1;
bb_kind = BB_end_kind::BB_BRANCH;
}
}
@ -1566,7 +1557,6 @@ void ppc_bcctrl()
if (cnd_ok) {
ppc_next_instruction_address = (ppc_state.spr[SPR::CTR] & 0xFFFFFFFCUL);
grab_branch = 1;
bb_kind = BB_end_kind::BB_BRANCH;
}
ppc_state.spr[SPR::LR] = ppc_state.pc + 4;
@ -1587,7 +1577,6 @@ void ppc_bclr()
if (ctr_ok && cnd_ok) {
ppc_next_instruction_address = (ppc_state.spr[SPR::LR] & 0xFFFFFFFCUL);
grab_branch = 1;
bb_kind = BB_end_kind::BB_BRANCH;
}
}
@ -1607,7 +1596,6 @@ void ppc_bclrl()
if (ctr_ok && cnd_ok) {
ppc_next_instruction_address = (ppc_state.spr[SPR::LR] & 0xFFFFFFFCUL);
grab_branch = 1;
bb_kind = BB_end_kind::BB_BRANCH;
}
ppc_state.spr[SPR::LR] = ppc_state.pc + 4;