TW202018500A - Saving and restoring machine state between multiple executions of an instruction - Google Patents

Saving and restoring machine state between multiple executions of an instruction Download PDF

Info

Publication number
TW202018500A
TW202018500A TW108121224A TW108121224A TW202018500A TW 202018500 A TW202018500 A TW 202018500A TW 108121224 A TW108121224 A TW 108121224A TW 108121224 A TW108121224 A TW 108121224A TW 202018500 A TW202018500 A TW 202018500A
Authority
TW
Taiwan
Prior art keywords
instruction
processor
list
operand
meta data
Prior art date
Application number
TW108121224A
Other languages
Chinese (zh)
Other versions
TWI718563B (en
Inventor
布魯斯 C 吉爾米
馬丁 瑞克丹瓦
多納德 W 席米得
提摩西 史洛歌
阿迪特雅 N 普拉尼克
馬克 S 費洛
克理斯俊 傑可比
強納森 D 布瑞布里
克里斯坦 梭林
Original Assignee
美商萬國商業機器公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 美商萬國商業機器公司 filed Critical 美商萬國商業機器公司
Publication of TW202018500A publication Critical patent/TW202018500A/en
Application granted granted Critical
Publication of TWI718563B publication Critical patent/TWI718563B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline, look ahead
    • G06F9/3861Recovery, e.g. branch miss-prediction, exception handling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30021Compare instructions, e.g. Greater-Than, Equal-To, MINMAX
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30032Movement instructions, e.g. MOVE, SHIFT, ROTATE, SHUFFLE
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30145Instruction analysis, e.g. decoding, instruction word fields

Abstract

Saving and restoring machine state between multiple executions of an instruction. A determination is made that processing of an operation of an instruction executing on a processor has been interrupted prior to completion. Based on determining that the processing of the operation has been interrupted, current metadata of the processor is extracted. The metadata is stored in a location associated with the instruction and used to re-execute the instruction to resume forward processing of the instruction from where it was interrupted.

Description

在多次執行指令之間保存及恢復機器狀態Save and restore machine state between multiple executions

一或多個態樣大體上係關於促進運算環境內之處理,且特定而言,係關於促進指令處理。One or more aspects are generally related to facilitating processing within a computing environment, and in particular, are related to facilitating instruction processing.

在運算環境內執行之指令可能需要大量執行循環來完成操作。當指令需要大量執行循環來完成時,指令可定義為可中斷的。因此,為了最終完成指令,實行額外處理。Instructions executed within the computing environment may require a large number of execution loops to complete the operation. When an instruction requires a large number of execution cycles to complete, the instruction can be defined as interruptible. Therefore, in order to finally complete the instruction, additional processing is implemented.

經由提供用於促進運算環境中之處理的電腦程式產品來克服先前技術之缺點且提供額外優點。該電腦程式產品包括可由處理器讀取且儲存用於實行一種方法之指令的電腦可讀儲存媒體。該方法包括判定在處理器上執行之指令之操作的處理在完成之前已中斷。基於判定操作之處理已中斷,取得處理器之後設資料。該後設資料為處理器之當前後設資料。該後設資料儲存於與指令相關聯之位置中,且在重新執行該指令時使用以自其中斷之處重新繼續該指令之前向處理。Overcoming the shortcomings of the prior art and providing additional advantages by providing computer program products for facilitating processing in computing environments. The computer program product includes a computer-readable storage medium that can be read by a processor and stores instructions for performing a method. The method includes determining that the processing of the operation of the instruction executed on the processor has been interrupted before completion. The processing based on the judgment operation has been interrupted, and the post-processor information is obtained. The meta data is the current meta data of the processor. The meta data is stored in the location associated with the instruction, and is used when the instruction is re-executed to resume the forward processing of the instruction from where it was interrupted.

藉由取得用於中斷操作之後設資料及保存彼資料,當重新執行指令時,可載入及使用所保存之後設資料,而非重複任務以再生後設資料。此節省時間,從而改善處理器內之效能。By obtaining the configuration data and saving the other data after interrupting the operation, when the command is re-executed, the saved configuration data can be loaded and used instead of repeating the task to regenerate the configuration data. This saves time and thus improves the performance within the processor.

在一個實例中,該指令為一排序指令,且該後設資料包括關於該排序指令之一或多個輸入清單的資訊。舉例而言,該後設資料包括關於對該一或多個輸入清單之記錄進行之先前比較的資訊以指示待進行之後續比較。舉例而言,在不重複先前比較之情況下,指示待進行之後續比較。In one example, the command is a sorting command, and the meta data includes information about one or more input lists of the sorting command. For example, the meta data includes information about previous comparisons made to the record of one or more input lists to indicate subsequent comparisons to be made. For example, without repeating the previous comparison, indicating the subsequent comparison to be made.

在一個實例中,該判定包括檢查基於指令之終止而設定的條件碼,設定為選擇值之條件碼指示指令之部分完成。In one example, the determination includes checking the condition code set based on the termination of the instruction, and the condition code set to the selected value indicates partial completion of the instruction.

作為一實例,該後設資料儲存之位置為記憶體中由指令指明之參數區塊。記憶體中之參數區塊的該位置由例如指令之隱含暫存器的內容指明。在一個特定實例中,該參數區塊包括用以儲存後設資料之接續狀態緩衝區,該後設資料包括處理器之內部狀態資料。另外,在一個實例中,該參數區塊包括用以指示操作之部分完成的接續指示符。As an example, the location where the meta data is stored is the parameter block specified by the instruction in the memory. The location of the parameter block in the memory is indicated by the contents of the implied register such as the command. In a particular example, the parameter block includes a connection status buffer for storing metadata, which includes internal status data of the processor. In addition, in one example, the parameter block includes a connection indicator to indicate the partial completion of the operation.

在一個態樣中,在重新執行指令時使用後設資料進一步包括重新執行指令以重新繼續處理;自該位置取得後設資料;及將自該位置取得之後設資料載入至處理器之一或多個選擇位置中,其中將後設資料提供至處理器而不重複一或多個任務以產生後設資料。In one aspect, using the meta data when the command is re-executed further includes re-executing the command to resume processing again; acquiring the meta data from the location; and loading the meta data from the location into one of the processors or In multiple selection locations, the metadata is provided to the processor without repeating one or more tasks to generate metadata.

本文中亦描述及主張與一或多個態樣有關之電腦實施方法及系統。另外,本文中亦描述及可能主張與一或多個態樣有關之服務。This article also describes and advocates computer-implemented methods and systems related to one or more aspects. In addition, this article also describes and may claim services related to one or more aspects.

經由本文中所描述之技術實現額外特徵及優點。本文中詳細描述其他實施例及態樣且將其視為所主張態樣之一部分。Additional features and advantages are realized through the techniques described herein. Other embodiments and aspects are described in detail herein and considered as part of the claimed aspect.

根據本發明之態樣,提供一種促進運算環境內之處理的能力。作為一個實例,提供單一指令(例如,硬體/軟體介面處之單一架構化硬體機器指令)以實行操作,以便排序及/或合併資料記錄。舉例而言,在通用處理器上執行指令。According to the aspect of the present invention, an ability to facilitate processing within a computing environment is provided. As an example, a single instruction (eg, a single structured hardware machine instruction at a hardware/software interface) is provided to perform operations to sort and/or merge data records. For example, instructions are executed on a general-purpose processor.

在執行指令時,可能需要大量執行循環來完成操作。因此,在一個態樣中,該指令係定義為可中斷的。當指令中斷時,操作(例如,排序及/或合併)僅部分地完成。指令執行以將條件碼設定為向程式(例如,發出指令之程式)通知操作之部分完成的值結束。該程式可接著重新執行該指令以重新繼續處理。When executing instructions, a large number of execution cycles may be required to complete the operation. Therefore, in one aspect, the instruction system is defined as interruptible. When the instruction is interrupted, the operation (eg, sorting and/or merging) is only partially completed. Command execution ends by setting the condition code to notify the program (for example, the program that issued the command) of the partially completed value of the operation. The program can then re-execute the instruction to resume processing.

在一個實施例中,該指令使用數個(例如,大量)執行循環以在產生結果之前藉由後設資料啟動處理器。每當執行或重新執行指令時,實行藉由後設資料啟動處理器。因此,根據本發明之態樣,儲存及使用先前產生之後設資料,使得在重新執行指令時不必再生先前產生之後設資料。In one embodiment, the instruction uses several (e.g., a large number) execution loops to start the processor with post data before generating the results. Whenever a command is executed or re-executed, the processor is started with the post data. Therefore, according to the aspect of the present invention, the previously generated meta data is stored and used so that it is not necessary to regenerate the previously generated meta data when the command is re-executed.

在一個實例中,該指令為排序及/或合併輸入至指令之一或多個輸入清單之記錄的排序指令。對於此實例,後設資料包括處理器之內部狀態,包括例如關於輸入清單之資訊,諸如關於輸入清單之記錄之先前比較的資訊,以便判定待進行之後續比較。In one example, the instruction is a sorting instruction that sorts and/or merges records entered into one or more input lists of the instruction. For this example, the post data includes the internal state of the processor, including, for example, information about the input list, such as information about previous comparisons of the records of the input list, in order to determine subsequent comparisons to be made.

處理器取得後設資料且將其儲存於由程式提供之位置中。接著,當在中斷之後重新執行指令時,自該位置取得後設資料且將其載入處理器中,而不使用任務再生後設資料。此節省產生用於操作之後設資料將需要的時間。The processor obtains the meta data and stores it in the location provided by the program. Then, when the instruction is re-executed after the interruption, the meta data is obtained from the location and loaded into the processor without using the task to regenerate the meta data. This saving generates the time it will take to set up the data after the operation.

參看圖1A描述併有及使用本發明之一或多個態樣的運算環境之一個實施例。舉例而言,運算環境100包括處理器102 (例如,中央處理單元)、記憶體104 (例如,主記憶體;亦稱為系統記憶體、主儲存器、中央儲存器、儲存器)及一或多個輸入/輸出(I/O)裝置及/或介面106,前述各者經由例如一或多個匯流排108及/或其他連接件而彼此耦接。Referring to FIG. 1A, an embodiment of a computing environment in which one or more aspects of the present invention are described and used. For example, the computing environment 100 includes a processor 102 (eg, central processing unit), memory 104 (eg, main memory; also known as system memory, main storage, central storage, storage), and one or Multiple input/output (I/O) devices and/or interfaces 106, each of which is coupled to each other via, for example, one or more bus bars 108 and/or other connectors.

在一個實例中,處理器102係基於由紐約阿蒙克市之國際商業機器公司供應的z/Architecture® 硬體架構,且為伺服器之部分,諸如IBM Z® 伺服器,其亦由國際商業機器公司供應且實施z/Architecture (z/架構)硬體架構。z/Architecture硬體架構之一個實施例描述於題為「z/Architecture操作原理(z/Architecture Principles of Operation)」之公開案(IBM公開案第SA22-7832-11號,第12版,2017年9月)中,該公開案特此以全文引用之方式併入本文中。然而,z/Architecture硬體架構僅為一個實例架構;其他架構及/或其他類型之運算環境可包括及/或使用本發明之一或多個態樣。在一個實例中,處理器執行亦由國際商業機器公司供應之作業系統,諸如z/OS® 作業系統。In one example, the processor 102 is based on Armonk, New York City, z supplied by the International Business Machines Corporation / Architecture ® architectures, and is part of a server, such as an IBM Z ® servers, which increased from International Business The machine company supplies and implements the z/Architecture (z/architecture) hardware architecture. An example of the z/Architecture hardware architecture is described in the public case entitled "z/Architecture Principles of Operation" (IBM Publication No. SA22-7832-11, 12th edition, 2017 In September), this publication is hereby incorporated by reference in its entirety. However, the z/Architecture hardware architecture is only an example architecture; other architectures and/or other types of computing environments may include and/or use one or more aspects of the present invention. In one example, the processor executes an operating system also supplied by International Business Machines Corporation, such as the z/OS ® operating system.

處理器102包括用以執行指令之複數個功能組件。如圖1B中所描繪,此等功能組件包括例如:指令提取組件120,其用以提取待執行之指令;指令解碼單元122,其用以解碼所提取指令且用以獲得經解碼指令之運算元;指令執行組件124,其用以執行經解碼指令;記憶體存取組件126,其用以在必要時為指令執行存取記憶體;及寫回組件130,其用以提供經執行指令之結果。根據本發明之一或多個態樣,此等組件中之一或多者可包括提供排序/合併處理(或可使用本發明之一或多個態樣的其他處理)之一或多個其他組件之至少一部分或能夠存取該一或多個其他組件。該一或多個其他組件包括例如排序/合併組件(或其他組件) 136。下文進一步詳細地描述由組件136提供之功能性。The processor 102 includes a plurality of functional components for executing instructions. As depicted in FIG. 1B, these functional components include, for example, an instruction fetch component 120, which is used to fetch instructions to be executed, and an instruction decoding unit 122, which is used to decode the fetched instructions and obtain operands of the decoded instructions ; Instruction execution component 124, which is used to execute decoded instructions; memory access component 126, which is used to access memory for instruction execution when necessary; and write-back component 130, which is used to provide the result of the executed instruction . According to one or more aspects of the invention, one or more of these components may include one or more other that provide sorting/merging processing (or other processing that may use one or more aspects of the invention) At least a part of the component may be able to access the one or more other components. The one or more other components include, for example, sorting/merging components (or other components) 136. The functionality provided by component 136 is described in further detail below.

參看圖2描述併有及使用本發明之一或多個態樣的運算環境之另一實例。在一個實例中,運算環境係基於z/Architecture硬體架構;然而,運算環境可基於由國際商業機器公司或其他公司供應之其他架構。Refer to FIG. 2 for another example of a computing environment in which one or more aspects of the present invention are described and used. In one example, the computing environment is based on the z/Architecture hardware architecture; however, the computing environment may be based on other architectures supplied by International Business Machines Corporation or other companies.

參看圖2,在一個實例中,運算環境包括中央電子裝置複合體(CEC) 200。CEC 200包括複數個組件,諸如記憶體202 (亦稱為系統記憶體、主記憶體、主儲存器、中央儲存器、儲存器),其耦接至一或多個處理器(亦稱為中央處理單元(CPU)) 204及輸入/輸出子系統206。Referring to FIG. 2, in one example, the computing environment includes a central electronic device complex (CEC) 200. CEC 200 includes a plurality of components, such as memory 202 (also known as system memory, main memory, main storage, central storage, storage), which is coupled to one or more processors (also known as central Processing unit (CPU) 204 and input/output subsystem 206.

記憶體202包括例如一或多個邏輯分割區208、管理邏輯分割區之超管理器210,及處理器韌體212。超管理器210之一個實例為由紐約阿蒙克市之國際商業機器公司供應的處理器資源/系統管理器(PR/SM™)超管理器。如本文中所使用,韌體包括例如處理器之微碼。其包括例如用於實施較高層級機器碼之硬體層級指令及/或資料結構。在一個實施例中,其包括例如專屬碼,該專屬碼通常作為包括受信任軟體之微碼或特定於基礎硬體之微碼遞送,且控制作業系統對系統硬體之存取。The memory 202 includes, for example, one or more logical partitions 208, a hypervisor 210 that manages the logical partitions, and processor firmware 212. An example of the hyper-manager 210 is the processor resource/system manager (PR/SM™) hyper-manager supplied by International Business Machines Corporation of Armonk, New York. As used herein, firmware includes microcode such as a processor. It includes, for example, hardware-level instructions and/or data structures for implementing higher-level machine code. In one embodiment, it includes, for example, proprietary code, which is typically delivered as microcode that includes trusted software or microcode that is specific to the underlying hardware, and controls access to the system hardware by the operating system.

每一邏輯分割區208能夠充當分開的系統。亦即,每一邏輯分割區可獨立地經重設,運行諸如z/OS作業系統或另一作業系統之客體作業系統220且與不同程式222一起操作。在邏輯分割區中運行之作業系統或應用程式呈現為能夠存取完整的系統,但實際上,僅其一部分可用。Each logical partition 208 can act as a separate system. That is, each logical partition can be independently reset, run a guest operating system 220 such as a z/OS operating system or another operating system, and operate with different programs 222. The operating system or application running in the logical partition appears to be able to access the complete system, but in reality, only part of it is available.

記憶體202耦接至處理器(例如,CPU) 204,其為可分配至邏輯分割區之實體處理器資源。舉例而言,邏輯分割區208包括一或多個邏輯處理器,其中之每一者表示可動態地分配至邏輯分割區之實體處理器資源204中的全部或一部分。The memory 202 is coupled to a processor (eg, CPU) 204, which is a physical processor resource that can be allocated to a logical partition. For example, logical partition 208 includes one or more logical processors, each of which represents all or a portion of physical processor resources 204 that can be dynamically allocated to the logical partition.

另外,記憶體202耦接至I/O子系統206。I/O子系統206可為中央電子裝置複合體之部分或與其分開。其導引主儲存器202與耦接至中央電子裝置複合體之輸入/輸出控制單元230及輸入/輸出(I/O)裝置240之間的資訊流。In addition, the memory 202 is coupled to the I/O subsystem 206. I/O subsystem 206 may be part of or separate from the central electronic device complex. It guides the information flow between the main storage 202 and the input/output control unit 230 and the input/output (I/O) device 240 coupled to the central electronic device complex.

可使用許多類型之I/O裝置。一個特定類型為資料儲存裝置250。資料儲存裝置250可儲存一或多個程式252、一或多個電腦可讀程式指令254及/或資料等。電腦可讀程式指令可經組態以進行本發明之態樣的實施例之功能。Many types of I/O devices can be used. One particular type is the data storage device 250. The data storage device 250 may store one or more programs 252, one or more computer readable program instructions 254 and/or data, and so on. Computer readable program instructions can be configured to perform the functions of the embodiments of the present invention.

在一個實例中,處理器204包括排序/合併組件(或其他組件) 260以實行排序及/或合併(或可使用本發明之一或多個態樣的其他操作)中之一或多者。在各種實例中,可存在實行此等任務之一或多個組件。許多變化係可能的。In one example, the processor 204 includes a sorting/merging component (or other component) 260 to perform one or more of sorting and/or merging (or other operations that may use one or more aspects of the invention). In various examples, there may be one or more components that perform such tasks. Many changes are possible.

中央電子裝置複合體200可包括及/或耦接至抽取式/非抽取式、揮發性/非揮發性電腦系統儲存媒體。舉例而言,中央電子裝置複合體可包括及/或耦接至非抽取式非揮發性磁性媒體(通常被稱作「硬碟機」)、用於自抽取式非揮發性磁碟(例如,「軟碟」)讀取及寫入至抽取式非揮發性磁碟之磁碟機,及/或用於自諸如CD-ROM、DVD-ROM或其他光學媒體之抽取式非揮發性光碟讀取或寫入至抽取式非揮發性光碟之光碟機。應理解,可結合中央電子裝置複合體200使用其他硬體及/或軟體組件。實例包括但不限於:微碼、裝置驅動器、冗餘處理單元、外部磁碟機陣列、RAID系統、磁帶機及資料存檔儲存系統等。The central electronic device complex 200 may include and/or be coupled to a removable/non-removable, volatile/non-volatile computer system storage medium. For example, the central electronic device complex may include and/or be coupled to non-removable non-volatile magnetic media (commonly referred to as "hard drives"), for self-removable non-volatile magnetic disks (eg, "Floppy Disk") A drive that reads and writes to removable non-volatile disks, and/or is used to read from non-volatile optical disks such as CD-ROM, DVD-ROM or other optical media Or write to a disc drive with removable non-volatile discs. It should be understood that other hardware and/or software components may be used in conjunction with the central electronic device complex 200. Examples include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archiving and storage systems.

另外,中央電子裝置複合體200可與眾多其他通用或專用運算系統環境或組態一起操作。可適合與中央電子裝置複合體200一起使用之熟知運算系統、環境及/或組態之實例包括但不限於:個人電腦(PC)系統、伺服器電腦系統、精簡型用戶端、複雜型用戶端、手持型或膝上型電腦裝置、多處理器系統、基於微處理器之系統、機上盒、可程式化消費型電子裝置、網路PC、小型電腦系統、大型電腦系統及包括以上系統或裝置中之任一者的分散式雲端運算環境,以及其類似者。In addition, the central electronic device complex 200 can operate with many other general or special computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations suitable for use with central electronic device complex 200 include, but are not limited to: personal computer (PC) systems, server computer systems, thin clients, complex clients , Handheld or laptop computer devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, small computer systems, large computer systems, and systems that include the above A distributed cloud computing environment for any of the devices, and the like.

儘管本文中描述運算環境之各種實例,但本發明之一或多個態樣可與許多類型之環境一起使用。本文中所提供之運算環境僅為實例。另外,儘管參考排序指令描述本發明之一或多個態樣,但該等態樣中之一或多者適用於使用大量執行循環且可中斷之其他處理及/或指令。排序指令僅為一個實例。Although various examples of computing environments are described herein, one or more aspects of the invention can be used with many types of environments. The computing environment provided in this article is only an example. In addition, although one or more aspects of the invention are described with reference to sorting instructions, one or more of these aspects are applicable to other processes and/or instructions that use a large number of execution loops and that can be interrupted. The sort instruction is only an example.

根據本發明之一態樣,諸如處理器102或204之處理器使用增強之排序設施,其提供將未排序輸入資料之多個清單排序成經排序輸出資料之一或多個清單的機制。在一個實例中,當設施指示符設定為例如壹時,增強之排序設施安裝於系統中。作為z/Architecture硬體架構之一個特定實例,當以z/Architecture架構模式安裝增強之排序設施時,將設施位元150設定為例如壹。在一個實施例中,該設施亦提供將經排序輸入資料之多個清單合併成經排序輸出資料之單一清單的機制。舉例而言,該設施包括排序清單指令,下文描述該指令之實施例。According to one aspect of the invention, a processor such as processor 102 or 204 uses an enhanced sorting facility that provides a mechanism for sorting multiple lists of unsorted input data into one or more lists of sorted output data. In one example, when the facility indicator is set to, for example, one, the enhanced sequencing facility is installed in the system. As a specific example of the z/Architecture hardware architecture, when the enhanced sequencing facility is installed in the z/Architecture architecture mode, the facility bit 150 is set to, for example, one. In one embodiment, the facility also provides a mechanism to merge multiple lists of sorted input data into a single list of sorted output data. For example, the facility includes a sorted list instruction, and an embodiment of the instruction is described below.

參看圖3A至圖3K描述與排序清單指令有關之細節的一個實施例。在一個實例中,在通用處理器(例如,處理器102或204)上執行此指令。在本文中之描述中,指示特定位置、特定欄位及/或欄位之特定大小(例如,特定位元組及/或位元)。然而,可提供其他位置、欄位及/或大小。另外,儘管指定將位元設定為例如壹或零之特定值,但此僅為實例。在其他實例中,可將位元設定為不同值,諸如相反值或另一值。許多變化係可能的。3A to 3K describe an embodiment of the details related to the sort list instruction. In one example, this instruction is executed on a general-purpose processor (eg, processor 102 or 204). In the description herein, specific locations, specific fields, and/or specific sizes of fields (eg, specific bytes and/or bits) are indicated. However, other locations, fields and/or sizes may be provided. In addition, although it is specified that the bit is set to a specific value such as one or zero, this is only an example. In other examples, the bits may be set to different values, such as opposite values or another value. Many changes are possible.

參看圖3A,在一個實例中,排序清單(SORTL)指令300之格式為藉由延伸操作碼(作業碼)指示暫存器與暫存器操作的RRE格式。作為一實例,該指令包括:操作碼欄位302 (例如,位元0至15),其具有指示排序及/或合併操作之操作碼;第一暫存器欄位(R1 ) 304 (例如,位元24至27),其指明第一對通用暫存器;及第二暫存器欄位(R2 ) 306 (例如,位元28至31),其指明第二對通用暫存器。由R1 欄位304指明之暫存器的內容指定第一運算元之位置(在儲存器中),且由R2 欄位306指明之暫存器的內容指定第二運算元之位置(在儲存器中)。R1 +1之內容指定第一運算元之長度,且R2 +1之內容指定第二運算元之長度。在一個實例中,指令之位元16至23被保留且應含有零;否則,程式在未來可能無法相容地操作。如本文中所使用,該程式為發出排序清單指令之程式。該程式可為使用者程式、作業系統或另一類型之程式。Referring to FIG. 3A, in one example, the format of the sorted list (SORTL) instruction 300 is an RRE format that indicates the operation of the register and the register by an extended operation code (operation code). As an example, the instruction comprises: an opcode field 302 (e.g., bits 0-15), and having an indicating sort / merge operation or the operation code; a first register field (R 1) 304 (e.g. , Bits 24 to 27), which specifies the first pair of general-purpose registers; and the second register field (R 2 ) 306 (for example, bits 28 to 31), which specifies the second pair of general-purpose registers . The content of the register specified by the R 1 field 304 specifies the location of the first operand (in the memory), and the content of the register specified by the R 2 field 306 specifies the location of the second operand (in Memory). The content of R 1 +1 specifies the length of the first operand, and the content of R 2 +1 specifies the length of the second operand. In one example, bits 16 to 23 of the instruction are reserved and should contain zeros; otherwise, the program may not be compatible in the future. As used in this article, the program is a program that issues a sorted list command. The program can be a user program, operating system, or another type of program.

在一個實施例中,指令執行包括使用一或多個隱含的通用暫存器(亦即,未由指令明確指明之暫存器)。舉例而言,在執行排序清單指令時使用通用暫存器0及1,如本文中所描述。在一個實例中,使用通用暫存器0以指定是否實行合併且指定由指令實行之排序函式,且通用暫存器1用以提供由指令使用之參數區塊的位置。在另一實例中,通用暫存器0並不用以指定是否實行合併;實情為,合併由機器(例如,處理器)設定/不設定且不可藉由模式指示符改變。其他變化係可能的。In one embodiment, instruction execution includes the use of one or more implied general purpose registers (ie, registers not explicitly specified by the instruction). For example, the general-purpose registers 0 and 1 are used when executing the sorted list instruction, as described herein. In one example, the general-purpose register 0 is used to specify whether to execute the combination and the sorting function executed by the instruction, and the general-purpose register 1 is used to provide the location of the parameter block used by the instruction. In another example, the general purpose register 0 is not used to specify whether to perform the merge; the fact is that the merge is set/not set by the machine (eg, processor) and cannot be changed by the mode indicator. Other changes are possible.

作為一實例,參看圖3B,通用暫存器0 (308)包括合併模式欄位310 (下文描述)及函式碼欄位312。在一個特定實例中,通用暫存器0之位元位置57至63含有函式碼;但在其他實施例中,其他位元可用以含有函式碼。在一個實例中,當通用暫存器0之位元57至63指明未指派或未安裝之函式碼時,辨識到規格例外狀況。As an example, referring to FIG. 3B, the general register 0 (308) includes a merge mode field 310 (described below) and a function code field 312. In a specific example, the bit positions 57 to 63 of the general register 0 contain the function code; but in other embodiments, other bits can be used to contain the function code. In one example, when bits 57 to 63 of general register 0 indicate unassigned or uninstalled function codes, a specification exception is recognized.

用於排序清單指令之實例所指派函式碼展示於圖3C中且包括例如:函式碼0 (313),其指示SORTL-QAF (查詢可用函式)函式;函式碼1 (315),其指示SORTL-SFLR (排序固定長度記錄)函式;及函式碼2 (317),其指示SORTL-SVLR (排序可變長度記錄)函式。在一個實例中,每一碼使用參數區塊且參數區塊之大小取決於函式。舉例而言,對於SORTL-QAF函式,參數區塊為32個位元組;且對於SORTL-SFLR及SORTL-SVLR,參數區塊為576+16×NIS ,其中NIS 為輸入清單之數目,如由介面大小所指定。在此實例中,未指派其他函式碼。儘管描述實例函式及函式碼,但可使用其他函式及/或函式碼。The assigned function codes for the example of the sort list command are shown in FIG. 3C and include, for example: function code 0 (313), which indicates the SORTL-QAF (query available function) function; function code 1 (315) , Which indicates the SORTL-SFLR (sort fixed-length records) function; and function code 2 (317), which indicates the SORTL-SVLR (sort variable-length records) function. In one example, each code uses a parameter block and the size of the parameter block depends on the function. For example, for the SORTL-QAF function, the parameter block is 32 bytes; and for SORTL-SFLR and SORTL-SVLR, the parameter block is 576+16×N IS , where N IS is the number of input lists , As specified by the interface size. In this example, no other function codes are assigned. Although example functions and function codes are described, other functions and/or function codes may be used.

如先前所指示,通用暫存器0亦包括合併模式欄位310。在一個實例中,通用暫存器0之位元56指定應用於例如SORTL-SFLR及SORLT-SVLR函式之操作模式(合併模式)。在一個實例中,當指定函式為SORTL-QAF時,忽略通用暫存器0之位元56。另外,在一個實例中,忽略通用暫存器0之位元位置0至55。As previously indicated, the general purpose register 0 also includes a merge mode field 310. In one example, bit 56 of general purpose register 0 specifies the operation mode (merging mode) applied to functions such as SORTL-SFLR and SORLT-SVLR functions. In one example, when the designated function is SORTL-QAF, bit 56 of general purpose register 0 is ignored. In addition, in one example, bit positions 0 to 55 of general purpose register 0 are ignored.

參看圖3D描述關於由排序清單指令使用之另一隱含暫存器(通用暫存器1)的其他細節。舉例而言,通用暫存器1 (314)之內容指定儲存器中之參數區塊的最左位元組之邏輯位址316。在一個實例中,參數區塊將在雙字邊界上指明;否則,辨識到規格例外狀況。下文進一步描述關於參數區塊之其他細節。Referring to FIG. 3D, other details regarding another implicit register (general register 1) used by the sort list instruction are described. For example, the contents of general purpose register 1 (314) specify the logical address 316 of the leftmost byte of the parameter block in the memory. In one example, the parameter block will be indicated on a double-word boundary; otherwise, a specification exception is recognized. Further details regarding parameter blocks are described further below.

對於指定函式(例如,SORTL-QAF、SORTL-SFLR、SORTL-SVLR),不修改通用暫存器0及1之內容。另外,在一個實例中,R1 欄位304指明一對奇偶通用暫存器。其將指明偶數編號暫存器且不指明通用暫存器0;否則,辨識到規格例外狀況。當指定函式為SORTL-SFLR或SORTL-SVLR時,如圖3E至圖3F中所展示,通用暫存器R1 318之內容指定例如第一運算元之最左位元組的邏輯位址320,且通用暫存器R1 +1 (322)之內容指定第一運算元之以例如位元組計的長度324。當指定函式為SORTL-SFLR或SORTL-SVLR時,第一運算元例如將在雙字邊界上指明;否則,辨識到規格例外狀況。呈記錄形式之資料選自一組輸入清單且儲存於第一運算元位置處(例如,開始於使用R1 指定之位址處)。當指定SORTL-QAF函式時,忽略通用暫存器R1 及R1 +1之內容。For specified functions (for example, SORTL-QAF, SORTL-SFLR, SORTL-SVLR), the contents of general purpose registers 0 and 1 are not modified. In addition, in one example, the R 1 field 304 indicates a pair of parity general registers. It will indicate the even-numbered register and not the general-purpose register 0; otherwise, the specification exception is recognized. When the specified function is SORTL-SFLR or SORTL-SVLR, as shown in FIGS. 3E to 3F, the content of the general register R 1 318 specifies, for example, the logical address 320 of the leftmost byte of the first operand , And the content of the general register R 1 +1 (322) specifies the length 324 of the first operand in bytes, for example. When the specified function is SORTL-SFLR or SORTL-SVLR, the first operand will be indicated on a double-word boundary, for example; otherwise, a specification exception is recognized. The data in the form of records is selected from a set of input lists and stored at the first operand location (for example, starting at the address specified using R 1 ). When the SORTL-QAF function is specified, the contents of the general purpose registers R 1 and R 1 +1 are ignored.

此外,對於指定函式(例如,SORTL-QAF、SORTL-SFLR、SORTL-SVLR),在一個實例中,R2 欄位306指明一對奇偶通用暫存器。其將指明偶數編號暫存器且不指明通用暫存器0;否則,辨識到規格例外狀況。當指定函式為SORTL-SFLR或SORTL-SVLR且合併模式(MM)為零時,如圖3G至圖3H中所展示,通用暫存器R2 326之內容指定例如第二運算元之最左位元組的邏輯位址328,且通用暫存器R2 +1 (330)之內容指定第二運算元之以例如位元組計的長度332。在一個實例中,當指定函式為SORTL-SFLR或SORTL-SVLR且合併模式(MM)為零時,第二運算元將在雙字邊界上指明;否則,辨識到規格例外狀況。當MM為零時,每一輸出清單之開始位址及長度(被稱作輸出清單描繪(OLD))儲存於第二運算元位置處(例如,開始於使用R2 指定之位址處)。當指定SORTL-QAF函式或MM為壹時,忽略通用暫存器R2 及R2 +1之內容。In addition, for specified functions (eg, SORTL-QAF, SORTL-SFLR, SORTL-SVLR), in one example, the R 2 field 306 specifies a pair of parity general registers. It will indicate the even-numbered register and not the general-purpose register 0; otherwise, the specification exception is recognized. When the specified function is SORTL-SFLR or SORTL-SVLR and the merge mode (MM) is zero, as shown in FIGS. 3G to 3H, the content of the general register R 2 326 specifies, for example, the leftmost of the second operand The logical address of the byte is 328, and the content of the general register R 2 +1 (330) specifies the length 332 of the second operand in bytes, for example. In one example, when the specified function is SORTL-SFLR or SORTL-SVLR and the merge mode (MM) is zero, the second operand will be indicated on a double-word boundary; otherwise, a specification exception is recognized. When MM is zero, the starting address and length of each output list (called output list rendering (OLD)) is stored at the second operand location (for example, starting at the address specified using R 2 ). When the SORTL-QAF function or MM is specified as one, the contents of the general purpose registers R 2 and R 2 +1 are ignored.

在執行中,在一個實施例中,實行由通用暫存器0中之函式碼指定的函式。在一個實施例中,當指定函式為SORTL-SFLR或SORTL-SVLR時,作為操作之部分,發生以下情況:In execution, in one embodiment, the function specified by the function code in the general register 0 is implemented. In one embodiment, when the specified function is SORTL-SFLR or SORTL-SVLR, as part of the operation, the following occurs:

*   通用暫存器R1 中之位址遞增儲存於第一運算元位置處之位元組之數目,且通用暫存器R1 +1中之長度遞減相同數目。* The address in the general register R 1 increases the number of bytes stored at the position of the first operand, and the length in the general register R 1 +1 decreases by the same number.

*   當MM為零時,通用暫存器R2 中之位址遞增儲存於第二運算元位置處之位元組之數目,且通用暫存器R2 +1中之長度遞減相同數目。* When MM is zero, the address in the general register R 2 increases by the number of bytes stored at the second operand position, and the length in the general register R 2 +1 decreases by the same number.

在一個實例中,位址及長度之形成及更新取決於定址模式。In one example, the formation and update of the address and length depend on the addressing mode.

在一個實施例中,在24位元定址模式中,以下情況適用:In one embodiment, in the 24-bit addressing mode, the following applies:

*   通用暫存器1、R1 及R2 之位元位置40至63的內容分別構成參數區塊、第一運算元及第二運算元之位址,且忽略位元位置0至39之內容。* The contents of bit positions 40 to 63 of general register 1, R 1 and R 2 constitute the address of the parameter block, the first operand and the second operand, respectively, and the contents of bit positions 0 to 39 are ignored .

*   經更新之第一運算元位址及第二運算元位址的位元40至63分別替換通用暫存器R1 及R2 中之對應位元。忽略經更新位址之位元位置40的進位輸出,且將通用暫存器R1 及R2 之位元位置32至39的內容設定為零。通用暫存器R1 及R2 之位元位置0至31的內容保持不變。* Bits 40 to 63 of the updated first operand address and second operand address replace the corresponding bits in the general purpose registers R 1 and R 2 respectively. The carry output of the bit position 40 of the updated address is ignored, and the contents of the bit positions 32 to 39 of the general-purpose registers R 1 and R 2 are set to zero. The contents of bit positions 0 to 31 of the general purpose registers R 1 and R 2 remain unchanged.

*   通用暫存器R1 +1及R2 +1之位元位置32至63的內容形成32位元無正負號二進位整數,其分別指定第一運算元及第二運算元中之位元組的數目。忽略通用暫存器R1 +1及R2 +1之位元位置0至31的內容。* The contents of the bit positions 32 to 63 of the general-purpose registers R 1 +1 and R 2 +1 form a 32-bit unsigned binary integer, which specifies the bits in the first operand and the second operand, respectively The number of groups. The contents of bit positions 0 to 31 of the general purpose registers R 1 +1 and R 2 +1 are ignored.

*   經更新之第一運算元長度及第二運算元長度的位元32至63分別替換通用暫存器R1 +1及R2 +1中之對應位元。通用暫存器R1 +1及R2 +1之位元位置0至31的內容保持不變。* The updated bits 32 to 63 of the first operand length and the second operand length replace the corresponding bits in the general-purpose registers R 1 +1 and R 2 +1, respectively. The contents of bit positions 0 to 31 of the general purpose registers R 1 +1 and R 2 +1 remain unchanged.

在一個實施例中,在31位元定址模式中,以下情況適用:In one embodiment, in the 31-bit addressing mode, the following applies:

*   通用暫存器1、R1 及R2 之位元位置33至63的內容分別構成參數區塊、第一運算元及第二運算元之位址,且忽略位元位置0至32之內容。* The contents of bit positions 33 to 63 of general register 1, R 1 and R 2 constitute the address of the parameter block, the first operand and the second operand, respectively, and the contents of bit positions 0 to 32 are ignored .

*   經更新之第一運算元位址及第二運算元位址的位元33至63分別替換通用暫存器R1 及R2 中之對應位元。忽略經更新位址之位元位置33的進位輸出,且將通用暫存器R1 及R2 之位元位置32的內容設定為零。通用暫存器R1 及R2 之位元位置0至31的內容保持不變。* Bits 33 to 63 of the updated first operand address and second operand address replace the corresponding bits in the general-purpose registers R 1 and R 2 respectively. The carry output of the bit position 33 of the updated address is ignored, and the contents of the bit position 32 of the general registers R 1 and R 2 are set to zero. The contents of bit positions 0 to 31 of the general purpose registers R 1 and R 2 remain unchanged.

*   通用暫存器R1 +1及R2 +1之位元位置32至63的內容形成32位元無正負號二進位整數,其分別指定第一運算元及第二運算元中之位元組的數目。忽略通用暫存器R1 +1及R2 +1之位元位置0至31的內容。* The contents of the bit positions 32 to 63 of the general-purpose registers R 1 +1 and R 2 +1 form a 32-bit unsigned binary integer, which specifies the bits in the first operand and the second operand, respectively The number of groups. The contents of bit positions 0 to 31 of the general purpose registers R 1 +1 and R 2 +1 are ignored.

*   經更新之第一運算元長度及第二運算元長度的位元32至63分別替換通用暫存器R1 +1及R2 +1中之對應位元。通用暫存器R1 +1及R2 +1之位元位置0至31的內容保持不變。* The updated bits 32 to 63 of the first operand length and the second operand length replace the corresponding bits in the general-purpose registers R 1 +1 and R 2 +1, respectively. The contents of bit positions 0 to 31 of the general purpose registers R 1 +1 and R 2 +1 remain unchanged.

在一個實施例中,在64位元定址模式中,以下情況適用:In one embodiment, in 64-bit addressing mode, the following applies:

*   通用暫存器1、R1 及R2 之位元位置0至63的內容分別構成參數區塊、第一運算元及第二運算元之位址。* The contents of bit positions 0 to 63 of general register 1, R 1 and R 2 respectively constitute the address of the parameter block, the first operand and the second operand.

*   經更新之第一運算元位址及第二運算元位址的位元0至63分別替換通用暫存器R1 及R2 中之對應位元。忽略經更新位址之位元位置0的進位輸出。* Bits 0 to 63 of the updated first operand address and second operand address replace the corresponding bits in the general purpose registers R 1 and R 2 respectively. The carry output of bit position 0 of the updated address is ignored.

*   通用暫存器R1 +1及R2 +1之位元位置0至63的內容形成64位元無正負號二進位整數,其分別指定第一運算元及第二運算元中之位元組的數目。* The contents of bit positions 0 to 63 of the general purpose registers R 1 +1 and R 2 +1 form 64-bit unsigned binary integers, which specify the bits in the first and second operands, respectively The number of groups.

*   經更新之第一運算元長度及第二運算元長度的位元0至63分別替換通用暫存器R1 +1及R2 +1中之對應位元。* Bits 0 to 63 of the updated first operand length and second operand length replace the corresponding bits in the general purpose registers R 1 +1 and R 2 +1, respectively.

在存取暫存器模式中,存取暫存器1、R1 及R2 分別指定含有參數區塊、第一運算元及第二運算元之位址空間。In the access register mode, the access registers 1, R 1 and R 2 specify the address space containing the parameter block, the first operand and the second operand, respectively.

下文描述關於各種函式之其他細節。Other details about various functions are described below.

函式碼Function code 00 : SORTL-QAF (SORTL-QAF ( 查詢可用函式Query available functions ))

SORTL-QAF (查詢)函式提供指示所有已安裝函式之可用性、已安裝參數區塊格式及可用介面大小的機制。介面大小為可用於程式之輸入清單的數目。用於SORT-SFLR及SORT-SVLR函式之參數區塊的大小與由程式指定之介面大小成比例。The SORTL-QAF (query) function provides a mechanism to indicate the availability of all installed functions, the format of installed parameter blocks, and the size of available interfaces. The interface size is the number of input lists available for the program. The size of the parameter block used in the SORT-SFLR and SORT-SVLR functions is proportional to the size of the interface specified by the program.

參看圖3I描述用於SORTL-QAF函式之參數區塊的一個實例格式。在一個實例中,用於SORTL-QAF函式(例如,函式碼0)之參數區塊340包括已安裝函式向量342、已安裝介面大小向量344及已安裝參數區塊格式向量346。在一個特定實例中,此等向量分別儲存至參數區塊之位元組0至15、位元組16及位元組24至25。下文進一步描述該等向量中之每一者。An example format of the parameter block used in the SORTL-QAF function is described with reference to FIG. 3I. In one example, the parameter block 340 for the SORTL-QAF function (eg, function code 0) includes an installed function vector 342, an installed interface size vector 344, and an installed parameter block format vector 346. In a specific example, these vectors are stored in byte 0 to 15, byte 16 and byte 24 to 25 of the parameter block, respectively. Each of these vectors is further described below.

作為一實例,已安裝函式向量342之位元0至127分別對應於排序清單指令之函式碼0至127。當位元為例如壹時,安裝對應函式;否則,不安裝函式。As an example, bits 0 to 127 of the installed function vector 342 correspond to function codes 0 to 127 of the sorted list command, respectively. When the bit is one, for example, the corresponding function is installed; otherwise, the function is not installed.

另外,在一個實例中,已安裝介面大小向量344之位元0至7指示可用於程式之介面大小。介面大小為待由程式指定用於SORT-SFLR及SORTL-SVLR函式之輸入清單的數目。在一個實例中,已安裝介面大小向量344之位元0至7對應於以下介面大小:位元0、1、5至7被保留;位元2—32個輸入清單;位元3—64個輸入清單;及位元4—128個輸入清單。其他實例亦係可能的。In addition, in one example, bits 0 to 7 of the installed interface size vector 344 indicate the interface sizes available for the program. The interface size is the number of input lists to be designated by the program for the SORT-SFLR and SORTL-SVLR functions. In one example, bits 0 to 7 of the installed interface size vector 344 correspond to the following interface sizes: bits 0, 1, 5 to 7 are reserved; bit 2-32 input lists; bit 3-64 Input list; and 4-128 input list. Other examples are also possible.

當已安裝介面大小向量344之位元為例如壹時,對應介面大小可用於程式。一或多個位元可儲存為壹。舉例而言,00101000二進位之值指示32及128個輸入清單之介面大小可用。在一個實例中,位元0至1及5至7被保留且儲存為零。另外,在一個實例中,當安裝增強之排序設施時,32個輸入清單之介面大小可用。因此,位元2儲存為壹。其他實例亦係可能的。When the bit of the installed interface size vector 344 is, for example, one, the corresponding interface size can be used in the program. One or more bits can be stored as one. For example, a binary value of 00101000 indicates that the interface sizes of 32 and 128 input lists are available. In one example, bits 0 to 1 and 5 to 7 are reserved and stored as zero. In addition, in one example, when the enhanced sorting facility is installed, the interface size of 32 input lists is available. Therefore, bit 2 is stored as one. Other examples are also possible.

除上文以外,在一個實例中,已安裝參數區塊格式向量346之位元0至15分別對應於參數區塊格式0至15。當位元為例如壹時,安裝對應參數區塊格式;否則,不安裝該參數區塊格式。在一個實例中,將零儲存至參數區塊之保留位元組17至23及26至31。In addition to the above, in one example, bits 0 to 15 of the installed parameter block format vector 346 correspond to parameter block formats 0 to 15, respectively. When the bit is one, for example, the corresponding parameter block format is installed; otherwise, the parameter block format is not installed. In one example, zeros are stored in reserved bytes 17 to 23 and 26 to 31 of the parameter block.

SORT-QAF函式忽略通用暫存器R1 、R2 、R1 +1及R2 +1之內容。The SORT-QAF function ignores the contents of the general purpose registers R 1 , R 2 , R 1 +1 and R 2 +1.

在適用時,對於參數區塊,辨識到程式事件記錄(PER)儲存器更改事件。在適用時,對於參數區塊,辨識到PER零位址偵測事件。Where applicable, program event record (PER) memory change events are identified for parameter blocks. When applicable, PER zero address detection events are identified for parameter blocks.

在一個實例中,當SORTL-QAF函式之執行完成時,設定條件碼0;條件碼1、2及3不適用於查詢函式。In one example, when the execution of the SORTL-QAF function is completed, condition code 0 is set; condition codes 1, 2, and 3 are not applicable to the query function.

函式碼Function code 11 : SORTL-SFLR (SORTL-SFLR ( 排序固定長度記錄Sort fixed length records ))

在一個實例中,將一組輸入清單排序且作為一組輸出清單儲存於第一運算元位置處。每一清單為一組記錄,且參看圖3J,每一記錄350包括金鑰352 (例如,固定長度金鑰)及有效負載354 (例如,固定長度有效負載)。In one example, a set of input lists is sorted and stored as a set of output lists at the first operand location. Each list is a set of records, and referring to FIG. 3J, each record 350 includes a key 352 (for example, a fixed-length key) and a payload 354 (for example, a fixed-length payload).

基於金鑰之值將來自輸入清單之記錄排序。可按如在下文所描述的與函式碼1相關聯之參數區塊之排序次序(SO)欄位中指定的遞升次序或降序次序將記錄排序。輸入清單之記錄可能按或可能不按排序次序列出。Sort records from the input list based on the value of the key. The records may be sorted in ascending or descending order specified in the sort order (SO) field of the parameter block associated with function code 1 as described below. The records entered in the list may or may not be listed in sorted order.

輸出清單之記錄可源自多個輸入清單且按排序次序儲存。儲存於第一運算元位置處之輸出清單之數目取決於輸入資料。在一個實例中,當每個作用中輸入清單含有以與SO欄位中指定之次序相同的次序列出的記錄時,僅產生一個輸出清單。The records of the output list can be derived from multiple input lists and stored in sorted order. The number of output lists stored at the first operand position depends on the input data. In one example, when each active input list contains records listed in the same order as specified in the SO field, only one output list is generated.

如上文所指示,通用暫存器0之位元56指定應用於SORTL-SFLR函式之操作模式,被稱作合併模式(MM)。當合併模式為例如零時,對於儲存於第一運算元位置處之每一輸出清單,對應的輸出清單描繪(OLD)儲存於第二運算元位置處。每一OLD包括例如8位元組OLD位址,其指明對應輸出清單中之第一記錄的位置;及8位元組OLD長度,其指定對應輸出清單之以例如位元組計的長度。當合併模式為壹時,輸入清單被視為預排序的。亦即,每個作用中輸入清單被視為含有呈與參數區塊之SO欄位指定之次序相同的次序的記錄。As indicated above, bit 56 of general purpose register 0 specifies the mode of operation applied to the SORTL-SFLR function, which is called the merge mode (MM). When the merge mode is, for example, zero, for each output list stored at the first operand position, the corresponding output list drawing (OLD) is stored at the second operand position. Each OLD includes, for example, an 8-byte OLD address, which indicates the position of the first record in the corresponding output list; and an 8-byte OLD length, which specifies the length of the corresponding output list in bytes, for example. When the merge mode is one, the input list is considered pre-sorted. That is, each active input list is considered to contain records in the same order as specified by the SO field of the parameter block.

當MM為壹且每一輸入清單經預排序時,儲存於第一運算元位置處之結果為呈排序次序之記錄的單一輸出清單。當MM為壹且每一輸入清單未經預排序時,結果係不可預測的。When MM is one and each input list is pre-sorted, the result stored at the first operand position is a single output list of records in sorted order. When MM is one and each input list is not pre-sorted, the result is unpredictable.

當MM為例如壹時,忽略通用暫存器R2 及R2 +1之內容且無資訊儲存於第二運算元位置處。當MM為壹時,可能不實行用以區分輸出清單之間的分隔的程序,藉此潛在地改善操作之效能。當MM為壹時,資料並不儲存至下文所描述之接續記錄重新呼叫緩衝區。When MM is, for example, one, the contents of the general registers R 2 and R 2 +1 are ignored and no information is stored at the second operand location. When MM is one, the procedure to distinguish the separation between the output lists may not be implemented, thereby potentially improving the performance of the operation. When MM is one, the data is not saved to the connection record re-call buffer described below.

在一個實例中,為了自呈隨機次序之一組記錄產生呈排序次序之記錄的單一清單,程式可實行以下程序:In one example, to generate a single list of records in sorted order from a set of records in random order, the program may implement the following procedure:

1.  在一組初始清單當中均勻地分割該組記錄,其中每一清單含有呈隨機次序之記錄。在將該組初始清單作為輸入清單且合併模式等於零之情況下執行排序清單指令,以產生一組中間清單(其中之每一者含有呈排序次序之記錄),及該組中間清單中之每一清單的儲存位置及長度。1. Split the set of records evenly among a set of initial lists, where each list contains records in random order. When the initial list is used as the input list and the merge mode is equal to zero, the sort list command is executed to generate a set of intermediate lists (each of which contains records in sorted order), and each of the set of intermediate lists The storage location and length of the list.

2.  在將該組中間清單作為輸入清單且合併模式等於壹之情況下執行排序清單指令,以產生最終及單一清單,其含有呈排序次序之記錄。2. When the set of intermediate lists is used as the input list and the merge mode is equal to one, execute the sort list command to generate a final and single list, which contains records in sorted order.

合併模式等於零之SORTL-SFLR的一個實例說明於圖4A中。輸入及所得輸出包括於該實例中。如所展示,存在三個輸入清單400:輸入list0、輸入list1及輸入list2。另外,描繪所得第一運算元402及第二運算元404之實例。在一個實例中,第一運算元402 (圖4A)中存在三個清單,且如第二運算元404中所展示,一個清單開始於位址1000處並具有長度18;另一清單開始於位址1018處並具有長度28;且第三清單開始於位址1040處並具有長度20。An example of SORTL-SFLR with merge mode equal to zero is illustrated in FIG. 4A. The input and the resulting output are included in this example. As shown, there are three input lists 400: input list0, input list1, and input list2. In addition, examples of the obtained first operand 402 and second operand 404 are depicted. In one example, there are three lists in the first operand 402 (FIG. 4A), and as shown in the second operand 404, one list starts at address 1000 and has a length of 18; the other list starts at bit The address 1018 has a length of 28; and the third list starts at the address 1040 and has a length of 20.

在一個實例中,當兩個操作對同一組未排序輸入記錄實行合併模式等於零之同一SORTL-SFLR函式且兩個操作之間的僅有差異為用以指定輸入資料之輸入清單的數目時,具有較大數目個輸入清單之操作產生較小數目個輸出清單。圖4B說明使用六個輸入清單450對與圖4A中之使用三個輸入清單之實例相同的輸入資料操作的實例。亦所描繪具有兩個而非三個輸出清單之所得第一運算元452及提供兩個輸出清單之描繪的第二運算元454。In one example, when two operations implement the same SORTL-SFLR function with the merge mode equal to zero on the same set of unsorted input records and the only difference between the two operations is the number of input lists used to specify the input data, Operations with a larger number of input lists produce a smaller number of output lists. FIG. 4B illustrates an example of using six input lists 450 to operate on the same input data as in the example of using three input lists in FIG. 4A. Also depicted is a resulting first operand 452 with two instead of three output lists and a depicted second operand 454 that provides two output lists.

如所指示,SORTL-SFLR函式使用參數區塊,參看圖3K描述該參數區塊之實例。在本文中所描述之實例參數區塊中,指示參數區塊內用於特定欄位之特定位置及欄位之特定大小(例如,特定位元組及/或位元)。然而,可為該等欄位中之一或多者提供其他位置及/或大小。另外,儘管指定將位元設定為例如壹或零之特定值,但此僅為實例。在其他實例中,可將位元設定為不同值,諸如相反值或另一值。許多變化係可能的。As indicated, the SORTL-SFLR function uses a parameter block, and an example of the parameter block is described with reference to FIG. 3K. In the example parameter block described herein, a specific location and a specific size of the field (eg, a specific byte and/or bit) for a specific field within the parameter block are indicated. However, other positions and/or sizes may be provided for one or more of these fields. In addition, although it is specified that the bit is set to a specific value such as one or zero, this is only an example. In other examples, the bits may be set to different values, such as opposite values or another value. Many changes are possible.

在一個實例中,用於SORTL-SFLR函式之參數區塊360包括以下各者:In one example, the parameter block 360 for the SORTL-SFLR function includes the following:

參數區塊版本號碼(PBVN) 362:參數區塊之位元組0至1指定參數區塊之版本及大小。PBVN之位元0至7具有與用於SORTL-QAF (查詢)函式之參數區塊的已安裝介面大小清單向量(位元組16)之位元0至7相同的格式及定義。位元0至7指定描述於參數區塊中之輸入清單的數目NIS 。藉由評估式(576+16×NIS )來判定以位元組計之參數區塊大小。位元0至7中之一個位元將具有值一;否則,辨識到一般運算元資料例外狀況。PBVN之位元8至11被保留且應含有零;否則,程式在未來可能無法相容地操作。PBVN之位元12至15含有指定參數區塊之格式的無正負號二進位整數。SORTL-QAF函式提供指示可用之參數區塊格式的機制。當模型不支援所指定之參數區塊之大小或格式時,辨識到一般運算元資料例外狀況。PBVN由程式指定且在指令執行期間不會被修改。Parameter block version number (PBVN) 362: Bytes 0 to 1 of the parameter block specify the version and size of the parameter block. Bits 0 to 7 of PBVN have the same format and definition as bits 0 to 7 of the installed interface size list vector (byte 16) used in the parameter block of the SORTL-QAF (query) function. Bits 0 through 7 specify the number of input lists N IS described in the parameter block. The size of the parameter block in bytes is determined by the evaluation formula (576+16×N IS ). One of the bits 0 to 7 will have a value of one; otherwise, the general operator data exception is recognized. Bits 8 to 11 of PBVN are reserved and should contain zero; otherwise, the program may not be compatible in the future. Bits 12 to 15 of PBVN contain unsigned binary integers that specify the format of the parameter block. The SORTL-QAF function provides a mechanism to indicate the available parameter block format. When the model does not support the specified size or format of the parameter block, an exception to the general operation metadata is recognized. PBVN is specified by the program and will not be modified during the execution of the command.

模型版本號碼(MVN) 364:參數區塊之位元組2為識別執行指令之模型的無正負號二進位整數。MVN在指令執行期間藉由例如處理器更新。儲存於MVN中之值為模型相依的。Model Version Number (MVN) 364: Byte 2 of the parameter block is an unsigned binary integer that identifies the model that executes the instruction. The MVN is updated by, for example, the processor during execution of the instruction. The values stored in MVN are model dependent.

當下文所描述之接續旗標(CF) 368為壹時,MVN為操作之輸入。當CF為壹且MVN識別與當前執行指令之模型相同的模型時,來自下文所描述之接續狀態緩衝區(CSB) 390之資料可用以重新繼續操作。當CF為壹且MVN識別與當前執行指令之模型不同的模型時,可忽略CSB欄位之部分或全部。When the continuous flag (CF) 368 described below is one, the MVN is the input for the operation. When the CF is one and the MVN recognizes the same model as the currently executing instruction, the data from the connection state buffer (CSB) 390 described below can be used to resume the operation. When CF is one and MVN recognizes a model that is different from the currently executing instruction model, part or all of the CSB field can be ignored.

在一個實例中,程式將MVN初始化為零。吾人預期,在出於重新繼續操作之目的而重新執行指令之情況下,程式不修改MVN;否則,結果為不可預測的。In one example, the program initializes MVN to zero. I anticipate that the program will not modify the MVN if the instruction is re-executed for the purpose of resuming operation; otherwise, the result is unpredictable.

排序次序(SO) 366:參數區塊之位元56,其在為零時指定遞升排序次序,且在為壹時指定遞降排序次序。當指定遞升排序次序時,輸出清單之每一記錄含有大於或等於同一輸出清單中之鄰近記錄(例如,在左側)的金鑰。當指定遞降排序次序時,輸出清單之每一記錄含有小於或等於同一輸出清單中之鄰近記錄(例如,在左側)的金鑰。在指令執行期間不更新SO。Sort Order (SO) 366: Bit 56 of the parameter block, which specifies ascending sort order when it is zero and descending sort order when it is one. When ascending sort order is specified, each record in the output list contains a key that is greater than or equal to the adjacent record (for example, on the left) in the same output list. When a descending sort order is specified, each record in the output list contains a key that is less than or equal to the adjacent record (for example, on the left) in the same output list. SO is not updated during instruction execution.

接續旗標(CF) 368:參數區塊之位元63,其在為壹時指示操作部分地完成及接續狀態緩衝區390之內容,且當合併模式(MM)為零時,接續記錄重新呼叫緩衝區之內容可用以重新繼續操作。程式將接續旗標(CF)初始化為零且在出於重新繼續操作之目的而重新執行指令的情況下不修改CF;否則,結果為不可預測的。在一個實例中,處理器在將重新執行指令之情況下修改CF。Connection flag (CF) 368: Bit 63 of the parameter block, which indicates that the operation is partially completed and the content of the connection status buffer 390 when it is one, and when the merge mode (MM) is zero, the connection record is called again The contents of the buffer can be used to resume operation. The program initializes the continuation flag (CF) to zero and does not modify the CF if the instruction is re-executed for the purpose of resuming the operation; otherwise, the result is unpredictable. In one example, the processor modifies the CF if it will re-execute the instruction.

記錄金鑰長度370:參數區塊之位元組10至11含有指定在操作期間處理之記錄中之金鑰的以位元組計之大小的無正負號二進位整數。在一個實例中,對於以下條件中之任一者,辨識到一般運算元資料例外狀況:Record key length 370: Bytes 10 to 11 of the parameter block contain unsigned binary integers that specify the size in bytes of the key in the record processed during the operation. In one example, for any of the following conditions, a general operator metadata exception is recognized:

*   指定零位元組之金鑰大小。* Specify the key size of zero bytes.

*指定並非8之倍數的金鑰大小。*Specify the key size that is not a multiple of 8.

*   指定大於4096個位元組之金鑰大小。* Specify the key size larger than 4096 bytes.

在指令執行期間不更新記錄金鑰長度。The record key length is not updated during command execution.

記錄有效負載長度372:當指定SORTL-SFLR函式時,參數區塊之位元組14至15含有指定在操作期間處理之記錄中之有效負載的以位元組計之大小的無正負號二進位整數。在一個實例中,對於以下條件中之任一者,辨識到一般運算元資料例外狀況:Record payload length 372: When the SORTL-SFLR function is specified, the bytes 14 to 15 of the parameter block contain the unsigned sign two that specifies the size in bytes of the payload in the record processed during the operation Rounded integer. In one example, for any of the following conditions, a general operator metadata exception is recognized:

*   指定並非8之倍數的有效負載大小。* Specify a payload size that is not a multiple of 8.

*   所指定之金鑰大小及有效負載大小的總和大於4096個位元組。* The sum of the specified key size and payload size is greater than 4096 bytes.

零之有效負載大小為有效的。Zero payload size is valid.

當指定SORTL-SVLR函式時,忽略參數區塊之記錄有效負載長度欄位。在指令執行期間不更新記錄有效負載長度。When the SORTL-SVLR function is specified, the record payload length field of the parameter block is ignored. The record payload length is not updated during instruction execution.

運算元存取意圖(OAI) 374:參數區塊之位元組32的位元0至1向CPU發信對輸入清單及第一運算元之未來存取意圖。所提供之存取意圖可用以修改用於儲存階層中之快取記憶體的各種層級處之對應儲存位置的快取行安裝及替換策略。Operand Access Intent (OAI) 374: Bits 0 to 1 of byte 32 of the parameter block send to the CPU a future access intention for the input list and the first operand. The provided access intent can be used to modify cache line installation and replacement strategies for corresponding storage locations at various levels of cache memory in the storage hierarchy.

當OAI欄位之位元0為壹時,經指明以含有任何作用中輸入清單之資料的儲存位置將被參考為後續指令之一或多個運算元。當OAI欄位之位元0為零時,經指明以含有任何作用中輸入清單之資料的儲存位置將不被參考為後續指令之一或多個運算元。When bit 0 of the OAI field is one, the storage location specified to contain any active input list data will be referred to as one or more operands of the subsequent command. When bit 0 of the OAI field is zero, the storage location specified to contain any active input list data will not be referenced as one or more operands of the subsequent command.

當OAI欄位之位元1為壹時,經指明以含有第一運算元之儲存位置將被參考為後續指令之一或多個運算元。當OAI欄位之位元1為零時,經指明以含有第一運算元之儲存位置將不被參考為後續指令之一或多個運算元。When bit 1 of the OAI field is one, the storage location specified to contain the first operand will be referred to as one or more operands of the subsequent instruction. When bit 1 of the OAI field is zero, the storage location specified to contain the first operand will not be referenced as one or more operands of the subsequent instruction.

不保證CPU使用此資訊。未定義可使用此資訊之持續時間,但其為有限的。The CPU is not guaranteed to use this information. The duration for which this information can be used is not defined, but it is limited.

當下一指令存取意圖(NIAI)之後的下一順序指令為排序清單(SORTL)時,SORTL之執行不受NIAI影響。When the next sequential instruction after the next instruction access intention (NIAI) is a sorted list (SORTL), the execution of SORTL is not affected by NIAI.

在指令執行期間不更新OAI。OAI is not updated during instruction execution.

作用中輸入清單計數碼(AILCC) 376:參數區塊之位元組33的位元1至7為7位元無正負號整數,其指定指示作用中輸入清單與非作用輸入清單之間的邊界的輸入清單之編號。具有例如小於或等於AILCC欄位之值之清單編號的輸入清單在作用中狀態下。具有例如大於AILCC欄位之值之清單編號的輸入清單在非作用中狀態下。在作用中狀態下之輸入清單之數目比AILCC欄位中之值大一。Active input list count code (AILCC) 376: Bits 1 to 7 of byte 33 of the parameter block are 7-bit unsigned integers, which specify the boundary between the active input list and the non-active input list The number of the input list. The input list with the list number that is less than or equal to the value of the AILCC field, for example, is in the active state. The input list with a list number greater than the value of the AILCC field, for example, is in an inactive state. The number of input lists in the active state is one greater than the value in the AILCC field.

在作用中狀態下之輸入清單參與操作。在非作用中狀態下之輸入清單不參與操作。The input list in the active state participates in the operation. The input list in the non-active state does not participate in the operation.

參數區塊之位元組33的位元0被保留且應含有零;否則,程式在未來可能無法相容地操作。Bit 0 of byte 33 of the parameter block is reserved and should contain zero; otherwise, the program may not be compatible in the future.

在一個實例中,當AILCC欄位之值加上一大於參數區塊中所描述之輸入清單之數目(如由PBVN欄位之位元0至7所指定)時,辨識到一般運算元資料例外狀況。In one example, when the value of the AILCC field plus a number greater than the number of input lists described in the parameter block (as specified by bits 0 to 7 of the PBVN field), an exception is recognized for general arithmetic data situation.

在AILCC欄位中指定之值並不影響參數區塊之大小。存取例外狀況適用於指定對應於在非作用中狀態下之輸入清單之輸入清單位址或長度的參考參數區塊之欄位。The value specified in the AILCC field does not affect the size of the parameter block. The access exception is applicable to specify the field of the reference parameter block corresponding to the input list address or length of the input list in the inactive state.

在指令執行期間不更新AILCC。AILCC is not updated during instruction execution.

空輸入清單控制項(EILCL) 378:當參數區塊之位元組40的位元0為壹時,當在操作期間輸入list0之長度變為零時,操作結束。當參數區塊之位元組40的位元0為零時,當在操作期間輸入list0之長度變為零時,操作繼續進行。當參數區塊之位元組40的位元1為壹時,當除輸入list0以外之作用中輸入清單之長度在操作期間變為零時,操作結束。當參數區塊之位元組40的位元1為零時,當除輸入list0以外之作用中輸入清單之長度在操作期間變為零時,操作繼續進行。Empty input list control item (EILCL) 378: When bit 0 of byte 40 of the parameter block is one, when the length of input list0 becomes zero during the operation, the operation ends. When bit 0 of byte 40 of the parameter block is zero, when the length of input list0 becomes zero during the operation, the operation continues. When bit 1 of byte 40 of the parameter block is one, when the length of the input list becomes zero during the operation except for input list0, the operation ends. When bit 1 of byte 40 of the parameter block is zero, when the length of the input list becomes zero during the operation other than input list0, the operation continues.

當在指令執行之前,作用中輸入清單之長度最初為零時,不應用EILCL之對應位元。When the length of the active input list is initially zero before the instruction is executed, the corresponding bit of EILCL is not applied.

在指令執行期間不更新EILCL。EILCL is not updated during instruction execution.

吾人預期,在出於重新繼續操作之目的而重新執行指令之情況下,程式不修改EILCL;否則,結果為不可預測的。I anticipate that the program will not modify EILCL if the instruction is re-executed for the purpose of resuming operation; otherwise, the result is unpredictable.

空輸入清單旗標(EILF) 380:當EILCL為11二進位且操作由於作用中輸入清單之經更新長度等於零而結束並設定條件碼2時,例如藉由處理器將值一儲存至參數區塊之位元組40的位元2;否則,將值零儲存至參數區塊之位元組40的位元2。當EILF含有值一時,將在操作期間變為空之輸入清單的輸入清單編號置放於參數區塊之EILN欄位中。在一個實例中,程式將EILF初始化為零。Empty input list flag (EILF) 380: When EILCL is 11 binary and the operation ends because the updated length of the active input list is equal to zero and condition code 2 is set, for example, the value 1 is stored in the parameter block by the processor Bit 2 of byte 40; otherwise, the value zero is stored in bit 2 of byte 40 of the parameter block. When EILF contains the value one, the input list number of the input list that becomes empty during the operation is placed in the EILN field of the parameter block. In one example, the program initializes EILF to zero.

當重新繼續操作時,可在指令執行開始時參考EILF。吾人預期,在出於重新繼續操作之目的而重新執行指令之情況下,程式不修改EILF;否則,結果為不可預測的。When resuming operation, refer to EILF at the beginning of instruction execution. We expect that the program will not modify the EILF if the instruction is re-executed for the purpose of resuming the operation; otherwise, the result is unpredictable.

空輸入清單編號(EILN) 382:當條件使得將值壹儲存於EILF欄位中時,例如藉由處理器將在操作期間變為空之輸入清單的輸入清單編號儲存於參數區塊之位元組41中;否則,將值零儲存於參數區塊之位元組41中。Empty input list number (EILN) 382: When the condition is such that the value one is stored in the EILF field, for example by the processor storing the input list number of the input list that became empty during operation in the bit of the parameter block Group 41; otherwise, store the value zero in byte 41 of the parameter block.

在操作開始時忽略EILN。在一個實例中,程式將EILN初始化為零。EILN is ignored at the beginning of the operation. In one example, the program initializes EILN to zero.

不完整輸入清單旗標(IILF) 384:當操作由於嘗試處理不完整輸入清單而結束時,例如藉由處理器將值壹儲存至參數區塊之位元組46的位元0;否則,將值零儲存至參數區塊之位元組46的位元0。當對應輸入清單長度大於零且小於由輸入清單位址指明之記錄的位元組之數目時,作用中輸入清單被視為不完整的。在操作開始時可存在此條件,或在操作期間可遇到此條件。當IILF含有值壹時,將遇到之不完整輸入清單的輸入清單編號置放於參數區塊之IILN欄位中。在一個實例中,程式將IILF初始化為零。Incomplete input list flag (IILF) 384: When the operation ends due to an attempt to process an incomplete input list, for example, the processor stores the value one to bit 0 of byte 46 of the parameter block; otherwise, it will The value zero is stored in bit 0 of byte 46 of the parameter block. When the length of the corresponding input list is greater than zero and less than the number of bytes of the record specified by the input list address, the active input list is considered to be incomplete. This condition may exist at the beginning of the operation, or it may be encountered during the operation. When the IILF contains the value one, the input list number of the incomplete input list encountered is placed in the IILN field of the parameter block. In one example, the program initializes IILF to zero.

當操作以設定條件碼2結束且IILF欄位中之所得值為零時,操作由於空輸入清單而結束。當操作以設定條件碼2結束且IILF欄位中之所得值為壹時,操作由於不完整輸入清單而結束。When the operation ends with the set condition code 2 and the resulting value in the IILF field is zero, the operation ends because of an empty input list. When the operation ends with the set condition code 2 and the resulting value in the IILF field is one, the operation ends because of an incomplete input list.

當重新繼續操作時,可在指令執行開始時參考IILF。吾人預期,在出於重新繼續操作之目的而重新執行指令之情況下,程式不修改IILF;否則,結果為不可預測的。When resuming operation, refer to IILF at the beginning of instruction execution. We expect that the program will not modify the IILF if the instruction is re-executed for the purpose of resuming the operation; otherwise, the result is unpredictable.

不完整輸入清單編號(IILN) 386:當條件使得將值壹儲存於IILF欄位中時,例如藉由處理器將遇到之不完整輸入清單的輸入清單編號儲存於參數區塊之位元組47中;否則,將值零儲存於參數區塊之位元組47中。當多個輸入清單不完整時,其為模型相依的,其中將不完整輸入清單編號儲存至IILN欄位。在一個實例中,程式將IILN初始化為零。Incomplete input list number (IILN) 386: When the condition is such that the value one is stored in the IILF field, for example, the processor stores the input list number of the incomplete input list encountered in the byte of the parameter block 47; otherwise, store the value zero in byte 47 of the parameter block. When multiple input lists are incomplete, they are model dependent, where the incomplete input list number is stored in the IILN field. In one example, the program initializes IILN to zero.

在操作開始時忽略IILN。IILN is ignored at the beginning of the operation.

接續記錄重新呼叫緩衝區起點388:在操作結束且可稍後重新繼續之狀況下,由程式為CPU提供儲存器中之4K位元組緩衝區(被稱作接續記錄重新呼叫緩衝區),以儲存及參考同一排序清單指令之兩次執行之間的資料。參數區塊之五十二個位元(自位元組56之位元0開始至位元組62之位元3)含有在形成接續記錄重新呼叫位址時使用之無正負號二進位整數,該接續記錄重新呼叫位址在4K位元組邊界上對準。接續記錄重新呼叫位址為例如接續記錄重新呼叫緩衝區之最左位元組的邏輯位址。Connection record re-call buffer starting point 388: Under the condition that the operation ends and can be resumed later, the program provides the CPU with a 4K byte buffer in the memory (referred to as the connection record re-call buffer), to Store and refer to the data between two executions of the same sorted list command. Fifty-two bits of the parameter block (starting from bit 0 of byte 56 to bit 3 of byte 62) contain unsigned binary integers used in the formation of the connection record to recall the address, The connection record recall address is aligned on the 4K byte boundary. The connection record recall address is, for example, the logical address of the leftmost byte of the connection record recall buffer.

在24位元定址模式中,在右側附加有12個零之接續記錄重新呼叫緩衝區起點的位元40至51形成接續記錄重新呼叫位址。在31位元定址模式中,在右側附加有12個零之接續記錄重新呼叫緩衝區起點的位元33至51形成接續記錄重新呼叫位址。在64位元定址模式中,在右側附加有12個零之接續記錄重新呼叫緩衝區起點的位元0至51形成接續記錄重新呼叫位址。In the 24-bit addressing mode, bits 40 to 51 at the beginning of the connection record recall buffer with 12 zeros added to the right form the connection record recall address. In the 31-bit addressing mode, bits 33 to 51 at the beginning of the connection record recall buffer with 12 zeros added to the right form the connection record recall address. In the 64-bit addressing mode, bits 0 to 51 at the beginning of the connection record recall buffer at the right are appended with 12 zeros to form the connection record recall address.

在存取暫存器模式中,存取暫存器1指定含有儲存器中之接續記錄重新呼叫緩衝區的位址空間。In the access register mode, the access register 1 specifies the address space containing the recall buffer of the continuous record in the memory.

當合併模式(MM)為零時,操作在儲存一或多個記錄之後結束且不發生正常完成,亦將儲存至第一運算元之最後記錄的金鑰儲存至接續記錄重新呼叫緩衝區。當MM為壹時,忽略接續記錄重新呼叫緩衝區起點。When the merge mode (MM) is zero, the operation ends after one or more records are stored and normal completion does not occur. The key of the last record stored in the first operand is also stored in the subsequent record recall buffer. When MM is one, the starting point of the buffer is called again, ignoring the connection record.

在指令執行期間不修改接續記錄重新呼叫緩衝區起點。Recall the starting point of the buffer without modifying the connection record during the execution of the instruction.

吾人預期,在出於重新繼續操作之目的而重新執行指令的情況下,程式不修改接續記錄重新呼叫緩衝區起點;否則,結果為不可預測的。We expect that in the case of re-executing the command for the purpose of resuming the operation, the program will not modify the connection record and call the starting point of the buffer again; otherwise, the result is unpredictable.

接續狀態緩衝區(CSB) 390:當條件使得將值壹儲存於CF欄位中時,例如藉由處理器將內部狀態資料儲存至參數區塊之位元組64至575;否則,參數區塊之位元組64至575為未定義的且可修改該等位元組。所儲存之內部狀態資料為模型相依的,且可隨後在重新執行指令時使用以重新繼續操作。在一個實例中,程式將接續狀態緩衝區初始化為零。吾人預期,在出於重新繼續操作之目的而重新執行指令的情況下,程式不修改接續狀態緩衝區;否則,結果為不可預測的。Connection Status Buffer (CSB) 390: When the condition is such that the value one is stored in the CF field, for example, the processor stores the internal state data in bytes 64 to 575 of the parameter block; otherwise, the parameter block Bytes 64 to 575 are undefined and can be modified. The stored internal state data is model dependent, and can be used later when the command is re-executed to resume the operation. In one example, the program initializes the connection status buffer to zero. We expect that the program will not modify the connection status buffer if the command is re-executed for the purpose of resuming operation; otherwise, the result is unpredictable.

作為一實例,內部狀態資料包括與輸入清單有關之資訊,諸如關於輸入清單之記錄之先前比較的資訊,以判定待進行之後續比較。內部狀態資料為模型相依的,此係因為其可取決於處理器模型而以不同方式儲存或呈現。其他變化係可能的。As an example, the internal status data includes information related to the input list, such as information about previous comparisons of records of the input list, to determine the subsequent comparison to be made. The internal state data is model dependent, because it can be stored or presented in different ways depending on the processor model. Other changes are possible.

在一個實施例中,該指令可藉由一組態中之一個模型部分地完成,且執行可在該組態中之不同模型上重新繼續。儘管在一個實施例中,不同模型可維持不同的內部狀態,但在一個實例中,每一模型將能夠解譯用以重新繼續操作之CSB (若存在)的彼等內容。當操作重新繼續時,MVN指示機器能夠解譯CSB (若存在)之哪些內容。In one embodiment, the command may be partially completed by one model in a configuration, and execution may be resumed on different models in the configuration. Although in one embodiment, different models may maintain different internal states, in one example, each model will be able to interpret the content of the CSB (if any) to resume operation. When the operation resumes, the MVN indicates to the machine which contents of the CSB (if any) can be interpreted.

輸入ListN位址392、394、396:參數區塊定義多個輸入清單。定義於參數區塊中之輸入清單的數目NIS 由PBVN 362之位元0至7指定。將輸入清單自零至(NIS -1)進行編號。對於每一輸入清單,參數區塊指定例如8位元組輸入清單位址。對於輸入清單編號N,參數區塊之位元組576+16×N至583+16×N之內容指定例如儲存器中之輸入清單編號N的最左位元組之邏輯位址。Input ListN address 392, 394, 396: The parameter block defines multiple input lists. The number N IS of the input list defined in the parameter block is specified by bits 0 to 7 of PBVN 362. Number the input list from zero to (N IS -1). For each input list, the parameter block specifies, for example, an 8-byte input list address. For input list number N, the content of bytes 576+16×N to 583+16×N of the parameter block specifies, for example, the logical address of the leftmost byte of input list number N in the memory.

如由AILCC欄位指定,對應於在作用中狀態下之輸入清單的每一輸入清單位址為操作之輸入且由操作更新。如由AILCC欄位指定,對應於在非作用中狀態下之輸入清單的每一輸入清單位址被操作忽略。If specified by the AILCC field, each input list address corresponding to the input list in the active state is the input of the operation and is updated by the operation. If specified by the AILCC field, each input list address corresponding to the input list in the inactive state is ignored by the operation.

在一個實施例中,當輸入清單位址為操作之輸入時,以下情形適用:In one embodiment, when the input list address is an operation input, the following situations apply:

*   在24位元定址模式中,輸入清單位址之位元40至63指明儲存器中之輸入清單的最左位元組之位置,且輸入清單位址之位元0至39的內容被視為零。* In the 24-bit addressing mode, bits 40 to 63 of the input list address indicate the position of the leftmost byte of the input list in the memory, and the contents of bits 0 to 39 of the input list address are viewed Is zero.

*   在31位元定址模式中,輸入清單位址之位元33至63指明儲存器中之輸入清單的最左位元組之位置,且輸入清單位址之位元0至32的內容被視為零。* In the 31-bit addressing mode, bits 33 to 63 of the input list address indicate the position of the leftmost byte of the input list in the memory, and the contents of bits 0 to 32 of the input list address are viewed Is zero.

*   在64位元定址模式中,輸入清單位址之位元0至63指明儲存器中之輸入清單的最左位元組之位置。* In the 64-bit addressing mode, bits 0 to 63 of the input list address indicate the position of the leftmost byte of the input list in the memory.

在存取暫存器模式中,存取暫存器1指定儲存器中含有作用中輸入清單之位址空間。In the access register mode, the access register 1 specifies the address space in the memory that contains the active input list.

對於在作用中狀態下之輸入清單,對應的輸入清單位址將在雙字邊界上指明;否則,在一個實例中,辨識到一般運算元資料例外狀況。For the input list in the active state, the address of the corresponding input list will be indicated on the double-word boundary; otherwise, in one example, the exception of general operational metadata is recognized.

在一個實施例中,當輸入清單位址由操作更新時,以下情形適用:In one embodiment, when the input list address is updated by the operation, the following situations apply:

*   當作為操作之部分已處理輸入清單之一或多個記錄時,將對應的輸入清單位址遞增已處理記錄在儲存器中佔用之位元組的數目。輸入清單位址之形成及更新取決於定址模式。* When one or more records of the processed input list are processed as part of the operation, the corresponding input list address is incremented by the number of bytes occupied by the processed record in the memory. The formation and update of the input list address depends on the addressing mode.

*   在24位元定址模式中,經更新之輸入清單位址的位元40至63替換參數區塊之輸入清單位址欄位中的對應位元,忽略經更新之輸入清單位址的位元位置40之進位輸出,且將參數區塊之輸入清單位址欄位的位元位置0至39之內容設定為零。* In the 24-bit addressing mode, the updated input list address bits 40 to 63 replace the corresponding bits in the input list address field of the parameter block, ignoring the updated input list address bit Carry output at position 40, and set the content of bit positions 0 to 39 of the input list address field of the parameter block to zero.

*   在31位元定址模式中,經更新之輸入清單位址的位元33至63替換參數區塊之輸入清單位址欄位中的對應位元,忽略經更新之輸入清單位址的位元位置33之進位輸出,且將參數區塊之輸入清單位址欄位的位元位置0至32之內容設定為零。* In the 31-bit addressing mode, bits 33 to 63 of the updated input list address replace the corresponding bits in the input list address field of the parameter block, ignoring the bits of the updated input list address Carry output at position 33, and set the contents of bit positions 0 to 32 of the address field of the input list of the parameter block to zero.

*   在64位元定址模式中,經更新之輸入清單位址的位元0至63替換參數區塊之輸入清單位址欄位中的對應位元,且忽略經更新之輸入清單位址的位元位置0之進位輸出。* In the 64-bit addressing mode, the updated input list address bits 0 to 63 replace the corresponding bit in the input list address field of the parameter block, and ignore the updated input list address bit The carry output of the meta position 0.

在24位元定址模式及31位元定址模式中,當指令執行結束且指令未被抑制、設為空值(nullify)或終止時,更新對應於作用中輸入清單之每一64位元輸入清單位址,即使在位址未遞增時亦如此。In the 24-bit addressing mode and the 31-bit addressing mode, when the command execution ends and the command is not suppressed, set to null (nullify), or terminated, each 64-bit input list corresponding to the active input list is updated Address, even when the address is not incremented.

輸入ListN長度393、395、397:對於每一輸入清單,參數區塊指定8位元組輸入清單長度。對於輸入清單編號N,參數區塊之位元組584+16×N至591+16×N含有指定輸入清單編號N中之位元組之數目的無正負號整數。Input ListN lengths 393, 395, 397: For each input list, the parameter block specifies the 8-byte input list length. For input list number N, the bytes 584+16×N to 591+16×N of the parameter block contain unsigned integers that specify the number of bytes in input list number N.

如由AILCC欄位指定,對應於在作用中狀態下之輸入清單的每一輸入清單長度為操作之輸入且由操作更新。如由AILCC欄位指定,對應於在非作用中狀態下之輸入清單的每一輸入清單長度被操作忽略。If specified by the AILCC field, the length of each input list corresponding to the active input list is the input of the operation and is updated by the operation. If specified by the AILCC field, the length of each input list corresponding to the input list in the inactive state is ignored by the operation.

在各種定址模式中,輸入清單長度欄位之位元位置0至63的內容指定對應輸入清單之長度。In various addressing modes, the contents of bit positions 0 to 63 of the input list length field specify the length of the corresponding input list.

當作為操作之部分已處理輸入清單之一或多個記錄時,將對應的輸入清單長度遞減已處理記錄在儲存器中佔用之位元組的數目。在各種定址模式中,經更新之輸入清單長度的位元0至63替換參數區塊之對應輸入清單長度欄位中的位元0至63。When one or more records of the processed input list are processed as part of the operation, the length of the corresponding input list is decremented by the number of bytes occupied by the processed record in the memory. In various addressing modes, bits 0 to 63 of the updated input list length replace bits 0 to 63 in the corresponding input list length field of the parameter block.

保留:參數區塊中存在數個保留欄位(例如,不包括其他資訊之欄位)。作為操作之輸入,保留欄位應含有零;否則,程式在未來可能無法相容地操作。當操作結束時,保留欄位可儲存為零或可保持不變。Reserved: There are several reserved fields in the parameter block (for example, fields that do not include other information). As input to the operation, the reserved field should contain zero; otherwise, the program may not be able to operate in a compatible manner in the future. When the operation ends, the reserved field can be stored as zero or can remain unchanged.

圖5A至圖5B概述SORTL-SFLR函式之輸入(包括參數區塊中之欄位)的原始值及最終值之一個實例。5A to 5B summarize an example of the original value and final value of the input (including the field in the parameter block) of the SORTL-SFLR function.

在一個實施例中,出於重新繼續操作之目的,不需要且不期望程式在以設定條件碼3結束操作與分支回至指令以重新執行指令之間修改參數區塊。In one embodiment, for the purpose of resuming the operation, it is unnecessary and undesirable for the program to modify the parameter block between ending the operation with the set condition code 3 and branching back to the instruction to re-execute the instruction.

在一個實施例中,SORTL-SFLR函式包括來自不同輸入清單之記錄的金鑰之間的多個比較。在一個實例中,當比較金鑰時,以下情形適用:In one embodiment, the SORTL-SFLR function includes multiple comparisons between recorded keys from different input lists. In one example, when comparing keys, the following applies:

*   金鑰被視為無正負號二進位整數,亦被稱作非結構化資料。* The key is regarded as a binary integer without sign, also known as unstructured data.

*   在判定哪一金鑰含有最低或最高值時,可能不必存取正被比較之每一金鑰的所有位元組。一次比較之每一金鑰的位元組之數目(被稱作金鑰比較單元)為模型相依的。所存取之金鑰的位元組之數目為整數個金鑰比較單元。* When determining which key contains the lowest or highest value, it may not be necessary to access all the bytes of each key being compared. The number of bytes of each key in a comparison (called the key comparison unit) is model dependent. The number of bytes of the accessed key is an integer number of key comparison units.

*   當比較具有相等值之金鑰時,在一個實例中,將來自具有最高輸入清單編號之輸入清單的金鑰選擇為在排序次序上處於具有相同值之其他金鑰之前。在此狀況下,將來自具有最高輸入清單編號之輸入清單的對應記錄在具有相同金鑰值之其他記錄之前儲存至第一運算元。此適用於遞升及遞降排序次序。* When comparing keys with equal values, in one example, the key from the input list with the highest input list number is selected to be before other keys with the same value in sort order. In this case, the corresponding record from the input list with the highest input list number is stored in the first operand before other records with the same key value. This applies to ascending and descending sort order.

一個實施方案可維持來自作用中輸入清單之記錄之間的先前比較之歷史。當歷史可用且適用時,代替存取及比較先前比較之記錄,可參考歷史。參考歷史減少產生結果所需之執行時間,從而改善運算環境內之處理。One embodiment may maintain a history of previous comparisons between records from the active input list. When history is available and applicable, instead of accessing and comparing previously compared records, you can refer to history. Reference history reduces the execution time required to produce results, thereby improving processing within the computing environment.

SORTL-SFLR函式包括自呈指定排序次序之一組輸入清單選擇記錄及將選定記錄置放於第一運算元位置處。隨著操作繼續進行,維持第一運算元位址及作用中輸入清單位址之當前值。函式以操作單元繼續進行。在每一操作單元期間,對於每一作用中輸入清單,檢驗由對應的當前輸入清單位址指明之金鑰且將一個記錄置放於第一運算元位置處。The SORTL-SFLR function includes selecting records from a set of input lists in a specified sort order and placing the selected records at the first operand position. As the operation continues, the current value of the first operand address and the address of the active input list is maintained. The function continues with the operating unit. During each operation unit, for each active input list, the key indicated by the corresponding current input list address is checked and a record is placed at the first operand position.

當合併模式(MM)為零時,作用中輸入清單指明各自被視為含有例如自左向右呈隨機次序之記錄的清單。當MM為零時,儲存至第一運算元位置之記錄構成一或多個輸出清單,且每一輸出清單之開始位址及長度儲存至第二運算元位置。當MM為零時,作為一個實例,每一操作單元包括呈指定次序之以下步驟:When the merge mode (MM) is zero, the active input list indicates that each is regarded as a list containing records in a random order from left to right, for example. When MM is zero, the record stored in the first operand position constitutes one or more output lists, and the start address and length of each output list are stored in the second operand position. When MM is zero, as an example, each operation unit includes the following steps in the specified order:

1.  判定待儲存至第一運算元位置之下一記錄是否可包括於最近輸出清單(包括最近儲存至第一運算元位置之記錄的輸出清單)中,如下:1. Determine whether a record to be stored under the first operand position can be included in the most recent output list (including the output list of the record most recently stored in the first operand position), as follows:

*   當接續旗標(CF)為零且第一操作單元正被處理時,無記錄已儲存至第一運算元位置,且待儲存之下一記錄將為輸出清單之第一記錄。* When the connection flag (CF) is zero and the first operating unit is being processed, no record has been stored in the first operand location, and the next record to be stored will be the first record in the output list.

*   當CF為壹,指令之先前執行以條件碼1結束且針對指令之當前執行正處理第一操作單元時,待儲存之下一記錄將為輸出清單之第一記錄。* When CF is one, the previous execution of the instruction ends with condition code 1 and the first operation unit is being processed for the current execution of the instruction, the next record to be stored will be the first record of the output list.

*   當CF為壹,IILF為零,EILF為零,指令之先前執行以條件碼2結束且針對指令之當前執行正處理第一操作單元時,待儲存之下一記錄將為輸出清單之第一記錄。* When CF is one, IILF is zero, and EILF is zero, the previous execution of the instruction ends with condition code 2 and the first operation unit is being processed for the current execution of the instruction, the next record to be stored will be the first of the output list recording.

*   當CF為壹,IILF或EILF為壹,指令之先前執行以條件碼2結束且針對指令之當前執行正處理第一操作單元時,待儲存之下一記錄可包括於最近輸出清單中。* When CF is one, IILF or EILF is one, the previous execution of the instruction ends with condition code 2 and the first operation unit is being processed for the current execution of the instruction, the next record to be stored can be included in the recent output list.

*   當CF為壹,指令之先前執行以條件碼3結束且針對指令之當前執行正處理第一操作單元時,待儲存之下一記錄可包括於最近輸出清單中。* When CF is one, the previous execution of the instruction ends with condition code 3 and the first operation unit is being processed for the current execution of the instruction, the next record to be stored may be included in the most recent output list.

*   當正處理之操作單元並非用於指令之當前執行的第一操作單元時,待儲存之下一記錄可包括於最近輸出清單中。* When the operation unit being processed is not the first operation unit currently used for the instruction, the next record to be stored can be included in the most recent output list.

2.  當待儲存之下一記錄可包括於最近輸出清單中時,判定限定為包括於最近輸出清單中之一組記錄。對於作用中、非空且並非不完整的每一輸入清單,比較由當前輸入清單位址指明之記錄的金鑰(當前輸入金鑰)與最近儲存至第一運算元位置之記錄的金鑰(先前儲存金鑰)。出於此目的,對先前儲存金鑰之參考並非對第一運算元位置之參考。實情為,其為對供選擇金鑰之輸入清單的參考,或其為對接續記錄重新呼叫緩衝區之參考。當正重新繼續操作且指令之當前執行尚未將任何記錄置放於第一運算元位置處時,該參考為對接續記錄重新呼叫緩衝區之參考。2. When the next record to be stored can be included in the recent output list, the determination is limited to a set of records included in the recent output list. For each input list that is active, not empty, and not incomplete, compare the key of the record specified by the address of the current input list (the current input key) with the key of the record most recently stored to the first operand position ( Save the key previously). For this purpose, the reference to the previously stored key is not a reference to the position of the first operand. The fact is that it is a reference to the input list for the selection key, or it is a reference to the recall buffer for the connection record. When the operation is being resumed and the current execution of the instruction has not placed any record at the position of the first operand, the reference is a reference to re-call the buffer for the continued record.

當排序次序為遞升且當前輸入金鑰之值大於或等於先前儲存金鑰之值時,將當前輸入金鑰視為屬於限定為包括於最近輸出清單中之一組金鑰。當排序次序為遞降且當前輸入金鑰之值小於或等於先前儲存金鑰之值時,將當前輸入金鑰視為屬於限定為包括於最近輸出清單中之一組金鑰。當限定為包括於最近輸出清單中之該組金鑰中的金鑰數目為零時,待儲存之下一記錄將為輸出清單之第一記錄。當限定為包括於最近輸出清單中之該組金鑰中的金鑰數目為非零時,待儲存之下一記錄將包括於最近輸出清單中。When the sort order is ascending and the value of the current input key is greater than or equal to the value of the previously stored key, the current input key is considered to belong to a set of keys limited to be included in the most recent output list. When the sorting order is descending and the value of the current input key is less than or equal to the value of the previously stored key, the current input key is regarded as belonging to a group of keys restricted to be included in the most recent output list. When the number of keys in the set of keys included in the most recent output list is zero, the next record to be stored will be the first record in the output list. When the number of keys defined in the set of keys included in the most recent output list is non-zero, the next record to be stored will be included in the most recent output list.

3.  當待儲存之下一記錄將包括於最近輸出清單中時,比較限定為包括於最近輸出清單中之該組金鑰中的金鑰。當排序次序為遞升時,選擇最小金鑰值及對應記錄。當排序次序為遞降時,選擇最大金鑰值及對應記錄。3. When the next record to be stored will be included in the recent output list, the comparison is limited to the keys in the set of keys included in the recent output list. When the sort order is ascending, select the minimum key value and corresponding record. When the sort order is descending, select the maximum key value and corresponding record.

4.  當待儲存之下一記錄將為輸出清單之第一記錄時,比較由對應於作用中、非空且並非不完整之輸入清單之當前輸入清單位址指明的記錄之金鑰。當排序次序為遞升時,選擇最小金鑰值及對應記錄。當排序次序為遞降時,選擇最大金鑰值及對應記錄。4. When the next record to be stored will be the first record of the output list, compare the key of the record specified by the current input list address corresponding to the active, non-empty and not incomplete input list. When the sort order is ascending, select the minimum key value and corresponding record. When the sort order is descending, select the maximum key value and corresponding record.

5.  將選定記錄置放於當前第一運算元位置處。5. Place the selected record at the current first operand position.

6.  當前第一運算元位址遞增等於選定記錄之長度的位元組數目。6. The current first operand address increments by the number of bytes equal to the length of the selected record.

7.  對應於含有選定記錄之輸入清單的當前輸入清單位址遞增等於選定記錄之長度的位元組數目。7. The address of the current input list corresponding to the input list containing the selected record is incremented by the number of bytes equal to the length of the selected record.

當合併模式為零時,作為操作之部分,對於儲存於第一運算元位置處之每一輸出清單,將對應輸出清單描繪(OLD)儲存於第二運算元位置處。每一OLD包括例如8位元組OLD位址,其指明對應輸出清單中之第一記錄的位置;及例如8位元組OLD長度,其指定對應輸出清單之以位元組計的長度。當操作以條件碼3結束,條件碼2及EILF等於壹或條件碼2及IILF等於壹時,在操作結束時正處理之最近輸出清單可經部分處理且未經完全處理。亦即,經部分處理之輸出清單中的記錄之數目為中間值且可在操作重新繼續時增加。在此狀況下,對應於經部分處理之輸出清單的輸出清單描繪(OLD)不置放於第二運算元位置處,直至操作重新繼續且輸出清單經完全處理。When the merge mode is zero, as part of the operation, for each output list stored at the first operand location, the corresponding output list drawing (OLD) is stored at the second operand location. Each OLD includes, for example, an 8-byte OLD address, which indicates the position of the first record in the corresponding output list; and, for example, an 8-byte OLD length, which specifies the length in bytes corresponding to the output list. When the operation ends with condition code 3 and condition code 2 and EILF are equal to one or condition code 2 and IILF are equal to one, the most recent output list being processed at the end of the operation may be partially processed and not fully processed. That is, the number of records in the partially processed output list is an intermediate value and can be increased when the operation resumes. In this case, the output list drawing (OLD) corresponding to the partially processed output list is not placed at the second operand position until the operation is resumed and the output list is completely processed.

當合併模式為零且操作在儲存一或多個記錄之後結束且未發生正常完成時,亦將儲存至第一運算元位置之最後記錄的金鑰儲存至接續記錄重新呼叫緩衝區。When the merge mode is zero and the operation ends after storing one or more records and normal completion does not occur, the key of the last record stored in the first operand position is also stored in the subsequent record recall buffer.

當合併模式為零且操作由於正常完成而結束時,一或多個輸出清單已置放於第一運算元位置處且輸出清單描繪已置放於第二運算元位置處。程式可使用輸出清單描繪作為用於後續SORTL操作之參數區塊中的輸入清單位址及長度值。When the merge mode is zero and the operation ends due to normal completion, one or more output lists have been placed at the first operand position and the output list depiction has been placed at the second operand position. The program can use the output list to describe the address and length values of the input list in the parameter block for subsequent SORTL operations.

圖6A至圖6D說明在執行合併模式等於零之SORTL-SFLR之前或之後的第一運算元及第二運算元。參看圖6A至圖6B,FOSA 600為第一運算元開始位址:由R1 指定之位置;FOEA 602為第一運算元結束位址:由R1 +(R1 +1)-1指定之位置;且OL 604為輸出清單(例如,輸出清單1……輸出清單N)。另外,參看圖6C至圖6D,SOSA 610為第二運算元開始位址:由R2 指定之位置;SOEA 612為第二運算元結束位址:由R2 +(R2 +1)-1指定之位置;且OLD 614為輸出清單指明(例如,輸出清單指明1……輸出清單指明N)。6A to 6D illustrate the first operand and the second operand before or after the SORTL-SFLR in which the merge mode is equal to zero. 6A to 6B, FOSA 600 is the first operand start address: the location specified by R 1 ; FOEA 602 is the first operand end address: specified by R 1 +(R 1 +1)-1 Location; and OL 604 is an output list (eg, output list 1...output list N). In addition, referring to FIGS. 6C to 6D, SOSA 610 is the start address of the second operand: the position specified by R 2 ; SOEA 612 is the end address of the second operand: from R 2 +(R 2 +1)-1 The specified location; and OLD 614 is the output list specification (for example, the output list specification 1...the output list specification N).

當合併模式(MM)為壹時,作用中輸入清單指明各自被視為含有自左向右呈如由參數區塊之SO欄位指定之排序次序的記錄的清單。當MM為壹時,儲存至第一運算元位置之記錄構成單一輸出清單。作為一實例,當MM為壹時,每一操作單位包括例如呈指定次序之以下步驟:When the merge mode (MM) is one, the active input list indicates that each is considered to contain a list of records that are sorted from left to right as specified by the SO field of the parameter block. When MM is one, the record stored in the first operand position constitutes a single output list. As an example, when MM is one, each operation unit includes, for example, the following steps in a specified order:

1.    比較由對應於作用中、非空且並非不完整之輸入清單之當前輸入清單位址指明的記錄之金鑰。當排序次序為遞升時,選擇最小金鑰值及對應記錄。當排序次序為遞降時,選擇最大金鑰值及對應記錄。1. Compare the keys of the records specified by the current input list address corresponding to the active, non-empty and not incomplete input list. When the sort order is ascending, select the minimum key value and corresponding record. When the sort order is descending, select the maximum key value and corresponding record.

2.  將選定記錄置放於當前第一運算元位置處。2. Place the selected record at the current first operand position.

3.  當前第一運算元位址遞增等於選定記錄之長度的位元組數目。3. The current first operand address increments by the number of bytes equal to the length of the selected record.

4.  對應於含有選定記錄之輸入清單的當前輸入清單位址遞增等於選定記錄之長度的位元組數目。4. The address of the current input list corresponding to the input list containing the selected record is incremented by the number of bytes equal to the length of the selected record.

圖7A至圖7B說明在執行合併模式等於壹之SORTL-SFLR之前或之後的第一運算元。參看圖7A至圖7B,FOSA 700為第一運算元開始位址:由R1 指定之位置;FOEA 702為第一運算元結束位址:由R1 +(R1 +1)-1指定之位置;且OL 704為輸出清單(例如,輸出清單1)。7A to 7B illustrate the first operand before or after performing the SORTL-SFLR with the merge mode equal to one. 7A to 7B, FOSA 700 is the start address of the first operand: the position specified by R 1 ; FOEA 702 is the end address of the first operand: specified by R 1 +(R 1 +1)-1 Location; and OL 704 is an output list (eg, output list 1).

當合併模式為零或一時,作為操作之部分,更新在作用中狀態下之輸入清單的輸入清單位址及長度。對於作用中狀態下之每一輸入清單,輸入清單位址遞增來自輸入清單之在操作期間被選擇且置放於第一運算元位置處的記錄之位元組的數目,且輸入清單長度遞減相同數目。輸入清單位址之形成及更新取決於定址模式。When the merge mode is zero or one, as part of the operation, the input list address and length of the input list in the active state are updated. For each input list in the active state, the input list address is incremented by the number of bytes from the input list's records selected during the operation and placed at the first operand position, and the input list length is decremented by the same number. The formation and update of the input list address depends on the addressing mode.

隨著操作繼續進行,可遇到不完整的輸入清單。在嘗試參考來自不完整之輸入清單之記錄的操作單元期間,辨識到不完整的輸入清單。多個操作單元可在辨識到不完整輸入清單之前完成。此在合併模式為零或一時適用。As the operation continues, an incomplete input list may be encountered. During an operation unit attempting to refer to a record from an incomplete input list, an incomplete input list was identified. Multiple operating units can be completed before an incomplete input list is recognized. This applies when the merge mode is zero or one.

隨著操作繼續進行,可遇到存取輸入清單、第一運算元或第二運算元(在適用時)之存取例外狀況。在嘗試存取儲存位置之操作單元期間辨識到存取例外狀況,且對於彼位置,存在存取例外狀況。多個操作單元可在辨識到存取例外狀況之前完成。此在合併模式為零或一時適用。As the operation continues, access exceptions to the access input list, the first operand, or the second operand (where applicable) may be encountered. An access exception was recognized during the operation unit attempting to access the storage location, and there was an access exception for that location. Multiple operating units can be completed before an access exception is recognized. This applies when the merge mode is zero or one.

當操作以部分完成結束時,將可包括記錄之間的先前比較之歷史的內部狀態資料儲存至參數區塊之接續狀態緩衝區(CSB)欄位。隨後,當重新執行指令時,出於重新繼續操作之目的,可將CSB之內容載入至實施方案中且可在操作重新繼續時參考歷史。此在合併模式為零或一時適用。When the operation ends with partial completion, the internal state data, which can include the history of the previous comparison between the records, is stored in the CSB field of the parameter block. Subsequently, when the instruction is re-executed, for the purpose of resuming the operation, the contents of the CSB can be loaded into the implementation and the history can be referred to when the operation resumes. This applies when the merge mode is zero or one.

當來自作用中輸入清單之記錄已排序且儲存至第一運算元時,發生正常完成。When the records from the active input list are sorted and stored in the first operand, normal completion occurs.

在一個實施例中,當操作由於正常完成而結束時,以下情況發生:In one embodiment, when the operation ends due to normal completion, the following occurs:

*   分別更新通用暫存器R1 及R1 +1中之位址及長度。* Respectively update the address and length in the general registers R 1 and R 1 +1.

*   當MM為零時,分別更新通用暫存器R2 及R2 +1中之位址及長度。* When MM is zero, update the address and length in the general registers R 2 and R 2 +1 respectively.

*   對於在作用中狀態下之輸入清單,更新輸入listN位址欄位及輸入listN長度欄位。* For the input list in the active state, update the input listN address field and input listN length field.

*   設定模型版本號碼。* Set the model version number.

*   將接續旗標設定為零。* Set the connection flag to zero.

*   將空輸入清單旗標設定為零。* Set the empty input list flag to zero.

*   將空輸入清單編號設定為零。* Set the empty input list number to zero.

*   將不完整輸入清單旗標設定為零。* Set the incomplete input list flag to zero.

*   將不完整輸入清單編號設定為零。* Set the incomplete input list number to zero.

*   設定條件碼0。* Set condition code 0.

位址及長度之形成及更新取決於定址模式。The formation and update of the address and length depend on the addressing mode.

當正常完成發生時,在操作結束之後,未定義參數區塊之CSB欄位。When normal completion occurs, the CSB field of the parameter block is undefined after the operation is completed.

在一個實施例中,當已處理CPU判定數目個位元組時,操作結束且以下情況發生:In one embodiment, when the processed CPU determines the number of bytes, the operation ends and the following occurs:

*   分別更新通用暫存器R1 及R1 +1中之位址及長度。* Respectively update the address and length in the general registers R 1 and R 1 +1.

*   當MM為零時,分別更新通用暫存器R2 及R2 +1中之位址及長度。* When MM is zero, update the address and length in the general registers R 2 and R 2 +1 respectively.

*   對於在作用中狀態下之輸入清單,更新輸入listN位址欄位及輸入listN長度欄位。* For the input list in the active state, update the input listN address field and input listN length field.

*   設定模型版本號碼。* Set the model version number.

*   將接續旗標設定為壹。* Set the connection flag to one.

*   當MM為零且一或多個記錄在指令執行期間已置放於第一運算元位置處時,將金鑰值儲存至接續記錄重新呼叫緩衝區。* When MM is zero and one or more records have been placed at the position of the first operand during the execution of the command, store the key value in the connection record and call the buffer again.

*   更新接續狀態緩衝區。* Update the connection status buffer.

*   將空輸入清單旗標設定為零。* Set the empty input list flag to zero.

*   將空輸入清單編號設定為零。* Set the empty input list number to zero.

*   將不完整輸入清單旗標設定為零。* Set the incomplete input list flag to zero.

*   將不完整輸入清單編號設定為零。* Set the incomplete input list number to zero.

*   設定條件碼3。* Set condition code 3.

位址及長度之形成及更新取決於定址模式。The formation and update of the address and length depend on the addressing mode.

位元組之CPU判定數目取決於模型,且每當指令執行時可為不同數目。位元組之CPU判定數目通常為非零。儘管此數目可為零且呈現為無進度狀況,但CPU防止此無進度狀況之無限再發生。The number of CPU decisions for bytes depends on the model, and can be a different number each time an instruction is executed. The CPU determination number of bytes is usually non-zero. Although this number may be zero and appear as a non-progressive condition, the CPU prevents the infinite recurrence of this non-progressive condition.

在指令以例如設定條件碼3結束之後,吾人預期,程式並不修改指令之任何輸入或輸出規格且分支回以重新執行指令從而重新繼續操作。After the instruction ends with, for example, setting condition code 3, we expect that the program does not modify any input or output specifications of the instruction and branches back to re-execute the instruction to resume the operation.

在一個實施例中,當空輸入清單控制項(EILCL)之位元0為壹且輸入list0之長度在操作期間變為零且正常完成不適用時,操作結束且以下情況發生:In one embodiment, when bit 0 of the empty input list control (EILCL) is one and the length of the input list0 becomes zero during the operation and normal completion is not applicable, the operation ends and the following occurs:

*   分別更新通用暫存器R1 及R1 +1中之位址及長度。* Respectively update the address and length in the general registers R 1 and R 1 +1.

*   當MM為零時,分別更新通用暫存器R2 及R2 +1中之位址及長度。* When MM is zero, update the address and length in the general registers R 2 and R 2 +1 respectively.

*   對於在作用中狀態下之輸入清單,更新輸入listN位址欄位及輸入listN長度欄位。* For the input list in the active state, update the input listN address field and input listN length field.

*   設定模型版本號碼。* Set the model version number.

*   將接續旗標設定為壹。* Set the connection flag to one.

*   當EILCL為10二進位且MM為零時,可將金鑰值儲存至接續記錄重新呼叫緩衝區。當EILCL為11二進位且MM為零時,可將金鑰值儲存至接續記錄重新呼叫緩衝區。在任一狀況下,一或多個記錄在指令執行期間已置放於第一運算元位置處。* When EILCL is 10 binary and MM is zero, the key value can be stored in the connection record to re-call the buffer. When EILCL is 11 binary and MM is zero, the key value can be stored in the connection record to recall the buffer. In either case, one or more records have been placed at the first operand location during execution of the instruction.

*   更新接續狀態緩衝區。* Update the connection status buffer.

*   設定空輸入清單旗標(參看圖8,其描繪操作結束時之各種參數區塊欄位)。* Set an empty input list flag (see Figure 8 which depicts various parameter block fields at the end of the operation).

*   設定空輸入清單編號(參看圖8)。* Set an empty input list number (see Figure 8).

*   將不完整輸入清單旗標設定為零。* Set the incomplete input list flag to zero.

*   將不完整輸入清單編號設定為零。* Set the incomplete input list number to zero.

*   設定條件碼2。* Set condition code 2.

位址及長度之形成及更新取決於定址模式。The formation and update of the address and length depend on the addressing mode.

在一個實施例中,當空輸入清單控制項(EILCL)之位元1為壹且除輸入list0以外之作用中輸入清單的長度在操作期間變為零且正常完成不適用時,操作結束且以下情況發生:In one embodiment, when bit 1 of the empty input list control (EILCL) is one and the length of the input list during the operation other than input list0 becomes zero during the operation and normal completion is not applicable, the operation ends and the following conditions occur:

*   分別更新通用暫存器R1 及R1 +1中之位址及長度。* Respectively update the address and length in the general registers R 1 and R 1 +1.

*   當MM為零時,分別更新通用暫存器R2 及R2 +1中之位址及長度。* When MM is zero, update the address and length in the general registers R 2 and R 2 +1 respectively.

*   對於在作用中狀態下之輸入清單,更新輸入listN位址欄位及輸入listN長度欄位。* For the input list in the active state, update the input listN address field and input listN length field.

*   設定模型版本號碼。* Set the model version number.

*   將接續旗標設定為壹。* Set the connection flag to one.

*   當EILCL為01二進位且MM為零時,可將金鑰值儲存至接續記錄重新呼叫緩衝區。當EILCL為11二進位且MM為零時,可將金鑰值儲存至接續記錄重新呼叫緩衝區。在任一狀況下,一或多個記錄在指令執行期間已置放於第一運算元位置處。* When EILCL is 01 binary and MM is zero, the key value can be stored in the connection record to re-call the buffer. When EILCL is 11 binary and MM is zero, the key value can be stored in the connection record to recall the buffer. In either case, one or more records have been placed at the first operand location during execution of the instruction.

*   更新接續狀態緩衝區。* Update the connection status buffer.

*   設定空輸入清單旗標(參看圖8)。* Set the empty input list flag (see Figure 8).

*   設定空輸入清單編號(參看圖8)。* Set an empty input list number (see Figure 8).

*   將不完整輸入清單旗標設定為零。* Set the incomplete input list flag to zero.

*   將不完整輸入清單編號設定為零。* Set the incomplete input list number to zero.

*   設定條件碼2。* Set condition code 2.

位址及長度之形成及更新取決於定址模式。The formation and update of the address and length depend on the addressing mode.

在一個實施例中,當遇到在作用中狀態下之不完整輸入清單時,操作結束且以下情況發生:In one embodiment, when an incomplete input list is encountered in the active state, the operation ends and the following occurs:

*   分別更新通用暫存器R1 及R1 +1中之位址及長度。* Respectively update the address and length in the general registers R 1 and R 1 +1.

*   當MM為零時,分別更新通用暫存器R2 及R2 +1中之位址及長度。* When MM is zero, update the address and length in the general registers R 2 and R 2 +1 respectively.

*   對於在作用中狀態下之輸入清單,更新輸入listN位址欄位及輸入listN長度欄位。* For the input list in the active state, update the input listN address field and input listN length field.

*   設定模型版本號碼。* Set the model version number.

*   將接續旗標設定為壹。* Set the connection flag to one.

*   當MM為零且一或多個記錄在指令執行期間已置放於第一運算元位置處時,將金鑰值儲存至接續記錄重新呼叫緩衝區。* When MM is zero and one or more records have been placed at the position of the first operand during the execution of the command, store the key value in the connection record and call the buffer again.

*   更新接續狀態緩衝區。* Update the connection status buffer.

*   將空輸入清單旗標設定為零。* Set the empty input list flag to zero.

*   將空輸入清單編號設定為零。* Set the empty input list number to zero.

*   將不完整輸入清單旗標(IILF)設定為壹。* Set the Incomplete Input List Flag (IILF) to one.

*   將遇到之不完整輸入清單的輸入清單編號置放於參數區塊之不完整輸入清單編號(IILN)欄位中。* Place the input list number of the incomplete input list encountered in the IILN field of the parameter block.

*   設定條件碼2。* Set condition code 2.

位址及長度之形成及更新取決於定址模式。The formation and update of the address and length depend on the addressing mode.

在一個實施例中,當第一運算元之長度不足以儲存另一記錄時,操作結束且發生以下情況:In one embodiment, when the length of the first operand is insufficient to store another record, the operation ends and the following occurs:

*   分別更新通用暫存器R1 及R1 +1中之位址及長度。* Respectively update the address and length in the general registers R 1 and R 1 +1.

*   當MM為零時,分別更新通用暫存器R2 及R2 +1中之位址及長度。* When MM is zero, update the address and length in the general registers R 2 and R 2 +1 respectively.

*   對於在作用中狀態下之輸入清單,更新輸入listN位址欄位及輸入listN長度欄位。* For the input list in the active state, update the input listN address field and input listN length field.

*   設定模型版本號碼。* Set the model version number.

*   將接續旗標設定為壹。* Set the connection flag to one.

*   當MM為零且一或多個記錄在指令執行期間已置放於第一運算元位置處時,可將金鑰值儲存至接續記錄重新呼叫緩衝區。* When MM is zero and one or more records have been placed at the position of the first operand during the execution of the command, the key value can be stored in the connection record to recall the buffer.

*   更新接續狀態緩衝區。* Update the connection status buffer.

*   將空輸入清單旗標設定為零。* Set the empty input list flag to zero.

*   將空輸入清單編號設定為零。* Set the empty input list number to zero.

*   將不完整輸入清單旗標設定為零。* Set the incomplete input list flag to zero.

*   將不完整輸入清單編號設定為零。* Set the incomplete input list number to zero.

*   設定條件碼1。* Set condition code 1.

位址及長度之形成及更新取決於定址模式。The formation and update of the address and length depend on the addressing mode.

在一個實施例中,當合併模式(MM)為零且第二運算元之長度小於16時,操作結束且發生以下情況:In one embodiment, when the merge mode (MM) is zero and the length of the second operand is less than 16, the operation ends and the following occurs:

*   分別更新通用暫存器R1 及R1 +1中之位址及長度。* Respectively update the address and length in the general registers R 1 and R 1 +1.

*   分別更新通用暫存器R2 及R2 +1中之位址及長度。* Update the address and length in the general registers R 2 and R 2 +1 respectively.

*   對於在作用中狀態下之輸入清單,更新輸入listN位址欄位及輸入listN長度欄位。* For the input list in the active state, update the input listN address field and input listN length field.

*   設定模型版本號碼。* Set the model version number.

*   將接續旗標設定為壹。* Set the connection flag to one.

*   當一或多個記錄在指令執行期間已置放於第一運算元位置處時,可將金鑰值儲存至接續記錄重新呼叫緩衝區。* When one or more records have been placed at the position of the first operand during the execution of the command, the key value can be stored in the connection record to re-call the buffer.

*   更新接續狀態緩衝區。* Update the connection status buffer.

*   將空輸入清單旗標設定為零。* Set the empty input list flag to zero.

*   將空輸入清單編號設定為零。* Set the empty input list number to zero.

*   將不完整輸入清單旗標設定為零。* Set the incomplete input list flag to zero.

*   將不完整輸入清單編號設定為零。* Set the incomplete input list number to zero.

*   設定條件碼1。* Set condition code 1.

位址及長度之形成及更新取決於定址模式。The formation and update of the address and length depend on the addressing mode.

當指令執行以完成結束(不以抑制、設為空值或終止結束)且正常完成未發生時,操作結束條件被稱作部分完成。When the instruction execution ends with completion (not with suppression, set to null, or with termination) and normal completion does not occur, the operation end condition is called partial completion.

在適用時,對於第一運算元位置、第二運算元位置、接續記錄重新呼叫緩衝區及所儲存之參數區塊的部分,辨識到PER儲存器更改事件。當辨識到PER儲存器更改事件時,在報告該事件之前,將少於4K個額外位元組儲存至與所指明之PER儲存器區域相交的運算元位置。When applicable, for the part of the first operand position, the second operand position, the connection record recall buffer and the stored parameter block, the PER memory change event is recognized. When a PER memory change event is recognized, before reporting the event, less than 4K extra bytes are stored to the operand position that intersects the specified PER memory area.

在適用時,對於參數區塊、第一運算元位置及第二運算元位置,辨識到PER零位址偵測事件。零位址偵測不適用於在參數區塊中指定之輸入清單位址及接續記錄重新呼叫緩衝區起點。When applicable, PER zero address detection events are identified for the parameter block, the first operand position, and the second operand position. Zero address detection does not apply to the input list address and connection record specified in the parameter block to call the buffer starting point again.

關於適用於SORTL-SFLR函式之其他條件的實例之描述,參考下文其他條件。For a description of examples of other conditions applicable to the SORTL-SFLR function, please refer to the other conditions below.

當指令以條件碼1結束時,程式可在適當時修改第一運算元位址、第一運算元長度、第二運算元位址、第二運算元長度、任何作用中輸入清單位址及任何作用中輸入清單長度,且隨後重新繼續操作。When the command ends with condition code 1, the program can modify the first operand address, the first operand length, the second operand address, the second operand length, any active input list address and any when appropriate Enter the length of the list while it is active, and then resume the operation again.

當指令以條件碼2結束、IILF等於零且EILF等於零時,程式可在適當時修改第一運算元位址、第一運算元長度、第二運算元位址、第二運算元長度、任何作用中輸入清單位址及任何作用中輸入清單長度,且隨後重新繼續操作。When the instruction ends with condition code 2, IILF is equal to zero and EILF is equal to zero, the program can modify the first operand address, first operand length, second operand address, second operand length, any action as appropriate Enter the list address and any active input list length, and then resume the operation again.

當指令以條件碼2結束且EILF等於壹時,程式可在適當時修改由EILN指定之輸入清單的輸入清單位址及長度,且隨後重新繼續操作。在此狀況下,程式亦可在合併模式(MM)為壹時修改第一運算元位址及第一運算元長度。When the command ends with condition code 2 and EILF is equal to one, the program can modify the input list address and length of the input list specified by EILN as appropriate, and then resume the operation again. In this case, the program can also modify the first operand address and the first operand length when the merge mode (MM) is one.

當指令以條件碼2結束且IILF等於壹時,程式可在適當時修改由IILN指定之輸入清單的輸入清單位址及長度,且隨後重新繼續操作。在此狀況下,程式亦可在合併模式(MM)為壹時修改第一運算元位址及第一運算元長度。When the command ends with condition code 2 and IILF is equal to one, the program can modify the input list address and length of the input list specified by IILN as appropriate, and then resume the operation again. In this case, the program can also modify the first operand address and the first operand length when the merge mode (MM) is one.

當指令以條件碼3結束時且在重新執行指令以重新繼續操作之前,程式修改任何作用中輸入清單位址或長度、第一運算元位址或長度或第二運算元位址或長度,結果為不可預測的。When the command ends with condition code 3 and before re-executing the command to resume the operation, the program modifies any active input list address or length, first operand address or length or second operand address or length, the result As unpredictable.

函式碼Function code 22 : SORTL-SVLR (SORTL-SVLR ( 排序可變長度記錄Sort variable length records ))

SORTL-SVLR函式與SORTL-SFLR函式相同地操作,惟以下情況除外:The SORTL-SVLR function operates the same as the SORTL-SFLR function, except for the following cases:

*   舉例而言,如圖9中所展示,記錄包括固定長度金鑰900、8位元組有效負載長度(PL) 902及可變長度有效負載904。因此,記錄具有可變長度。* For example, as shown in FIG. 9, the record includes a fixed-length key 900, an 8-byte payload length (PL) 902, and a variable-length payload 904. Therefore, the record has a variable length.

*   忽略用於SORTL-SVLR函式之參數區塊的位元組14至15。* Ignore bytes 14 to 15 of the parameter block used in the SORTL-SVLR function.

*   每一記錄之有效負載長度欄位的最低有效的例如2個位元組含有指定同一記錄中之有效負載的以位元組計之長度的無正負號二進位整數。零之有效負載長度為有效的。在一個實例中,有效負載長度將為例如8之倍數;否則,辨識到一般運算元資料例外狀況。有效負載長度欄位之最高有效的6個位元組(作為一實例)被保留且應含有零;否則,程式在未來可能無法相容地操作。在一個實例中,金鑰長度八與有效負載長度之總和不大於例如4096;否則,辨識到一般運算元資料例外狀況。當由於不適當的有效負載長度而辨識到一般運算元資料例外狀況時,對應於遇到例外狀況之作用中輸入清單的輸入清單位址指定錯誤記錄之最左位元組的邏輯位址。當將可變長度記錄儲存至第一運算元位置時,不修改有效負載長度欄位之保留位元組。* The least significant, for example, 2 bytes in the payload length field of each record contains unsigned integers that specify the length in bytes of the payload in the same record. The payload length of zero is valid. In one example, the payload length will be, for example, a multiple of 8; otherwise, a general arithmetic metadata exception is recognized. The most significant 6 bytes of the payload length field (as an example) are reserved and should contain zero; otherwise, the program may not be compatible in the future. In one example, the sum of the key length eight and the payload length is not greater than, for example, 4096; otherwise, an exception to the general operation metadata is recognized. When an exception condition of a general operand data is recognized due to an inappropriate payload length, the input list address corresponding to the input list in which the exception condition is encountered specifies the logical address of the leftmost byte of the error record. When storing variable-length records to the first operand position, the reserved bytes of the payload length field are not modified.

*   在僅嘗試參考來自輸入清單長度大於金鑰大小且小於記錄大小之輸入清單的記錄之金鑰的操作單元期間,可能不會辨識到不完整輸入清單。在此狀況下,將在嘗試將來自不完整輸入清單之記錄儲存至第一運算元位置時辨識到不完整輸入清單。* During the operation unit that only attempts to refer to the key of the record from the input list whose input list length is greater than the key size and smaller than the record size, the incomplete input list may not be recognized. In this situation, the incomplete input list will be recognized when attempting to save the record from the incomplete input list to the first operand location.

用於SORTL-SVLR函式之參數區塊與用於SORTL-SFLR函式之參數區塊相同,惟位元組14至15除外,如上文所指示。The parameter block used in the SORTL-SVLR function is the same as the parameter block used in the SORTL-SFLR function, except for bytes 14 to 15, as indicated above.

關於適用於SORTL-SVLR函式之其他條件的描述,參考下文其他條件。For the description of other conditions applicable to the SORTL-SVLR function, please refer to the other conditions below.

特殊條件Special conditions

在一個實施例中,當嘗試執行排序清單時,辨識到規格例外狀況,且以下情況中之任一者適用:In one embodiment, when attempting to perform a sorted list, specification exceptions are identified, and any of the following applies:

*   通用暫存器0之位元57至63指明未指派或未安裝函式碼。* Bits 57 to 63 of general register 0 indicate that the function code is not assigned or installed.

*   R1 欄位指明奇數編號暫存器或通用暫存器0。* The R 1 column indicates the odd-numbered register or general-purpose register 0.

*   R2 欄位指明奇數編號暫存器或通用暫存器0。此在合併模式(MM)為零或一時適用。* The R 2 column indicates the odd-numbered register or general-purpose register 0. This applies when the merge mode (MM) is zero or one.

*   參數區塊未在雙字邊界上指明。* The parameter block is not indicated on the double-word boundary.

*   指定SORTL-SFLR函式或SORTL-SVLR函式,且第一運算元未在雙字邊界上指明。* Specify SORTL-SFLR function or SORTL-SVLR function, and the first operand is not specified on the double word boundary.

*   指定SORTL-SFLR函式或SORTL-SVLR函式,且當MM為零時,第二運算元未在雙字邊界上指明。* Specify the SORTL-SFLR function or SORTL-SVLR function, and when MM is zero, the second operand is not specified on the double word boundary.

在一個實施例中,當嘗試執行排序清單時,辨識到一般運算元資料例外狀況,且以下情況中之任一者適用:In one embodiment, when an attempt is made to perform a sorted list, an exception to the general operand data is recognized, and any of the following applies:

*   指定SORTL-SFLR或SORT-SVLR函式,且參數區塊版本號碼之位元0至7中無位元或多個位元含有值壹,在此狀況下,抑制操作。* Specify the SORTL-SFLR or SORT-SVLR function, and no bit or multiple bits in the bit number 0 to 7 of the parameter block version number contain the value one. In this case, the operation is suppressed.

*   指定SORTL-SFLR或SORTL-SVLR函式,且模型不支援如由參數區塊版本號碼指定之參數區塊的大小或格式,在此狀況下,抑制操作。* The SORTL-SFLR or SORTL-SVLR function is specified, and the model does not support the size or format of the parameter block as specified by the parameter block version number. In this case, the operation is suppressed.

*   指定SORTL-SFLR或SORTL-SVLR函式,且記錄金鑰長度指定零之金鑰大小、並非8之倍數的金鑰大小或大於4096之金鑰大小,在此狀況下,抑制操作。* Specify the SORTL-SFLR or SORTL-SVLR function, and the record key length specifies a key size of zero, a key size that is not a multiple of 8, or a key size greater than 4096. In this case, the operation is suppressed.

*   指定SORTL-SFLR函式,且記錄有效負載長度指定並非8之倍數的有效負載大小,或在相加至金鑰大小時大於4096的有效負載大小,在此狀況下,抑制操作。* Specify the SORTL-SFLR function, and the record payload length specifies a payload size that is not a multiple of 8 or a payload size greater than 4096 when added to the key size. In this case, the operation is suppressed.

*   指定SORTL-SVLR函式,且記錄有效負載長度指定並非8之倍數的有效負載大小,或在相加至金鑰大小時大於4088的有效負載大小,在此狀況下,無論操作被抑制抑或終止,其皆為模型相依的。* Specify the SORTL-SVLR function, and the record payload length specifies a payload size that is not a multiple of 8, or a payload size greater than 4088 when added to the key size. In this case, whether the operation is suppressed or terminated , Which are all model dependent.

*   指定SORTL-SFLR或SORTL-SVLR函式,且作用中輸入清單計數碼(AILCC)之值加上一大於由參數區塊描述之輸入清單之數目,在此狀況下,抑制操作。* Specify the SORTL-SFLR or SORTL-SVLR function, and the value of the input input list count code (AILCC) plus one greater than the number of input lists described by the parameter block. In this case, the operation is suppressed.

*   指定SORTL-SFLR或SORTL-SVLR函式,且對應於作用中輸入清單之輸入清單位址未在雙字邊界上指明,在此狀況下,抑制操作。* Specify the SORTL-SFLR or SORTL-SVLR function, and the address of the input list corresponding to the active input list is not specified on the double-word boundary. In this case, the operation is suppressed.

其他條件Other conditions

在一個實施例中,以下條件適用:In one embodiment, the following conditions apply:

指令執行為可中斷的。當中斷發生時,更新通用暫存器R1 及R2 中之位址、通用暫存器R1 +1及R2 +1中之長度以及參數區塊之特定欄位,使得指令在經重新執行時在中斷點處重新繼續。Instruction execution is interruptible. When an interrupt occurs, update the general register R 1 and R 2 in the addresses, the specified field. 1 general register R + 1 + 1 and R 2 in the length of the block and a parameter, such that the instructions in the re The execution resumes at the break point.

對於在由第一運算元位址指明之位置右側的大於4K個位元組之位置,未辨識到存取例外狀況。對於在由輸入清單位址指明之位置右側的大於4K個位元組之位置,未辨識到存取例外狀況。For positions greater than 4K bytes to the right of the position indicated by the first operand address, no access exception is recognized. For positions greater than 4K bytes to the right of the position indicated by the input list address, no access exception is recognized.

若由於針對第一運算元、第二運算元或任何輸入清單而辨識到存取例外狀況,則結果為辨識到例外狀況或設定條件碼3。若設定條件碼3,則假定例外狀況條件仍存在,當再次執行指令以繼續處理相同運算元時將辨識到例外狀況。If the access exception is recognized due to the first operand, the second operand, or any input list, the result is that the exception is recognized or the condition code 3 is set. If condition code 3 is set, it is assumed that the exception condition still exists, and the exception condition will be recognized when the instruction is executed again to continue processing the same operand.

當記錄之金鑰跨越頁面邊界且對於兩個頁面均存在存取例外狀況條件時,可辨識到任一存取例外狀況。When the recorded key crosses the page boundary and there are access exception conditions for both pages, any access exception can be identified.

當對於在單一操作單元期間正被處理之多個金鑰,存在存取例外狀況條件時,可辨識到此等條件中之任一者。When there are access exception conditions for multiple keys being processed during a single operating unit, any of these conditions can be identified.

當參數區塊跨越頁面邊界且對於兩個頁面均存在存取例外狀況條件時,可辨識到最左頁面之存取例外狀況。When the parameter block crosses the page boundary and there are access exception conditions for both pages, the access exception of the leftmost page can be identified.

當操作以部分完成結束時,多達4K個位元組之資料可能已儲存於第一運算元內之位置處,該等位置在由經更新之第一運算元位址指明之位置處或在其右側。此類儲存在適用時導致設定改變位元,且在適用時辨識PER儲存器更改事件。當再次執行指令以繼續處理相同運算元時,將重複至此等位置之儲存。When the operation ends with partial completion, up to 4K bytes of data may have been stored at the location in the first operand, which is at or at the location specified by the updated first operand address To its right. Such storage causes the setting to change bits when applicable, and recognizes the PER memory change event when applicable. When the instruction is executed again to continue processing the same operand, it will be repeated to the storage of these locations.

如由此CPU、其他CPU及通道程式觀察到,對參數區塊、第一運算元、輸出清單描繪緩衝區及在作用中狀態下之輸入清單的參考可為多重存取參考,對此等儲存位置之存取未必為區塊並行的,且未定義此等存取或參考之順序。As observed by this CPU, other CPUs, and channel programs, the reference to the parameter block, the first operand, the output list drawing buffer, and the active input list can be multiple access references, which are stored The access to locations is not necessarily block-parallel, and the order of these accesses or references is not defined.

在一個實施例中,當指定函式為SORTL-SFLR或SORTL-SVLR時,結果為不可預測的且以下情況中之任一者適用:In one embodiment, when the specified function is SORTL-SFLR or SORTL-SVLR, the result is unpredictable and any of the following situations apply:

*    參數區塊與任何作用中輸入清單或第一運算元重疊。* The parameter block overlaps with any active input list or first operand.

*    任何作用中輸入清單與第一運算元重疊。* The input list overlaps the first operand in any function.

*    合併模式為零且參數區塊與第二運算元或接續記錄重新呼叫緩衝區重疊。* The merge mode is zero and the parameter block overlaps with the second operand or the call record buffer.

*    合併模式為零且任何作用中輸入清單與第二運算元或接續記錄重新呼叫緩衝區重疊。* The merge mode is zero and any active input list overlaps with the second operand or connection record re-call buffer.

*    合併模式為零且第一運算元與第二運算元或接續記錄重新呼叫緩衝區重疊。* The merge mode is zero and the first operand overlaps with the second operand or the connection record re-call buffer.

*    合併模式為零且第二運算元與接續記錄重新呼叫緩衝區重疊。* The merge mode is zero and the second operand overlaps with the re-call buffer of the connection record.

*    另一CPU或通道程式將記錄之金鑰儲存於輸入清單或接續記錄重新呼叫緩衝區中。* Another CPU or channel program stores the recorded key in the input list or the connection record and recalls the buffer.

實例所得條件碼:Condition code obtained by example:

0    正常完成0 Normal completion

1    第一運算元之長度小於記錄之大小,或合併模式為零且第二運算元之長度小於16 (亦即,第一運算元長度或第二運算元長度不足以繼續)1 The length of the first operand is less than the size of the record, or the merge mode is zero and the length of the second operand is less than 16 (that is, the length of the first operand or the length of the second operand is insufficient to continue)

2    遇到不完整輸入清單(IILF=1),或EILCL為非零,且輸入清單之長度在操作期間變為等於零(亦即,遇到不完整或空輸入清單)。2 An incomplete input list is encountered (IILF=1), or EILCL is non-zero, and the length of the input list becomes equal to zero during the operation (that is, an incomplete or empty input list is encountered).

3    已處理CPU判定量之資料(亦即,CPU判定完成)。3 The CPU judgment data has been processed (that is, the CPU judgment is completed).

程式例外狀況:Program exceptions:

*    存取(提取輸入清單;提取及儲存參數區塊及接續記錄重新呼叫緩衝區;儲存運算元1及2)* Access (extract input list; extract and store parameter blocks and connection records to call buffer again; store operands 1 and 2)

*    具有資料例外狀況碼(DXC) 0 (一般運算元)之資料* Data with data exception status code (DXC) 0 (general operand)

*    操作(若未安裝增強之排序設施)* Operation (if enhanced sorting facilities are not installed)

*    規格* Specifications

*    異動約束* Transactional constraints

下文展示排序清單指令之執行的優先順序。當存在具有開始於13之優先順序值的多個條件時,辨識到之條件為在操作繼續進行時首先遇到之條件。當重新繼續操作時(在開始執行指令時,接續旗標為壹),可使用金鑰之間的先前比較之歷史來代替最初存取在作用中且並非為空之輸入清單。結果,相較於在不使用先前比較之歷史時,在相同處理點可能不會遇到存取特定輸入清單之存取例外狀況。當處理可變長度記錄時,可在判定有效負載長度之前部分地評估隨記錄長度而變之條件,且在判定有效負載長度之後完全評估該等條件。結果,當判定條件在僅部分地評估要求之後而非在完全評估所有要求之後存在時,在此類條件當中觀察到之優先順序可不同。The following shows the priority order of the execution of sorted list instructions. When there are multiple conditions with a priority value starting at 13, the recognized condition is the first encountered when the operation continues. When the operation is resumed (the continuation flag is one at the beginning of the execution of the command), the history of previous comparisons between the keys can be used to replace the initial access to the active and not empty input list. As a result, access exceptions for accessing specific input lists may not be encountered at the same processing point compared to when the history of previous comparisons is not used. When processing variable length records, the conditions that vary with the record length can be partially evaluated before the payload length is determined, and these conditions are fully evaluated after the payload length is determined. As a result, when the judgment condition exists after only partially evaluating the requirements rather than after completely evaluating all the requirements, the order of priority observed among such conditions may be different.

執行優先順序(SORTL)Execution Priority (SORTL)

1.-6.   優先順序與一般狀況之程式中斷條件之優先順序相同的例外狀況。1.-6. Exceptions that have the same priority order as the program interruption conditions of the general condition.

7.A 第二指令半字之存取例外狀況。7.A Access exception for second instruction halfword.

7.B 操作例外狀況。7.B Operational exceptions.

7.C 異動約束。7.C Transaction constraints.

8.A 由於無效函式碼或無效暫存器編號之規格例外狀況。8.A Due to the exception of invalid function code or invalid register number specification.

8.B 由於第一運算元未在雙字邊界上指明之規格例外狀況。8.B Due to the exception of the specification of the first operand not specified on the double word boundary.

8.C 由於第一運算元未在雙字邊界上指明之規格例外狀況。8.C Exception due to the specification that the first operand is not specified on the double word boundary.

8.D 由於第二運算元未在雙字邊界上指明之規格例外狀況且合併模式為零。8.D Because the second operand does not specify an exception on the double word boundary and the merge mode is zero.

9.   存取參數區塊之位元組0至7的存取例外狀況。9. Access exceptions for bytes 0 to 7 of the access parameter block.

10. 由於參數區塊中之PBVN欄位的不受支援之值的一般運算元資料例外狀況。10. The exception for general operand data due to unsupported values in the PBVN field in the parameter block.

11.  存取參數區塊之除位元組0至7以外之位元組的存取例外狀況。11. Access exceptions for bytes other than bytes 0 to 7 in the access parameter block.

12. 由於參數區塊中之除PBVN以外的欄位之無效值的一般運算元資料例外狀況。12. Due to the exception of general operand data for invalid values in fields other than PBVN in the parameter block.

13.A   存取作用中輸入清單之存取例外狀況。13.A Access exceptions to the input list in the access role.

13.B   在合併模式為零時存取接續記錄重新呼叫緩衝區之存取例外狀況。13.B When the merge mode is zero, access to the connection record re-call buffer access exception.

13.C   存取第一運算元之存取例外狀況。13.C Access exception for access to the first operand.

13.D   在合併模式為零時存取第二運算元之存取例外狀況。13.D The access exception for accessing the second operand when the merge mode is zero.

13.E   由於不完整輸入清單之條件碼2。13.E The condition code 2 for the incomplete input list.

13.F   由於第一運算元之不足長度的條件碼1。13.F Condition code 1 due to the insufficient length of the first operand.

13.G   在合併模式為零時由於第二運算元之不足長度的條件碼1。13.G When the merge mode is zero, the condition code 1 due to the insufficient length of the second operand.

13.H   由於可變長度記錄之無效有效負載長度的一般運算元資料例外狀況。13.H An exception to the general operand data of invalid payload length for variable length records.

13.I    由於空輸入清單之條件碼2。13.I The condition code 2 for the empty input list.

14. 條件碼3。14. Condition code 3.

程式化備註。在一個實施例中:Stylized notes. In one embodiment:

1.   空輸入清單控制項(EILCL)之預期使用如下:1. The expected use of the empty input list control item (EILCL) is as follows:

EILCL(0:1)EILCL(0:1)

(二進位)   描述(Binary) description

00  在來自作用中輸入清單之記錄經排序(例如,來自所有作用中輸入清單之所有記錄)之後停止。00 Stop after the records from the active input list are sorted (for example, all records from all active input lists).

10  在輸入list0 (始終在作用中)變為空之後停止。10 Stop after input list0 (always active) becomes empty.

11   在任何作用中輸入清單變為空之後停止。11 In any role, the input list becomes empty and stops.

2.   當作用中輸入清單計數碼(AILCC)為零時,僅存在一個作用中輸入清單且儲存於第一運算元位置處之結果與自輸入list0提取之資料相同。2. When the active input list count code (AILCC) is zero, there is only one active input list and the result stored in the first operand position is the same as the data extracted from the input list0.

3.   實施分開指令及資料快取記憶體之模型可使用指令快取記憶體以實行對作用中輸入清單中之資料的儲存器運算元提取參考。3. Implement the model of separate instruction and data cache memory. You can use the instruction cache memory to implement the reference extraction of the memory operator of the data in the active input list.

4.   當程式預期多次調用合併模式等於零之排序清單時,作為處理大資料集之部分,程式將在一個實例中利用可用輸入清單且在該等輸入清單當中均勻地分割記錄。此減少在排序整個資料集時存取資料之次數。4. When the program expects to call the sorted list with merge mode equal to zero multiple times, as part of processing a large data set, the program will use the available input list in one instance and divide the records evenly among the input lists. This reduces the number of times data is accessed when sorting the entire data set.

5.   在合併模式等於零之排序清單以設定條件碼0結束且多個輸出清單描繪(OLD)處於第二運算元中之後,意欲以排序次序產生記錄之單一清單的程式將調用另一排序清單操作,其中輸入清單指定為來自先前排序清單調用之所得OLD。在此狀況下,在一個實例中,排序清單之第二調用指定等於壹的合併模式。5. After the sorting list with merge mode equal to zero ends with the set condition code 0 and multiple output list depictions (OLD) are in the second operand, the program that wants to generate a single list of records in sorting order will call another sorting list operation , Where the input list is specified as the OLD derived from the previous sort list call. In this case, in one instance, the second call to the sorted list specifies a merge mode equal to one.

類似地,在一個實施例中,在如所需或所要多次地調用合併模式等於零之排序清單以自大量任意次序記錄產生經排序清單之全集之後,在一個實例中,如所需或所要多次地調用合併模式等於壹之排序清單以產生單一經排序清單。Similarly, in one embodiment, after calling a sorted list with merge mode equal to zero as many times as needed or required to generate a complete set of sorted lists from a large number of arbitrary order records, in one instance, as many as needed or needed The sorted list whose merge mode is equal to one is called twice to generate a single sorted list.

6.  在一個實施例中,為了減少在將多個經排序清單以遞升排序次序(例如)合併成單一清單時存取每一記錄之次數,程式實行以下處理程序:6. In one embodiment, to reduce the number of times each record is accessed when merging multiple sorted lists in ascending sort order (for example) into a single list, the program implements the following processing procedure:

*   判定可用於排序清單之輸入清單的最大數目N。* Determine the maximum number N of input lists that can be used for sorting lists.

*   比較尚未合併至單一清單中之經排序清單的第一記錄之金鑰。選擇具有最低第一金鑰值之N個清單。* Compare the keys of the first record of the sorted list that has not been merged into a single list. Select the N lists with the lowest first key value.

*   執行排序清單,其合併模式(MM)等於壹,空輸入清單控制項(EILCL)等於10二進位,輸入list0僅指定具有選定N個清單之最高第一金鑰值的清單之第一記錄,且剩餘輸入清單指定其他N-1個選定清單。* Execute the sorted list, the merge mode (MM) is equal to one, the empty input list control item (EILCL) is equal to 10 binary, input list0 only specifies the first record of the list with the highest first key value of the selected N lists, And the remaining input list specifies other N-1 selected lists.

*   在排序清單以條件碼2結束、IILF等於零且EILF等於零之後,重複該處理程序。* After the sorting list ends with condition code 2, IILF is equal to zero and EILF is equal to zero, the process is repeated.

7.  在排序清單以設定條件碼1結束之後,程式實行以下動作,在一個實例中,在再次調用排序清單之前,重新繼續操作:7. After the sorting list ends with the setting condition code 1, the program performs the following actions. In one example, before calling the sorting list again, the operation is resumed:

*   若第一運算元長度小於正處理之記錄的最大記錄長度,則應在適當時更新第一運算元長度或第一運算元位址及長度。* If the length of the first operand is less than the maximum record length of the record being processed, the length of the first operand or the address and length of the first operand should be updated as appropriate.

*   若合併模式(MM)為零且第二運算元長度小於16,則應在適當時更新第二運算元長度或第二運算元位址及長度。* If the merge mode (MM) is zero and the length of the second operand is less than 16, the length of the second operand or the address and length of the second operand should be updated as appropriate.

*   若任何作用中輸入清單之長度等於零,則可更新對應的輸入清單位址及長度以指明待包括於排序操作中之記錄的另一清單。* If the length of any active input list is equal to zero, the address and length of the corresponding input list can be updated to indicate another list of records to be included in the sorting operation.

8.  在排序清單以設定條件碼2結束之後,程式實行以下動作,在一個實例中,在再次調用排序清單之前,重新繼續操作:8. After the sorting list ends with the set condition code 2, the program performs the following actions. In one example, before calling the sorting list again, the operation is resumed:

*   若不完整輸入清單旗標(IILF)為壹,則應在適當時更新由不完整輸入清單編號(IILN)識別之輸入清單的輸入清單長度或輸入清單位址及長度。* If the incomplete input list flag (IILF) is one, the input list length or input list address and length of the input list identified by the incomplete input list number (IILN) should be updated as appropriate.

*   若空輸入清單旗標(EILF)為壹,則應在適當時更新由空輸入清單編號(EILN)識別之輸入清單的輸入清單長度或輸入清單位址及長度。* If the empty input list flag (EILF) is one, the input list length or input list address and length of the input list identified by the empty input list number (EILN) should be updated as appropriate.

*   若IILF為零,EILF為零且輸入list0長度為零,則應在適當時更新輸入list0長度或輸入list0位址及長度。此外,可更新作用中輸入清單之輸入清單位址及長度,若僅存在最初由輸入list0指明之一個記錄且空輸入清單控制項(EILCL)為10二進位,則更新可為適當動作。* If IILF is zero, EILF is zero and the length of input list0 is zero, the length of input list0 or the address and length of list0 should be updated as appropriate. In addition, the input list address and length of the active input list can be updated. If there is only one record initially specified by input list0 and the empty input list control item (EILCL) is 10 binary, the update can be an appropriate action.

*   若合併模式(MM)為壹且第一運算元長度小於正處理之記錄的最大記錄長度,則應在適當時更新第一運算元長度或第一運算元位址及長度。* If the merge mode (MM) is one and the length of the first operand is less than the maximum record length of the record being processed, the length of the first operand or the address and length of the first operand should be updated as appropriate.

*   若MM為零且任一IILF為壹,或EILF為壹,則不應更新第一運算元位址及長度以及第二運算元位址及長度。* If MM is zero and any IILF is one, or EILF is one, then the address and length of the first operand and the address and length of the second operand should not be updated.

*   若MM為零,IILF為零,EILF為零且第一運算元長度小於正處理之記錄的最大記錄長度,則應在適當時更新第一運算元長度或第一運算元位址及長度。* If MM is zero, IILF is zero, EILF is zero and the length of the first operand is less than the maximum record length of the record being processed, the length of the first operand or the address and length of the first operand should be updated as appropriate.

*   若MM為零,IILF為零,EILF為零且第二運算元長度小於16,則應在適當時更新第二運算元長度或第二運算元位址及長度。* If MM is zero, IILF is zero, EILF is zero and the length of the second operand is less than 16, the length of the second operand or the address and length of the second operand should be updated as appropriate.

如本文中所描述,在一個態樣中,提供單一指令(例如,單一架構化機器指令,排序清單)以在通用處理器上實行排序及/或合併操作。在一個實例中,對資料庫實施排序及/或合併操作且在通用處理器上執行的程式能夠用單一指令替換基元指令之有效子集以實施操作。此指令為例如定義於指令集架構(ISA)中之硬體指令。結果,與排序及/或合併操作相關之程式的複雜度降低。另外,操作及因此處理器之效能得以改善。As described herein, in one aspect, a single instruction (eg, a single architected machine instruction, sorting list) is provided to perform sorting and/or merging operations on a general-purpose processor. In one example, a program that performs sorting and/or merging operations on a database and executes on a general-purpose processor can replace a valid subset of primitive instructions with a single instruction to implement the operation. This instruction is, for example, a hardware instruction defined in an instruction set architecture (ISA). As a result, the complexity of programs related to sorting and/or merging operations is reduced. In addition, the operation and therefore the performance of the processor are improved.

有利地,排序清單指令在通用處理器(例如,中央處理單元,在本文中被稱作處理器)而非諸如圖形處理單元(GPU)、資料庫引擎(DBE)或其他類型之專用處理器的專用處理器上執行。Advantageously, the sorted list instructions are on a general purpose processor (eg, a central processing unit, referred to herein as a processor) rather than a dedicated processor such as a graphics processing unit (GPU), database engine (DBE), or other types of dedicated processors Execution on a dedicated processor.

儘管各種欄位及暫存器經描述,但本發明之一或多個態樣可使用其他、額外或更少欄位或暫存器,或其他大小之欄位或暫存器等。許多變化係可能的。舉例而言,可使用隱含暫存器而非指令之明確指定之暫存器或欄位,及/或可使用明確指定之暫存器或欄位而非隱含暫存器或欄位。其他變化亦係可能的。Although various fields and registers are described, one, or more aspects of the invention may use other, additional or fewer fields or registers, or other sizes of fields or registers, etc. Many changes are possible. For example, implicit registers may be used instead of explicitly specified registers or fields of commands, and/or explicitly specified registers or fields may be used instead of implicit registers or fields. Other changes are also possible.

在一個實例中,排序清單指令對資料庫(例如,商業資料庫)之大量資料(諸如,百萬位元組或萬億位元組資料)起作用。因此,指令為可中斷的且處理可在中斷之處重新繼續。In one example, the sorted list command works on a large amount of data (such as megabyte or terabyte data) in a database (eg, a commercial database). Therefore, the instruction is interruptible and processing can resume where it was interrupted.

當指令中斷時,操作(例如,排序及/或合併)僅部分地完成。指令執行以將條件碼設定為向程式(例如,發出指令之程式)通知操作之部分完成的值結束。該程式可接著重新執行該指令以重新繼續處理。When the instruction is interrupted, the operation (eg, sorting and/or merging) is only partially completed. Command execution ends by setting the condition code to notify the program (for example, the program that issued the command) of the partially completed value of the operation. The program can then re-execute the instruction to resume processing.

在一個實施例中,該指令使用數個(例如,大量)執行循環以在產生結果之前藉由後設資料啟動處理器。每當執行或重新執行指令時,實行藉由後設資料啟動處理器。因此,根據本發明之態樣,儲存及使用先前產生之後設資料,使得在重新執行指令時不必再生先前產生之後設資料。In one embodiment, the instruction uses several (e.g., a large number) execution loops to start the processor with post data before generating the results. Whenever a command is executed or re-executed, the processor is started with the post data. Therefore, according to the aspect of the present invention, the previously generated meta data is stored and used so that it is not necessary to regenerate the previously generated meta data when the command is re-executed.

在一個實例中,後設資料包括處理器之內部狀態,包括例如關於輸入清單之資訊,諸如關於輸入清單之記錄之先前比較的資訊,以便判定待進行之後續比較。In one example, the post data includes the internal state of the processor, including, for example, information about the input list, such as information about previous comparisons of the records of the input list, in order to determine subsequent comparisons to be made.

處理器取得後設資料且將其儲存於由程式提供之位置中。接著,當在中斷之後重新執行指令時,自該位置取得後設資料且將其載入處理器中,而不使用任務再生後設資料。此節省產生用於操作之後設資料將需要的時間。The processor obtains the meta data and stores it in the location provided by the program. Then, when the instruction is re-executed after the interruption, the meta data is obtained from the location and loaded into the processor without using the task to regenerate the meta data. This saving generates the time it will take to set up the data after the operation.

參看圖10A至圖10B描述重新繼續操作之執行的一個實施例之其他細節。舉例而言,圖10A描繪與部分完成之指令相關聯的處理;且圖10B描繪與重新繼續部分完成指令之執行相關聯的處理。在此實例中,該指令為實行排序及/或合併之指令,諸如排序清單指令;然而,在其他實例中,其可為可中斷之其他指令。圖10A至圖10B之處理例如藉由處理器(例如,處理器102或204)實行。Other details of one embodiment of the execution of the resume operation will be described with reference to FIGS. 10A to 10B. For example, FIG. 10A depicts processing associated with partially completed instructions; and FIG. 10B depicts processing associated with resuming execution of partially completed instructions. In this example, the instruction is an instruction to perform sorting and/or merging, such as a sorting list instruction; however, in other examples, it may be other instructions that can be interrupted. The processing of FIGS. 10A to 10B is executed by a processor (for example, the processor 102 or 204).

最初參看圖10A,在處理器上執行且實行諸如排序及/或合併之操作的指令在完成操作之前終止(步驟1000)。基於部分完成,將接續指示符(例如,參數區塊360之接續旗標368)設定為例如壹,以指示部分完成(步驟1002)。另外,將處理器之內部狀態(諸如,對於排序或合併操作,關於輸入清單之記錄之先前比較的資訊)儲存於參數區塊中,例如儲存於接續狀態緩衝區390中(步驟1004)。Referring initially to FIG. 10A, instructions executed on the processor and performing operations such as sorting and/or merging terminate before completing the operation (step 1000). Based on the partial completion, the connection indicator (eg, the connection flag 368 of the parameter block 360) is set to, for example, one to indicate partial completion (step 1002). In addition, the internal state of the processor (such as, for sorting or merging operations, previously compared information about the records of the input list) is stored in the parameter block, for example, in the connection state buffer 390 (step 1004).

此後,參看圖10B,執行指令(例如,排序/合併指令) (步驟1050)。進行關於是否設定接續指示符以指示此為指令之重新執行的判定(詢問1052)。若接續指示符設定為指示重新繼續操作(步驟1053),則取得保存於例如接續狀態緩衝區390中之處理器的內部狀態(步驟1054)且將其載入於處理器內之一或多個選擇位置中(步驟1056)。接著在重新執行指令時使用所取得及載入之內部狀態資料(步驟1058)。舉例而言,替代重複先前執行之比較,內部狀態資料用以判定待進行之後續比較,藉此減少執行時間且改善效能。Thereafter, referring to FIG. 10B, an instruction (e.g., sort/merge instruction) is executed (step 1050). A determination is made as to whether to set a connection indicator to indicate that this is a re-execution of the instruction (inquiry 1052). If the connection indicator is set to instruct to resume the operation (step 1053), the internal state of the processor stored in the connection state buffer 390 is obtained (step 1054) and loaded into one or more of the processors Select the location (step 1056). Then use the acquired and loaded internal state data when re-executing the command (step 1058). For example, instead of repeating the previously performed comparison, the internal state data is used to determine the subsequent comparison to be performed, thereby reducing execution time and improving performance.

返回至詢問1052,若接續指示符未設定為指示重新執行,則在一個實例中,操作開始而非重新繼續(步驟1060)。因此,在一個實例中,操作在不使用例如來自記憶體中之參數區塊(例如,參數區塊360)之接續狀態緩衝區(CSB) 390的內部狀態資料的情況下繼續進行。Returning to query 1052, if the connection indicator is not set to indicate re-execution, in one example, the operation starts instead of resuming (step 1060). Therefore, in one example, the operation continues without using internal state data such as a connection state buffer (CSB) 390 from a parameter block (eg, parameter block 360) in memory.

本發明之一或多個態樣不可避免地與電腦技術相關且促進電腦內之處理,從而改善其效能。當在中斷之後重新執行指令時使用所取得及保存之後設資料而非再生後設資料,此節省時間且改善運算環境內之效能。One or more aspects of the invention are inevitably related to computer technology and facilitate processing within the computer, thereby improving its performance. When re-executing the command after the interruption, the acquired and saved post-configuration data is used instead of post-regeneration post-configuration data, which saves time and improves performance in the computing environment.

在一個特定實例中,重新執行之指令為排序清單指令,其為用以執行資料庫之大量資料庫記錄之排序及/或合併的單一架構化機器指令,其替換許多軟體指令,從而改善運算環境內之效能。此等經排序及/或合併之記錄可用於管理及/或使用大量資料之許多技術領域中,諸如用於電腦處理、醫療處理、安全領域等中。藉由提供排序/合併之最佳化,此等技術領域藉由減少獲得資訊及使用資訊之執行時間及降低儲存要求來改善。In a specific example, the re-executed instruction is a sorted list instruction, which is a single structured machine instruction used to perform sorting and/or merging of a large number of database records of a database, which replaces many software instructions to improve the computing environment Within the effectiveness. These sorted and/or merged records can be used in many technical fields for managing and/or using large amounts of data, such as computer processing, medical processing, security, etc. By providing optimization of sorting/merging, these technical fields are improved by reducing the execution time of obtaining and using information and reducing storage requirements.

參看圖11A至圖11B描述促進運算環境內之處理的一個實施例之其他細節,此係因為該運算環境與本發明之一或多個態樣有關。11A to 11B describe other details of an embodiment that facilitates processing within a computing environment because the computing environment is related to one or more aspects of the invention.

參看圖11A,在一個實施例中,進行在處理器上執行之指令之操作的處理在完成之前已中斷的判定(1100)。基於判定操作之處理已中斷,取得處理器之後設資料(1102)。該後設資料為例如處理器之當前後設資料(1104)。該後設資料儲存於與指令相關聯之位置中(1106),且用於重新執行指令以自其中斷之處重新繼續指令之前向處理(1108)。Referring to FIG. 11A, in one embodiment, it is determined that the processing of the operation of the instruction executed on the processor has been interrupted before completion (1100). Based on the determination that the processing of the operation has been interrupted, the processor meta data is obtained (1102). The metadata is, for example, the current metadata of the processor (1104). The meta data is stored in the location associated with the instruction (1106), and is used to re-execute the instruction to resume the forward processing of the instruction from where it was interrupted (1108).

在一個實例中,該指令為排序指令(1110),且該後設資料包括關於排序指令之一或多個輸入清單的資訊(1112)。舉例而言,該後設資料包括關於對一或多個輸入清單之記錄進行之先前比較的資訊以指示待進行之後續比較(1114)。舉例而言,在不重複先前比較之情況下,指示待進行之後續比較(1116)。In one example, the instruction is a sort instruction (1110), and the meta data includes information about one or more input lists of the sort instruction (1112). For example, the meta data includes information about previous comparisons made to the records of one or more input lists to indicate subsequent comparisons to be made (1114). For example, without repeating the previous comparison, the subsequent comparison to be made is indicated (1116).

在一個實例中,該判定包括檢查基於指令之終止而設定的條件碼,設定為選擇值之條件碼指示指令之部分完成(1118)。In one example, the determination includes checking the condition code set based on the termination of the instruction, and the condition code set to the selected value indicates partial completion of the instruction (1118).

作為一實例,參看圖11B,該後設資料儲存之位置為記憶體中由指令指明之參數區塊(1120)。記憶體中之參數區塊的該位置由例如指令之隱含暫存器的內容指明(1122)。在一個特定實例中,該參數區塊包括用以儲存後設資料之接續狀態緩衝區(1124),該後設資料包括處理器之內部狀態資料(1126)。另外,在一個實例中,該參數區塊包括用以指示操作之部分完成的接續指示符(1128)。As an example, referring to FIG. 11B, the location where the meta data is stored is the parameter block (1120) specified by the instruction in the memory. The location of the parameter block in the memory is indicated by the contents of the implied register of the instruction, for example (1122). In a specific example, the parameter block includes a connection status buffer (1124) for storing metadata, which includes internal status data of the processor (1126). In addition, in one example, the parameter block includes a connection indicator (1128) to indicate the partial completion of the operation.

在一個態樣中,在重新執行指令時使用後設資料進一步包括重新執行指令以重新繼續處理(1132);自該位置取得後設資料(1134);及將自該位置取得之後設資料載入至處理器之一或多個選擇位置中,其中將後設資料提供至處理器而不重複一或多個任務以產生後設資料(1136)。In one aspect, using the meta data when the command is re-executed further includes re-executing the command to resume processing (1132); acquiring the meta data from the location (1134); and loading the meta data from the location To one or more selected locations of the processor, where the metadata is provided to the processor without repeating one or more tasks to generate metadata (1136).

其他變化及實施例為可能的。Other changes and embodiments are possible.

本發明之態樣可由許多類型之運算環境使用。參看圖12A描述併有及使用本發明之一或多個態樣的運算環境之另一實施例。在此實例中,運算環境10包括例如原生中央處理單元(CPU) 12、記憶體14及一或多個輸入/輸出裝置及/或介面16,前述各者經由例如一或多個匯流排18及/或其他連接件而彼此耦接。作為實例,運算環境10可包括:由紐約阿蒙克市之國際商業機器公司供應之PowerPC® 處理器;由加州帕洛阿爾托之惠普公司供應的具有因特爾安藤II處理器之HP Superdome;及/或基於由國際商業機器公司、惠普公司、因特爾公司、甲骨文公司或其他公司供應之架構的其他機器。IBM、z/Architecture、IBM Z、z/OS、PR/SM及PowerPC為國際商業機器公司在至少一個司法管轄區中之商標或註冊商標。因特爾及安藤為因特爾公司或其子公司在美國及其他國家中之商標或註冊商標。The aspect of the present invention can be used in many types of computing environments. Referring to FIG. 12A, another embodiment of a computing environment in which one or more aspects of the present invention are described and used. In this example, the computing environment 10 includes, for example, a native central processing unit (CPU) 12, memory 14, and one or more input/output devices and/or interfaces 16, each of which is via, for example, one or more bus bars 18 and And/or other connectors are coupled to each other. As an example, the computing environment 10 may include: PowerPC ® processor supplied by International Business Machines Corporation of Armonk, New York; HP Superdome with Intel Ando II processor supplied by Hewlett-Packard Company of Palo Alto, California; And/or other machines based on architectures supplied by International Business Machines Corporation, Hewlett-Packard Company, Intel Corporation, Oracle Corporation or others. IBM, z/Architecture, IBM Z, z/OS, PR/SM and PowerPC are trademarks or registered trademarks of International Business Machines Corporation in at least one jurisdiction. Intel and Ando are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

原生中央處理單元12包括一或多個原生暫存器20,諸如在環境內之處理期間使用的一或多個通用暫存器及/或一或多個專用暫存器。此等暫存器包括表示在任何特定時間點之環境狀態的資訊。The native central processing unit 12 includes one or more native registers 20, such as one or more general-purpose registers and/or one or more dedicated registers used during processing within the environment. These registers include information indicating the state of the environment at any particular point in time.

此外,原生中央處理單元12執行儲存於記憶體14中之指令及程式碼。在一個特定實例中,中央處理單元執行儲存於記憶體14中之仿真器程式碼22。此程式碼使得在一個架構中組態之運算環境能夠仿真另一架構。舉例而言,仿真器程式碼22允許基於除z/Architecture硬體架構以外之架構的機器(諸如,PowerPC處理器、HP Superdome伺服器或其他者)仿真z/Architecture硬體架構且執行基於z/Architecture硬體架構開發之軟體及指令。In addition, the native central processing unit 12 executes instructions and code stored in the memory 14. In a specific example, the central processing unit executes the emulator code 22 stored in the memory 14. This code enables the computing environment configured in one architecture to simulate another architecture. For example, the emulator code 22 allows machines based on architectures other than the z/Architecture hardware architecture (such as PowerPC processors, HP Superdome servers, or others) to emulate the z/Architecture hardware architecture and execute z/Architecture-based hardware architectures. Architecture hardware development software and instructions.

參看圖12B描述與仿真器程式碼22有關之其他細節。儲存於記憶體14中之客體指令30包含經開發以在除原生CPU 12之架構以外之架構中執行的軟體指令(例如,與機器指令相關)。舉例而言,客體指令30可已經設計以在基於z/Architecture硬體架構之處理器上執行,但替代地,在可為例如因特爾安藤II處理器之原生CPU 12上仿真。在一個實例中,仿真器程式碼22包括指令提取常式32,以自記憶體14獲得一或多個客體指令30且視情況提供對所獲得指令之本端緩衝。該仿真器程式碼亦包括指令轉譯常式34,以判定已獲得之客體指令的類型且將該客體指令轉譯成一或多個對應的原生指令36。此轉譯包括例如識別待由客體指令執行之函式及選取原生指令以執行彼函式。12B describes other details related to the emulator code 22. The guest instructions 30 stored in the memory 14 include software instructions (eg, related to machine instructions) that have been developed to execute in an architecture other than the architecture of the native CPU 12. For example, the guest instructions 30 may have been designed to execute on a processor based on the z/Architecture hardware architecture, but instead, be emulated on a native CPU 12 that may be an Intel Ando II processor, for example. In one example, the emulator code 22 includes an instruction fetch routine 32 to obtain one or more guest instructions 30 from the memory 14 and optionally provide local buffering of the obtained instructions. The emulator code also includes a command translation routine 34 to determine the type of object command that has been obtained and translate the object command into one or more corresponding native commands 36. This translation includes, for example, identifying the function to be executed by the object command and selecting the native command to execute the function.

另外,仿真器程式碼22包括仿真控制常式40以使得執行原生指令。仿真控制常式40可使原生CPU 12執行仿真一或多個先前所獲得之客體指令之原生指令的常式且在此執行完結時,將控制傳回至指令提取常式以仿真獲得下一客體指令或一組客體指令。原生指令36之執行可包括將資料自記憶體14載入至暫存器中;將資料自暫存器儲存回至記憶體;或執行某一類型之算術或邏輯運算,如由轉譯常式判定。In addition, the emulator code 22 includes an emulation control routine 40 so that native instructions are executed. The emulation control routine 40 enables the native CPU 12 to execute the emulation routine of the native instruction emulating one or more previously obtained object instructions and at the end of this execution, returns control to the instruction extraction routine to emulate the next object Instructions or a set of object instructions. The execution of the native command 36 may include loading data from the memory 14 into the register; storing the data from the register back to the memory; or performing a certain type of arithmetic or logical operation, as determined by the translation routine .

每一常式例如實施於軟體中,該軟體儲存於記憶體中且藉由原生中央處理單元12執行。在其他實例中,一或多個常式或操作實施於韌體、硬體、軟體或其某一組合中。可使用原生CPU之暫存器20或藉由使用記憶體14中之位置來仿真該仿真處理器之暫存器。在實施例中,客體指令30、原生指令36及仿真器程式碼22可駐留於同一記憶體中或可分配於不同記憶體裝置當中。Each routine is implemented in software, for example, which is stored in memory and executed by the native central processing unit 12. In other examples, one or more routines or operations are implemented in firmware, hardware, software, or some combination thereof. The register 20 of the native CPU can be used or the register of the emulated processor can be emulated by using the location in the memory 14. In an embodiment, the guest instruction 30, the native instruction 36, and the emulator code 22 may reside in the same memory or may be allocated in different memory devices.

上文所描述之運算環境僅為可使用之運算環境的實例。可使用其他環境,包括但不限於其他未分割環境、其他經分割環境及/或其他仿真環境;實施例不限於任何一種環境。The computing environment described above is only an example of a usable computing environment. Other environments may be used, including but not limited to other undivided environments, other divided environments, and/or other simulation environments; embodiments are not limited to any one environment.

每一運算環境能夠經組態以包括本發明之一或多個態樣。舉例而言,根據本發明之一或多個態樣,每一運算環境經組態以提供排序及/或合併。Each computing environment can be configured to include one or more aspects of the invention. For example, according to one or more aspects of the invention, each computing environment is configured to provide ordering and/or merging.

一或多個態樣可係關於雲端運算。One or more aspects may be related to cloud computing.

應理解,儘管本發明包括關於雲端運算之詳細描述,但本文中所敍述之教示的實施方案不限於雲端運算環境。更確切而言,本發明之實施例能夠結合現在已知或稍後開發之任何其他類型之運算環境來實施。It should be understood that although the present invention includes a detailed description of cloud computing, embodiments of the teachings described herein are not limited to cloud computing environments. Rather, embodiments of the present invention can be implemented in conjunction with any other type of computing environment now known or later developed.

雲端運算為用於使得能夠對可組態運算資源(例如,網路、網路頻寬、伺服器、處理、記憶體、儲存器、應用程式、虛擬機及服務)之共用集區進行便利之按需網路存取的服務遞送之模型,可組態運算資源可藉由最少的管理工作或與服務提供者之互動而快速地佈建及釋放。此雲端模型可包括至少五個特性、至少三個服務模型及至少四個部署模型。Cloud computing is used to facilitate a shared pool of configurable computing resources (e.g., network, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) On-demand network access service delivery model, configurable computing resources can be quickly deployed and released with minimal management or interaction with service providers. This cloud model may include at least five features, at least three service models, and at least four deployment models.

特性如下:The characteristics are as follows:

隨選自助服務:雲端消費者可視需要自動地單向佈建運算能力(諸如,伺服器時間及網路儲存器),而無需與服務提供者之人為互動。On-demand self-service: Cloud consumers can automatically provision computing capabilities in one direction (such as server time and network storage) as needed, without human interaction with service providers.

寬頻網路存取:可經由網路獲得能力及經由標準機制存取能力,該等標準機制藉由異質精簡型或複雜型用戶端平台(例如,行動電話、膝上型電腦及PDA)促進使用。Broadband network access: Capability is available through the network and access is provided through standard mechanisms that are facilitated by heterogeneous thin or complex client platforms (eg, mobile phones, laptops, and PDAs) .

資源集用:提供者之運算資源經集用以使用多租戶模型為多個消費者服務,其中根據需要動態指派及重新指派不同實體及虛擬資源。存在位置獨立性之意義,此係因為消費者通常不具有對所提供資源之準確位置的控制或瞭解,但可能夠在較高抽象層級(例如,國家、州或資料中心)指定位置。Resource collection: The computing resources of the provider are used to serve multiple consumers using a multi-tenant model, where different entities and virtual resources are dynamically assigned and reassigned as needed. The meaning of location independence exists because consumers generally do not have control or knowledge about the exact location of the resources provided, but may be able to specify the location at a higher level of abstraction (eg, country, state, or data center).

快速彈性:可快速地且彈性地佈建能力(在一些狀況下,自動地)以迅速地向外延展,且可快速地釋放能力以迅速地向內延展。在消費者看來,可用於佈建之能力常常看起來為無限的且可在任何時間以任何量來購買。Rapid elasticity: Ability can be quickly and elastically deployed (in some cases, automatically) to quickly extend outward, and the ability can be quickly released to quickly extend inward. From the consumer's perspective, the capabilities available for provisioning often appear to be unlimited and can be purchased in any amount at any time.

所量測服務:雲端系統藉由在適於服務類型(例如,儲存、處理、頻寬及作用中使用者帳戶)之某一抽象層級下充分利用計量能力而自動控制及最佳化資源使用。可監視、控制及報告資源使用狀況,從而為所利用服務之提供者及消費者兩者提供透明度。Measured services: Cloud systems automatically control and optimize resource usage by fully utilizing metering capabilities at an abstract level suitable for the type of service (eg, storage, processing, bandwidth, and active user account). You can monitor, control, and report on resource usage to provide transparency for both providers and consumers of the services used.

服務模型如下:The service model is as follows:

軟體即服務(SaaS):提供給消費者之能力係使用在雲端基礎架構上運行之提供者之應用程式。可經由諸如網頁瀏覽器(例如,基於網頁之電子郵件)之精簡型用戶端介面自各種用戶端裝置存取應用程式。消費者並不管理或控制包括網路、伺服器、作業系統、儲存器或甚至個別應用程式能力之底層雲端基礎架構,其中可能的例外狀況為有限的使用者特定應用程式組態設定。Software-as-a-Service (SaaS): The ability to provide consumers with applications that use providers running on cloud infrastructure. Applications can be accessed from various client devices via a thin client interface such as a web browser (eg, web-based email). Consumers do not manage or control the underlying cloud infrastructure that includes network, server, operating system, storage, or even individual application capabilities. The possible exceptions are limited user-specific application configuration settings.

平台即服務(PaaS):提供給消費者之能力係將使用由提供者所支援之程式設計語言及工具建立的消費者建立或獲取之應用程式部署至雲端基礎架構上。消費者並不管理或控制包括網路、伺服器、作業系統或儲存器之底層雲端基礎架構,但控制所部署之應用程式及可能的代管環境組態之應用程式。Platform-as-a-Service (PaaS): The ability to provide consumers deploys applications created or acquired by consumers using programming languages and tools supported by the provider to the cloud infrastructure. Consumers do not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but control the applications that are deployed and the applications that may be configured in the hosted environment.

基礎架構即服務(IaaS):提供給消費者之能力係佈建處理、儲存器、網路及其他基礎運算資源,其中消費者能夠部署及運行可包括作業系統及應用程式之任意軟體。消費者並不管理或控制底層雲端基礎架構,但控制作業系統、儲存器、所部署應用程式,及可能有限地控制選擇網路連接組件(例如,主機防火牆)。Infrastructure as a service (IaaS): The ability to provide consumers with the ability to provision processing, storage, networking, and other basic computing resources, where consumers can deploy and run any software that can include operating systems and applications. Consumers do not manage or control the underlying cloud infrastructure, but control the operating system, storage, deployed applications, and may have limited control over the choice of network connection components (eg, host firewall).

部署模型如下:The deployment model is as follows:

私用雲端:僅針對組織操作雲端基礎架構。私用雲端可由組織或第三方來管理且可存在內部部署或外部部署。Private cloud: Operate the cloud infrastructure only for organizations. The private cloud can be managed by an organization or a third party and can exist on-premises or externally.

社群雲端:該雲端基礎架構由若干組織共用且支援具有共用關注點(例如,任務、安全性要求、策略及順應性考量)之特定社群。私用雲端可由組織或第三方來管理且可存在內部部署或外部部署。Community Cloud: The cloud infrastructure is shared by several organizations and supports specific communities with shared concerns (eg, tasks, security requirements, policies, and compliance considerations). The private cloud can be managed by an organization or a third party and can exist on-premises or externally.

公用雲端:該雲端基礎架構可用於公眾或大型工業集團且為出售雲端服務之組織所擁有。Public cloud: The cloud infrastructure can be used by the public or large industrial groups and is owned by organizations that sell cloud services.

混合雲端:該雲端基礎架構為兩個或多於兩個雲端(私用、社群或公用)之組合物,該等雲端保持獨特實體但藉由實現資料及應用程式攜帶性(例如,用於在雲端之間實現負載平衡之雲端爆裂)之標準化或專屬技術繫結在一起。Hybrid cloud: The cloud infrastructure is a combination of two or more clouds (private, community, or public), which maintain unique entities but achieve data and application portability (for example, for Cloud bursts that achieve load balancing between clouds are standardized or proprietary technologies tied together.

藉由集中於無國界、低耦合、模組化及語義互操作性對雲端運算環境進行服務定向。雲端運算之關鍵為包括互連節點之網路的基礎架構。Service-oriented cloud computing environment by focusing on borderless, low coupling, modularization and semantic interoperability. The key to cloud computing is the infrastructure of the network including interconnected nodes.

現參看圖13,描繪說明性雲端運算環境50。如所展示,雲端運算環境50包括一或多個雲端運算節點52,雲端消費者所使用之諸如個人數位助理(PDA)或蜂巢式電話54A、桌上型電腦54B、膝上型電腦54C及/或汽車電腦系統54N的本端運算裝置可與該一或多個雲端運算節點通信。節點52可彼此通信。可在一或多個網路(諸如,如上文所描述之私用、社群、公用或混合雲端或其組合)中將該等節點實體地或虛擬地分組(未圖示)。此情形允許雲端運算環境50供應基礎架構、平台及/或軟體作為服務,針對該等服務,雲端消費者不需要在本端運算裝置上維持資源。應理解,圖13中所展示之運算裝置54A至54N之類型意欲僅為說明性的,且運算節點52及雲端運算環境50可經由任何類型之網路及/或網路可定址連接(例如,使用網頁瀏覽器)與任何類型之電腦化裝置通信。Referring now to FIG. 13, an illustrative cloud computing environment 50 is depicted. As shown, the cloud computing environment 50 includes one or more cloud computing nodes 52 that are used by cloud consumers such as personal digital assistants (PDAs) or cellular phones 54A, desktop computers 54B, laptop computers 54C and/or Or the local computing device of the automotive computer system 54N can communicate with the one or more cloud computing nodes. The nodes 52 can communicate with each other. These nodes can be physically or virtually grouped (not shown) in one or more networks, such as private, community, public or hybrid clouds or combinations thereof as described above. This situation allows the cloud computing environment 50 to provide infrastructure, platforms, and/or software as services. For these services, cloud consumers do not need to maintain resources on the local computing device. It should be understood that the types of computing devices 54A to 54N shown in FIG. 13 are intended to be illustrative only, and the computing node 52 and cloud computing environment 50 may be connected via any type of network and/or network addressable (e.g., Use a web browser) to communicate with any type of computerized device.

現參看圖14,展示藉由雲端運算環境50 (圖13)所提供之功能抽象層之集合。事先應理解,圖14中所展示之組件、層及功能意欲僅為說明性的且本發明之實施例不限於此。如所描繪,提供以下層及對應功能。Referring now to Figure 14, a collection of functional abstraction layers provided by the cloud computing environment 50 (Figure 13) is shown. It should be understood in advance that the components, layers, and functions shown in FIG. 14 are intended to be illustrative only and embodiments of the present invention are not limited thereto. As depicted, the following layers and corresponding functions are provided.

硬體及軟體層60包括硬體及軟體組件。硬體組件之實例包括:大型電腦61;基於精簡指令集電腦(RISC)架構之伺服器62;伺服器63;刀鋒伺服器64;儲存裝置65;以及網路及網路連接組件66。在一些實施例中,軟體組件包括網路應用程式伺服器軟體67及資料庫軟體68。The hardware and software layer 60 includes hardware and software components. Examples of hardware components include: a large computer 61; a server 62 based on a reduced instruction set computer (RISC) architecture; a server 63; a blade server 64; a storage device 65; and a network and network connection component 66. In some embodiments, the software components include network application server software 67 and database software 68.

虛擬化層70提供抽象層,可自該抽象層提供虛擬實體之以下實例:虛擬伺服器71;虛擬儲存器72;虛擬網路73,包括虛擬私用網路;虛擬應用程式及作業系統74;及虛擬用戶端75。The virtualization layer 70 provides an abstraction layer from which the following instances of virtual entities can be provided: virtual server 71; virtual storage 72; virtual network 73, including virtual private network; virtual applications and operating system 74; And virtual client 75.

在一個實例中,管理層80可提供下文所描述之功能。資源佈建81提供運算資源及用以進行雲端運算環境內之任務之其他資源的動態採購。當在雲端運算環境內利用資源時,計量及定價82提供成本追蹤,及對此等資源之消耗之帳務處理及發票開立。在一個實例中,此等資源可包括應用程式軟體授權。安全性提供針對雲端消費者及任務之身分識別驗證,以及對資料及其他資源之保護。使用者入口網站83為消費者及系統管理者提供對雲端運算環境之存取。服務等級管理84提供雲端運算資源分配及管理使得滿足所需服務等級。服務等級協議(SLA)規劃及實現85提供雲端運算資源之預先配置及採購,針對雲端運算資源之未來要求係根據SLA來預期。In one example, management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computing resources and other resources used for tasks within the cloud computing environment. When resources are used in the cloud computing environment, metering and pricing 82 provides cost tracking, as well as accounting processing and invoice issuance of the consumption of these resources. In one example, such resources may include application software licenses. Security provides identity verification for cloud consumers and tasks, as well as protection of data and other resources. The user portal 83 provides consumers and system administrators with access to the cloud computing environment. Service level management 84 provides cloud computing resource allocation and management to meet the required service level. Service Level Agreement (SLA) Planning and Implementation 85 Provides pre-configuration and procurement of cloud computing resources. Future requirements for cloud computing resources are expected based on SLA.

工作負載層90提供功能性之實例,可針對該功能性利用雲端運算環境。可自此層提供之工作負載及功能的實例包括:地圖測繪及導航91;軟體開發及生命週期管理92;虛擬教室教育遞送93;資料分析處理94;異動處理95;及排序及/或合併處理96。The workload layer 90 provides an example of functionality for which a cloud computing environment can be utilized. Examples of workloads and functions available from this layer include: mapping and navigation 91; software development and lifecycle management 92; virtual classroom education delivery 93; data analysis processing 94; transaction processing 95; and sequencing and/or merge processing 96.

本發明之態樣可為在任何可能之技術細節整合層級處的系統、方法及/或電腦程式產品。該電腦程式產品可包括一(或多個)電腦可讀儲存媒體,其上具有電腦可讀程式指令以使處理器進行本發明之態樣。The aspect of the present invention may be a system, method, and/or computer program product at any possible technical detail integration level. The computer program product may include one (or more) computer-readable storage media with computer-readable program instructions on it to enable the processor to perform the aspect of the present invention.

電腦可讀儲存媒體可為有形裝置,其可持留及儲存指令以供指令執行裝置使用。電腦可讀儲存媒體可為例如但不限於:電子儲存裝置、磁性儲存裝置、光學儲存裝置、電磁儲存裝置、半導體儲存裝置或前述各者之任何合適組合。電腦可讀儲存媒體之更特定實例之非窮盡性清單包括以下各者:攜帶型電腦磁片、硬碟、隨機存取記憶體(RAM)、唯讀記憶體(ROM)、可抹除可程式化唯讀記憶體(EPROM或快閃記憶體)、靜態隨機存取記憶體(SRAM)、攜帶型光碟唯讀記憶體(CD-ROM)、數位化通用光碟(DVD)、記憶棒、軟碟、經機械編碼裝置(諸如,上面記錄有指令之打孔卡或凹槽中之凸起結構)及前述各者之任何合適組合。如本文中所使用,不應將電腦可讀儲存媒體本身解釋為暫時性信號,諸如無線電波或其他自由傳播之電磁波、經由波導或其他傳輸媒體傳播之電磁波(例如,經由光纖纜線傳遞之光脈衝),或經由電線傳輸之電信號。The computer-readable storage medium may be a tangible device that can retain and store instructions for use by the instruction execution device. The computer-readable storage medium may be, for example but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer-readable storage media includes the following: portable computer diskettes, hard drives, random access memory (RAM), read-only memory (ROM), erasable and programmable Read-only memory (EPROM or flash memory), static random access memory (SRAM), portable disc read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk , Any suitable combination of mechanical coding devices (such as punched cards or raised structures in grooves with instructions recorded on them) and the foregoing. As used herein, computer-readable storage media should not be interpreted as temporary signals, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light transmitted through fiber optic cables Pulse), or electrical signals transmitted through wires.

本文中所描述之電腦可讀程式指令可自電腦可讀儲存媒體下載至各別運算/處理裝置或經由網路(例如,網際網路、區域網路、廣域網路及/或無線網路)下載至外部電腦或外部儲存裝置。網路可包含銅傳輸纜線、光學傳輸光纖、無線傳輸、路由器、防火牆、交換器、閘道器電腦及/或邊緣伺服器。每一運算/處理裝置中之網路配接卡或網路介面自網路接收電腦可讀程式指令且轉遞電腦可讀程式指令以用於儲存於各別運算/處理裝置內之電腦可讀儲存媒體中。The computer-readable program instructions described in this article can be downloaded from a computer-readable storage medium to various computing/processing devices or via a network (e.g., Internet, local area network, wide area network, and/or wireless network) To an external computer or external storage device. The network may include copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for computer-readable storage in each computing/processing device Storage media.

用於進行本發明之操作之電腦可讀程式指令可為以一或多種程式設計語言之任何組合編寫的組譯程式指令、指令集架構(ISA)指令、機器指令、機器相關指令、微碼、韌體指令、狀態設定資料、用於積體電路系統之組態資料,或原始程式碼或目標程式碼,該一或多種程式設計語言包括諸如Smalltalk、C++或其類似者之物件導向式程式設計語言,及程序性程式設計語言,諸如「C」程式設計語言或類似程式設計語言。電腦可讀程式指令可完全在使用者之電腦上執行、部分地在使用者之電腦上執行、作為獨立套裝軟體執行、部分地在使用者之電腦上執行且部分地在遠端電腦上執行或完全在遠端電腦或伺服器上執行。在後一情境中,遠端電腦可經由包括區域網路(LAN)或廣域網路(WAN)之任何類型之網路連接至使用者之電腦,或可連接至外部電腦(例如,經由使用網際網路服務提供者之網際網路)。在一些實施例中,包括例如可程式化邏輯電路系統、場可程式化閘陣列(FPGA)或可程式化邏輯陣列(PLA)之電子電路系統可藉由利用電腦可讀程式指令之狀態資訊來個人化電子電路系統而執行電腦可讀程式指令,以便執行本發明之態樣。The computer readable program instructions for performing the operations of the present invention may be grouped program instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, written in any combination of one or more programming languages Firmware commands, state setting data, configuration data for integrated circuits, or source code or target code, the one or more programming languages include object-oriented programming such as Smalltalk, C++, or the like Languages, and procedural programming languages, such as "C" programming languages or similar programming languages. Computer readable program instructions can be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or Run completely on a remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer via any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, by using the Internet Internet service providers). In some embodiments, electronic circuitry including, for example, a programmable logic circuit system, a field programmable gate array (FPGA), or a programmable logic array (PLA) can be obtained by using computer-readable program command status information The electronic circuit system is personalized to execute computer-readable program instructions in order to implement the aspect of the present invention.

本文中參考根據本發明之實施例的方法、設備(系統)及電腦程式產物之流程圖說明及/或方塊圖來描述本發明之態樣。應理解,可藉由電腦可讀程式指令實施流程圖說明及/或方塊圖之每一區塊,及流程圖說明及/或方塊圖中之區塊之組合。The present invention is described herein with reference to flowchart illustrations and/or block diagrams of methods, devices (systems) and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustration and/or block diagram may be implemented by computer-readable program instructions, and a combination of blocks in the flowchart illustration and/or block diagram.

可將此等電腦可讀程式指令提供至通用電腦、專用電腦或其他可程式化資料處理設備之處理器以產生機器,使得經由該電腦或其他可程式化資料處理設備之處理器執行之指令建立用於實施一或多個流程圖及/或方塊圖區塊中所指定之功能/動作的構件。亦可將此等電腦可讀程式指令儲存於電腦可讀儲存媒體中,該等指令可指導電腦、可程式化資料處理設備及/或其他裝置以特定方式起作用,使得儲存有指令之電腦可讀儲存媒體包含製品,該製品包括實施一或多個流程圖及/或方塊圖區塊中所指定之功能/動作之態樣的指令。These computer-readable program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device can be created A component used to implement one or more of the functions/actions specified in the flowchart and/or block diagram blocks. These computer-readable program instructions can also be stored in a computer-readable storage medium. These instructions can guide the computer, programmable data processing equipment, and/or other devices to function in a specific manner, so that the computer with the stored instructions can The read storage medium includes an artifact that includes instructions to implement one or more of the functions/actions specified in the flowchart and/or block diagram blocks.

電腦可讀程式指令亦可載入至電腦、其他可程式化資料處理設備或其他裝置上,以使一系列操作步驟在電腦、其他可程式化設備或其他裝置上執行以產生電腦實施之處理程序,使得在電腦、其他可程式化設備或其他裝置上執行之指令實施一或多個流程圖及/或方塊圖區塊中所指定之功能/動作。Computer readable program instructions can also be loaded onto computers, other programmable data processing equipment or other devices to enable a series of operating steps to be executed on computers, other programmable equipment or other devices to generate computer-implemented processing procedures , So that the instructions executed on the computer, other programmable equipment, or other devices implement one or more functions/actions specified in the flowchart and/or block diagram blocks.

諸圖中之流程圖及方塊圖說明根據本發明之各種實施例的系統、方法及電腦程式產品之可能實施方案的架構、功能性及操作。就此而言,流程圖或方塊圖中之每一區塊可表示指令之模組、區段或部分,其包含用於實施一或多個指定邏輯功能之一或多個可執行指令。在一些替代實施方案中,區塊中提到之功能可能不以諸圖中所提到之次序發生。舉例而言,取決於所涉及之功能性,連續展示之兩個區塊實際上可實質上同時執行,或該等區塊可有時以相反次序執行。亦將注意,可藉由執行指定功能或動作或進行專用硬體及電腦指令之組合的基於專用硬體之系統來實施方塊圖及/或流程圖說明之每一區塊,及方塊圖及/或流程圖說明中之區塊之組合。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, section, or portion of instructions, which includes one or more executable instructions for implementing one or more specified logical functions. In some alternative implementations, the functions mentioned in the blocks may occur out of the order noted in the figures. For example, depending on the functionality involved, two blocks shown in succession may actually be executed substantially simultaneously, or the blocks may sometimes be executed in the reverse order. It will also be noted that each block described in the block diagram and/or flowchart may be implemented by a dedicated hardware-based system that performs specified functions or actions or performs a combination of dedicated hardware and computer instructions, and the block diagram and/or Or a combination of blocks in the flow chart description.

除上述情形之外,亦可藉由供應對消費者環境之管理之服務提供者來提供、供應、部署、管理、服務(等)一或多個態樣。舉例而言,服務提供者可建立、維持、支援(等)電腦程式碼及/或執行用於一或多個消費者之一或多個態樣的電腦基礎架構。作為回報,服務提供者可根據訂用及/或收費協議接收來自消費者之付款(作為實例)。另外或替代地,服務提供者可接收來自向一或多個第三方出售廣告內容之付款。In addition to the above situations, one or more aspects of providing, supplying, deploying, managing, and serving (such as) service providers who provide management of the consumer environment. For example, a service provider may create, maintain, support (etc.) computer code and/or execute a computer infrastructure for one or more aspects of one or more consumers. In return, the service provider may receive payment from consumers according to a subscription and/or charging agreement (as an example). Additionally or alternatively, the service provider may receive payment from the sale of advertising content to one or more third parties.

在一個態樣中,可部署一應用程式用於執行一或多個實施例。作為一個實例,應用程式之部署包含提供可用以執行一或多個實施例之電腦基礎架構。In one aspect, an application can be deployed to execute one or more embodiments. As an example, the deployment of an application program includes providing a computer infrastructure that can be used to execute one or more embodiments.

作為另一態樣,可部署運算基礎架構,包含將電腦可讀程式碼整合至運算系統中,其中程式碼結合運算系統能夠執行一或多個實施例。As another aspect, a computing infrastructure may be deployed, including the integration of computer-readable program code into a computing system, where the program code in conjunction with the computing system can execute one or more embodiments.

作為又一態樣,可提供一種用於整合運算基礎架構之處理程序,包含將電腦可讀程式碼整合至電腦系統中。電腦系統包含電腦可讀媒體,其中電腦媒體包含一或多個實施例。程式碼結合電腦系統能夠執行一或多個實施例。As yet another aspect, a processing procedure for integrating computing infrastructure may be provided, including integrating computer-readable code into a computer system. The computer system includes computer-readable media, where the computer media includes one or more embodiments. The code combined with the computer system can execute one or more embodiments.

儘管上文描述各種實施例,但此等實施例僅為實例。舉例而言,其他架構之運算環境可用以併有及使用一或多個實施例。另外,可使用不同指令或操作。另外,可使用不同暫存器及/或可指定其他類型之指示(除暫存器編號以外)。許多變化係可能的。Although various embodiments are described above, these embodiments are merely examples. For example, computing environments of other architectures can be used in conjunction with and use one or more embodiments. In addition, different instructions or operations can be used. In addition, different registers can be used and/or other types of instructions can be specified (other than the register number). Many changes are possible.

另外,其他類型之運算環境可為有益的且可加以使用。作為一實例,可使用適合於儲存及/或執行程式碼之資料處理系統,其包括直接或經由系統匯流排間接地耦接至記憶體元件之至少兩個處理器。記憶體元件包括例如在實際執行程式碼期間使用之本端記憶體、大容量儲存器,及提供至少某一程式碼之臨時儲存以便減少在執行期間必須自大容量儲存器擷取程式碼之次數的快取記憶體。In addition, other types of computing environments can be beneficial and can be used. As an example, a data processing system suitable for storing and/or executing program code may be used, which includes at least two processors coupled directly or indirectly to memory elements through a system bus. Memory components include, for example, local memory used during the actual execution of the code, mass storage, and provision of temporary storage of at least one code to reduce the number of times code must be retrieved from the mass storage during execution Cache memory.

輸入/輸出或I/O裝置(包括但不限於鍵盤、顯示器、指標裝置、DASD、磁帶、CD、DVD、隨身碟(thumb drive)及其他記憶體媒體等)可直接或經由介入之I/O控制器耦接至系統。網路配接器亦可耦接至系統以使得資料處理系統能夠變成經由介入之私人網路或公用網路耦接至其他資料處理系統或遠端印表機或儲存裝置。數據機、纜線數據機及乙太網卡僅為幾個可用類型之網路配接器。Input/output or I/O devices (including but not limited to keyboards, monitors, pointing devices, DASD, tapes, CDs, DVDs, thumb drives, and other memory media, etc.) can directly or through intervening I/O The controller is coupled to the system. The network adapter can also be coupled to the system so that the data processing system can become coupled to other data processing systems or remote printers or storage devices through the intervening private network or public network. Modems, cable modems and Ethernet cards are just a few available types of network adapters.

本文中所使用之術語僅出於描述特定實施例之目的且並不意欲為限制性的。如本文中所使用,除非上下文另外清楚地指示,否則單數形式「一」及「該」意欲亦包括複數形式。應進一步理解,術語「包含(comprises及/或comprising)」在用於本說明書中時指定所陳述特徵、整體、步驟、操作、元件及/或組件之存在,但不排除一或多個其他特徵、整體、步驟、操作、元件、組件及/或其群組之存在或新增。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used herein, unless the context clearly indicates otherwise, the singular forms "a" and "the" are intended to include the plural forms as well. It should be further understood that the term "comprises and/or comprising" when used in this specification specifies the presence of stated features, wholes, steps, operations, elements and/or components, but does not exclude one or more other features , Whole, steps, operations, elements, components and/or their existence or addition.

以下申請專利範圍中之所有構件或步驟加功能元件之對應結構、材料、動作及等效物(若存在)意欲包括用於結合如特定主張之其他所主張元件來執行功能的任何結構、材料或動作。已出於說明及描述之目的呈現一或多個實施例之描述,但其不意欲為窮盡性的或限於所揭示之形式。對於一般熟習此項技術者而言,許多修改及變化將為顯而易見的。選取及描述實施例以便最佳地解釋各種態樣及實際應用,且使得一般熟習此項技術者能夠理解具有如適於所預期之特定用途之各種修改的各種實施例。The corresponding structures, materials, actions and equivalents (if any) of all components or steps plus functional elements within the scope of the following patent applications are intended to include any structure, material or function used to perform functions in combination with other claimed elements as specifically claimed action. The description of one or more embodiments has been presented for purposes of illustration and description, but it is not intended to be exhaustive or limited to the disclosed form. For those who are familiar with this technology in general, many modifications and changes will be obvious. The embodiments are selected and described in order to best explain the various aspects and practical applications, and to enable those of ordinary skill in the art to understand various embodiments with various modifications as appropriate for the specific uses anticipated.

10:運算環境 12:原生中央處理單元(CPU) 14:記憶體 16:輸入/輸出裝置及/或介面 18:匯流排 20:原生暫存器 22:仿真器程式碼 30:客體指令 32:指令提取常式 34:指令轉譯常式 36:原生指令 40:仿真控制常式 50:雲端運算環境 52:雲端運算節點 54A:蜂巢式電話 54B:桌上型電腦 54C:膝上型電腦 54N:汽車電腦系統 60:硬體及軟體層 61:大型電腦 62:基於精簡指令集電腦(RISC)架構之伺服器 63:伺服器 64:刀鋒伺服器 65:儲存裝置 66:網路及網路連接組件 67:網路應用程式伺服器軟體 68:資料庫軟體 70:虛擬化層 71:虛擬伺服器 72:虛擬儲存器 73:虛擬網路 74:虛擬應用程式及作業系統 75:虛擬用戶端 80:管理層 81:資源佈建 82:計量及定價 83:使用者入口網站 84:服務等級管理 85:服務等級協議(SLA)規劃及實現 90:工作負載層 91:地圖測繪及導航 92:軟體開發及生命週期管理 93:虛擬教室教育遞送 94:資料分析處理 95:異動處理 96:排序及/或合併處理 100:運算環境 102:處理器 104:記憶體 106:輸入/輸出(I/O)裝置及/或介面 108:匯流排 120:指令提取組件 122:指令解碼單元 124:指令執行組件 126:記憶體存取組件 130:寫回組件 136:排序/合併組件 200:中央電子裝置複合體(CEC) 202:記憶體/主儲存器 204:中央處理單元(CPU)/實體處理器資源/處理器 206:輸入/輸出子系統 208:邏輯分割區 210:超管理器 212:處理器韌體 220:客體作業系統 222:程式 230:輸入/輸出控制單元 240:輸入/輸出(I/O)裝置 250:資料儲存裝置 252:程式 254:電腦可讀程式指令 260:排序/合併組件(或其他組件) 300:排序清單(SORTL)指令 302:操作碼欄位 304:第一暫存器欄位(R1) 306:第二暫存器欄位(R2) 308:通用暫存器0 310:合併模式欄位 312:函式碼欄位 313:函式碼0 315:函式碼1 316:邏輯位址 317:函式碼2 318:通用暫存器R1 320:邏輯位址 322:通用暫存器R1+1 324:長度 326:通用暫存器R2 328:邏輯位址 330:通用暫存器R2+1 332:長度 340:參數區塊 342:已安裝函式向量 344:已安裝介面大小向量 346:已安裝參數區塊格式向量 350:記錄 352:金鑰 354:有效負載 360:參數區塊 362:參數區塊版本號碼(PBVN) 364:模型版本號碼(MVN) 366:排序次序(SO) 368:接續旗標(CF) 370:記錄金鑰長度 372:記錄有效負載長度 374:運算元存取意圖(OAI) 376:作用中輸入清單計數碼(AILCC) 378:空輸入清單控制項(EILCL) 380:空輸入清單旗標(EILF) 382:空輸入清單編號(EILN) 384:不完整輸入清單旗標(IILF) 386:不完整輸入清單編號(IILN) 388:接續記錄重新呼叫緩衝區起點 390:接續狀態緩衝區(CSB) 392:輸入ListN位址 393:輸入ListN長度 394:輸入ListN位址 395:輸入ListN長度 396:輸入ListN位址 397:輸入ListN長度 400:輸入清單 402:第一運算元 404:第二運算元 450:輸入清單 452:第一運算元 454:第二運算元 600:FOSA 602:FOEA 604:OL 610:SOSA 612:SOEA 614:OLD 700:FOSA 702:FOEA 704:OL 900:固定長度金鑰 902:8位元組有效負載長度(PL) 904:可變長度有效負載 1000:步驟 1002:步驟 1004:步驟 1050:步驟 1052:詢問 1053:步驟 1054:步驟 1056:步驟 1058:步驟 1060:步驟 1062:步驟 1100:步驟 1102:步驟 1104:步驟 1106:步驟 1108:步驟 1110:步驟 1112:步驟 1114:步驟 1116:步驟 1118:步驟 1120:步驟 1122:步驟 1124:步驟 1126:步驟 1128:步驟 1132:步驟 1134:步驟 1136:步驟10: computing environment 12: native central processing unit (CPU) 14: memory 16: input/output device and/or interface 18: bus 20: native register 22: emulator code 30: object instruction 32: instruction Extraction routine 34: command translation routine 36: native command 40: simulation control routine 50: cloud computing environment 52: cloud computing node 54A: cellular telephone 54B: desktop computer 54C: laptop computer 54N: car computer System 60: hardware and software layer 61: mainframe computer 62: server based on reduced instruction set computer (RISC) architecture 63: server 64: blade server 65: storage device 66: network and network connection components 67: Web application server software 68: database software 70: virtualization layer 71: virtual server 72: virtual storage 73: virtual network 74: virtual application and operating system 75: virtual client 80: management layer 81 : Resource provisioning 82: Measurement and pricing 83: User portal 84: Service level management 85: Service level agreement (SLA) planning and implementation 90: Workload layer 91: Map surveying and navigation 92: Software development and life cycle management 93: virtual classroom education delivery 94: data analysis processing 95: transaction processing 96: sorting and/or merge processing 100: computing environment 102: processor 104: memory 106: input/output (I/O) device and/or interface 108: bus 120: instruction extraction component 122: instruction decoding unit 124: instruction execution component 126: memory access component 130: write-back component 136: sorting/merging component 200: central electronic device complex (CEC) 202: memory Body/main storage 204: central processing unit (CPU)/physical processor resources/processor 206: input/output subsystem 208: logical partition 210: hypervisor 212: processor firmware 220: guest operating system 222 : Program 230: input/output control unit 240: input/output (I/O) device 250: data storage device 252: program 254: computer-readable program command 260: sorting/merging components (or other components) 300: sorting list (SORTL) instruction 302: opcode field 304: first register field (R 1 ) 306: second register field (R 2 ) 308: general register 0 310: merge mode field 312 : Function code field 313: function code 0 315: function code 1 316: logical address 317: function code 2 318: general-purpose register R 1 320: logical address 322: general-purpose register R 1 +1 324: length 326: general-purpose register R 2 328: logical address 330: general-purpose register R 2 +1 332: length 340: parameter block 342: installed function vector 344: installed interface size vector 346: Installed parameter block format vector 3 50: record 352: key 354: payload 360: parameter block 362: parameter block version number (PBVN) 364: model version number (MVN) 366: sort order (SO) 368: connection flag (CF) 370 : Record key length 372: record payload length 374: operand access intention (OAI) 376: active input list count code (AILCC) 378: empty input list control (EILCL) 380: empty input list flag (EILCL) (EILF) 382: empty input list number (EILN) 384: incomplete input list flag (IILF) 386: incomplete input list number (IILN) 388: connection record re-call buffer starting point 390: connection status buffer (CSB) 392: Enter ListN address 393: Enter ListN length 394: Enter ListN address 395: Enter ListN length 396: Enter ListN address 397: Enter ListN length 400: Enter list 402: First operand 404: Second operand 450 : Input list 452: First operand 454: Second operand 600: FOSA 602: FOEA 604: OL 610: SOSA 612: SOEA 614: OLD 700: FOSA 702: FOEA 704: OL 900: fixed-length key 902: 8-byte payload length (PL) 904: variable-length payload 1000: step 1002: step 1004: step 1050: step 1052: query 1053: step 1054: step 1056: step 1058: step 1060: step 1062: step 1100: Step 1102: Step 1104: Step 1106: Step 1108: Step 1110: Step 1112: Step 1114: Step 1116: Step 1118: Step 1120: Step 1122: Step 1124: Step 1126: Step 1128: Step 1132: Step 1134: Step 1136: Step

在本說明書之結尾處的申請專利範圍中作為實例特定地指出且清楚地主張一或多個態樣。一或多個態樣之前述內容及目標、特徵以及優點自結合隨附圖式進行的以下詳細描述顯而易見,其中: 圖1A描繪併有及使用本發明之一或多個態樣的運算環境之一個實例; 圖1B描繪根據本發明之一或多個態樣的圖1A之處理器的其他細節; 圖2描繪併有及使用本發明之一或多個態樣的運算環境之另一實例; 圖3A描繪根據本發明之態樣的排序清單指令之一個格式; 圖3B描繪根據本發明之態樣的由排序清單指令使用之隱含暫存器(通用暫存器0)的欄位之一個實例; 圖3C描繪根據本發明之態樣的用於排序清單指令之函式碼的一個實例; 圖3D描繪根據本發明之態樣的由排序清單指令使用之隱含暫存器(通用暫存器1)的欄位之一個實例; 圖3E描繪根據本發明之態樣的由排序清單指令指定之暫存器R1 的內容之一個實例; 圖3F描繪根據本發明之態樣的由排序清單指令使用之暫存器R1 +1的內容之一個實例; 圖3G描繪根據本發明之態樣的由排序清單指令指定之暫存器R2 的內容之一個實例; 圖3H描繪根據本發明之態樣的由排序清單指令使用之暫存器R2 +1的內容之一個實例; 圖3I描繪根據本發明之態樣的由排序清單指令之SORTL-QAF函式使用之參數區塊的內容之一個實例; 圖3J描繪根據本發明之態樣的由排序清單指令使用之固定長度記錄格式的一個實例; 圖3K描繪根據本發明之態樣的由排序清單指令之SORTL-SFLR函式使用之參數區塊的內容之一個實例; 圖4A至圖4B描繪根據本發明之一或多個態樣的SORTL-SFLR實例; 圖5A描繪根據本發明之態樣的用於SORTL-SFLR函式之輸入的值之概述的一個實例; 圖5B描繪根據本發明之態樣的對SORTL-SFLR函式之輸入清單位址及長度欄位之修改的限制之一個實例; 圖6A描繪根據本發明之態樣的在執行合併模式指示設定為零之SORTL之前的第一運算元位置/第一運算元之一個實例; 圖6B描繪根據本發明之態樣的在執行合併模式指示設定為零之SORTL之後的第一運算元位置/第一運算元之一個實例; 圖6C描繪根據本發明之態樣的在執行合併模式指示設定為零之SORTL之前的第二運算元位置/第二運算元之一個實例; 圖6D描繪根據本發明之態樣的在執行合併模式指示設定為零之SORTL之後的第二運算元位置/第二運算元之一個實例; 圖7A描繪根據本發明之態樣的在執行合併模式指示設定為壹之SORTL之前的第一運算元位置/第一運算元之一個實例; 圖7B描繪根據本發明之態樣的在執行合併模式指示設定為壹之SORTL之後的第一運算元位置/第一運算元之一個實例; 圖8描繪根據本發明之態樣使用的參數區塊之某些欄位的一個實例; 圖9描繪根據本發明之態樣的由排序清單指令使用之可變長度記錄格式的一個實例; 圖10A至圖10B描繪根據本發明之態樣的與指令之操作中斷及指令之重新執行相關聯的處理; 圖11A至圖11B描繪根據本發明之態樣的促進運算環境內之處理的一個實例; 圖12A描繪併有及使用本發明之一或多個態樣的運算環境之另一實例; 圖12B描繪圖12A之記憶體之其他細節; 圖13描繪雲端運算環境之一個實施例;及 圖14描繪抽象模型層之一個實例。One or more aspects are specifically pointed out and clearly claimed as examples in the patent application scope at the end of this specification. The foregoing content and objectives, features, and advantages of one or more aspects are apparent from the following detailed description in conjunction with the accompanying drawings, in which: FIG. 1A depicts and utilizes one or more aspects of the computing environment of the present invention An example; FIG. 1B depicts other details of the processor of FIG. 1A according to one or more aspects of the present invention; FIG. 2 depicts another example of a computing environment incorporating and using one or more aspects of the present invention; FIG. 3A depicts a format of a sorted list instruction according to the aspect of the present invention; FIG. 3B depicts one of the fields of the hidden register (general register 0) used by the sorted list instruction according to the aspect of the present invention Example; FIG. 3C depicts an example of function code for sorting list instructions according to the aspect of the present invention; FIG. 3D depicts an implicit register (general temporary storage) used by the sorting list instruction according to the aspect of the present invention An example of the field of the device 1); FIG. 3E depicts an example of the contents of the register R 1 specified by the sorting list instruction according to the aspect of the present invention; FIG. 3F depicts the sorting list according to the aspect of the present invention An example of the contents of the register R 1 +1 used by the instruction; FIG. 3G depicts an example of the contents of the register R 2 specified by the sorted list instruction according to the aspect of the invention; FIG. 3H depicts the contents of the register R 2 according to the invention An example of the contents of the register R 2 +1 used by the sorted list command according to the aspect; FIG. 3I depicts the contents of the parameter block used by the SORTL-QAF function of the sorted list command according to the aspect of the present invention An example; FIG. 3J depicts an example of a fixed-length record format used by the sort list instruction according to the aspect of the invention; FIG. 3K depicts parameters used by the SORTL-SFLR function of the sort list instruction according to the aspect of the invention An example of the content of a block; FIGS. 4A to 4B depict an example of SORTL-SFLR according to one or more aspects of the invention; FIG. 5A depicts an input for a SORTL-SFLR function according to aspects of the invention An example of a summary of values; FIG. 5B depicts an example of restrictions on the modification of the input list address and length field of the SORTL-SFLR function according to the aspect of the invention; FIG. 6A depicts an aspect of the aspect according to the invention An example of the first operand position/first operand before executing the SORTL with the merge mode indication set to zero; FIG. 6B depicts the first after performing the SORTL with the merge mode indication set to zero according to the aspect of the invention An example of the operand position/first operand; FIG. 6C depicts an example of the second operand position/second operand before performing the SORTL with the merge mode indication set to zero according to the aspect of the present invention; FIG. 6D An example of the second operand position/second operand after performing the SORTL with the merge mode indication set to zero according to the aspect of the present invention; FIG. 7A depicts the setting of the merge mode indication according to the aspect of the invention Is the first operand position before SORTL/ An example of the first operand; FIG. 7B depicts an example of the first operand position/first operand after performing the SORTL with the merge mode indication set to one according to the aspect of the invention; FIG. 8 depicts the invention according to the invention An example of certain fields of the parameter block used by the aspect; FIG. 9 depicts an example of a variable-length record format used by the sort list instruction according to the aspect of the present invention; FIGS. 10A to 10B depict the The aspect of the invention relates to the processing associated with the interruption of the operation of the instruction and the re-execution of the instruction; FIGS. 11A to 11B depict an example of facilitating processing within the computing environment according to the aspect of the invention; FIG. 12A depicts the presence and use Another example of one or more aspects of the computing environment of the present invention; FIG. 12B depicts other details of the memory of FIG. 12A; FIG. 13 depicts an embodiment of a cloud computing environment; and FIG. 14 depicts an example of an abstract model layer .

