ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/sigsegv.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/sigsegv.cpp (file contents):
Revision 1.52 by gbeauche, 2005-01-30T21:42:14Z vs.
Revision 1.53 by gbeauche, 2005-02-20T11:39:12Z

# Line 272 | Line 272 | static void powerpc_decode_instruction(i
272   #define SIGSEGV_REGISTER_FILE                   (unsigned long *)SIGSEGV_CONTEXT_REGS
273   #define SIGSEGV_SKIP_INSTRUCTION                ix86_skip_instruction
274   #endif
275 + #if (defined(powerpc) || defined(__powerpc__))
276 + #include <sys/ucontext.h>
277 + #define SIGSEGV_CONTEXT_REGS                    (((ucontext_t *)scp)->uc_mcontext.__gregs)
278 + #define SIGSEGV_FAULT_INSTRUCTION               SIGSEGV_CONTEXT_REGS[_REG_PC]
279 + #define SIGSEGV_REGISTER_FILE                   (unsigned long *)&SIGSEGV_CONTEXT_REGS[_REG_PC], (unsigned long *)&SIGSEGV_CONTEXT_REGS[_REG_R0]
280 + #define SIGSEGV_SKIP_INSTRUCTION                powerpc_skip_instruction
281 + #endif
282   #endif
283   #if defined(__linux__)
284   #if (defined(i386) || defined(__i386__))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines