forked from SDL-Hercules-390/hyperion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchlvl.c
2174 lines (1842 loc) · 79.2 KB
/
archlvl.c
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
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* ARCHLVL.C (C) Copyright Jan Jaeger, 2010-2012 */
/* Architecture Mode and Facilities */
/* */
/* Released under "The Q Public License Version 1" */
/* (http://www.hercules-390.org/herclic.html) as modifications to */
/* Hercules. */
#include "hstdinc.h"
#if !defined(_ARCHLVL_C_)
#define _ARCHLVL_C_
#endif
#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif
#include "hercules.h"
#include "devtype.h"
#include "opcode.h"
#include "hostinfo.h"
/*-------------------------------------------------------------------*/
/* Architecture bit-masks */
/*-------------------------------------------------------------------*/
#ifndef _NONE
#define _NONE 0x00 /* NO architectures or disabled */
#define _S370 0x80 /* S/370 architecture */
#define _E390 0x40 /* ESA/390 architecture */
#define _Z900 0x20 /* z/Arch architecture */
#define _Z390 (_E390|_Z900) /* BOTH ESA/390 and z/Arch */
#define _MALL (_S370|_Z390) /* All architectures */
#endif
/*-------------------------------------------------------------------*/
/* ARCH_DEP Architecture bit-masks */
/*-------------------------------------------------------------------*/
#undef NONE
#undef S370
#undef E390
#undef Z900
#undef Z390
#undef MALL
#if __GEN_ARCH == 370 /* (building for S/370?) */
#define NONE _NONE /* NO architectures or disabled */
#define S370 _S370 /* S/370 architecture */
#define E390 _NONE /* ESA/390 architecture */
#define Z900 _NONE /* z/Arch architecture */
#define Z390 (E390|Z900) /* BOTH ESA/390 and z/Arch */
#define MALL (S370|Z390) /* All architectures */
#elif __GEN_ARCH == 390 /* (building for S/390?) */
#define NONE _NONE /* NO architectures or disabled */
#define S370 _NONE /* S/370 architecture */
#define E390 _E390 /* ESA/390 architecture */
#define Z900 _NONE /* z/Arch architecture */
#define Z390 (E390|Z900) /* BOTH ESA/390 and z/Arch */
#define MALL (S370|Z390) /* All architectures */
#elif __GEN_ARCH == 900 /* (building for z/Arch?) */
#define NONE _NONE /* NO architectures or disabled */
#define S370 _NONE /* S/370 architecture */
#define E390 _NONE /* ESA/390 architecture */
#define Z900 _Z900 /* z/Arch architecture */
#define Z390 (E390|Z900) /* BOTH ESA/390 and z/Arch */
#define MALL (S370|Z390) /* All architectures */
#endif
/*-------------------------------------------------------------------*/
/* Facility Table structure */
/*-------------------------------------------------------------------*/
#ifndef FACTAB_STRUCT_DEFINED
#define FACTAB_STRUCT_DEFINED
typedef bool FACMODCHK( bool enable, int bitno, int archnum,
const char* action, const char* actioning,
const char* target_facname );
struct FACTAB
{
FACMODCHK* modokfunc; /* Modification Check function */
const char* name; /* Short facility name */
const char* long_name; /* Long name = Description */
int bitno; /* Bit number */
int supmask; /* Which archs support it */
int defmask; /* Default for which archs */
int reqmask; /* Which archs require it */
};
typedef struct FACTAB FACTAB;
#define FT( _sup, _def, _req, _name ) \
{ \
NULL, \
QSTR( _name ), \
NULL, \
STFL_ ## _name, /* esa390.h 'STFL_XXX' bit number #define */ \
_sup, \
_def, \
_req \
},
#define FT2( _modokfunc, _name, _desc ) \
{ \
_modokfunc, \
QSTR( _name ), \
_desc, \
STFL_ ## _name, /* esa390.h 'STFL_XXX' bit number #define */ \
0, \
0, \
0, \
},
#endif /* FACTAB_STRUCT_DEFINED */
/*-------------------------------------------------------------------*/
/* Temporary ARCH_DEP Facility Table */
/*-------------------------------------------------------------------*/
/* The facility names used in the below FT macro invocations are, */
/* when prefixed with 'STFL_', the facility bit number as #defined */
/* in header esa390.h (e.g. FT( 044_PFPO, ..) ==> STFL_044_PFPO 44) */
/* */
/* Also note that the entries in the below table do NOT have to be */
/* in any facility bit sequence as it is always seached serially. */
/* However, it is greatly preferred that it be kept in sequence. */
/* */
/* Sup (Supported) means the facility is supported by Hercules for */
/* the given architectures. Def (Default) indicates the facility */
/* defaults to enabled for the specified architectures. The Req */
/* (Required) field indicates the facility is a REQUIRED facility */
/* for the architecture and enabling/disabling it isn't allowed. */
/* */
/* ALL known facilities should ALWAYS be defined in the below table */
/* REGARDLESS of whether or not it has been implemented yet within */
/* Hercules. If the facility is not implemented in Hercules yet, */
/* (i.e. no code has been written to support it yet), then simply */
/* specify "NONE" in all three Sup/Def/Req columns. Once support */
/* for the facility has been coded, then just update the columns */
/* as appropriate so the guest can start using them. */
/*-------------------------------------------------------------------*/
/* */
/* *** CRITICAL! *** */
/* */
/* All of the below FT macro invokations should be wrapped with an */
/* #if defined( FEATURE_nnn... ) statement WITHOUT the underscore! */
/* */
/* This is because the below tables are ARCH_DEP tables which are */
/* compiled differently depending on the architecture is currently */
/* being built. */
/* */
/*-------------------------------------------------------------------*/
static FACTAB ARCH_DEP( facs_tab )[] = /* Arch-DEPENDENT table */
{
/*-------------------------------------------------------------------*/
/* Sup Def Req Short Name... */
/*-------------------------------------------------------------------*/
#if defined( FEATURE_000_N3_INSTR_FACILITY )
FT( Z390, Z390, NONE, 000_N3_INSTR )
#endif
/* PROGRAMMING NOTE: please note the use of underscore _FEATURE test */
#if defined( _FEATURE_001_ZARCH_INSTALLED_FACILITY )
FT( _Z390, _Z390, _Z390, 001_ZARCH_INSTALLED )
#endif
#if defined( FEATURE_002_ZARCH_ACTIVE_FACILITY )
FT( Z900, Z900, Z900, 002_ZARCH_ACTIVE )
#endif
#if defined( FEATURE_003_DAT_ENHANCE_FACILITY_1 )
FT( Z390, Z390, NONE, 003_DAT_ENHANCE_1 )
#endif
#if defined( FEATURE_004_IDTE_SC_SEGTAB_FACILITY )
FT( NONE, NONE, NONE, 004_IDTE_SC_SEGTAB )
#endif
#if defined( FEATURE_005_IDTE_SC_REGTAB_FACILITY )
FT( NONE, NONE, NONE, 005_IDTE_SC_REGTAB )
#endif
#if defined( FEATURE_006_ASN_LX_REUSE_FACILITY )
FT( Z900, Z900, NONE, 006_ASN_LX_REUSE )
#endif
#if defined( FEATURE_007_STFL_EXTENDED_FACILITY )
FT( Z900, Z900, NONE, 007_STFL_EXTENDED )
#endif
#if defined( FEATURE_008_ENHANCED_DAT_FACILITY_1 )
FT( Z900, Z900, NONE, 008_EDAT_1 )
#endif
#if defined( FEATURE_009_SENSE_RUN_STATUS_FACILITY )
FT( Z900, Z900, NONE, 009_SENSE_RUN_STATUS )
#endif
#if defined( FEATURE_010_CONDITIONAL_SSKE_FACILITY )
FT( Z900, Z900, NONE, 010_CONDITIONAL_SSKE )
#endif
#if defined( FEATURE_011_CONFIG_TOPOLOGY_FACILITY )
FT( Z900, Z900, NONE, 011_CONFIG_TOPOLOGY )
#endif
#if defined( FEATURE_013_IPTE_RANGE_FACILITY )
FT( Z900, Z900, NONE, 013_IPTE_RANGE )
#endif
#if defined( FEATURE_014_NONQ_KEY_SET_FACILITY )
FT( Z900, Z900, NONE, 014_NONQ_KEY_SET )
#endif
#if defined( FEATURE_016_EXT_TRANSL_FACILITY_2 )
FT( Z390, Z390, NONE, 016_EXT_TRANSL_2 )
#endif
#if defined( FEATURE_017_MSA_FACILITY )
FT( Z390, Z390, NONE, 017_MSA )
#endif
#if defined( FEATURE_018_LONG_DISPL_INST_FACILITY )
FT( Z390, Z390, NONE, 018_LONG_DISPL_INST )
#endif
#if defined( FEATURE_019_LONG_DISPL_HPERF_FACILITY )
FT( Z390, Z390, NONE, 019_LONG_DISPL_HPERF )
#endif
#if defined( FEATURE_020_HFP_MULT_ADD_SUB_FACILITY )
FT( Z390, Z390, NONE, 020_HFP_MULT_ADD_SUB )
#endif
#if defined( FEATURE_021_EXTENDED_IMMED_FACILITY )
FT( Z900, Z900, NONE, 021_EXTENDED_IMMED )
#endif
#if defined( FEATURE_022_EXT_TRANSL_FACILITY_3 )
FT( Z900, Z900, NONE, 022_EXT_TRANSL_3 )
#endif
#if defined( FEATURE_023_HFP_UNNORM_EXT_FACILITY )
FT( Z900, Z900, NONE, 023_HFP_UNNORM_EXT )
#endif
#if defined( FEATURE_024_ETF2_ENHANCEMENT_FACILITY )
FT( Z900, Z900, NONE, 024_ETF2_ENHANCEMENT )
#endif
#if defined( FEATURE_025_STORE_CLOCK_FAST_FACILITY )
FT( Z900, Z900, NONE, 025_STORE_CLOCK_FAST )
#endif
#if defined( FEATURE_026_PARSING_ENHANCE_FACILITY )
FT( Z900, Z900, NONE, 026_PARSING_ENHANCE )
#endif
#if defined( FEATURE_027_MVCOS_FACILITY )
FT( Z900, Z900, NONE, 027_MVCOS )
#endif
#if defined( FEATURE_028_TOD_CLOCK_STEER_FACILITY )
FT( Z900, Z900, NONE, 028_TOD_CLOCK_STEER )
#endif
#if defined( FEATURE_030_ETF3_ENHANCEMENT_FACILITY )
FT( Z900, Z900, NONE, 030_ETF3_ENHANCEMENT )
#endif
#if defined( FEATURE_031_EXTRACT_CPU_TIME_FACILITY )
FT( Z900, Z900, NONE, 031_EXTRACT_CPU_TIME )
#endif
#if defined( FEATURE_032_CSS_FACILITY )
FT( Z900, Z900, NONE, 032_CSSF )
#endif
#if defined( FEATURE_033_CSS_FACILITY_2 )
FT( Z900, Z900, NONE, 033_CSSF2 )
#endif
#if defined( FEATURE_034_GEN_INST_EXTN_FACILITY )
FT( Z900, Z900, NONE, 034_GEN_INST_EXTN )
#endif
#if defined( FEATURE_035_EXECUTE_EXTN_FACILITY )
FT( Z900, Z900, NONE, 035_EXECUTE_EXTN )
#endif
#if defined( FEATURE_036_ENH_MONITOR_FACILITY )
FT( Z900, Z900, NONE, 036_ENH_MONITOR )
#endif
#if defined( FEATURE_037_FP_EXTENSION_FACILITY )
FT( Z900, Z900, NONE, 037_FP_EXTENSION )
#endif
#if defined( FEATURE_038_OP_CMPSC_FACILITY )
FT( NONE, NONE, NONE, 038_OP_CMPSC )
#endif
#if defined( FEATURE_040_LOAD_PROG_PARAM_FACILITY )
FT( Z900, Z900, NONE, 040_LOAD_PROG_PARAM )
#endif
/*-------------------------------------------------------------------*/
#if defined( FEATURE_041_FPS_ENHANCEMENT_FACILITY )
FT( Z900, Z900, NONE, 041_FPS_ENHANCEMENT )
#if defined( FEATURE_041_DFP_ROUNDING_FACILITY )
FT( Z900, Z900, NONE, 041_DFP_ROUNDING )
#endif
#if defined( FEATURE_041_FPR_GR_TRANSFER_FACILITY )
FT( Z900, Z900, NONE, 041_FPR_GR_TRANSFER )
#endif
#if defined( FEATURE_041_FPS_SIGN_HANDLING_FACILITY )
FT( Z900, Z900, NONE, 041_FPS_SIGN_HANDLING )
#endif
#if defined( FEATURE_041_IEEE_EXCEPT_SIM_FACILITY )
FT( Z900, Z900, NONE, 041_IEEE_EXCEPT_SIM )
#endif
#endif /* defined( FEATURE_041_FPS_ENHANCEMENT_FACILITY ) */
/*-------------------------------------------------------------------*/
#if defined( FEATURE_042_DFP_FACILITY )
FT( Z900, Z900, NONE, 042_DFP )
#endif
#if defined( FEATURE_043_DFP_HPERF_FACILITY )
FT( Z900, Z900, NONE, 043_DFP_HPERF )
#endif
/*-------------------------------------------------------------------*/
/* Since some modern operating systems (e.g. z/OS and z/VM) require */
/* it, allow the PFPO facility to be forcibly enabled Until we can */
/* eventually code proper support for it. */
/*-------------------------------------------------------------------*/
// FIXME: code proper support for PFPO!
//#if defined( FEATURE_044_PFPO_FACILITY )
FT( Z900, NONE, NONE, 044_PFPO )
//#endif
/*-------------------------------------------------------------------*/
#if defined( FEATURE_045_DISTINCT_OPERANDS_FACILITY )
FT( Z900, Z900, NONE, 045_DISTINCT_OPERANDS )
#endif
#if defined( FEATURE_045_FAST_BCR_SERIAL_FACILITY )
FT( Z900, Z900, NONE, 045_FAST_BCR_SERIAL )
#endif
#if defined( FEATURE_045_HIGH_WORD_FACILITY )
FT( Z900, Z900, NONE, 045_HIGH_WORD )
#endif
#if defined( FEATURE_045_INTERLOCKED_ACCESS_FACILITY_1 )
FT( Z900, Z900, NONE, 045_INTERLOCKED_ACCESS_1 )
#endif
#if defined( FEATURE_045_LOAD_STORE_ON_COND_FACILITY_1 )
FT( Z900, Z900, NONE, 045_LOAD_STORE_ON_COND_1 )
#endif
#if defined( FEATURE_045_POPULATION_COUNT_FACILITY )
FT( Z900, Z900, NONE, 045_POPULATION_COUNT )
#endif
/*-------------------------------------------------------------------*/
#if defined( FEATURE_047_CMPSC_ENH_FACILITY )
FT( Z900, Z900, NONE, 047_CMPSC_ENH )
#endif
#if defined( FEATURE_048_DFP_ZONE_CONV_FACILITY )
FT( Z900, Z900, NONE, 048_DFP_ZONE_CONV )
#endif
/*-------------------------------------------------------------------*/
#if defined( FEATURE_049_EXECUTION_HINT_FACILITY )
FT( Z900, Z900, NONE, 049_EXECUTION_HINT )
#endif
#if defined( FEATURE_049_LOAD_AND_TRAP_FACILITY )
FT( Z900, Z900, NONE, 049_LOAD_AND_TRAP )
#endif
#if defined( FEATURE_049_PROCESSOR_ASSIST_FACILITY )
FT( Z900, Z900, NONE, 049_PROCESSOR_ASSIST )
#endif
#if defined( FEATURE_049_MISC_INSTR_EXT_FACILITY_1 )
FT( Z900, Z900, NONE, 049_MISC_INSTR_EXT_1 )
#endif
/*-------------------------------------------------------------------*/
#if defined( FEATURE_050_CONSTR_TRANSACT_FACILITY )
FT( NONE, NONE, NONE, 050_CONSTR_TRANSACT )
#endif
#if defined( FEATURE_051_LOCAL_TLB_CLEARING_FACILITY )
FT( NONE, NONE, NONE, 051_LOCAL_TLB_CLEARING )
#endif
/*-------------------------------------------------------------------*/
#if defined( FEATURE_052_INTERLOCKED_ACCESS_FACILITY_2 )
#if IAF2_ATOMICS_UNAVAILABLE == CAN_IAF2
FT( NONE, NONE, NONE, 052_INTERLOCKED_ACCESS_2 )
#else
FT( Z900, Z900, NONE, 052_INTERLOCKED_ACCESS_2 )
#endif
#endif /* defined( FEATURE_052_INTERLOCKED_ACCESS_FACILITY_2 ) */
/*-------------------------------------------------------------------*/
#if defined( FEATURE_053_LOAD_STORE_ON_COND_FACILITY_2 )
FT( NONE, NONE, NONE, 053_LOAD_STORE_ON_COND_2 )
#endif
#if defined( FEATURE_053_LOAD_ZERO_RIGHTMOST_FACILITY )
FT( NONE, NONE, NONE, 053_LOAD_ZERO_RIGHTMOST )
#endif
/*-------------------------------------------------------------------*/
#if defined( FEATURE_054_EE_CMPSC_FACILITY )
FT( NONE, NONE, NONE, 054_EE_CMPSC )
#endif
#if defined( FEATURE_057_MSA_EXTENSION_FACILITY_5 )
FT( NONE, NONE, NONE, 057_MSA_EXTENSION_5 )
#endif
#if defined( FEATURE_058_MISC_INSTR_EXT_FACILITY_2 )
FT( NONE, NONE, NONE, 058_MISC_INSTR_EXT_2 )
#endif
#if defined( FEATURE_066_RES_REF_BITS_MULT_FACILITY )
FT( Z900, Z900, NONE, 066_RES_REF_BITS_MULT )
#endif
#if defined( FEATURE_067_CPU_MEAS_COUNTER_FACILITY )
FT( Z900, Z900, NONE, 067_CPU_MEAS_COUNTER )
#endif
#if defined( FEATURE_068_CPU_MEAS_SAMPLNG_FACILITY )
FT( Z900, Z900, NONE, 068_CPU_MEAS_SAMPLNG )
#endif
#if defined( FEATURE_073_TRANSACT_EXEC_FACILITY )
FT( NONE, NONE, NONE, 073_TRANSACT_EXEC )
#endif
#if defined( FEATURE_074_STORE_HYPER_INFO_FACILITY )
FT( NONE, NONE, NONE, 074_STORE_HYPER_INFO )
#endif
#if defined( FEATURE_075_ACC_EX_FS_INDIC_FACILITY )
FT( Z900, Z900, NONE, 075_ACC_EX_FS_INDIC )
#endif
#if defined( FEATURE_076_MSA_EXTENSION_FACILITY_3 )
FT( Z900, Z900, NONE, 076_MSA_EXTENSION_3 )
#endif
#if defined( FEATURE_077_MSA_EXTENSION_FACILITY_4 )
FT( Z900, Z900, NONE, 077_MSA_EXTENSION_4 )
#endif
#if defined( FEATURE_078_ENHANCED_DAT_FACILITY_2 )
FT( NONE, NONE, NONE, 078_EDAT_2 )
#endif
#if defined( FEATURE_080_DFP_PACK_CONV_FACILITY )
FT( NONE, NONE, NONE, 080_DFP_PACK_CONV )
#endif
#if defined( FEATURE_129_ZVECTOR_FACILITY )
FT( NONE, NONE, NONE, 129_ZVECTOR )
#endif
#if defined( FEATURE_130_INSTR_EXEC_PROT_FACILITY )
FT( NONE, NONE, NONE, 130_INSTR_EXEC_PROT )
#endif
#if defined( FEATURE_131_SIDE_EFFECT_ACCESS_FACILITY )
FT( NONE, NONE, NONE, 131_SIDE_EFFECT_ACCESS )
#endif
#if defined( FEATURE_133_GUARDED_STORAGE_FACILITY )
FT( NONE, NONE, NONE, 133_GUARDED_STORAGE )
#endif
#if defined( FEATURE_134_ZVECTOR_PACK_DEC_FACILITY )
FT( NONE, NONE, NONE, 134_ZVECTOR_PACK_DEC )
#endif
#if defined( FEATURE_135_ZVECTOR_ENH_FACILITY_1 )
FT( NONE, NONE, NONE, 135_ZVECTOR_ENH_1 )
#endif
#if defined( FEATURE_138_CONFIG_ZARCH_MODE_FACILITY )
FT( NONE, NONE, NONE, 138_CONFIG_ZARCH_MODE )
#endif
#if defined( FEATURE_139_MULTIPLE_EPOCH_FACILITY )
FT( NONE, NONE, NONE, 139_MULTIPLE_EPOCH )
#endif
#if defined( FEATURE_142_ST_CPU_COUNTER_MULT_FACILITY )
FT( NONE, NONE, NONE, 142_ST_CPU_COUNTER_MULT )
#endif
#if defined( FEATURE_144_TEST_PEND_EXTERNAL_FACILITY )
FT( NONE, NONE, NONE, 144_TEST_PEND_EXTERNAL )
#endif
#if defined( FEATURE_145_INS_REF_BITS_MULT_FACILITY )
FT( NONE, NONE, NONE, 145_INS_REF_BITS_MULT )
#endif
#if defined( FEATURE_146_MSA_EXTENSION_FACILITY_8 )
FT( NONE, NONE, NONE, 146_MSA_EXTENSION_8 )
#endif
#if defined( FEATURE_168_ESA390_COMPAT_MODE_FACILITY )
FT( NONE, NONE, NONE, 168_ESA390_COMPAT_MODE )
#endif
/*-------------------------------------------------------------------*/
/* Hercules Facility bits */
/*-------------------------------------------------------------------*/
/* The below facility bits are HERCULES SPECIFIC and not part of the */
/* architecture. They are placed here for the convenience of being */
/* able to use the Virtual Architecture Level facility (i.e. the */
/* FACILITY_CHECK and FACILITY_ENABLED macros). */
/* */
/* Note that Hercules's facility bits start at the first bit of the */
/* first byte of the first double-word (DW) immediately following */
/* the IBM defined bits, and are inaccessible to the guest. Both of */
/* the STFLE and SIE instruction functions only reference/use the */
/* STFL_IBM_BY_SIZE value in their code thus preventing guest access */
/* to Hercules's facility bits. Only the archlvl command functions */
/* can access the Hercules facility bits and only Hercules itself */
/* uses them internally. */
/*-------------------------------------------------------------------*/
/* */
/* Sup (Supported) means the facility is supported by Hercules for */
/* the given architectures. Def (Default) indicates the facility */
/* defaults to enabled for the specified architectures. The Req */
/* (Required) field indicates the facility is a REQUIRED facility */
/* for the architecture and enabling/disabling it isn't allowed. */
/* */
/*-------------------------------------------------------------------*/
/* Sup Def Req Short Name... */
/*-------------------------------------------------------------------*/
FT( MALL, MALL, Z900, HERC_MOVE_INVERSE )
/*-------------------------------------------------------------------*/
#if defined( FEATURE_MSA_EXTENSION_FACILITY_1 )
FT( Z390, Z390, NONE, HERC_MSA_EXTENSION_1 )
#endif
#if defined( FEATURE_MSA_EXTENSION_FACILITY_2 )
FT( Z390, Z390, NONE, HERC_MSA_EXTENSION_2 )
#endif
/*-------------------------------------------------------------------*/
#if defined( FEATURE_HERCULES_DIAGCALLS )
FT( MALL, NONE, NONE, HERC_PROBSTATE_DIAGF08 )
FT( MALL, NONE, NONE, HERC_SIGP_SETARCH_S370 )
#if defined( FEATURE_HOST_RESOURCE_ACCESS_FACILITY )
FT( MALL, NONE, NONE, HERC_HOST_RESOURCE_ACCESS )
#endif
#endif
/*-------------------------------------------------------------------*/
#if defined( FEATURE_QEBSM )
FT( Z390, Z390, NONE, HERC_QEBSM )
#endif
#if defined( FEATURE_QDIO_THININT )
FT( Z390, Z390, NONE, HERC_QDIO_THININT )
#endif
#if defined( FEATURE_QDIO_TDD )
FT( Z390, NONE, NONE, HERC_QDIO_TDD )
#endif
#if defined( FEATURE_SVS )
FT( Z390, Z390, NONE, HERC_SVS )
#endif
#if defined( FEATURE_HYPERVISOR )
FT( MALL, MALL, NONE, HERC_LOGICAL_PARTITION )
#endif
#if defined( FEATURE_EMULATE_VM )
FT( MALL, NONE, NONE, HERC_VIRTUAL_MACHINE )
#endif
FT( Z390, NONE, NONE, HERC_QDIO_ASSIST )
#if defined( FEATURE_INTERVAL_TIMER )
FT( MALL, MALL, Z390, HERC_INTERVAL_TIMER )
#endif
FT( MALL, MALL, NONE, HERC_DETECT_PGMINTLOOP )
};
/*-------------------------------------------------------------------*/
/* (delineates ARCH_DEP from non-arch_dep) */
/*-------------------------------------------------------------------*/
#if !defined( _GEN_ARCH )
// _ARCH_NUM_0 has been built.
// Now build the other architectures...
#if defined( _ARCH_NUM_1 )
#define _GEN_ARCH _ARCH_NUM_1
#include "archlvl.c"
#endif
#if defined( _ARCH_NUM_2 )
#undef _GEN_ARCH
#define _GEN_ARCH _ARCH_NUM_2
#include "archlvl.c"
#endif
/*-------------------------------------------------------------------*/
/* (delineates ARCH_DEP from non-arch_dep) */
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/* ACTUAL Architecture bit-masks */
/*-------------------------------------------------------------------*/
#undef NONE
#undef S370
#undef E390
#undef Z900
#undef Z390
#undef MALL
#define NONE 0x00 /* NO architectures or disabled */
#define S370 0x80 /* S/370 architecture */
#define E390 0x40 /* ESA/390 architecture */
#define Z900 0x20 /* z/Arch architecture */
#define Z390 (E390|Z900) /* BOTH ESA/390 and z/Arch */
#define MALL (S370|Z390) /* All architectures */
/*-------------------------------------------------------------------*/
/* Architecture Level Table */
/*-------------------------------------------------------------------*/
struct ARCHTAB
{
const char* name; /* Architecture name */
const int num; /* Architecture number */
const int amask; /* Architecture bit-mask */
};
typedef struct ARCHTAB ARCHTAB;
#define AT( _name, _num, _amask ) \
{ \
(_name), \
(_num), \
(_amask) \
},
static ARCHTAB archtab[] =
{
//---------------------------------------------------------
//
// The "_ARCH_nnn_NAME" entries MUST come first. The
// 'get_archtab_by_arch' function expects it.
//
// The FIRST entry is our DEFAULT initial startup archi-
// tecture set by the 'init_default_archmode' function.
//
//---------------------------------------------------------
#if defined( _900 )
AT( _ARCH_900_NAME, ARCH_900_IDX, Z900 ) // "z/Arch" feat900.h
#endif
#if defined( _390 )
AT( _ARCH_390_NAME, ARCH_390_IDX, E390 ) // "ESA/390" feat390.h
#endif
#if defined( _370 )
AT( _ARCH_370_NAME, ARCH_370_IDX, S370 ) // "S/370" feat370.h
#endif
// Other supported names come afterwards, in any order.
#if defined( _370 )
AT( "S370", ARCH_370_IDX, S370 )
AT( "370", ARCH_370_IDX, S370 )
#endif
#if defined( _390 )
AT( "ESA390", ARCH_390_IDX, E390 )
AT( "E390", ARCH_390_IDX, E390 )
AT( "E/390", ARCH_390_IDX, E390 )
AT( "ESA", ARCH_390_IDX, E390 )
AT( "S/390", ARCH_390_IDX, E390 )
AT( "OS/390", ARCH_390_IDX, E390 )
AT( "S390", ARCH_390_IDX, E390 )
AT( "OS390", ARCH_390_IDX, E390 )
AT( "390", ARCH_390_IDX, E390 )
#endif
#if defined( _900 )
AT( "zArch", ARCH_900_IDX, Z900 )
AT( "z", ARCH_900_IDX, Z900 )
AT( "900", ARCH_900_IDX, Z900 )
AT( "Z900", ARCH_900_IDX, Z900 )
AT( "z/900", ARCH_900_IDX, Z900 )
AT( "ESAME", ARCH_900_IDX, Z900 )
AT( "ESA/ME", ARCH_900_IDX, Z900 )
#endif
};
/*-------------------------------------------------------------------*/
/* Facility Bit Modification Check Functions forward references */
/*-------------------------------------------------------------------*/
static bool mod0or7 ( bool enable, int bitno, int archnum, const char* action, const char* actioning, const char* target_facname );
static bool modidte ( bool enable, int bitno, int archnum, const char* action, const char* actioning, const char* target_facname );
static bool modlong ( bool enable, int bitno, int archnum, const char* action, const char* actioning, const char* target_facname );
static bool modtrans ( bool enable, int bitno, int archnum, const char* action, const char* actioning, const char* target_facname );
static bool modvec ( bool enable, int bitno, int archnum, const char* action, const char* actioning, const char* target_facname );
static bool modtod ( bool enable, int bitno, int archnum, const char* action, const char* actioning, const char* target_facname );
static bool modcpu ( bool enable, int bitno, int archnum, const char* action, const char* actioning, const char* target_facname );
static bool modmsa ( bool enable, int bitno, int archnum, const char* action, const char* actioning, const char* target_facname );
static bool modbit42 ( bool enable, int bitno, int archnum, const char* action, const char* actioning, const char* target_facname );
static bool moddfphi ( bool enable, int bitno, int archnum, const char* action, const char* actioning, const char* target_facname );
static bool modfpx ( bool enable, int bitno, int archnum, const char* action, const char* actioning, const char* target_facname );
static bool moddfp ( bool enable, int bitno, int archnum, const char* action, const char* actioning, const char* target_facname );
/*-------------------------------------------------------------------*/
/* The ACTUAL facilities table, initialized by init_facilities_lists */
/*-------------------------------------------------------------------*/
/* The individual ARCH_DEP( facs_tab ) tables are merged into this */
/* table to yield the actual facilities table the system will use. */
/* Refer to init_facilities_lists() function for how this is done. */
/*-------------------------------------------------------------------*/
static FACTAB factab[] =
{
/*-------------------------------------------------------------------*/
/* (function) Short Name... Long Description... */
/*-------------------------------------------------------------------*/
FT2( mod0or7, 000_N3_INSTR, "N3 Instructions are installed" )
FT2( NULL, 001_ZARCH_INSTALLED, "z/Architecture architectural mode is installed" )
FT2( NULL, 002_ZARCH_ACTIVE, "z/Architecture architectural mode is active" )
FT2( modidte, 003_DAT_ENHANCE_1, "DAT-Enhancement Facility 1" )
FT2( modidte, 004_IDTE_SC_SEGTAB, "IDTE selective clearing when segment-table invalidated" )
FT2( modidte, 005_IDTE_SC_REGTAB, "IDTE selective clearing when region-table invalidated" )
FT2( NULL, 006_ASN_LX_REUSE, "ASN-and-LX-Reuse Facility" )
FT2( mod0or7, 007_STFL_EXTENDED, "Store-Facility-List-Extended Facility" )
FT2( NULL, 008_EDAT_1, "Enhanced-DAT Facility 1" )
FT2( NULL, 009_SENSE_RUN_STATUS, "Sense-Running-Status Facility" )
FT2( NULL, 010_CONDITIONAL_SSKE, "Conditional-SSKE Facility" )
FT2( NULL, 011_CONFIG_TOPOLOGY, "Configuration-Topology Facility" )
FT2( NULL, 013_IPTE_RANGE, "IPTE-Range Facility" )
FT2( NULL, 014_NONQ_KEY_SET, "Nonquiescing Key-Setting Facility" )
FT2( NULL, 016_EXT_TRANSL_2, "Extended-Translation Facility 2" )
FT2( NULL, 017_MSA, "Message-Security Assist" )
FT2( modlong, 018_LONG_DISPL_INST, "Long-Displacement Facility" )
FT2( modlong, 019_LONG_DISPL_HPERF, "Long-Displacement Facility Has High Performance" )
FT2( NULL, 020_HFP_MULT_ADD_SUB, "HFP-Multiply-and-Add/Subtract Facility" )
FT2( NULL, 021_EXTENDED_IMMED, "Extended-Immediate Facility" )
FT2( NULL, 022_EXT_TRANSL_3, "Extended-Translation Facility 3" )
FT2( NULL, 023_HFP_UNNORM_EXT, "HFP-Unnormalized-Extensions Facility" )
FT2( NULL, 024_ETF2_ENHANCEMENT, "ETF2-Enhancement Facility" )
FT2( modtod, 025_STORE_CLOCK_FAST, "Store-Clock-Fast Facility" )
FT2( NULL, 026_PARSING_ENHANCE, "Parsing-Enhancement Facility" )
FT2( NULL, 027_MVCOS, "Move-with-Optional-Specifications Facility" )
FT2( modtod, 028_TOD_CLOCK_STEER, "TOD-Clock-Steering Facility" )
FT2( NULL, 030_ETF3_ENHANCEMENT, "ETF3-Enhancement Facility" )
FT2( NULL, 031_EXTRACT_CPU_TIME, "Extract-CPU-Time Facility" )
FT2( NULL, 032_CSSF, "Compare-and-Swap-and-Store Facility" )
FT2( NULL, 033_CSSF2, "Compare-and-Swap-and-Store Facility 2" )
FT2( NULL, 034_GEN_INST_EXTN, "General-Instructions-Extension Facility" )
FT2( NULL, 035_EXECUTE_EXTN, "Execute-Extensions Facility" )
FT2( NULL, 036_ENH_MONITOR, "Enhanced-Monitor Facility" )
FT2( modfpx, 037_FP_EXTENSION, "Floating-Point-Extension Facility" )
FT2( NULL, 038_OP_CMPSC, "Order-Preserving-Compression Facility" )
FT2( NULL, 040_LOAD_PROG_PARAM, "Load-Program-Parameter Facility" )
FT2( NULL, 041_FPS_ENHANCEMENT, "Floating-Point-Support-Enhancement Facility" )
FT2( NULL, 041_DFP_ROUNDING, "Decimal-Floating-Point-Rounding Facility" )
FT2( NULL, 041_FPR_GR_TRANSFER, "FPR-GR-Transfer Facility" )
FT2( NULL, 041_FPS_SIGN_HANDLING, "Floating-Point-Support-Sign-Handling Facility" )
FT2( NULL, 041_IEEE_EXCEPT_SIM, "IEEE-Exception-Simulation Facility" )
FT2( modbit42, 042_DFP, "Decimal-Floating-Point Facility" )
FT2( moddfphi, 043_DFP_HPERF, "Decimal-Floating-Point Facility Has High Performance" )
FT2( NULL, 044_PFPO, "PFPO (Perform Floating-Point Operation) Facility" )
FT2( NULL, 045_DISTINCT_OPERANDS, "Distinct-Operands Facility" )
FT2( NULL, 045_FAST_BCR_SERIAL, "Fast-BCR-Serialization Facility" )
FT2( NULL, 045_HIGH_WORD, "High-Word Facility" )
FT2( NULL, 045_INTERLOCKED_ACCESS_1, "Interlocked-Access Facility 1" )
FT2( NULL, 045_LOAD_STORE_ON_COND_1, "Load/Store-on-Condition Facility 1" )
FT2( NULL, 045_POPULATION_COUNT, "Population-Count Facility" )
FT2( NULL, 047_CMPSC_ENH, "CMPSC-Enhancement Facility" )
FT2( moddfp, 048_DFP_ZONE_CONV, "Decimal-Floating-Point-Zoned-Conversion Facility" )
FT2( modtrans, 049_EXECUTION_HINT, "Execution-Hint Facility" )
FT2( modtrans, 049_LOAD_AND_TRAP, "Load-and-Trap Facility" )
FT2( modtrans, 049_PROCESSOR_ASSIST, "Processor-Assist Facility" )
FT2( modtrans, 049_MISC_INSTR_EXT_1, "Miscellaneous-Instruction-Extensions Facility 1" )
FT2( modtrans, 050_CONSTR_TRANSACT, "Constrained-Transactional-Execution Facility" )
FT2( NULL, 051_LOCAL_TLB_CLEARING, "Local-TLB-Clearing Facility" )
FT2( NULL, 052_INTERLOCKED_ACCESS_2, "Interlocked-Access Facility 2" )
FT2( NULL, 053_LOAD_STORE_ON_COND_2, "Load/Store-on-Condition Facility 2" )
FT2( NULL, 053_LOAD_ZERO_RIGHTMOST, "Load-and-Zero-Rightmost-Byte Facility" )
FT2( NULL, 054_EE_CMPSC, "Entropy-Encoding-Compression Facility" )
FT2( NULL, 057_MSA_EXTENSION_5, "Message-Security-Assist Extension 5" )
FT2( NULL, 058_MISC_INSTR_EXT_2, "Miscellaneous-Instruction-Extensions Facility 2" )
FT2( NULL, 066_RES_REF_BITS_MULT, "Reset-Reference-Bits-Multiple Facility" )
FT2( modcpu, 067_CPU_MEAS_COUNTER, "CPU-Measurement Counter Facility" )
FT2( NULL, 068_CPU_MEAS_SAMPLNG, "CPU-Measurement Sampling Facility" )
FT2( modtrans, 073_TRANSACT_EXEC, "Transactional-Execution Facility" )
FT2( NULL, 074_STORE_HYPER_INFO, "Store-Hypervisor-Information Facility" )
FT2( NULL, 075_ACC_EX_FS_INDIC, "Access-Exception-Fetch/Store-Indication Facility" )
FT2( modmsa, 076_MSA_EXTENSION_3, "Message-Security-Assist Extension 3" )
FT2( NULL, 077_MSA_EXTENSION_4, "Message-Security-Assist Extension 4" )
FT2( NULL, 078_EDAT_2, "Enhanced-DAT Facility 2" )
FT2( moddfp, 080_DFP_PACK_CONV, "Decimal-Floating-Point-Packed-Conversion Facility" )
FT2( modvec, 129_ZVECTOR, "Vector Facility for z/Architecture" )
FT2( NULL, 130_INSTR_EXEC_PROT, "Instruction-Execution-Protection Facility" )
FT2( NULL, 131_SIDE_EFFECT_ACCESS, "Side-Effect-Access Facility" )
FT2( NULL, 133_GUARDED_STORAGE, "Guarded-Storage Facility" )
FT2( modvec, 134_ZVECTOR_PACK_DEC, "Vector Packed-Decimal Facility" )
FT2( modvec, 135_ZVECTOR_ENH_1, "Vector-Enhancements Facility 1" )
FT2( NULL, 138_CONFIG_ZARCH_MODE, "CZAM Facility (Configuration-z/Architecture-Architectural-Mode)" )
FT2( modtod, 139_MULTIPLE_EPOCH, "Multiple-Epoch Facility" )
FT2( modcpu, 142_ST_CPU_COUNTER_MULT, "Store-CPU-Counter-Multiple Facility" )
FT2( NULL, 144_TEST_PEND_EXTERNAL, "Test-Pending-External-Interruption Facility" )
FT2( NULL, 145_INS_REF_BITS_MULT, "Insert-Reference-Bits-Multiple Facility" )
FT2( modmsa, 146_MSA_EXTENSION_8, "Message-Security-Assist Extension 8" )
FT2( NULL, 168_ESA390_COMPAT_MODE, "ESA/390-Compatability-Mode Facility" )
FT2( NULL, HERC_MOVE_INVERSE, "Hercules MVCIN Move Inverse Instruction Support" )
FT2( NULL, HERC_MSA_EXTENSION_1, "Hercules Message-Security-Assist Extension 1 Support" )
FT2( NULL, HERC_MSA_EXTENSION_2, "Hercules Message-Security-Assist Extension 2 Support" )
FT2( NULL, HERC_PROBSTATE_DIAGF08, "Hercules Problem-State Diagnose X'F08' Support" )
FT2( NULL, HERC_SIGP_SETARCH_S370, "Hercules SIGP Set Architecture S/370 Support" )
FT2( NULL, HERC_HOST_RESOURCE_ACCESS, "Hercules Host Resource Access Support" )
FT2( NULL, HERC_QEBSM, "Hercules QDIO Enhanced Buffer-State Management Support" )
FT2( NULL, HERC_QDIO_THININT, "Hercules QDIO Thin-Interrupts Support" )
FT2( NULL, HERC_QDIO_TDD, "Hercules QDIO Time-Delayed-Dispatching Support" )
FT2( NULL, HERC_SVS, "Hercules SVS Set Vector Summary Instruction Support" )
FT2( NULL, HERC_LOGICAL_PARTITION, "Hercules Logical Partition (LPAR) Support" )
FT2( NULL, HERC_VIRTUAL_MACHINE, "Hercules Emulate Virtual Machine Support" )
FT2( NULL, HERC_QDIO_ASSIST, "Hercules QDIO-Assist Support" )
FT2( NULL, HERC_INTERVAL_TIMER, "Hercules Interval Timer Support" )
FT2( NULL, HERC_DETECT_PGMINTLOOP, "Hercules Detect-Program-Interrupt-Loop Support" )
};
/*-------------------------------------------------------------------*/
/* init_default_archmode (public) */
/*-------------------------------------------------------------------*/
void init_default_archmode()
{
// Called ONCE by bldcfg.c 'build_config' during system startup.
sysblk.arch_mode = archtab[0].num; // (always the first entry)
}
/*-------------------------------------------------------------------*/
/* get_archtab_by_arch */
/*-------------------------------------------------------------------*/
static const ARCHTAB* get_archtab_by_arch( int archnum )
{
// An "Architecture mode" (archmode, arch_mode) is the same
// thing as an "Architecture number" (archnum, arch_num),
// which is simply an index value determined at build time
// depending on which architectures that Hercules was built
// with support for (ARCH_nnn_IDX #defined by featchk.h) and
// is used to index into architecture dependent tables such as
// the sysblk.facility_list and the opcode tables in opcode.c
size_t i;
for (i=0; i < _countof( archtab ); i++)
if (archtab[i].num == archnum)
return &archtab[i];
return NULL;
}
/*-------------------------------------------------------------------*/
/* get_archtab_by_name */
/*-------------------------------------------------------------------*/
static const ARCHTAB* get_archtab_by_name( const char* name )
{
size_t i;
for (i=0; i < _countof( archtab ); i++)
if (strcasecmp( archtab[i].name, name ) == 0)
return &archtab[i];
return NULL;
}
/*-------------------------------------------------------------------*/
/* get_arch_name_by_arch */
/*-------------------------------------------------------------------*/
static const char* get_arch_name_by_arch( int archnum )
{
const ARCHTAB* at = get_archtab_by_arch( archnum );
return at ? at->name : NULL;
}
/*-------------------------------------------------------------------*/
/* get_arch_mask_by_arch */
/*-------------------------------------------------------------------*/
static int get_arch_mask_by_arch( int archnum )
{
const ARCHTAB* at = get_archtab_by_arch( archnum );
return at ? at->amask : 0;
}
/*-------------------------------------------------------------------*/
/* get_arch_name (public) */
/*-------------------------------------------------------------------*/
const char* get_arch_name( REGS* regs )
{
int archnum = regs ? regs->arch_mode : sysblk.arch_mode;
return get_arch_name_by_arch( archnum );
}
/*-------------------------------------------------------------------*/
/* Table of Facility Table POINTERS for each gen'ed architecture */
/*-------------------------------------------------------------------*/
static const FACTAB* arch_factab[ NUM_GEN_ARCHS ] =
{
#if defined( _ARCH_NUM_0 )
#if _ARCH_NUM_0 == 370
s370_facs_tab,
#elif _ARCH_NUM_0 == 390
s390_facs_tab,
#else // _ARCH_NUM_0 == 900
z900_facs_tab,
#endif
#endif
#if defined( _ARCH_NUM_1 )
#if _ARCH_NUM_1 == 370
s370_facs_tab,
#elif _ARCH_NUM_1 == 390
s390_facs_tab,
#else // _ARCH_NUM_1 == 900
z900_facs_tab,
#endif
#endif
#if defined( _ARCH_NUM_2 )
#if _ARCH_NUM_2 == 370
s370_facs_tab,
#elif _ARCH_NUM_2 == 390
s390_facs_tab,
#else // _ARCH_NUM_2 == 900
z900_facs_tab,
#endif
#endif
};
/*-------------------------------------------------------------------*/
/* Table of Facility Table SIZES for each gen'ed architecture */
/*-------------------------------------------------------------------*/
static const size_t num_arch_ft_entries[ NUM_GEN_ARCHS ] =
{
#if defined( _ARCH_NUM_0 )
#if _ARCH_NUM_0 == 370
_countof( s370_facs_tab ),
#elif _ARCH_NUM_0 == 390
_countof( s390_facs_tab ),