200:中央電子裝置複合體(CEC) 200: Central Electronic Device Complex (CEC)

202:記憶體/主儲存器 202: memory/main memory

204:中央處理單元(CPU)/實體處理器資源/處理器 204: central processing unit (CPU)/physical processor resources/processor

206:輸入/輸出子系統 206: input/output subsystem

208:邏輯分割區 208: logical partition

210:超管理器 210: Super Manager

212:處理器韌體 212: Processor firmware

220:客體作業系統 220: guest operating system

222:程式 222: Program

230:輸入/輸出控制單元 230: input/output control unit

240:輸入/輸出(I/O)裝置 240: input/output (I/O) device

250:資料儲存裝置 250: data storage device

252:程式 252: Program

254:電腦可讀程式指令 254: Computer readable program instructions

260:排序/合併組件(或其他組件) 260: Sort/Merge components (or other components)

Claims (20)

一種用於促進一運算環境內之處理的電腦程式產品,該電腦程式產品包含: 一電腦可讀儲存媒體,其可由一處理器讀取且儲存用於執行一方法之指令,該方法包含: 判定在該處理器上執行之一指令之一操作的處理在完成之前已中斷; 基於判定該操作之該處理已中斷,取得該處理器之後設資料,該後設資料為該處理器之當前後設資料; 將該後設資料儲存於與該指令相關聯之一位置中;及 在重新執行該指令時使用儲存於該位置中之該後設資料以自其中斷之處重新繼續該指令之前向處理。A computer program product for facilitating processing in a computing environment. The computer program product includes: A computer-readable storage medium, which can be read by a processor and stores instructions for executing a method, the method including: Determine that the process of executing one of the instructions on the processor has been interrupted before completion; Based on the determination that the processing of the operation has been interrupted, the meta data of the processor is obtained, and the meta data is the current meta data of the processor; Store the meta data in a location associated with the instruction; and When the instruction is re-executed, the metadata stored in the location is used to resume the forward processing of the instruction from where it was interrupted. 如請求項1之電腦程式產品,其中該指令為一排序指令,且該後設資料包括關於該排序指令之一或多個輸入清單的資訊。For example, the computer program product of claim 1, wherein the instruction is a sorting instruction, and the meta data includes information about one or more input lists of the sorting instruction. 如請求項2之電腦程式產品,其中該後設資料包含關於對該一或多個輸入清單之記錄進行之先前比較的資訊以指示待進行之後續比較。For example, the computer program product of claim 2, wherein the meta data includes information about previous comparisons made to the record of one or more input lists to indicate subsequent comparisons to be made. 如請求項3之電腦程式產品,其中在不重複該等先前比較之情況下,指示待進行之該等後續比較。The computer program product of claim 3, in which the subsequent comparisons to be made are instructed without repeating the previous comparisons. 如請求項1之電腦程式產品,其中該判定包含檢查基於該指令之終止而設定的一條件碼,該條件碼設定為指示該指令之部分完成的一選擇值。The computer program product of claim 1, wherein the determination includes checking a condition code set based on the termination of the instruction, the condition code being set to a selection value indicating the partial completion of the instruction. 如請求項1之電腦程式產品,其中該位置為記憶體中由該指令指明之一參數區塊。For example, the computer program product of claim 1, wherein the location is a parameter block specified by the instruction in the memory. 如請求項6之電腦程式產品,其中記憶體中之該參數區塊的該位置由該指令之一隱含暫存器的內容指明。For example, in the computer program product of claim 6, the position of the parameter block in the memory is indicated by the content of an implicit register in one of the instructions. 如請求項6之電腦程式產品,其中該參數區塊包括用以儲存該後設資料之一接續狀態緩衝區,該後設資料包含該處理器之內部狀態資料。As in the computer program product of claim 6, wherein the parameter block includes a connection status buffer for storing the metadata, the metadata includes internal state data of the processor. 如請求項8之電腦程式產品,其中該參數區塊進一步包含用以指示該操作之部分完成的一接續指示符。As in the computer program product of claim 8, wherein the parameter block further includes a connection indicator used to indicate the partial completion of the operation. 如請求項1之電腦程式產品,其中該在重新執行該指令時使用該後設資料進一步包含: 重新執行該指令以重新繼續處理; 自該位置取得該後設資料;及 將自該位置取得之該後設資料載入至該處理器之一或多個選擇位置中,其中將該後設資料提供至該處理器,而不重複一或多個任務以產生該後設資料。For example, the computer program product of claim 1, wherein the use of the metadata when re-executing the instruction further includes: Re-execute the instruction to resume processing; Obtain the meta data from that location; and Loading the meta data obtained from the location into one or more selected locations of the processor, wherein the meta data is provided to the processor without repeating one or more tasks to generate the meta data data. 一種用於促進一運算環境內之處理的電腦系統,該電腦系統包含: 一記憶體;及 一處理器,其與該記憶體通信,其中該電腦系統經組態以執行一方法,該方法包含: 判定在該處理器上執行之一指令之一操作的處理在完成之前已中斷; 基於判定該操作之該處理已中斷,取得該處理器之後設資料,該後設資料為該處理器之當前後設資料; 將該後設資料儲存於與該指令相關聯之一位置中;及 在重新執行該指令時使用儲存於該位置中之該後設資料以自其中斷之處重新繼續該指令之前向處理。A computer system for facilitating processing in a computing environment. The computer system includes: A memory; and A processor that communicates with the memory, wherein the computer system is configured to perform a method, the method includes: Determine that the process of executing one of the instructions on the processor has been interrupted before completion; Based on the determination that the processing of the operation has been interrupted, the meta data of the processor is obtained, and the meta data is the current meta data of the processor; Store the meta data in a location associated with the instruction; and When the instruction is re-executed, the metadata stored in the location is used to resume the forward processing of the instruction from where it was interrupted. 如請求項11之電腦系統,其中該指令為一排序指令,且該後設資料包括關於對該排序指令之一或多個輸入清單的記錄進行之先前比較的資訊以指示待進行之後續比較。The computer system of claim 11, wherein the instruction is a sorting instruction, and the meta data includes information about a previous comparison of records of one or more input lists of the sorting instruction to indicate a subsequent comparison to be made. 如請求項11之電腦系統,其中該位置為記憶體中由該指令指明之一參數區塊,且其中該參數區塊包括用以儲存該後設資料之一接續狀態緩衝區,該後設資料包含該處理器之內部狀態資料。As in the computer system of claim 11, wherein the location is a parameter block in the memory specified by the instruction, and wherein the parameter block includes a connection status buffer for storing the metadata, the metadata Contains the internal status data of the processor. 如請求項13之電腦系統,其中該參數區塊進一步包含用以指示該操作之部分完成的一接續指示符。The computer system of claim 13, wherein the parameter block further includes a connection indicator used to indicate that the operation is partially completed. 如請求項11之電腦系統,其中該在重新執行該指令時使用該後設資料進一步包含: 重新執行該指令以重新繼續處理; 自該位置取得該後設資料;及 將自該位置取得之該後設資料載入至該處理器之一或多個選擇位置中,其中將該後設資料提供至該處理器,而不重複一或多個任務以產生該後設資料。For example, the computer system of claim 11, wherein the use of the metadata when re-executing the instruction further includes: Re-execute the instruction to resume processing; Obtain the meta data from that location; and Loading the meta data obtained from the location into one or more selected locations of the processor, wherein the meta data is provided to the processor without repeating one or more tasks to generate the meta data data. 一種用於促進一運算環境內之處理的電腦實施方法,該電腦實施方法包含: 判定在一處理器上執行之一指令之一操作的處理在完成之前已中斷; 基於判定該操作之該處理已中斷,取得該處理器之後設資料,該後設資料為該處理器之當前後設資料; 將該後設資料儲存於與該指令相關聯之一位置中;及 在重新執行該指令時使用儲存於該位置中之該後設資料以自其中斷之處重新繼續該指令之前向處理。A computer-implemented method for facilitating processing in a computing environment. The computer-implemented method includes: Determine that the process of executing one of the instructions on a processor has been interrupted before completion; Based on the determination that the processing of the operation has been interrupted, the meta data of the processor is obtained, and the meta data is the current meta data of the processor; Store the meta data in a location associated with the instruction; and When the instruction is re-executed, the metadata stored in the location is used to resume the forward processing of the instruction from where it was interrupted. 如請求項16之電腦實施方法,其中該指令為一排序指令,且該後設資料包括關於對該排序指令之一或多個輸入清單的記錄進行之先前比較的資訊以指示待進行之後續比較。The computer-implemented method of claim 16, wherein the instruction is a sorting instruction, and the meta data includes information about a previous comparison of records of one or more input lists of the sorting instruction to indicate a subsequent comparison to be made . 如請求項16之電腦實施方法,其中該位置為記憶體中由該指令指明之一參數區塊,且其中該參數區塊包括用以儲存該後設資料之一接續狀態緩衝區,該後設資料包含該處理器之內部狀態資料。The computer-implemented method of claim 16, wherein the location is a parameter block in the memory specified by the instruction, and wherein the parameter block includes a connection status buffer for storing the metadata, the metadata The data contains the internal status data of the processor. 如請求項18之電腦實施方法,其中該參數區塊進一步包含用以指示該操作之部分完成的一接續指示符。The computer-implemented method of claim 18, wherein the parameter block further includes a connection indicator used to indicate that the operation is partially completed. 如請求項16之電腦實施方法,其中該在重新執行該指令時使用該後設資料進一步包含: 重新執行該指令以重新繼續處理; 自該位置取得該後設資料;及 將自該位置取得之該後設資料載入至該處理器之一或多個選擇位置中,其中將該後設資料提供至該處理器,而不重複一或多個任務以產生該後設資料。The computer-implemented method of claim 16, wherein the use of the metadata when re-executing the instruction further includes: Re-execute the instruction to resume processing; Obtain the meta data from that location; and Loading the metadata obtained from the location into one or more selected locations of the processor, wherein the metadata is provided to the processor without repeating one or more tasks to generate the metadata data.
TW108121224A 2018-11-06 2019-06-19 Computer program product, computer system and computer-implemented method for saving and restoring machine state between multiple executions of an instruction TWI718563B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US16/182,017 2018-11-06
US16/182,017 US10831503B2 (en) 2018-11-06 2018-11-06 Saving and restoring machine state between multiple executions of an instruction

