arch-power: Updated branch instruction
authorKajoljain379 <kajoljain797@gmail.com>
Wed, 10 Apr 2019 05:43:21 +0000 (05:43 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 24 Jan 2021 03:59:48 +0000 (03:59 +0000)
Change-Id: I242e8d5f0f3a5b12baa968967dd31f4e1260fa49
Signed-off-by: Kajoljain379 <kajoljain797@gmail.com>
src/arch/power/insts/branch.hh

index 1a010221060a06ab6be26d93d7e5c2c1454f646e..8c311a2e3dd3732629790c6e91c121f5cd773c8b 100644 (file)
@@ -159,7 +159,7 @@ class BranchDispCondOp : public BranchCondOp
     BranchDispCondOp(const char *mnem, MachInst _machInst, OpClass __opClass)
       : BranchCondOp(mnem, _machInst, __opClass),
         aaSet(false),
-        disp(sext<14>(machInst.bd << 2))
+        disp(sext<16>(machInst.bd << 2))
     {
     }