/[dynamips]/trunk/dev_sb1_io.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 /trunk/dev_sb1_io.c

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

upstream/dynamips-0.2.6-RC5/dev_sb1_io.c revision 6 by dpavlin, Sat Oct 6 16:09:07 2007 UTC upstream/dynamips-0.2.7-RC1/dev_sb1_io.c revision 7 by dpavlin, Sat Oct 6 16:23:47 2007 UTC
# Line 1  Line 1 
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.
# Line 18  Line 18 
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"
# Line 112  static int tty_trigger_dummy_irq(struct Line 113  static int tty_trigger_dummy_irq(struct
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  {  {
# Line 256  void *dev_sb1_io_access(cpu_mips_t *cpu, Line 257  void *dev_sb1_io_access(cpu_mips_t *cpu,
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     }     }

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

  ViewVC Help
Powered by ViewVC 1.1.26