Publications (2)

Publication Number Publication Date
TW202018500A true TW202018500A (en) 2020-05-16
TWI718563B TWI718563B (en) 2021-02-11

Family

ID=68468734

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108121224A TWI718563B (en) 2018-11-06 2019-06-19 Computer program product, computer system and computer-implemented method for saving and restoring machine state between multiple executions of an instruction

Country Status (10)

Country Link
US (3) US10831503B2 (en)
EP (1) EP3877841B1 (en)
JP (1) JP7288049B2 (en)
CN (1) CN112970001A (en)
AU (1) AU2019376835B2 (en)
CA (1) CA3118174A1 (en)
IL (1) IL281734B2 (en)
MX (1) MX2021005002A (en)
TW (1) TWI718563B (en)
WO (1) WO2020094601A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10831478B2 (en) 2018-11-06 2020-11-10 International Business Machines Corporation Sort and merge instruction for a general-purpose processor
US10831503B2 (en) 2018-11-06 2020-11-10 International Business Machines Corporation Saving and restoring machine state between multiple executions of an instruction
CN114116546A (en) * 2021-11-19 2022-03-01 Oppo广东移动通信有限公司 Device unplugging reporting method and device, computer readable medium and electronic device

Family Cites Families (75)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH077385B2 (en) * 1983-12-23 1995-01-30 株式会社日立製作所 Data processing device
US4890220A (en) 1984-12-12 1989-12-26 Hitachi, Ltd. Vector processing apparatus for incrementing indices of vector operands of different length according to arithmetic operation results
US5210870A (en) 1990-03-27 1993-05-11 International Business Machines Database sort and merge apparatus with multiple memory arrays having alternating access
JPH07104784B2 (en) * 1990-04-03 1995-11-13 富士ゼロックス株式会社 Digital data processor
US5307485A (en) 1991-05-31 1994-04-26 International Business Machines Corporation Method and apparatus for merging sorted lists in a multiprocessor shared memory system
DE69418646T2 (en) 1993-06-04 2000-06-29 Sun Microsystems Inc Floating point processor for a high-performance three-dimensional graphics accelerator
US5475882A (en) 1993-10-15 1995-12-19 Sereboff; Joel L. Gel filled deformable cushion and composition contained therein
US5475822A (en) * 1993-11-15 1995-12-12 Motorola, Inc. Data processing system for resuming instruction execution after an interrupt and method therefor
US20060136923A1 (en) * 1995-05-30 2006-06-22 Kahn Robert E System for distributed task execution
US5909544A (en) * 1995-08-23 1999-06-01 Novell Inc. Automated test harness
US5799167A (en) * 1996-05-15 1998-08-25 Hewlett-Packard Company Instruction nullification system and method for a processor that executes instructions out of order
US5796997A (en) * 1996-05-15 1998-08-18 Hewlett-Packard Company Fast nullify system and method for transforming a nullify function into a select function
US5941983A (en) 1997-06-24 1999-08-24 Hewlett-Packard Company Out-of-order execution using encoded dependencies between instructions in queues to determine stall values that control issurance of instructions from the queues
US5995962A (en) 1997-07-25 1999-11-30 Claritech Corporation Sort system for merging database entries
US6016539A (en) 1997-11-03 2000-01-18 Teragen Corporation Datapath control logic for processors having instruction set architectures implemented with hierarchically organized primitive operations
US6795966B1 (en) 1998-05-15 2004-09-21 Vmware, Inc. Mechanism for restoring, porting, replicating and checkpointing computer systems using state extraction
US6460121B1 (en) 1998-09-14 2002-10-01 Compaq Information Technologies Group, L.P. Method for providing an atomic memory read using a compare-exchange instruction primitive
JP2001256062A (en) * 2000-03-09 2001-09-21 Omron Corp Interruption processing method and operation processor using the same
EP1217540A1 (en) 2000-11-29 2002-06-26 Lafayette Software Inc. Methods of organizing data and processing queries in a database system, and database system and software product for implementing such method
US7080159B2 (en) 2000-12-15 2006-07-18 Ntt Docomo, Inc. Method and system for effecting migration of application among heterogeneous devices
JP3955741B2 (en) * 2001-04-02 2007-08-08 株式会社リコー SIMD type microprocessor having sort function
US7107320B2 (en) * 2001-11-02 2006-09-12 Dot Hill Systems Corp. Data mirroring between controllers in an active-active controller pair
AU2002368121A1 (en) 2002-07-30 2004-02-16 The Circle For The Promotion Of Science And Engineering Command control device, function unit, program converter, and language processor
US7464254B2 (en) * 2003-01-09 2008-12-09 Cisco Technology, Inc. Programmable processor apparatus integrating dedicated search registers and dedicated state machine registers with associated execution hardware to support rapid application of rulesets to data
US7561571B1 (en) 2004-02-13 2009-07-14 Habanero Holdings, Inc. Fabric address and sub-address resolution in fabric-backplane enterprise servers
JP4465598B2 (en) 2004-07-05 2010-05-19 ソニー株式会社 Integrated circuit, processing control method therefor, and program
US8719819B2 (en) 2005-06-30 2014-05-06 Intel Corporation Mechanism for instruction set based thread execution on a plurality of instruction sequencers
US7987158B2 (en) 2005-02-09 2011-07-26 International Business Machines Corporation Method, system and article of manufacture for metadata replication and restoration
KR100941356B1 (en) * 2005-03-18 2010-02-11 후지쯔 가부시끼가이샤 Data presenting device, computer readable media storing data presenting program, and data presenting method
US7933405B2 (en) * 2005-04-08 2011-04-26 Icera Inc. Data access and permute unit
US7502888B2 (en) * 2006-02-07 2009-03-10 Hewlett-Packard Development Company, L.P. Symmetric multiprocessor system
US7945789B2 (en) 2006-09-12 2011-05-17 International Business Machines Corporation System and method for securely restoring a program context from a shared memory
WO2008062768A1 (en) * 2006-11-21 2008-05-29 Nec Corporation Command operation code generation system
DE102007025397B4 (en) 2007-05-31 2010-07-15 Advanced Micro Devices, Inc., Sunnyvale Multi-processor system and method of operation
US8266112B1 (en) 2007-12-19 2012-09-11 Symantec Corporation Techniques for recovery of application level objects
CN102016928B (en) 2008-01-23 2014-01-08 英特尔公司 Method, apparatus, and computer program product for improved graphics performance
US8230410B2 (en) * 2009-10-26 2012-07-24 International Business Machines Corporation Utilizing a bidding model in a microparallel processor architecture to allocate additional registers and execution units for short to intermediate stretches of code identified as opportunities for microparallelization
US8850423B2 (en) 2009-10-29 2014-09-30 International Business Machines Corporation Assisting server migration
US20120054731A1 (en) 2010-08-24 2012-03-01 International Business Machines Corporation Method, System and Computer Programs to Assist Migration to a Cloud Computing Environment
US9405549B2 (en) * 2011-03-04 2016-08-02 Nec Corporation Deadlock avoidance method and deadlock avoidance mechanism
US8695010B2 (en) 2011-10-03 2014-04-08 International Business Machines Corporation Privilege level aware processor hardware resource management facility
US9015083B1 (en) 2012-03-23 2015-04-21 Google Inc. Distribution of parameter calculation for iterative optimization methods
US9513915B2 (en) 2012-03-28 2016-12-06 International Business Machines Corporation Instruction merging optimization
CN104204991B (en) 2012-03-30 2018-01-02 英特尔公司 Less ordering vector is merged and is ordered as the method and apparatus of the instruction of larger ordering vector
KR101993562B1 (en) 2012-06-15 2019-09-30 인텔 코포레이션 An instruction definition to implement load store reordering and optimization
US20140089646A1 (en) 2012-09-27 2014-03-27 Texas Instruments Incorporated Processor with interruptable instruction execution
US9710874B2 (en) 2012-12-27 2017-07-18 Nvidia Corporation Mid-primitive graphics execution preemption
US9405538B2 (en) * 2012-12-28 2016-08-02 Intel Corporation Functional unit having tree structure to support vector sorting algorithm and other algorithms
US9727594B2 (en) 2013-01-10 2017-08-08 Microsoft Technology Licensing, Llc Adaptive range filters for range and point queries
US20160162293A1 (en) 2013-03-26 2016-06-09 Via Technologies, Inc. Asymmetric processor with cores that support different isa instruction subsets
US10203958B2 (en) * 2013-07-15 2019-02-12 Texas Instruments Incorporated Streaming engine with stream metadata saving for context switching
US9665533B2 (en) 2013-12-20 2017-05-30 Rambus Inc. Blob pools, selectors, and command set implemented within a memory appliance for accessing memory
JP6306729B2 (en) 2014-03-27 2018-04-04 インテル・コーポレーション Instructions and logic to sort and retire stores
US9766888B2 (en) * 2014-03-28 2017-09-19 Intel Corporation Processor instruction to store indexes of source data elements in positions representing a sorted order of the source data elements
US9329850B2 (en) 2014-06-24 2016-05-03 International Business Machines Corporation Relocation of instructions that use relative addressing
US9703733B2 (en) * 2014-06-27 2017-07-11 Intel Corporation Instructions and logic to interrupt and resume paging in a secure enclave page cache
US9600442B2 (en) * 2014-07-18 2017-03-21 Intel Corporation No-locality hint vector memory access processors, methods, systems, and instructions
US10318292B2 (en) 2014-11-17 2019-06-11 Intel Corporation Hardware instruction set to replace a plurality of atomic operations with a single atomic operation
US10318297B2 (en) 2015-01-30 2019-06-11 Huawei Technologies Co., Ltd. Method and apparatus for operating a self-timed parallelized multi-core processor
US10942748B2 (en) * 2015-07-16 2021-03-09 Nxp B.V. Method and system for processing interrupts with shadow units in a microcontroller
US10102231B2 (en) 2015-10-20 2018-10-16 International Business Machines Corporation Ordering heterogeneous operations in bulk processing of tree-based data structures
US9996361B2 (en) 2015-12-23 2018-06-12 Intel Corporation Byte and nibble sort instructions that produce sorted destination register and destination index mapping
US9665626B1 (en) 2016-02-02 2017-05-30 International Business Machines Corporation Sorted merge of streaming data
US10725677B2 (en) * 2016-02-19 2020-07-28 Sandisk Technologies Llc Systems and methods for efficient power state transitions
US10261790B2 (en) * 2016-03-31 2019-04-16 Intel Corporation Memory copy instructions, processors, methods, and systems
US10296655B2 (en) 2016-06-24 2019-05-21 International Business Machines Corporation Unbounded list processing
US20180011768A1 (en) 2016-07-05 2018-01-11 International Business Machines Corporation Control state preservation during transactional execution
US10037267B2 (en) 2016-10-21 2018-07-31 Advanced Micro Devices, Inc. Instruction set architecture and software support for register state migration
US10162859B2 (en) * 2016-10-31 2018-12-25 International Business Machines Corporation Delayable query
US10496371B2 (en) * 2017-06-29 2019-12-03 Intel Corporation Key-value compaction
US10698792B2 (en) * 2018-05-02 2020-06-30 Microsoft Technology Licensing, Llc Execution control with cross-level trace mapping
US10831478B2 (en) 2018-11-06 2020-11-10 International Business Machines Corporation Sort and merge instruction for a general-purpose processor
US10831503B2 (en) 2018-11-06 2020-11-10 International Business Machines Corporation Saving and restoring machine state between multiple executions of an instruction
US10831502B2 (en) 2018-11-06 2020-11-10 International Business Machines Corporation Migration of partially completed instructions
US20200142669A1 (en) 2018-11-06 2020-05-07 International Business Machines Corporation Controlling storage accesses for merge operations

