storage environment, the indirect-data-addressing
facility is provided in the channel.
The address-translation facility requires that theCPU be equipped with the extended-control facility,
as address translation is under control of bit 5 of the
extended-control (EC)PSW. The address-translation facility includes the in
structionsLOAD REAL ADDRESS, RESET REF
ERENCE BIT, andPURGE TLB. It makes use of
control register 1 and bits 8-12 in control registerO. Logical Storage Addressing
Address translation is achieved by treating the ad
dresses supplied by the program as logical addresses.
When the dynamic-address-translation facility is
active, a logical address is translated during a storage
reference into the corresponding real address, which
designates a location in real storage. When the
dynamic-address-translation facility is not installed
or translation is not specified, a real address is iden
tical tothe corresponding logical address.
In the process of translation, two types ofUnits of
information are recognized--segments and pages. A
segment is a block of sequential logical addresses
spanning 65,536 (64K) or 1,048,576 (lM) bytes
and beginning at an address that is a multiple of its
size. The size of the segment is controlled by bits 11
and 12 of control registerO. A page is a block of
contiguous storage containing 2,048 (2K) or 4,096
(4K) bytes and beginning at an address that is a
multiple of its size. The size of the page is con
trolled by bits 8 and 9 of control registerO. The logical address, accordingly, is divided into a
segment-index field, a page-index field, and a byte
index field. The size of these fields depends on the
segmentand page size.
The segment index starts with bit 8 of the logical
address and extends through bit 15 for a64K-·byte segment size and through bit 11 for a 1M-byte seg
ment size. The page index starts with the bit follow
ing the segment index and extends through bit 19 for
a4K-byte page size and through bit 20 for a 2K
byte page size. The byte index comprises the remain
ing 11 or 12 low-order bitsoJ the logical address.
The formats of the logical address are as follows:
For 64K-byte segments and 4K-byte pages: Segment :----1 __ I_nd_e_x ____ __ -L ____ o 8 16 20 31
58System/370 Principles of Operation
For 64K-byte segments and 2K-byte pages:
o 8
SegmentIndex I I Byte Index 16 21
For 1M-byte segments and 4K-byte pages: I Page Index I
ByteIndex o 8 12 20 For 1M-byte segments and 2K-byte pages:
31
31 I Page Index I Byte Index I o 8 12 21 31
Logical addresses are translated into real address
es by means of two translation tables, a segment
table and a page table, which reflect the current as
signment of real storage. The assignment of real
storage occurs in units of pages, the reallocationsbeing assigned contiguously within a page. The
pages need not be adjacent in real storage even
though assigned to a set of sequential logical address
es.
Control
Address translation is controlled by the translation
mode bit in thePSW and by a set of bits in control
registers0 and 1. Additional controls are located in
the translation tables.
PSW
When the dynamic-address-translation facility is
installed, theCPU can operate either in the transla
tion mode or without address translation. The mode
of operation is controlled by bit 5 of the extended
controlPSW, the translation-mode bit. When this
bit is one, translation is specified; when this bit is
zero, no implicit dynamic address translation takes
place, and logical addresses are used as real address
es.
Control Register 0
Four bits are provided in control register0 for the
control of page size and segment size, as follows:
810 12
facility is provided in the channel.
The address-translation facility requires that the
as address translation is under control of bit 5 of the
extended-control (EC)
structions
ERENCE BIT, and
control register 1 and bits 8-12 in control register
Address translation is achieved by treating the ad
dresses supplied by the program as logical addresses.
When the dynamic-address-translation facility is
active, a logical address is translated during a storage
reference into the corresponding real address, which
designates a location in real storage. When the
dynamic-address-translation facility is not installed
or translation is not specified, a real address is iden
tical to
In the process of translation, two types of
information are recognized--segments and pages. A
segment is a block of sequential logical addresses
spanning 65,536 (64K) or 1,048,576 (lM) bytes
and beginning at an address that is a multiple of its
size. The size of the segment is controlled by bits 11
and 12 of control register
contiguous storage containing 2,048 (2K) or 4,096
(4K) bytes and beginning at an address that is a
multiple of its size. The size of the page is con
trolled by bits 8 and 9 of control register
segment-index field, a page-index field, and a byte
index field. The size of these fields depends on the
segment
The segment index starts with bit 8 of the logical
address and extends through bit 15 for a
ment size. The page index starts with the bit follow
ing the segment index and extends through bit 19 for
a
byte page size. The byte index comprises the remain
ing 11 or 12 low-order bits
The formats of the logical address are as follows:
For 64K-byte segments and 4K-byte pages:
58
For 64K-byte segments and 2K-byte pages:
o 8
Segment
For 1M-byte segments and 4K-byte pages:
Byte
31
31
Logical addresses are translated into real address
es by means of two translation tables, a segment
table and a page table, which reflect the current as
signment of real storage. The assignment of real
storage occurs in units of pages, the reallocations
pages need not be adjacent in real storage even
though assigned to a set of sequential logical address
es.
Control
Address translation is controlled by the translation
mode bit in the
registers
the translation tables.
PSW
When the dynamic-address-translation facility is
installed, the
tion mode or without address translation. The mode
of operation is controlled by bit 5 of the extended
control
bit is one, translation is specified; when this bit is
zero, no implicit dynamic address translation takes
place, and logical addresses are used as real address
es.
Control Register 0
Four bits are provided in control register
control of page size and segment size, as follows:
8