Some fixes for the CTB

This commit is contained in:
2014-10-14 17:43:25 +02:00
parent 74ef04e726
commit 327c2106df
9 changed files with 44 additions and 46 deletions

View File

@@ -2619,7 +2619,7 @@ uint64_t writePatternWord(int addr, uint64_t word) {
if (addr>=MAX_PATTERN_LENGTH)
return -1;
if (word>=0) {
if (word=!-1){
set64BitReg(word,PATTERN_IN_REG_LSB,PATTERN_IN_REG_MSB);
cntrl= (addr&APATTERN_MASK) << PATTERN_CTRL_ADDR_OFFSET;
bus_w(PATTERN_CNTRL_REG, cntrl);