Also Published As

Publication number Publication date
US10831503B2 (en) 2020-11-10
AU2019376835A1 (en) 2021-04-22
US11281469B2 (en) 2022-03-22
TWI718563B (en) 2021-02-11
AU2019376835B2 (en) 2022-09-29
JP2022503970A (en) 2022-01-12
US20200142706A1 (en) 2020-05-07
IL281734B2 (en) 2024-01-01
IL281734B1 (en) 2023-09-01
MX2021005002A (en) 2021-12-02
CA3118174A1 (en) 2020-05-14
US10949212B2 (en) 2021-03-16
IL281734A (en) 2021-05-31
JP7288049B2 (en) 2023-06-06
CN112970001A (en) 2021-06-15
US20210096876A1 (en) 2021-04-01
WO2020094601A1 (en) 2020-05-14
EP3877841A1 (en) 2021-09-15
EP3877841B1 (en) 2024-02-21
US20200348940A1 (en) 2020-11-05

Similar Documents

Publication Publication Date Title
TWI736912B (en) Computer program product, computer system and computer implement method of sorting and merging instruction for a general-purpose processor
US11281469B2 (en) Saving and restoring machine state between multiple executions of an instruction
US20200142669A1 (en) Controlling storage accesses for merge operations
TW202034155A (en) Negative zero control in instruction execution
JP7413371B2 (en) Migrating partially completed instructions
TWI729678B (en) Computer program product, computer system and computer implement method for moving data and set storage key instruction
TW202101201A (en) Instruction to move data in a right-to-left direction