Add srd and srw
authorAnton Blanchard <anton@linux.ibm.com>
Wed, 28 Aug 2019 04:50:11 +0000 (14:50 +1000)
committerAnton Blanchard <anton@ozlabs.org>
Wed, 28 Aug 2019 04:50:37 +0000 (14:50 +1000)
Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
execute1.vhdl

index ae34c1fb9c0069643587b757a092208a1131938f..00694652f5ed1e12bd76f1818674baebb19b9199 100644 (file)
@@ -268,6 +268,12 @@ begin
                                        result := result_with_carry(63 downto 0);
                                        ctrl_tmp.carry <= result_with_carry(64);
                                        result_en := 1;
+                               when OP_SRD =>
+                                       result := ppc_srd(e.read_data1, e.read_data2);
+                                       result_en := 1;
+                               when OP_SRW =>
+                                       result := ppc_srw(e.read_data1, e.read_data2);
+                                       result_en := 1;
                                when OP_SUBF =>
                                        result := ppc_subf(e.read_data1, e.read_data2);
                                        result_en := 1;