Barrier instruction support.

This commit is contained in:
cdkersey
2015-08-04 12:55:47 -06:00
parent 129b5078db
commit a788ea6aa4
4 changed files with 36 additions and 2 deletions

View File

@@ -7,6 +7,8 @@
#include <string>
#include <vector>
#include <stack>
#include <map>
#include <set>
#include "types.h"
#include "archdef.h"
@@ -84,6 +86,7 @@ namespace Harp {
Word interruptEntry;
std::vector<Warp> w;
std::map<Word, std::set<Warp *> > b; // Barriers
};
class Warp {

View File

@@ -31,7 +31,7 @@ namespace Harp {
JMPRT, LD, ST, LDI, RTOP, ANDP, ORP, XORP, NOTP, ISNEG,
ISZERO, HALT, TRAP, JMPRU, SKEP, RETI, TLBRM,
ITOF, FTOI, FADD, FSUB, FMUL, FDIV, FNEG, WSPAWN,
SPLIT, JOIN };
SPLIT, JOIN, BAR };
enum ArgClass {
AC_NONE, AC_2REG, AC_2IMM, AC_3REG, AC_3PREG, AC_3IMM, AC_3REGSRC,
AC_1IMM, AC_1REG, AC_3IMMSRC, AC_PREG_REG, AC_2PREG, AC_2REGSRC