arch-power: Updated branch instruction
authorKajoljain379 <kajoljain797@gmail.com>
Wed, 10 Apr 2019 05:43:21 +0000 (05:43 +0000)
committerKajol Jain <kajoljain797@gmail.com>
Wed, 12 Jun 2019 08:36:05 +0000 (14:06 +0530)
Change-Id: I242e8d5f0f3a5b12baa968967dd31f4e1260fa49
Signed-off-by: Kajoljain379 <kajoljain797@gmail.com>
src/arch/power/insts/branch.hh

index 428f4f20c4c252a26eef1101779c45c7d3008ae5..7d1a3ddaed935859b2e863de262203c6cca2057b 100644 (file)
@@ -161,7 +161,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))
     {
     }