ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/kpx_cpu/sheepshaver_glue.cpp
(Generate patch)

Comparing SheepShaver/src/kpx_cpu/sheepshaver_glue.cpp (file contents):
Revision 1.53 by gbeauche, 2004-11-22T22:04:38Z vs.
Revision 1.55 by gbeauche, 2004-12-18T18:40:04Z

# Line 196 | Line 196 | public:
196  
197          // Make sure the SIGSEGV handler can access CPU registers
198          friend sigsegv_return_t sigsegv_handler(sigsegv_address_t, sigsegv_address_t);
199 +
200 +        // Memory allocator returning areas aligned on 16-byte boundaries
201 +        void *operator new(size_t size);
202 +        void operator delete(void *p);
203   };
204  
205   // Memory allocator returning areas aligned on 16-byte boundaries
206 < void *operator new(size_t size)
206 > void *sheepshaver_cpu::operator new(size_t size)
207   {
208          void *p;
209  
# Line 218 | Line 222 | void *operator new(size_t size)
222          return p;
223   }
224  
225 < void operator delete(void *p)
225 > void sheepshaver_cpu::operator delete(void *p)
226   {
227   #if defined(HAVE_MEMALIGN) || defined(HAVE_VALLOC)
228   #if defined(__GLIBC__)
# Line 1108 | Line 1112 | void sheepshaver_cpu::execute_native_op(
1112          case NATIVE_VIDEO_DO_DRIVER_IO:
1113                  gpr(3) = (int32)(int16)VideoDoDriverIO(gpr(3), gpr(4), gpr(5), gpr(6), gpr(7));
1114                  break;
1111 #ifdef WORDS_BIGENDIAN
1115          case NATIVE_ETHER_IRQ:
1116                  EtherIRQ();
1117                  break;
# Line 1130 | Line 1133 | void sheepshaver_cpu::execute_native_op(
1133          case NATIVE_ETHER_RSRV:
1134                  gpr(3) = ether_rsrv((queue_t *)gpr(3));
1135                  break;
1133 #else
1134        case NATIVE_ETHER_INIT:
1135                // FIXME: needs more complicated thunks
1136                gpr(3) = false;
1137                break;
1138 #endif
1136          case NATIVE_SYNC_HOOK:
1137                  gpr(3) = NQD_sync_hook(gpr(3));
1138                  break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines