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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_59/] [or1ksim/] [cache/] [icache_model.c] - Diff between revs 1382 and 1386

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

Rev 1382 Rev 1386
Line 92... Line 92...
    if(!cur_area) {
    if(!cur_area) {
      printf("EXCEPTION: read out of memory (32-bit access to %"PRIxADDR")\n",
      printf("EXCEPTION: read out of memory (32-bit access to %"PRIxADDR")\n",
             fetchaddr);
             fetchaddr);
      except_handle(EXCEPT_BUSERR, cur_vadd);
      except_handle(EXCEPT_BUSERR, cur_vadd);
      return 0;
      return 0;
    }
    } else if (cur_area->log)
    if (!pending.valid && cur_area->log)
 
      fprintf (cur_area->log, "[%"PRIxADDR"] -> read %08"PRIx32"\n", fetchaddr,
      fprintf (cur_area->log, "[%"PRIxADDR"] -> read %08"PRIx32"\n", fetchaddr,
               tmp);
               tmp);
    return tmp;
    return tmp;
  }
  }
 
 
Line 142... Line 141...
        ic[set].way[minway].lru = 0;
        ic[set].way[minway].lru = 0;
        printf("EXCEPTION: read out of memory (32-bit access to %"PRIxADDR")\n",
        printf("EXCEPTION: read out of memory (32-bit access to %"PRIxADDR")\n",
               fetchaddr);
               fetchaddr);
        except_handle(EXCEPT_BUSERR, cur_vadd);
        except_handle(EXCEPT_BUSERR, cur_vadd);
        return 0;
        return 0;
      }
      } else if (cur_area->log)
      if (!pending.valid && cur_area->log)
 
        fprintf (cur_area->log, "[%"PRIxADDR"] -> read %08"PRIx32"\n",
        fprintf (cur_area->log, "[%"PRIxADDR"] -> read %08"PRIx32"\n",
                 fetchaddr, tmp);
                 fetchaddr, tmp);
    }
    }
 
 
    ic[set].way[minway].tagaddr = tagaddr;
    ic[set].way[minway].tagaddr = tagaddr;

powered by: WebSVN 2.1.0

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