1 |
/* |
/* |
2 |
* Cisco 7200 (Predator) simulation platform. |
* Cisco router simulation platform. |
3 |
* Copyright (c) 2005 Christophe Fillot (cf@utc.fr) |
* Copyright (c) 2005 Christophe Fillot (cf@utc.fr) |
4 |
* |
* |
5 |
* SB-1 I/O devices. |
* SB-1 I/O devices. |
18 |
|
|
19 |
#include "utils.h" |
#include "utils.h" |
20 |
#include "ptask.h" |
#include "ptask.h" |
21 |
#include "mips64.h" |
#include "cpu.h" |
22 |
|
#include "vm.h" |
23 |
#include "dynamips.h" |
#include "dynamips.h" |
24 |
#include "memory.h" |
#include "memory.h" |
25 |
#include "device.h" |
#include "device.h" |
113 |
/* |
/* |
114 |
* dev_sb1_io_access() |
* dev_sb1_io_access() |
115 |
*/ |
*/ |
116 |
void *dev_sb1_io_access(cpu_mips_t *cpu,struct vdevice *dev, |
void *dev_sb1_io_access(cpu_gen_t *cpu,struct vdevice *dev, |
117 |
m_uint32_t offset,u_int op_size,u_int op_type, |
m_uint32_t offset,u_int op_size,u_int op_type, |
118 |
m_uint64_t *data) |
m_uint64_t *data) |
119 |
{ |
{ |
257 |
default: |
default: |
258 |
if (op_type == MTS_READ) { |
if (op_type == MTS_READ) { |
259 |
cpu_log(cpu,"SB1_IO","read from addr 0x%x, pc=0x%llx\n", |
cpu_log(cpu,"SB1_IO","read from addr 0x%x, pc=0x%llx\n", |
260 |
offset,cpu->pc); |
offset,cpu_get_pc(cpu)); |
261 |
} else { |
} else { |
262 |
cpu_log(cpu,"SB1_IO","write to addr 0x%x, value=0x%llx, " |
cpu_log(cpu,"SB1_IO","write to addr 0x%x, value=0x%llx, " |
263 |
"pc=0x%llx\n",offset,*data,cpu->pc); |
"pc=0x%llx\n",offset,*data,cpu_get_pc(cpu)); |
264 |
} |
} |
265 |
#endif |
#endif |
266 |
} |
} |