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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [cpu/] [common/] [abstract.h] - Diff between revs 970 and 1308

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

Rev 970 Rev 1308
Line 49... Line 49...
 
 
/* Memory regions assigned to devices */
/* Memory regions assigned to devices */
struct dev_memarea {
struct dev_memarea {
  struct dev_memarea *next;
  struct dev_memarea *next;
  /*unsigned long start;
  /*unsigned long start;
  unsigned long end;         /* if start + size > end, this block is disabled; to enable it recalculate end addr. */
  unsigned long end;*/         /* if start + size > end, this block is disabled; to enable it recalculate end addr. */
  unsigned long addr_mask;
  unsigned long addr_mask;
  unsigned long addr_compare;
  unsigned long addr_compare;
  unsigned long size;
  unsigned long size;
  unsigned long size_mask;   /* Address mask, calculated out of size */
  unsigned long size_mask;   /* Address mask, calculated out of size */
  unsigned long granularity; /* how many bytes read/write accepts: 1/2/4 */
  unsigned long granularity; /* how many bytes read/write accepts: 1/2/4 */
Line 126... Line 126...
void adjust_rw_delay(unsigned long memaddr, unsigned long delayr, unsigned long delayw);
void adjust_rw_delay(unsigned long memaddr, unsigned long delayr, unsigned long delayw);
 
 
/* Check if access is to registered area of memory. */
/* Check if access is to registered area of memory. */
struct dev_memarea *verify_memoryarea(unsigned long addr);
struct dev_memarea *verify_memoryarea(unsigned long addr);
 
 
/* Outputs time in pretty form to dest string */
/* Outputs time in pretty form to dest string. */
char *generate_time_pretty (char *dest, long time_ps);
char *generate_time_pretty (char *dest, long time_ps);
 
 
 
/* Returns 32-bit values from mem array. */
 
unsigned long eval_insn(unsigned long, int *);
 
 
 
void simmem_write_word(unsigned long addr, unsigned long value);
 
 
 
unsigned long simmem_read_word(unsigned long addr);
 
 
 
unsigned long eval_direct32(unsigned long addr, int *breakpoint, int through_mmu, int through_dc);
 
 
 
void set_direct32(unsigned long addr, unsigned long value, int *breakpoint, int through_mmu, int through_dc);
 
 
/* Temporary variable to increase speed.  */
/* Temporary variable to increase speed.  */
extern struct dev_memarea *cur_area;
extern struct dev_memarea *cur_area;
 
 
/* Virtual address of current access. */
/* Virtual address of current access. */
extern unsigned long cur_vadd;
extern unsigned long cur_vadd;

powered by: WebSVN 2.1.0

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