From d21fdb25d1c29e9a2d175e99df362dc0559ce406 Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Mon, 1 Jun 2020 23:12:18 +0200 Subject: [PATCH] Remove unused variable grab_branch. --- cpu/ppc/ppcemu.h | 1 - cpu/ppc/ppcexec.cpp | 1 - cpu/ppc/ppcopcodes.cpp | 12 ------------ 3 files changed, 14 deletions(-) diff --git a/cpu/ppc/ppcemu.h b/cpu/ppc/ppcemu.h index 163491b..967f5b6 100644 --- a/cpu/ppc/ppcemu.h +++ b/cpu/ppc/ppcemu.h @@ -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; diff --git a/cpu/ppc/ppcexec.cpp b/cpu/ppc/ppcexec.cpp index 1f88064..26fd715 100644 --- a/cpu/ppc/ppcexec.cpp +++ b/cpu/ppc/ppcexec.cpp @@ -43,7 +43,6 @@ bool power_on = 1; SetPRS ppc_state; -bool grab_branch; bool grab_exception; bool grab_return; bool grab_breakpoint; diff --git a/cpu/ppc/ppcopcodes.cpp b/cpu/ppc/ppcopcodes.cpp index 8f4f9cb..9007bc5 100644 --- a/cpu/ppc/ppcopcodes.cpp +++ b/cpu/ppc/ppcopcodes.cpp @@ -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;