/[gxemul]/trunk/src/devices/dev_ram.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_ram.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by dpavlin, Mon Oct 8 16:18:00 2007 UTC revision 6 by dpavlin, Mon Oct 8 16:18:11 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_ram.c,v 1.13 2005/02/11 09:53:48 debug Exp $   *  $Id: dev_ram.c,v 1.14 2005/05/23 14:22:02 debug Exp $
29   *     *  
30   *  A generic RAM (memory) device.  Can also be used to mirror/alias another   *  A generic RAM (memory) device.  Can also be used to mirror/alias another
31   *  part of RAM.   *  part of RAM.
# Line 144  void dev_ram_init(struct memory *mem, ui Line 144  void dev_ram_init(struct memory *mem, ui
144                  exit(1);                  exit(1);
145          }          }
146    
147          memory_device_register(mem, "ram", baseaddr, length,          memory_device_register(mem, d->mode == DEV_RAM_MIRROR?
148              dev_ram_access, d, MEM_DEFAULT, NULL);              "ram [mirror]" : "ram", baseaddr, length,
149                dev_ram_access, d, MEM_DEFAULT | MEM_READING_HAS_NO_SIDE_EFFECTS,
150                NULL);
151  }  }
152    

Legend:
Removed from v.4  
changed lines
  Added in v.6

  ViewVC Help
Powered by ViewVC 1.1.26