Branch predictor: Fixes the tournament branch predictor.
Branch predictor: Fixes the tournament branch predictor.

Branch predictor could not predict a branch in a nested loop because:
 1. The global history was not updated after a mispredict squash.
 2. The global history was updated in the fetch stage. The choice predictors
    that were updated  used the changed global history. This is incorrect, as
    it incorporates the state of global history after the branch in
    encountered. Fixed update to choice predictor using the global history
    state before the branch happened.
 3. The global predictor table was also updated using the global history state
    before the branch happened as above.

Additionally, parameters to initialize ctr and history size were reversed.

kaiyuanl/gem5,HwisooSo/gemV-update,TUD-OS/gem5-dtu,briancoutinho0905/2dsampling,aclifton/cpeg853-gem5,aclifton/cpeg853-gem5,cancro7/gem5,rallylee/gem5,gedare/gem5,powerjg/gem5-ci-test,kaiyuanl/gem5,KuroeKurose/gem5,zlfben/gem5,cancro7/gem5,austinharris/gem5-riscv,sobercoder/gem5,SanchayanMaity/gem5,qizenguf/MLC-STT,aclifton/cpeg853-gem5,rjschof/gem5,gem5/gem5,qizenguf/MLC-STT,TUD-OS/gem5-dtu,rallylee/gem5,joerocklin/gem5,austinharris/gem5-riscv,yb-kim/gemV,gem5/gem5,rjschof/gem5,KuroeKurose/gem5,samueldotj/TeeRISC-Simulator,HwisooSo/gemV-update,briancoutinho0905/2dsampling,powerjg/gem5-ci-test,zlfben/gem5,SanchayanMaity/gem5,gedare/gem5,rallylee/gem5,rjschof/gem5,powerjg/gem5-ci-test,SanchayanMaity/gem5,qizenguf/MLC-STT,rjschof/gem5,cancro7/gem5,Weil0ng/gem5,samueldotj/TeeRISC-Simulator,powerjg/gem5-ci-test,TUD-OS/gem5-dtu,joerocklin/gem5,rallylee/gem5,joerocklin/gem5,TUD-OS/gem5-dtu,HwisooSo/gemV-update,austinharris/gem5-riscv,cancro7/gem5,qizenguf/MLC-STT,qizenguf/MLC-STT,markoshorro/gem5,markoshorro/gem5,sobercoder/gem5,powerjg/gem5-ci-test,KuroeKurose/gem5,kaiyuanl/gem5,gedare/gem5,rallylee/gem5,gedare/gem5,cancro7/gem5,aclifton/cpeg853-gem5,briancoutinho0905/2dsampling,Weil0ng/gem5,sobercoder/gem5,Weil0ng/gem5,sobercoder/gem5,markoshorro/gem5,joerocklin/gem5,HwisooSo/gemV-update,zlfben/gem5,yb-kim/gemV,joerocklin/gem5,KuroeKurose/gem5,yb-kim/gemV,rjschof/gem5,markoshorro/gem5,yb-kim/gemV,samueldotj/TeeRISC-Simulator,gem5/gem5,gedare/gem5,qizenguf/MLC-STT,powerjg/gem5-ci-test,gem5/gem5,rallylee/gem5,KuroeKurose/gem5,samueldotj/TeeRISC-Simulator,kaiyuanl/gem5,briancoutinho0905/2dsampling,zlfben/gem5,TUD-OS/gem5-dtu,rjschof/gem5,samueldotj/TeeRISC-Simulator,KuroeKurose/gem5,qizenguf/MLC-STT,sobercoder/gem5,TUD-OS/gem5-dtu,KuroeKurose/gem5,zlfben/gem5,aclifton/cpeg853-gem5,TUD-OS/gem5-dtu,yb-kim/gemV,yb-kim/gemV,austinharris/gem5-riscv,sobercoder/gem5,joerocklin/gem5,sobercoder/gem5,austinharris/gem5-riscv,samueldotj/TeeRISC-Simulator,Weil0ng/gem5,yb-kim/gemV,kaiyuanl/gem5,HwisooSo/gemV-update,HwisooSo/gemV-update,HwisooSo/gemV-update,SanchayanMaity/gem5,gem5/gem5,cancro7/gem5,aclifton/cpeg853-gem5,briancoutinho0905/2dsampling,rjschof/gem5,SanchayanMaity/gem5,markoshorro/gem5,kaiyuanl/gem5,gem5/gem5,zlfben/gem5,austinharris/gem5-riscv,austinharris/gem5-riscv,joerocklin/gem5,Weil0ng/gem5,gem5/gem5,samueldotj/TeeRISC-Simulator,SanchayanMaity/gem5,aclifton/cpeg853-gem5,briancoutinho0905/2dsampling,gedare/gem5,zlfben/gem5,kaiyuanl/gem5,SanchayanMaity/gem5,gedare/gem5,Weil0ng/gem5,markoshorro/gem5,markoshorro/gem5,joerocklin/gem5,yb-kim/gemV,rallylee/gem5,briancoutinho0905/2dsampling,cancro7/gem5,Weil0ng/gem5,powerjg/gem5-ci-test