root/user/uw-testbin/vm-crash1/vm-crash1.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

   1 #include <stdio.h>
   2 #include <stdlib.h>
   3 
   4 #if defined(__mips__)
   5 #define INSN_TYPE unsigned int
   6 #define INVAL_INSN  0x0000003f
   7 #else
   8 #error "Please fix this"
   9 #endif
  10 
  11 
  12 int
  13 main()
  14 {
  15 
  16         INSN_TYPE *x = (INSN_TYPE *) main;
  17         *x = INVAL_INSN;
  18 
  19         printf("IF THIS PRINTS THE TEST FAILED\n");
  20         exit(1);
  21 }
  22 
  23 
  24 

/* [<][>][^][v][top][bottom][index][help] */