Unlock instant, AI-driven research and patent intelligence for your innovation.

Processor and method for detecting self-modifying code

A processor and detector technology, applied in the field of detecting self-correcting program codes, can solve problems such as troublesome self-correcting program codes, and achieve the effect of improving performance

Active Publication Date: 2019-05-07
VIA ALLIANCE SEMICON CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But even a 1KB ownership block is enough to cause problems for self-modifying code in many cases

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Processor and method for detecting self-modifying code
  • Processor and method for detecting self-modifying code
  • Processor and method for detecting self-modifying code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The inventors discovered memory ownership issues due to self-modifying code. They developed an ownership queue that builds memory ownership by cache line to detect self-correcting code.

[0030] figure 1 is a simplified functional block diagram of the processor 100 combined with an ownership queue (OWNQ) 101 . Ownership queue 101 is implemented in accordance with one embodiment to establish ownership between data and instructions. The standard instruction set architecture (instruction set architecture, ISA) of the processor 100 may be an x86 macro (macro) architecture. The x86 macroarchitecture can correctly execute most applications designed to run on an x86 processor. An application is executed correctly when its expected results are achieved. In particular, the processor 100 executes instructions in the x86 instruction set and has an x86 user-visible register set. However, the present invention is not limited to the x86 architecture, and the processor 100 can be...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a detection self-correction program code processor and method. The processor and the method can decide the ownership of the storage to detect the self-correction program codes according to a fast-taking line. The ownership queue stores a fast-taking line address and a corresponding ownership index. the fast-taking line data is translated to an instruction, and each instruction and the related to the ownership index of the storage unit are provided at the same time. a new fast-taking line address is compared relative to each storage instruction object address. each object address is compared to each fast-taking line address in the ownership queue. The matched storage unit is marked as overtime, and the storage unit generates each instruction to generate an exceptional case when quitting. Therefore, the fast-taking line and the corresponding storage instruction are paired to generate an exceptional case which updates the new processor to solve the corrected program code condition. The present invention can improve the efficiency of the processor.

Description

technical field [0001] The present invention is related to memory ownership, and more particularly to determining memory ownership based on cache lines to detect self-correcting code. Background technique [0002] Self-modified code (self modified code, SMC) has at least one instruction executed by a local processor to modify another instruction, or a sequence of program codes subsequently processed by the processor. The self-modifying program code may have a sequence of program codes to modify the program code that was just executed, so that the program code that was modified to have a new function is executed again. In another example, self-modifying code is used to modify immediately preceding code that is executed. Although self-modifying code is not as common today as it used to be, many legacy programs still have self-modifying code and should be implemented properly. Processors must be able to detect self-correcting code and correct operations to avoid inappropriate...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/30
CPCG06F9/3004
Inventor 布兰特·比恩柯林·艾迪
Owner VIA ALLIANCE SEMICON CO LTD