arch-power: Add DARN instruction
authorkajoljain379 <kajoljain797@gmail.com>
Tue, 19 Mar 2019 08:37:43 +0000 (14:07 +0530)
committerKajol Jain <kajoljain797@gmail.com>
Wed, 12 Jun 2019 07:08:38 +0000 (12:38 +0530)
* Added DARN instruction.
* Right now not returning random number, Just Setting value to -1.
* Need to FIX that instruction.

Change-Id: I9b6fd7557232c16fda144f4a424bfffb62de33cc
Signed-off-by: kajoljain379 <kajoljain797@gmail.com>
src/arch/power/isa/decoder.isa

index d1029ecff922665e8094d8c277c0870d80c5abf5..5419755642dc2354252fd3586e9ba1d203a8708d 100644 (file)
@@ -486,6 +486,14 @@ decode PO default Unknown::unknown() {
                 }
             }});
 
+         //TODO: Right now we doesn't support DARN instruction
+         // Not returning random number, Just Setting value to -1.
+         //Need to FIX that instruction
+
+             755: darn({{
+                  Rt = -1;
+            }});
+
             777: modsd({{
                 int64_t src1 = Ra_sd;
                 int64_t src2 = Rb_sd;