/[dynamips]/upstream/dynamips-0.2.7-RC1/dev_c3745_iofpga.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /upstream/dynamips-0.2.7-RC1/dev_c3745_iofpga.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.6-RC5/dev_c3745_iofpga.c revision 6 by dpavlin, Sat Oct 6 16:09:07 2007 UTC upstream/dynamips-0.2.7-RC1/dev_c3745_iofpga.c revision 7 by dpavlin, Sat Oct 6 16:23:47 2007 UTC
# Line 15  Line 15 
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"
# Line 115  static const struct nmc93c46_group eepro Line 116  static const struct nmc93c46_group eepro
116   * dev_c3745_iofpga_access()   * dev_c3745_iofpga_access()
117   */   */
118  static void *  static void *
119  dev_c3745_iofpga_access(cpu_mips_t *cpu,struct vdevice *dev,  dev_c3745_iofpga_access(cpu_gen_t *cpu,struct vdevice *dev,
120                          m_uint32_t offset,u_int op_size,u_int op_type,                          m_uint32_t offset,u_int op_size,u_int op_type,
121                          m_uint64_t *data)                          m_uint64_t *data)
122  {  {
# Line 128  dev_c3745_iofpga_access(cpu_mips_t *cpu, Line 129  dev_c3745_iofpga_access(cpu_mips_t *cpu,
129  #if DEBUG_ACCESS  #if DEBUG_ACCESS
130     if (op_type == MTS_READ) {     if (op_type == MTS_READ) {
131        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",
132                offset,cpu->pc,op_size);                offset,cpu_get_pc(cpu),op_size);
133     } else {     } else {
134        cpu_log(cpu,"IO_FPGA",        cpu_log(cpu,"IO_FPGA",
135                "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",
136                offset,cpu->pc,*data,op_size);                offset,cpu_get_pc(cpu),*data,op_size);
137     }     }
138  #endif  #endif
139    
# Line 304  dev_c3745_iofpga_access(cpu_mips_t *cpu, Line 305  dev_c3745_iofpga_access(cpu_mips_t *cpu,
305           if (op_type == MTS_READ) {           if (op_type == MTS_READ) {
306              cpu_log(cpu,"IO_FPGA",              cpu_log(cpu,"IO_FPGA",
307                      "read from unknown addr 0x%x, pc=0x%llx (size=%u)\n",                      "read from unknown addr 0x%x, pc=0x%llx (size=%u)\n",
308                      offset,cpu->pc,op_size);                      offset,cpu_get_pc(cpu),op_size);
309           } else {           } else {
310              cpu_log(cpu,"IO_FPGA",              cpu_log(cpu,"IO_FPGA",
311                      "write to unknown addr 0x%x, value=0x%llx, "                      "write to unknown addr 0x%x, value=0x%llx, "
312                      "pc=0x%llx (size=%u)\n",offset,*data,cpu->pc,op_size);                      "pc=0x%llx (size=%u)\n",
313                        offset,*data,cpu_get_pc(cpu),op_size);
314           }           }
315  #endif  #endif
316     }     }

Legend:
Removed from v.6  
changed lines
  Added in v.7

  ViewVC Help
Powered by ViewVC 1.1.26