/[pearpc]/src/io/pic/pic.cc
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 /src/io/pic/pic.cc

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

revision 3 by dpavlin, Wed Sep 5 17:11:21 2007 UTC revision 4 by dpavlin, Wed Sep 5 17:46:33 2007 UTC
# Line 48  void pic_renew_interrupts() Line 48  void pic_renew_interrupts()
48    
49  void pic_write(uint32 addr, uint32 data, int size)  void pic_write(uint32 addr, uint32 data, int size)
50  {  {
51          IO_PIC_TRACE("write word @%08x: %08x (from %08x)\n", addr, data, gCPU.pc);          IO_PIC_TRACE("write word @%08x: %08x (from %08x)\n", addr, data, ppc_cpu_get_pc);
52          addr -= IO_PIC_PA_START;          addr -= IO_PIC_PA_START;
53          switch (addr) {          switch (addr) {
54          case 0x24:          case 0x24:
# Line 96  void pic_write(uint32 addr, uint32 data, Line 96  void pic_write(uint32 addr, uint32 data,
96    
97  void pic_read(uint32 addr, uint32 &data, int size)  void pic_read(uint32 addr, uint32 &data, int size)
98  {  {
99          IO_PIC_TRACE("read word @%08x (from %08x)\n", addr, gCPU.pc);          IO_PIC_TRACE("read word @%08x (from %08x)\n", addr, ppc_cpu_get_pc(0));
100          addr -= IO_PIC_PA_START;          addr -= IO_PIC_PA_START;
101          switch (addr) {          switch (addr) {
102          case 0x24:          case 0x24:

Legend:
Removed from v.3  
changed lines
  Added in v.4

  ViewVC Help
Powered by ViewVC 1.1.26