Revision b2463a64 hw/r2d.c
b/hw/r2d.c | ||
---|---|---|
27 | 27 |
#include "sh.h" |
28 | 28 |
#include "sysemu.h" |
29 | 29 |
#include "boards.h" |
30 |
#include "assert.h" |
|
31 | 30 |
|
32 | 31 |
#define SDRAM_BASE 0x0c000000 /* Physical location of SDRAM: Area 3 */ |
33 | 32 |
#define SDRAM_SIZE 0x04000000 |
... | ... | |
100 | 99 |
} |
101 | 100 |
} |
102 | 101 |
|
103 |
static uint32_t invalid_read(void *opaque, target_phys_addr_t addr) |
|
104 |
{ |
|
105 |
assert(0); |
|
106 |
|
|
107 |
return 0; |
|
108 |
} |
|
109 |
|
|
110 |
static void invalid_write(void *opaque, target_phys_addr_t addr, |
|
111 |
uint32_t mem_value) |
|
112 |
{ |
|
113 |
assert(0); |
|
114 |
} |
|
115 |
|
|
116 | 102 |
static CPUReadMemoryFunc *r2d_fpga_readfn[] = { |
117 | 103 |
r2d_fpga_read, |
118 | 104 |
r2d_fpga_read, |
119 |
invalid_read,
|
|
105 |
NULL,
|
|
120 | 106 |
}; |
121 | 107 |
|
122 | 108 |
static CPUWriteMemoryFunc *r2d_fpga_writefn[] = { |
123 | 109 |
r2d_fpga_write, |
124 | 110 |
r2d_fpga_write, |
125 |
invalid_write,
|
|
111 |
NULL,
|
|
126 | 112 |
}; |
127 | 113 |
|
128 | 114 |
static void r2d_fpga_init(target_phys_addr_t base) |
Also available in: Unified diff