1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412
|
/* FEATCHK.H (c) Copyright Jan Jaeger, 2000-2009 */
/* Feature definition consistency checks */
// $Id: featchk.h 5454 2009-08-14 14:25:06Z rbowler $
/*-------------------------------------------------------------------*/
/* Perform various checks on feature combinations, and set */
/* additional flags to percolate certain features such as */
/* SIE down to lower architecture levels such that these */
/* can include emulation support */
/*-------------------------------------------------------------------*/
#if defined(FEATCHK_CHECK_ALL)
/* FEATURE_INTERPRETIVE_EXECUTION is related to host related issues
_FEATURE_SIE is related to guest (emulation) related issues. This
because if FEATURE_INTERPRETIVE_EXECUTION is defined for say 390
mode, then _FEATURE_SIE will also need to be in 370 in order to
support 370 mode SIE emulation */
#if defined(FEATURE_INTERPRETIVE_EXECUTION)
#define _FEATURE_SIE
#if defined(FEATURE_ESAME)
#define _FEATURE_ZSIE
#endif
#if defined(FEATURE_PROTECTION_INTERCEPTION_CONTROL)
#define _FEATURE_PROTECTION_INTERCEPTION_CONTROL
#endif
#endif
/* _FEATURE_MULTIPLE_CONTROLLED_DATA_SPACE is used for host
related processing issues, FEATURE_MULTIPLE_CONTROLLED_DATA_SPACE
is defined only in ESA/390 mode. MCDS is an ESA/390
feature that is supported under z/Architecture SIE */
#if defined(FEATURE_MULTIPLE_CONTROLLED_DATA_SPACE)
#define _FEATURE_MULTIPLE_CONTROLLED_DATA_SPACE
#endif
#if defined(FEATURE_2K_STORAGE_KEYS)
#define _FEATURE_2K_STORAGE_KEYS
#endif
#if defined(FEATURE_INTERVAL_TIMER)
#define _FEATURE_INTERVAL_TIMER
#endif
#if defined(FEATURE_ECPSVM)
#define _FEATURE_ECPSVM
#endif
#if defined(FEATURE_VECTOR_FACILITY)
#define _FEATURE_VECTOR_FACILITY
#endif
#if defined(FEATURE_CHANNEL_SUBSYSTEM)
#define _FEATURE_CHANNEL_SUBSYSTEM
#endif
#if defined(FEATURE_SYSTEM_CONSOLE)
#define _FEATURE_SYSTEM_CONSOLE
#endif
#if defined(FEATURE_EXPANDED_STORAGE)
#define _FEATURE_EXPANDED_STORAGE
#endif
#if defined(FEATURE_ECPSVM)
#define _FEATURE_ECPSVM
#endif
#if defined(_FEATURE_SIE) && defined(FEATURE_STORAGE_KEY_ASSIST)
#define _FEATURE_STORAGE_KEY_ASSIST
#endif
#if defined(FEATURE_CPU_RECONFIG)
#define _FEATURE_CPU_RECONFIG
#endif
#if defined(FEATURE_PER)
#define _FEATURE_PER
#endif
#if defined(FEATURE_PER2)
#define _FEATURE_PER2
#endif
#if defined(FEATURE_EXPEDITED_SIE_SUBSET)
#define _FEATURE_EXPEDITED_SIE_SUBSET
#endif
#if defined(FEATURE_REGION_RELOCATE)
#define _FEATURE_REGION_RELOCATE
#endif
#if defined(FEATURE_IO_ASSIST)
#define _FEATURE_IO_ASSIST
#endif
#if defined(FEATURE_WAITSTATE_ASSIST)
#define _FEATURE_WAITSTATE_ASSIST
#endif
#if defined(FEATURE_EXTERNAL_INTERRUPT_ASSIST)
#define _FEATURE_EXTERNAL_INTERRUPT_ASSIST
#endif
#if defined(FEATURE_MESSAGE_SECURITY_ASSIST)
#define _FEATURE_MESSAGE_SECURITY_ASSIST
#endif
#if defined(FEATURE_ASN_AND_LX_REUSE)
#define _FEATURE_ASN_AND_LX_REUSE
#endif
#if defined(FEATURE_INTEGRATED_3270_CONSOLE)
#define _FEATURE_INTEGRATED_3270_CONSOLE
#endif
#if defined(FEATURE_INTEGRATED_ASCII_CONSOLE)
#define _FEATURE_INTEGRATED_ASCII_CONSOLE
#endif
#undef _VSTORE_C_STATIC
#if !defined(OPTION_NO_INLINE_VSTORE)
#define _VSTORE_C_STATIC static inline
#define _VSTORE_FULL_C_STATIC static
#else
#define _VSTORE_C_STATIC
#define _VSTORE_FULL_C_STATIC
#endif
#undef _VFETCH_C_STATIC
#if !defined(OPTION_NO_INLINE_IFETCH)
#define _VFETCH_C_STATIC static inline
#else
#define _VFETCH_C_STATIC
#endif
#undef _DAT_C_STATIC
#if !defined(OPTION_NO_INLINE_DAT)
#define _DAT_C_STATIC static inline
#else
#define _DAT_C_STATIC
#endif
#undef _LOGICAL_C_STATIC
#if !defined(OPTION_NO_INLINE_LOGICAL)
#define _LOGICAL_C_STATIC static inline
#else
#define _LOGICAL_C_STATIC
#endif
#if !defined(OPTION_370_MODE) \
&& !defined(OPTION_390_MODE) \
&& !defined(OPTION_900_MODE)
#error No Architecture mode
#endif
#if defined(OPTION_370_MODE)
#define _370
#define _ARCHMODE1 370
#define ARCH_370 0
#endif
#if defined(OPTION_390_MODE)
#define _390
#if !defined(_ARCHMODE1)
#define _ARCHMODE1 390
#define ARCH_390 0
#else
#define _ARCHMODE2 390
#define ARCH_390 1
#endif
#endif
#if defined(OPTION_900_MODE)
#define _900
#if !defined(_ARCHMODE2)
#define _ARCHMODE2 900
#define ARCH_900 1
#else
#define _ARCHMODE3 900
#define ARCH_900 2
#endif
#endif
#if !defined(ARCH_370)
#define ARCH_370 -1
#endif
#if !defined(ARCH_390)
#define ARCH_390 -1
#endif
#if !defined(ARCH_900)
#define ARCH_900 -1
#endif
#if defined(_ARCHMODE3)
#define GEN_MAXARCH 3+2
#elif defined(_ARCHMODE2)
#define GEN_MAXARCH 2+2
#else
#define GEN_MAXARCH 1+2
#endif
#if defined(_900) && !defined(_390)
#error OPTION_390_MODE must be enabled for OPTION_900_MODE
#endif
#else /*!defined(FEATCHK_CHECK_ALL)*/
/* When ESAME is installed then all instructions
marked N3 in the reference are also available
in ESA/390 mode */
#if defined(_900) && (__GEN_ARCH == 390)
#define FEATURE_ESAME_N3_ESA390
#endif
#if !defined(FEATURE_2K_STORAGE_KEYS) \
&& !defined(FEATURE_4K_STORAGE_KEYS)
#error Storage keys must be 2K or 4K
#endif
#if defined(FEATURE_EXTENDED_STORAGE_KEYS)
#if !defined(FEATURE_S370E_EXTENDED_ADDRESSING)
#define FEATURE_S370E_EXTENDED_ADDRESSING
#endif
#endif
#if defined(FEATURE_EXPANDED_STORAGE) \
&& !defined(FEATURE_4K_STORAGE_KEYS)
#error Expanded storage cannot be defined with 2K storage keys
#endif
#if defined(_900) && defined(FEATURE_VECTOR_FACILITY)
#error Vector Facility not supported on ESAME capable processors
#endif
#if !defined(FEATURE_S370_CHANNEL) && !defined(FEATURE_CHANNEL_SUBSYSTEM)
#error Either S/370 Channel or Channel Subsystem must be defined
#endif
#if defined(FEATURE_S370_CHANNEL) && defined(FEATURE_CHANNEL_SUBSYSTEM)
#error S/370 Channel and Channel Subsystem cannot both be defined
#endif
#if defined(FEATURE_CANCEL_IO_FACILITY) \
&& !defined(FEATURE_CHANNEL_SUBSYSTEM)
#error Cancel I/O facility requires Channel Subsystem
#endif
#if defined(FEATURE_MOVE_PAGE_FACILITY_2) \
&& !defined(FEATURE_4K_STORAGE_KEYS)
#error Move page facility cannot be defined with 2K storage keys
#endif
#if defined(FEATURE_FAST_SYNC_DATA_MOVER) \
&& !defined(FEATURE_MOVE_PAGE_FACILITY_2)
#error Fast sync data mover facility requires Move page facility
#endif
#if defined(FEATURE_ESAME) \
&& defined(FEATURE_INTERPRETIVE_EXECUTION) \
&& !defined(_FEATURE_SIE)
#error ESA/390 SIE must be defined when defining ESAME SIE
#endif
#if defined(FEATURE_MULTIPLE_CONTROLLED_DATA_SPACE) \
&& !defined(FEATURE_INTERPRETIVE_EXECUTION)
#error MCDS only supported with SIE
#endif
#if defined(FEATURE_PROTECTION_INTERCEPTION_CONTROL) \
&& !defined(FEATURE_INTERPRETIVE_EXECUTION)
#error Protection Interception Control only supported with SIE
#endif
#if defined(FEATURE_MULTIPLE_CONTROLLED_DATA_SPACE) \
&& !defined(FEATURE_STORAGE_KEY_ASSIST)
#error MCDS requires storage key assist
#endif
#if defined(FEATURE_SIE) && defined(FEATURE_ESAME) \
&& !defined(FEATURE_STORAGE_KEY_ASSIST)
#error ESAME SIE requires storage key assist
#endif
#if defined(FEATURE_STORAGE_KEY_ASSIST) \
&& !defined(FEATURE_INTERPRETIVE_EXECUTION)
#error Storage Key assist only supported with SIE
#endif
#if defined(FEATURE_REGION_RELOCATE) \
&& !defined(FEATURE_INTERPRETIVE_EXECUTION)
#error Region Relocate Facility only supported with SIE
#endif
#if defined(FEATURE_IO_ASSIST) \
&& !defined(_FEATURE_SIE)
#error I/O Assist Feature only supported with SIE
#endif
#if defined(FEATURE_IO_ASSIST) \
&& !defined(_FEATURE_REGION_RELOCATE)
#error Region Relocate Facility required for IO Assist
#endif
#if defined(FEATURE_EXTERNAL_INTERRUPT_ASSIST) \
&& !defined(_FEATURE_SIE)
#error External Interruption assist only supported with SIE
#endif
#if defined(FEATURE_EXPEDITED_SIE_SUBSET) \
&& !defined(_FEATURE_SIE)
#error Expedited SIE Subset only supported with SIE
#endif
#if defined(FEATURE_ASN_AND_LX_REUSE)
#if !defined(FEATURE_DUAL_ADDRESS_SPACE)
#error ASN-and-LX-Reuse requires Dual Address-Space feature
#endif
#if !defined(FEATURE_ESAME)
#error ASN-and-LX-Reuse is only supported with ESAME
#endif
#endif
#if defined(FEATURE_ESAME) \
&& defined(FEATURE_VECTOR_FACILITY)
#error Vector Facility not supported in ESAME mode
#endif
#if defined(FEATURE_BINARY_FLOATING_POINT) \
&& defined(NO_IEEE_SUPPORT)
#undef FEATURE_BINARY_FLOATING_POINT
#undef FEATURE_FPS_EXTENSIONS
#endif
#if defined(FEATURE_BINARY_FLOATING_POINT) \
&& !defined(FEATURE_BASIC_FP_EXTENSIONS)
#error Binary floating point requires basic FP extensions
#endif
#if defined(FEATURE_DECIMAL_FLOATING_POINT) \
&& !defined(FEATURE_BASIC_FP_EXTENSIONS)
#error Decimal floating point requires basic FP extensions
#endif
#if defined(FEATURE_BASIC_FP_EXTENSIONS) \
&& !defined(FEATURE_HEXADECIMAL_FLOATING_POINT)
#error Basic FP extensions requires hexadecimal floating point
#endif
#if !defined(FEATURE_BASIC_FP_EXTENSIONS)
#if defined(FEATURE_HFP_EXTENSIONS) \
|| defined(FEATURE_FPS_EXTENSIONS)
#error Floating point extensions require basic FP extensions
#endif
#endif
#if defined(FEATURE_FPS_EXTENSIONS) \
&& !defined(FEATURE_BINARY_FLOATING_POINT)
#error FP support extensions requires binary floating point
#endif
#if defined(FEATURE_HFP_MULTIPLY_ADD_SUBTRACT) \
&& !defined(FEATURE_HEXADECIMAL_FLOATING_POINT)
#error HFP multiply add/subtract requires hexadecimal floating point
#endif
#if defined(FEATURE_HFP_UNNORMALIZED_EXTENSION) \
&& !defined(FEATURE_HEXADECIMAL_FLOATING_POINT)
#error HFP unnormalized extension requires hexadecimal floating point
#endif
#if defined(FEATURE_PER2) && !defined(FEATURE_PER)
#error FEATURE_PER must be defined when using FEATURE_PER2
#endif
#if defined(FEATURE_PER3) && !defined(FEATURE_PER)
#error FEATURE_PER must be defined when using FEATURE_PER3
#endif
#if defined(FEATURE_COMPARE_AND_SWAP_AND_STORE_FACILITY_2) && !defined(FEATURE_COMPARE_AND_SWAP_AND_STORE)
#error FEATURE_COMPARE_AND_SWAP_AND_STORE must be defined when using FEATURE_COMPARE_AND_SWAP_AND_STORE_FACILITY_2
#endif
#if defined(FEATURE_INTEGRATED_3270_CONSOLE) && !defined(FEATURE_SYSTEM_CONSOLE)
#error Integrated 3270 console requires FEATURE_SYSTEM_CONSOLE
#endif
#if defined(FEATURE_INTEGRATED_ASCII_CONSOLE) && !defined(FEATURE_SYSTEM_CONSOLE)
#error Integrated ASCII console requires FEATURE_SYSTEM_CONSOLE
#endif
#if defined(FEATURE_VM_BLOCKIO) && !defined(FEATURE_EMULATE_VM)
#error VM Standard Block I/O DIAGNOSE 0x250 requires FEATURE_EMULATE_VM
#endif
#if defined(FEATURE_MESSAGE_SECURITY_ASSIST)
#if defined(_370)
#define _370_FEATURE_MESSAGE_SECURITY_ASSIST
#endif
#if defined(_390)
#define _390_FEATURE_MESSAGE_SECURITY_ASSIST
#endif
#if defined(_900)
#define _900_FEATURE_MESSAGE_SECURITY_ASSIST
#endif
#endif /*defined(FEATURE_MESSAGE_SECURITY_ASSIST)*/
#endif /*!defined(FEATALL_CHECKALL)*/
/* end of FEATCHK.H */
|