Skip to content

Commit

Permalink
Fixed scheduling of R2P instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Gray committed Nov 27, 2015
1 parent 7ad78d0 commit 52ca3fd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/MaxAs/MaxAs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,16 @@ sub Scheduler
my $mask = hex($capData->{i20w7});
foreach my $p (0..6)
{
push @$list, "P$p" if $mask & (1 << $p);
if ($mask & (1 << $p))
{
push @$list, "P$p";
}
# make this instruction dependent on any predicates it's not setting
# this is to prevent a race condition for any predicate sets that are pending
elsif ($instruct->{op} eq 'R2P')
{
push @src, "P$p";
}
}
}

Expand Down

0 comments on commit 52ca3fd

Please sign in to comment.