r->regidx = c->b.regidx;
r->zero = c->b.zero;
r->inv = c->b.inv;
- r->packed = c->b.packed;
+ r->ffirst = c->b.ffirst;
r->active = true;
fprintf(stderr, "setting PREDCFG %d type:%d zero:%d %d %d\n",
i, c->b.type, r->zero, (int)idx, (int)r->regidx);
// useful macros for constructing SV reg and predicate CSR CAM entries
#define SV_REG_CSR(type, regkey, elwidth, regidx, isvec) \
(regkey | (elwidth<<5) | (type<<7) | (regidx<<8) | (isvec<<15))
-#define SV_PRED_CSR(type, regkey, zero, inv, regidx, packed) \
- (regkey | (zero<<5) | (inv<<6) | (type<<7) | (regidx<<8) | (packed<<15))
+#define SV_PRED_CSR(type, regkey, zero, inv, regidx, ffirst) \
+ (regkey | (zero<<5) | (inv<<6) | (type<<7) | (regidx<<8) | (ffirst<<15))
// this table is for the CSRs (4? for RV32E, 16 for other types)
// it's a CAM that's used to generate 2 tables (below)
unsigned int inv : 1; // inversion=1
unsigned int type : 1; // 1=INT, 0=FP
uint64_t regidx: 7; // 7 bits
- unsigned int packed : 1; // Packed SIMD=1
+ unsigned int ffirst: 1; // Fail on first
} b;
unsigned short u;
};
unsigned int inv : 1; // inversion=1
uint64_t regidx: 7; // 7 bits
unsigned int active: 1; // enabled=1, disabled=0
- unsigned int packed : 1; // Packed SIMD=1
+ unsigned int ffirst: 1; // Fail on first
} sv_pred_entry;
bool sv_check_reg(bool intreg, uint64_t reg);