Revision fd4a43e4 cpu-exec.c

b/cpu-exec.c
1363 1363
#ifndef __ISR_VALID
1364 1364
  /* This ought to be in <bits/siginfo.h>... */
1365 1365
# define __ISR_VALID	1
1366
# define si_flags	_sifields._sigfault._si_pad0
1367 1366
#endif
1368 1367

  
1369 1368
int cpu_signal_handler(int host_signum, struct siginfo *info, void *puc)
......
1379 1378
      case SIGSEGV:
1380 1379
      case SIGBUS:
1381 1380
      case SIGTRAP:
1382
	  if (info->si_code && (info->si_flags & __ISR_VALID))
1381
	  if (info->si_code && (info->si_segvflags & __ISR_VALID))
1383 1382
	      /* ISR.W (write-access) is bit 33:  */
1384 1383
	      is_write = (info->si_isr >> 33) & 1;
1385 1384
	  break;

Also available in: Unified diff