OLD | NEW |
1 /* The common simulator framework for GDB, the GNU Debugger. | 1 /* The common simulator framework for GDB, the GNU Debugger. |
2 | 2 |
3 Copyright 2002, 2007-2012 Free Software Foundation, Inc. | 3 Copyright 2002, 2007-2012 Free Software Foundation, Inc. |
4 | 4 |
5 Contributed by Andrew Cagney and Red Hat. | 5 Contributed by Andrew Cagney and Red Hat. |
6 | 6 |
7 This file is part of GDB. | 7 This file is part of GDB. |
8 | 8 |
9 This program is free software; you can redistribute it and/or modify | 9 This program is free software; you can redistribute it and/or modify |
10 it under the terms of the GNU General Public License as published by | 10 it under the terms of the GNU General Public License as published by |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 extern unsigned sim_core_xor_write_buffer | 235 extern unsigned sim_core_xor_write_buffer |
236 (SIM_DESC sd, | 236 (SIM_DESC sd, |
237 sim_cpu *cpu, | 237 sim_cpu *cpu, |
238 unsigned map, | 238 unsigned map, |
239 const void *buffer, | 239 const void *buffer, |
240 address_word addr, | 240 address_word addr, |
241 unsigned nr_bytes); | 241 unsigned nr_bytes); |
242 | 242 |
243 | 243 |
| 244 /* Translate an address based on a map. */ |
| 245 |
| 246 extern void *sim_core_trans_addr |
| 247 (SIM_DESC sd, |
| 248 sim_cpu *cpu, |
| 249 unsigned map, |
| 250 address_word addr); |
| 251 |
244 | 252 |
245 /* Fixed sized, processor oriented, read/write. | 253 /* Fixed sized, processor oriented, read/write. |
246 | 254 |
247 Transfer a fixed amout of memory between the host and target. The | 255 Transfer a fixed amout of memory between the host and target. The |
248 data transfered is translated from/to host to/from target byte | 256 data transfered is translated from/to host to/from target byte |
249 order (including xor endian). Should the transfer fail, the | 257 order (including xor endian). Should the transfer fail, the |
250 operation shall abort (no return). | 258 operation shall abort (no return). |
251 | 259 |
252 ALIGNED assumes yhat the specified ADDRESS is correctly alligned | 260 ALIGNED assumes yhat the specified ADDRESS is correctly alligned |
253 for an N byte transfer (no alignment checks are made). Passing an | 261 for an N byte transfer (no alignment checks are made). Passing an |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 #if (WITH_DEVICES) | 352 #if (WITH_DEVICES) |
345 /* TODO: create sim/common/device.h */ | 353 /* TODO: create sim/common/device.h */ |
346 /* These are defined with each particular cpu. */ | 354 /* These are defined with each particular cpu. */ |
347 void device_error (device *me, const char *message, ...) __attribute__((format (
printf, 2, 3))); | 355 void device_error (device *me, const char *message, ...) __attribute__((format (
printf, 2, 3))); |
348 int device_io_read_buffer(device *me, void *dest, int space, address_word addr,
unsigned nr_bytes, SIM_DESC sd, sim_cpu *processor, sim_cia cia); | 356 int device_io_read_buffer(device *me, void *dest, int space, address_word addr,
unsigned nr_bytes, SIM_DESC sd, sim_cpu *processor, sim_cia cia); |
349 int device_io_write_buffer(device *me, const void *source, int space, address_wo
rd addr, unsigned nr_bytes, SIM_DESC sd, sim_cpu *processor, sim_cia cia); | 357 int device_io_write_buffer(device *me, const void *source, int space, address_wo
rd addr, unsigned nr_bytes, SIM_DESC sd, sim_cpu *processor, sim_cia cia); |
350 #endif | 358 #endif |
351 | 359 |
352 | 360 |
353 #endif | 361 #endif |
OLD | NEW |