Revision 487414f1 hw/ds1225y.c
b/hw/ds1225y.c | ||
---|---|---|
152 | 152 |
QEMUFile *file; |
153 | 153 |
|
154 | 154 |
s = qemu_mallocz(sizeof(ds1225y_t)); |
155 |
if (!s) |
|
156 |
return NULL; |
|
157 | 155 |
s->chip_size = 0x2000; /* Fixed for ds1225y chip: 8 KiB */ |
158 | 156 |
s->contents = qemu_mallocz(s->chip_size); |
159 |
if (!s->contents) { |
|
160 |
return NULL; |
|
161 |
} |
|
162 | 157 |
s->protection = 7; |
163 | 158 |
|
164 | 159 |
/* Read current file */ |
Also available in: Unified diff