1) Field of the Invention
The present invention relates to the technique for translating virtual addresses into physical addresses in an information processor, which operates in multi-thread mode.
2) Description of the Related Art
Conventionally, in an information processor comprising a processor (e.g., CPU: Central Processing Unit or MPU; Micro Processing Unit), there has been a technique wherein a TLB (Translation Lookaside Buffer; an address translation buffer) is provided in the processor (here, CPU) for translating virtual addresses used by the program into physical addresses on a storage (e.g., main memory or cache memory connected to the information processor) which stores the data in the information processor.
The TLB stores address translation pairs (TLB entry) indicating the correspondence between virtual addresses and physical addresses. Using the TLB, the CPU enables high-speed address translation from virtual addresses into physical addresses.
Although address translation pairs to be stored in the TLB are registered by the OS (Operating System) of the information processor, the OS may, on rare occasions, register a plurality of identical address translation pairs.
Thus, if a plurality of identical address translation pairs are registered in the TLB, Multi-Hits are detected by retrieving (referring to) these plurality of address translation pairs when actually executing address translation.
If multi-hits are detected, the conventional information processor 110, regarding the data (address translation pairs) stored in the TLB 111 as unreliable, deletes and re-register all the address translation pairs stored in the TLB 111, thereby causing a penalty to occur, the penalty being delaying the operation in the CPU during the deletion and re-registration of all the address translation pairs stored in the TLB 111.
In this context, there has been proposed as a method of controlling multi-hits of the TLB, a technique wherein it is checked whether or not a TLB entry is already registered on the TLB when writing a new TLB entry (address translation pair) into the TLB, and, if there exists a TLB entry identical to the TLB entry to be newly written, there is performed overwriting of the already registered TLB entry with the TLB entry to be newly written (see patent document 1 in the following).
In addition, in a technique related to a cache memory device, there has been proposed a technique wherein in the case where a plurality of hits are found in terms of identical data on the cache memory cache-miss is established and the data thereon are deleted (see the following patent document 2).
Now, in recent years, there have been widely used multi-threaded computing techniques, which enable a plurality of threads to run on the processor core of a single CPU. By employing the multi-thread mode, a process including translation of virtual addresses into physical addresses may be assigned to a plurality of different threads (here thread 0 and thread 1) with time intervals therebetween. In such a case, since thread 0 and thread 1 both use the identical address translation pair, it is desirable that TLB resources be shared by the plurality of threads 0 and 1. Thus, sharing TLB resources by a plurality of threads 0 and 1 can improve utilization efficiency of the TLB.
In the conventional technique, however, sharing TLB resources between a plurality of threads 0 and 1 results in undesirable multi-hits, such multi-hits causing said penalty to occur, thereby leading to performance degradation (delay of processing) of the CPU. Undesirable multi-hits are not attributed to malfunction of the OS but to occurrence of TLM misses such as nonexistence of the virtual address to be translated on the TLB. In short, undesirable multi-hits are caused by a plurality of threads 0 and 1 executing simultaneously a process called TLB miss handler, which, due to occurrence of a TLB miss, reads out a page table entry from the main memory, or the like, of the information processor so as to register it in TLB.
Then, if during execution of thread 1, a TLB miss is detected in thread 1 at a virtual address identical to the virtual address in which thread 0 caused the TLB miss (step S13), thread 1 executes the TLB miss handler (TLB entry registration process) (step S14).
After the TLB miss handler of thread 1 is finished (TLB entry registration completion), switching of threads is triggered again, and the process is switched from thread 1 to thread 0, which in turn resumes the TLB miss handler with regard to thread 0 which was sleeping until then (step S15), and thread 0 also completes the TLB miss handler.
Execution of such a process results in the existence of two identical TLB entries on the TLB by the TLB miss of threads 0 and 1. Thus, undesirable multi-hits are detected by referring to these identical TLB entries for subsequent address translation.
The present invention has been made in view of the above problems and it is an object of the present invention, to enable address translation buffer (TLB=Translation Lookaside Buffer) to be shared between plural threads without causing undesirable multi-hits in an information processor, which operates in multi-thread mode.
To accomplish the above-mentioned object, according to the present invention there is provided an information processor which operates in multi-thread mode comprising an address translation buffer for storing address translation pairs indicating the correspondence between virtual addresses and physical addresses, a retriever for retrieving address translation pairs relating to a virtual address stored in said address translation buffer in order to translate a virtual address obtained for each thread into a physical address, and a multi-hit controller for suppressing output of multi-hits and directing said retriever to execute address translation if a predefined condition is satisfied, when a plurality of identical address translation pairs are retrieved by said retriever.
In addition, to accomplish the above-mentioned object, according to the present invention there is provided an information processor which operates in multi-thread mode comprising an address translation buffer for storing address translation pairs indicating the correspondence between virtual addresses and physical addresses and for storing thread information indicating the thread which registered said address translation pairs, a retriever for retrieving, from said address translation buffer, address translation pairs relating to a virtual address identical to said virtual address in order to translate a virtual address used in each thread into a physical address, a determination unit for determining, when a plurality of address translation pairs relating to a virtual address identical to the virtual address to be translated are retrieved by said retriever, whether or not two or more of said thread information are identical among a plurality of thread information corresponding to a plurality of address translation pairs retrieved by said retriever, and a multi-hit controller for suppressing output of multi-hits and directing said retriever to execute address translation if said plurality of thread information are determined to be different according to said determination unit.
Here, it is preferred that said multi-hit controller outputs multi-hits if two or more of said thread information among said plurality of thread information are determined to be identical by said determination unit.
In addition, to accomplish the above-mentioned object, the information processor of the present invention is an information processor which operates in multi-thread mode, said processor comprising an address translation buffer for storing address translation pairs indicating the correspondence between virtual addresses and physical addresses and for storing thread information indicating the thread which registered said address translation pairs, a retriever for retrieving, from said address translation buffer, an address translation pair relating to a virtual address identical to said virtual address in order to translate the virtual address obtained for each thread into a physical address, a thread comparator for comparing a plurality of thread information corresponding to a plurality of retrieved address translation pairs if a plurality of identical address translation pairs are retrieved by said retriever, and a multi-hit controller for outputting multi-hits if two or more of said thread information are determined to be identical as a result of comparison by said thread comparator, and for directing said retriever to execute address translation if said plurality of thread information are not identical.
Furthermore, to accomplish the above-mentioned object, the information processor of the present invention is an information processor which operates in multi-thread mode, said processor comprising an address translation buffer for storing address translation pairs indicating the correspondence between virtual addresses and physical addresses, an entry unit for registering a virtual address used in each thread and a physical address corresponding to said virtual address into said address translation buffer as said address translation pair, a retriever for retrieving, from said address translation buffer, a virtual address identical to the virtual address of said address translation pair to be registered, when registering said address translation pair by said entry unit, and an entry controller for preventing said entry unit from registering said address translation pair into said address translation buffer if a virtual address identical to the virtual address of the address translation pair to be registered by said entry unit is retrieved by said retriever.
Here, it is preferred that thread information indicating the thread which registered the address translation pair is added to said address translation pair stored in said address translation buffer, said processor further comprises a thread comparator for comparing said thread information added to said address translation pair retrieved by said retriever with the thread using the virtual address of the address translation pair registered by said entry unit, if a virtual address identical to the virtual address of the address translation pair registered by said entry unit is retrieved from said address translation buffer by said retriever,
In addition, to accomplish the above-mentioned object, the information processor of the present invention is an information processor which operates in multi-thread mode, said processor comprising an address translation buffer for storing address translation pairs indicating the correspondence between virtual addresses and physical addresses and for storing thread information indicating the thread which registered said address translation pair, an entry unit for registering a virtual address used in each thread and a physical address corresponding to said virtual address into said address translation buffer as said address translation pair,
Here it is preferred that said entry controller directs said entry unit to register said address translation pair into said address translation buffer if a virtual address identical to the virtual address of the address translation pair to be registered by said entry unit is retrieved from said address translation buffer by said retriever and if the thread information corresponding to said address translation pair retrieved by said retriever is identical to the thread using the virtual address of the address translation pair to be registered by said entry unit.
As mentioned above, according to the present invention, in the case where an address translation pair relating to a virtual address identical to the virtual address to be translated is retrieved from the address translation buffer, output of undesirable multi-hits can be suppressed by setting predefined conditions because no multi-hit is outputted if such predefined conditions are satisfied.
In addition, according to the present invention, in the case where a plurality of address translation pairs relating to a virtual address identical to the virtual address to be translated are retrieved from the address translation buffer, output of undesirable multi-hits caused not by malfunction of the OS but by the fact that the information processor operates in multi-thread mode (i.e., by executing the TLB miss handler in a plurality of threads) can be without fail suppressed, because output of multi-hits is suppressed if the thread information of the plurality of retrieved address translation pairs is not identical to the thread using the virtual address to be translated.
Furthermore, according to the present invention, in the case where a plurality of address translation pairs relating to a virtual address identical to the virtual address to be translated is retrieved from the address translation buffer, multi-hits attributed to malfunction of the OS registering a plurality of identical address translation pairs from the same thread can be output without fail because multi-hits are output if the thread information of the plurality of retrieved address translation pairs is identical to the thread using the virtual address to be translated, whereby security of the information processor can be ensured while taking into account the reliability of the OS of the information processor.
In addition, according to the present invention, in the case where an address translation pair relating to a virtual address identical to the virtual address to be registered by the entry unit is retrieved from the address translation buffer, registration of identical address translation pairs into the address translation buffer is prevented without fail, because registration of address translation pairs by the entry unit is suppressed, whereby occurrence of undesirable multi-hits during address translation can be suppressed.
Furthermore, according to the present invention, in the case where a translation pair relating to a virtual address identical to the virtual address to be registered by the entry unit has been retrieved from the address translation buffer, registration of a plurality of identical address translation pairs into the address translation buffer can be prevented without fail, because registration of the address translation pair by the entry unit is prevented if the thread information relating to the retrieved address translation pair is not identical to the thread using the virtual address to be registered by the entry unit. As a result, occurrence of undesirable multi-hits other than multi-hits due to malfunction of the OS can be suppressed without fail when actually executing address translation using the address translation buffer, and the address translation process can be executed smoothly and without fail.
Moreover, utilization efficiency of the address translation buffer can be improved because registration of identical address translation pairs from different threads into the address translation buffer is prevented, which, as a result, can improve the performance of the address translation process using the address translation buffer.
Also in the case where an address translation pair relating to a virtual address identical to the virtual address to be registered by the entry unit is retrieved from the address translation buffer, since registration of the address translation pair by entry unit is executed if the thread information relating to the retrieved address translation pair is identical to the thread using the virtual address to be registered by the entry unit, occurrence of an event such as registering identical address translation pairs from the same thread is determined to be attributed to malfunction of the OS of the information processor and multi-hits pertaining to this malfunction of the OS are without fail detected and produced in the address translation process using the address translation buffer, whereby security of the information processor can be ensured taking into account the reliability of the OS of the information processor.
Embodiments of the invention will be described in the following with reference made to the accompanying drawings.
First, an information processor and a multi-hit control method according to a first embodiment of the present invention will be described.
The processor unit 10 operates in multi-thread mode, which can execute a plurality of threads (here, threads 0 and 1) in parallel, herein, the time sharing multi-thread mode (VMT: Vertical Multi Thread). Here, VMT mode, processing only one thread at one time, is a mode for realizing multi-thread by switching threads to be processed. Switching of threads in VMT mode is either triggered when a constant time period has passed in one thread, or triggered by detection of slowed execution of instructions due to cache miss, even before the constant time period has passed (see
The instruction processor 20 executes process instructions and, when executing process instructions, translates virtual addresses used by the program into physical addresses on the storage (e.g., cache memory installed within the CPU 10 or external main storage device), which stores data, by an address translation controller 30 described below. The address translation controller 30 is provided for translating virtual addresses entered from the instruction processor 20 into physical addresses, and comprises an address translation buffer (TLB: Translation Lookaside Buffer) 31, retriever 32, thread comparator 33, determination unit 34, and a multi-hit controller 35.
Valid/invalid information is information indicating whether the address translation pair is valid or invalid.
A context exists for identifying a local space (individual space) of the address space (i.e., memory space of physical addresses), and a global bit is information indicating whether or not to distinguish contexts. Here, the global bit being “1” (Valid) indicates that contexts are distinguished and referred to (individual region of the memory space is used), whereas the global bit being “0” (invalid) indicates that contexts are not distinguished and referred to (a common region of the memory space is used).
Thread information is information indicating the thread, which registered the address translation pair into the address translation buffer 31.
A control bit is a bit for control, such as, for example, Cacheable-in-Physically-Indexed-Cache bit, Cacheable-in-Virtually-Indexed-Cache bit, Side Effect bit, a Privileged bit, a Writable bit.
The retriever 32 translates virtual addresses to be translated into physical addresses by retrieving, from address translation buffer 31, an address translation pair relating to a virtual address identical to the virtual address to be translated, and comprises an address comparator 32a and a context comparator 32b.
As shown in
In addition, the context comparator 32b executes comparison of the context (expressed as “Access Context” in
Note that the context comparator 32b determines the match if the global bit of the address translation pair is “1” (Valid) and if the context of the virtual address to be translated is identical to the context of the address translation pair, however skips comparison of the contexts of the virtual address to be translated with the context of the address translation pair if the global bit of the address translation pair is “0” (invalid).
Therefore, the retriever 32 detects the existence, in the address translation buffer 31, of an address translation pair relating to a virtual address identical to the virtual address to be translated, in the case where, according to the result of comparison by the address comparator 32a, the virtual address to be translated is identical to the virtual address of the address translation pair, and further the context of the virtual address to be translated by the context comparator 32b is identical to the context of the address translation pair with the global bit being “1”, and in the case where, according to the result of comparison by the address comparator 32a, the virtual address to be translated is identical to the virtual address of the address translation pair, and further the global bit referred to by the context comparator 32b is “0”.
The thread comparator 33 executes comparison of the thread (expressed as “Access Thread” in
The determining unit 34, in addition to determining the results of retrieval by the retriever 32, determines the result of comparison by the thread comparator 33. In other words, it determines whether or not a plurality of address translation pairs are retrieved by the retriever 32, as well, determining whether or not the result of comparison by the thread comparator 33 shows a match.
In other words, the determination unit 34 determines, when a plurality of address translation pairs relating to a virtual address identical to the virtual address to be translated by the retriever 32 is retrieved from the address translation buffer 31, whether or not as a result of comparison of the thread comparator 33 for a plurality of thread information corresponding to the plurality of address translation pairs retrieved by the retriever 32 there is a thread information matching in terms of two or more of thread information among such plurality of thread information.
The multi-hit controller 35 either outputs multi-hits or directs execution of address translation based on the result of retrieval by the retriever 32 as well as the result of determination by the determination unit 34 (i.e., referring to the result of retrieval by the retriever 32 and the result of determination by the determination unit 34), and, in the case where an address translation pair relating to a virtual address identical to the virtual address to be translated is retrieved from the address translation buffer 31 by the retriever 32, directs to execute address translation of the virtual address to be translated into a physical address according to the result of retrieval (i.e., said address translation pair retrieved) by the retriever 32 if a single address translation pair is retrieved.
In addition, the multi-hit controller 35, in the case where a plurality of address translation pairs relating to a virtual address identical to the virtual address to be translated is retrieved by retriever 32, suppresses output of multi-hits and directs the retriever 34 to execute address translation if the result of comparison by the thread comparator 33 for the plurality of address translation pairs retrieved by the retriever 32 is determined to be different by the determination unit 34, however outputs multi-hits if the result of comparison by the thread comparator 33 for the plurality of address translation pairs retrieved by the retriever 32 is determined to be identical to two or more of the thread information among a plurality of thread information by the determination unit 34. Note that the multi-hit controller 35 directs to execute address translation using any one of the plurality of address translation pairs retrieved by the retriever 32 if there is no address translation pair, for which any of the translation pairs as a result of comparison by the thread comparator 33 is determined to be identical.
As described above, with the information processor 1 according to the first embodiment of the present invention, also in the case where, according to the result of retrieval by the retriever 32, a plurality of address translation pairs relating to a virtual address identical to the virtual address to be translated are retrieved, from the address translation buffer 31, by the retriever 32, the determination unit 34 determines the result of comparison by the thread comparator 33 for the plurality of address translation pairs retrieved by retriever 32, and, if the plurality of thread information of such plurality of address translation pairs are different, the multi-hit controller 35 suppresses output of multi-hits and directs execution by the address translation pair.
A multi-hit control method (operation of the information processor 1) as the first embodiment of the present invention will be described next.
Then, in the case where, according to the result of retrieval by the address comparator 32a, the address translation pair A (expressed as “entry A” in
On the other hand, in the case where the result of determination by the determination unit 34 indicates that only one of the thread information of the address translation pairs A and B is identical to the thread using the virtual address to be translated (i.e., in the case where thread information C and thread information D are not identical), the multi-hit controller 35 suppresses output of multi-hits and directs address translation by the address translation pair having the thread information coinciding with the thread using the virtual address to be translated (i.e., regarded as a TLB hit).
In other words, in the multi-hit control method according to the first embodiment of the present invention, multi-hits are outputted only if the determination unit 34 determines that the result of comparison by the thread comparator 33 for the plurality of address translation pairs retrieved by the retriever 32 indicates that the thread information of at least two address translation pairs is identical to the thread using the virtual address to be translated, in the case where thread information indicating the thread which registered the address translation pair is added to said address translation pair stored in the address translation buffer 31, and the thread using the virtual address to be translated is compared with the thread information added to the address translation pair by the thread comparator 32, and a plurality of address translation pairs relating to a virtual address identical to the virtual address to be translated are retrieved by the retriever 32.
As described above, in the information processor 1 and the multi-hit control method according to the first embodiment of the present invention, by adding thread information indicating the thread which registered the address translation pair to the address translation pair, and referring, by means of the multi-hit controller 35, to the determination by the determination unit 34 of the result of thread comparison by the thread comparator 33, multi-hits due to malfunction of the OS registering a plurality of identical translation pairs from the same thread are without fail output while suppressing output of undesirable multi-hits which are not attributed to malfunction of the OS, because output of multi-hits is suppressed if the result of comparison by the thread comparator 33 shows a difference, however outputs multi-hits if the result of comparison by the thread comparator 33 shows a match, also in the case where a plurality of address translation pairs are retrieved by the retriever 32. Therefore, occurrence of the penalty of deleting and re-registering all the address translation pairs in the address translation buffer 31 due to undesirable multi-hits can be suppressed thereby preventing performance degradation (delay of processing) of the CPU 10.
In addition, the information processor 1 and the multi-hit control method according to the first embodiment of the present invention can be implemented by a slight modification applied to the conventional information processor mentioned above with reference to
The information processor and the multi-hit control method according to the second embodiment of the present invention will be described next.
As shown in
The address translation controller 30 comprises an address translation buffer 31, an entry unit 36, a retriever 37, a thread comparator 38, a determination unit 39 and an entry controller 40. Since the address translation buffer 31 is identical to the address translation buffer 31 of the first embodiment (see
The entry unit 36 registers virtual addresses used for each thread by the TLB miss handler or the like, and physical addresses corresponding to the virtual addresses into the address translation buffer 31 as address translation pairs.
As shown in
In other words, the retriever 37, also comprising a address comparator 37a and a context comparator 37b, has a similar function with the only difference being that a virtual address to be newly registered (Entry Virtual Address) is the virtual address to be retrieved for the address comparator 37, whereas a virtual address to be translated (Access Virtual Address; see
In addition, the context comparator 37b also has a similar function with the only difference being that the context of a virtual address to be newly registered (expressed as “Entry Context” in
The Thread comparator 38 executes comparison of the thread using the virtual address of the address translation pair to be registered by the entry unit 36 (expressed as “Entry Thread” in
The determination unit 39 determines, in addition to the result of retrieval by the retriever 37, the result of comparison by the thread comparator 38. In other words, the determination unit 39 determines whether or not the address translation pair relating to a virtual address identical to the virtual address to be registered by the entry unit 36 is retrieved by the retriever 37, and whether or not the result of comparison by the thread comparator 38 shows a match.
In other words the determination unit 39 determines, in the case where the address translation pair relating to a virtual address identical to the virtual address to be registered is retrieved from address translation buffer 31 by the retriever 37, whether or not the result of comparison by thread comparator 38 of the thread information corresponding to the address translation pair retrieved by the retriever 37 shows a match.
The entry controller 40, referring to the result of determination by the determination unit 34 (i.e., based on the result of retrieval by the retriever 37 as well as the result of comparison by the thread comparator 38), controls registration of address translation pairs into the address translation buffer 31 by the entry unit 36, and directs the entry unit 36 to register the address translation pair if no virtual address of the address translation pair to be registered by the entry unit 36 is retrieved from the address translation buffer 31 by retriever 37.
In addition, the entry controller 40, refers to the result of determination by the determination unit 39, in the case where a virtual address identical to the virtual address of the address translation pair to be registered by the entry unit 36 is retrieved from the address translation buffer 31 by the retriever 37, and directs the entry unit 36 to register the address translation pair into address translation buffer 31 if the determination unit 39 determined that, according the result of comparison by the thread comparator 38, the thread information (Thread ID) added to the address translation pair retrieved by the retriever 37 is identical to the thread (Entry Thread) using the virtual address of the address translation pair to be registered by the entry unit 36.
On the other hand, in the case where a virtual address identical to the virtual address of the address translation pair to be registered by the entry unit 36 is retrieved from the address translation buffer 31 by retriever 37, the entry controller 40 prevents the entry unit 36 from registering the address translation pair into the address translation buffer 31, if the determination unit 39 has determined that, according to the comparison by the thread comparator 38, the thread information (Thread ID) and the thread (Entry Thread) are different.
A multi-hit control method (operation of the information processor 100) as the second embodiment of the present invention will be described next.
Then, according to the result of retrieval by the retriever 37, if there is no virtual address identical to the virtual address to be registered into address translation buffer 31 by the entry unit 36 (No route of step S2), the entry controller 40 directs the entry unit 36 to register the address translation pair (step S3), and the process is completed.
However, according to the result of retrieval by the retriever 37, if there exists, in the address translation buffer 31, a virtual address identical to the virtual address to be registered by the entry unit 36 (Yes route of step S2), the entry controller 40 refers to the result of determination by the determination unit 39.
In other words, if the determination unit 39 determines that, according to the result of comparison by the thread comparator 38, the thread information which registered the virtual address (address translation pair) retrieved by retriever 37 is identical to the thread using the virtual address to be registered by the entry unit 36 (No route of step S4), the entry controller 40 directs the entry unit 36 to register the address translation pair (step S3), and the process is completed.
However, if the determination unit 39 determines that, according to the result of comparison by the thread comparator 38, the thread information which registered the virtual address (address translation pair) retrieved by the retriever 37 is not identical to the thread using the virtual address to be registered by the entry unit (Yes route of step S4), the entry controller 40 prevents entry unit 36 from registering the address translation pair (step S5), and the process is completed.
As described above, according to the information processor unit 100 and the multi-thread control method according to the second embodiment of the present invention, since the entry controller 40 directs the entry unit 36 to register the address translation pair into the address translation buffer 31 in the case where thread information indicating the thread which registered the address translation pair is added to the address translation pair stored in the address translation buffer 31, a virtual address identical to the virtual address of the address translation pair to be registered by the entry unit 36 is retrieved from the address translation buffer 31 by the retriever 37, and, according to the result of determination by the determination unit 39 (result of comparison by the thread comparator 38), the thread information added to the address translation pair relating to the virtual address retrieved by the retriever 37 is identical to the thread using the virtual address of the address translation pair to be registered by the entry unit 36, occurrence of an event such as registering identical address translation pairs from the same thread is determined to be due to malfunction of the OS of the information processor 100 and multi-hits in association with to this malfunction of the OS are without fail detected and outputted in the address translation process using the address translation buffer 31, whereby security of the information processor 100 can be ensured.
However, since the entry controller 40 prevents the entry unit 36 from registering the address translation pair into the address translation buffer 31, in the case where a virtual address identical to the virtual address of the address translation pair to be registered by the entry unit 36 is retrieved from the address translation buffer 31 by the retriever 37, and, according to the result of determination by the determination unit 39 (result of comparison by the thread comparator 38), the thread information added to the address translation pair relating to the virtual address retrieved by the retriever 37 is not identical to the thread using the virtual address of the address translation pair to be registered by the entry unit 36, registration of a plurality of address translation pairs having an identical virtual address into the address translation buffer 31 can be without fail suppressed. Therefore, in the information processor unit 100 operating in multi-thread mode, undesirable multi-hits except multi-hits due to malfunction of the OS do not occur when actually executing address translation using the address translation buffer 31, and the address translation process can be executed smoothly and without fail. In other words, occurrence of the penalty of deleting and re-registering all the address translation pairs in the address translation buffer 31 due to undesirable multi-hits can be suppressed thereby preventing performance degradation (delay of processing) of the CPU 10.
Moreover, utilization efficiency of the address translation buffer 31 can be improved because registration of identical address translation pairs from different threads into the address translation buffer 31 is prevented, which, as a result, can improve the performance of the address translation process using the address translation buffer 31.
[3] An Exemplary Variation of the Present Invention
Note that the present invention is not limited to the above-mentioned embodiments and allows for many variations in a range not deviating from the spirit of the present invention.
For example, although comparison by the thread comparator 33 in the first embodiment described above, to which the present invention is not limited, is arranged to be executed whenever the address translation is executed, it may be arranged such that comparison by the thread comparator 33 is executed only when a plurality of virtual addresses to be translated is retrieved from the address translation buffer 31 by the retriever 32, providing a similar advantage as with the first embodiment described above. Note that, in this case, the multi-hit controller 35 may be arranged to direct the thread comparator 33 to execute comparison.
In addition, although comparison by the thread comparator 38 in the second embodiment described above, to which the present invention is not limited, is arranged to be executed whenever an address translation pair is registered into the address translation buffer 31 by the entry unit 36, it may be arranged such that comparison by the thread comparator 38 is executed only when an address translation pair relating to a virtual address identical to the virtual address registered by the entry unit 36 is retrieved from the address translation buffer 31 by the retriever 37, enabling a similar advantage as with the second embodiment described above. Note that, in this case, the entry controller 40 may be arranged to direct the thread comparator 38 to execute comparison.
Furthermore, although output of multi-hits in the first embodiment described above, to which the present invention is not limited, is suppressed provided that the plurality of thread information are different, it may be arranged such that output of multi-hits is suppressed when a predefined condition other than the above is satisfied.
In addition, although the information processor 1 in the first embodiment described above, to which the present invention is not limited, is illustrated by way of an example comprising a determination unit 34 and a multi-hit controller 35 individually, it may be arranged such that the multi-hit controller 35 comprises a determination unit 34.
Furthermore, although the information processor 100 in the second embodiment described above, to which the present invention is not limited, is illustrated by way of an example comprising a determination unit 39 and an entry controller 40 individually, it may be arranged such that the entry controller 40 comprises the unit 39.
[4] Others
The above-described functions as the instruction processor 20, the address comparators 32a, 37a, the context comparators 32b, 37b, the thread comparators 33, 38, the determination units 34, 39, the multi-hit controller 35, the entry unit 36, and the entry controller 40 can be implemented by executing a predefined application program (multi-hit control program) by a computer (including CPU, an information processor, various terminals).
The program is provided in the form of records made on computer-readable media such as, for example, flexible discs, CD-ROMs, CD-Rs, CD-RWs, DVDs, or the like. In this case, the computer reads out the multi-hit control program from the recording medium, transfers and stores it into an internal storage device or an external storage device for use. In addition, the program may be recorded on storage devices (storage media) such as, for example, magnetic disks, optical disks, magneto-optical disks, or the like, so that it may be provided from the storage device to a computer via a communication network.
Here, a computer, referring to a concept including hardware and OS (operating system), is a hardware, which operates under control of the OS. In addition, when an OS is unnecessary and application program alone can operate the hardware, the hardware itself is equivalent to the computer. The hardware comprises at least a microprocessor such as a CPU and means for reading a computer program recorded on a recording medium. The application program as the above-mentioned multi-hit control program includes, in the computer described above, program codes for implementing functions as an instruction processor 20, address comparators 32a, 37a, context comparators 32b, 37b, thread comparators 33, 38, determination units 34, 39, a multi-hit controller 35, an entry unit 36, and an entry controller 40. In addition, a portion of the functions may be implemented by the OS instead of the application program.
Furthermore, as recording media for the present embodiment, a variety of computer-readable media such as IC cards, ROM cartridges, magnetic tapes, punch cards, internal storage devices of a computer (memory such as RAM and ROM), external storage devices, printed materials having symbols such as bar codes printed thereon can also be used other than flexible disks, CD-ROMs, CD-Rs, CD-RWs, DVDs, magnetic disks, optical disks, magneto-optical disks described above.
Number | Date | Country | Kind |
---|---|---|---|
2004-222041 | Jul 2004 | JP | national |