OLD | NEW |
1 /* Main header for the Hitachi h8/300 architecture. */ | 1 /* Main header for the Hitachi h8/300 architecture. */ |
2 | 2 |
| 3 #include "config.h" |
3 #include "bfd.h" | 4 #include "bfd.h" |
4 | 5 |
5 #ifndef SIM_MAIN_H | 6 #ifndef SIM_MAIN_H |
6 #define SIM_MAIN_H | 7 #define SIM_MAIN_H |
7 | 8 |
8 #define DEBUG | 9 #define DEBUG |
9 | 10 |
10 /* These define the size of main memory for the simulator. | 11 /* These define the size of main memory for the simulator. |
11 | 12 |
12 Note the size of main memory for the H8/300H is only 256k. Keeping it | 13 Note the size of main memory for the H8/300H is only 256k. Keeping it |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 #define LIBC_EXIT_MAGIC2 0xbeef | 164 #define LIBC_EXIT_MAGIC2 0xbeef |
164 /* Local version of macros for decoding exit status. | 165 /* Local version of macros for decoding exit status. |
165 (included here rather than try to find target version of wait.h) | 166 (included here rather than try to find target version of wait.h) |
166 */ | 167 */ |
167 #define SIM_WIFEXITED(V) (((V) & 0xff) == 0) | 168 #define SIM_WIFEXITED(V) (((V) & 0xff) == 0) |
168 #define SIM_WIFSTOPPED(V) (!SIM_WIFEXITED (V)) | 169 #define SIM_WIFSTOPPED(V) (!SIM_WIFEXITED (V)) |
169 #define SIM_WEXITSTATUS(V) (((V) >> 8) & 0xff) | 170 #define SIM_WEXITSTATUS(V) (((V) >> 8) & 0xff) |
170 #define SIM_WSTOPSIG(V) ((V) & 0x7f) | 171 #define SIM_WSTOPSIG(V) ((V) & 0x7f) |
171 | 172 |
172 #endif /* SIM_MAIN_H */ | 173 #endif /* SIM_MAIN_H */ |
OLD | NEW |