fixed generation of default dummy unit
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Thu, 7 Dec 2006 16:51:56 +0000 (16:51 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Thu, 7 Dec 2006 16:51:56 +0000 (16:51 +0000)
ir/be/scripts/generate_new_opcodes.pl

index 4000766..b2b8e9b 100755 (executable)
@@ -526,7 +526,7 @@ sub gen_execunit_list_initializer {
 
        foreach my $unit (@{ $units }) {
                if ($unit eq "DUMMY") {
-                       $init{"DUMMY"} = "    &be_machine_execution_units_DUMMY[0]";
+                       push(@{ $init{"DUMMY"} }, "    &be_machine_execution_units_DUMMY[0]");
                }
                elsif (exists($cpu{"$unit"})) {
                        # operation can be executed on all units of this type