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. |
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 |
|
|