15 |
#include <pthread.h> |
#include <pthread.h> |
16 |
|
|
17 |
#include "ptask.h" |
#include "ptask.h" |
18 |
#include "mips64.h" |
#include "cpu.h" |
19 |
|
#include "vm.h" |
20 |
#include "dynamips.h" |
#include "dynamips.h" |
21 |
#include "memory.h" |
#include "memory.h" |
22 |
#include "device.h" |
#include "device.h" |
88 |
* dev_c3725_iofpga_access() |
* dev_c3725_iofpga_access() |
89 |
*/ |
*/ |
90 |
static void * |
static void * |
91 |
dev_c3725_iofpga_access(cpu_mips_t *cpu,struct vdevice *dev, |
dev_c3725_iofpga_access(cpu_gen_t *cpu,struct vdevice *dev, |
92 |
m_uint32_t offset,u_int op_size,u_int op_type, |
m_uint32_t offset,u_int op_size,u_int op_type, |
93 |
m_uint64_t *data) |
m_uint64_t *data) |
94 |
{ |
{ |
100 |
#if DEBUG_ACCESS |
#if DEBUG_ACCESS |
101 |
if (op_type == MTS_READ) { |
if (op_type == MTS_READ) { |
102 |
cpu_log(cpu,"IO_FPGA","reading reg 0x%x at pc=0x%llx (size=%u)\n", |
cpu_log(cpu,"IO_FPGA","reading reg 0x%x at pc=0x%llx (size=%u)\n", |
103 |
offset,cpu->pc,op_size); |
offset,cpu_get_pc(cpu),op_size); |
104 |
} else { |
} else { |
105 |
cpu_log(cpu,"IO_FPGA", |
cpu_log(cpu,"IO_FPGA", |
106 |
"writing reg 0x%x at pc=0x%llx, data=0x%llx (size=%u)\n", |
"writing reg 0x%x at pc=0x%llx, data=0x%llx (size=%u)\n", |
107 |
offset,cpu->pc,*data,op_size); |
offset,cpu_get_pc(cpu),*data,op_size); |
108 |
} |
} |
109 |
#endif |
#endif |
110 |
|
|
295 |
if (op_type == MTS_READ) { |
if (op_type == MTS_READ) { |
296 |
cpu_log(cpu,"IO_FPGA", |
cpu_log(cpu,"IO_FPGA", |
297 |
"read from unknown addr 0x%x, pc=0x%llx (size=%u)\n", |
"read from unknown addr 0x%x, pc=0x%llx (size=%u)\n", |
298 |
offset,cpu->pc,op_size); |
offset,cpu_get_pc(cpu),op_size); |
299 |
} else { |
} else { |
300 |
cpu_log(cpu,"IO_FPGA", |
cpu_log(cpu,"IO_FPGA", |
301 |
"write to unknown addr 0x%x, value=0x%llx, " |
"write to unknown addr 0x%x, value=0x%llx, " |
302 |
"pc=0x%llx (size=%u)\n",offset,*data,cpu->pc,op_size); |
"pc=0x%llx (size=%u)\n", |
303 |
|
offset,*data,cpu_get_pc(cpu),op_size); |
304 |
} |
} |
305 |
#endif |
#endif |
306 |
} |
} |