OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_61/] [or1ksim/] [sim-config.c] - Diff between revs 572 and 574

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 572 Rev 574
Line 928... Line 928...
  else
  else
    ERROR("invalid USTATE.");
    ERROR("invalid USTATE.");
}
}
 
 
void ic_enabled () {
void ic_enabled () {
 
  config.ic.enabled = tempL;
  setsprbits (SPR_UPR, SPR_UPR_ICP, tempL & 1);
  setsprbits (SPR_UPR, SPR_UPR_ICP, tempL & 1);
}
}
 
 
void ic_nsets () {
void ic_nsets () {
  if (is_power2(tempL) && tempL <= MAX_IC_SETS)
  if (is_power2(tempL) && tempL <= MAX_IC_SETS)
Line 977... Line 978...
    ERROR(tmp);
    ERROR(tmp);
  }
  }
}
}
 
 
void dc_enabled () {
void dc_enabled () {
 
  config.dc.enabled = tempL;
  setsprbits (SPR_UPR, SPR_UPR_DCP, tempL & 1);
  setsprbits (SPR_UPR, SPR_UPR_DCP, tempL & 1);
}
}
 
 
void dc_nsets () {
void dc_nsets () {
  if (is_power2(tempL) && tempL <= MAX_DC_SETS)
  if (is_power2(tempL) && tempL <= MAX_DC_SETS)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.