]> xenbits.xensource.com Git - qemu-xen.git/commit
target/mips: Remove identical if/else branches
authorAleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Wed, 1 Jul 2020 18:25:57 +0000 (20:25 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 14 Jul 2020 19:49:33 +0000 (21:49 +0200)
commit9788e8c9b64e4cebb01c96bab2b0e4c2d4454041
tree648016838997203bb1052d9ef38a789e7df4876e
parent1a53dfee92284d3016a579ef31d53367e84d9dd8
target/mips: Remove identical if/else branches

Remove the segment:

      if (other_tc == other->current_tc) {
          tccause = other->CP0_Cause;
      } else {
          tccause = other->CP0_Cause;
      }

Original contributor can't remember what was his intention.

Fixes: 5a25ce9487 ("mips: Hook in more reg accesses via mttr/mftr")
Buglink: https://bugs.launchpad.net/qemu/+bug/1885718
Signed-off-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Message-Id: <20200701182559.28841-2-aleksandar.qemu.devel@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
target/mips/cp0_helper.c