Remapping method and device, equipment and storage medium

By establishing a data block mapping relationship in the memory, flexible modification of read-only memory data is achieved, and the problem of data modification in processor burst transmission or continuous transmission scenarios is solved, and the range of modifiable data is expanded.

CN119025440AActive Publication Date: 2024-11-26XIAMEN UNISOC TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411001876.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-26
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

The prior art cannot effectively deal with the modification of read-only memory data in the scenarios of burst transmission or continuous transmission (burst access), and cannot modify non-register code errors.

Method used

By obtaining data modification requests, the location of the data blocks in the memory is determined, and the data blocks are updated in the corresponding memory, the mapping relationship between the data blocks is established, and flexible modification of read-only memory data is realized.

Benefits of technology

It improves the flexibility and scope of read-only memory data modification, can be applicable to complex scenarios of burst transmission or continuous transmission of processors, and solves the problem of limited modification in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025440A_ABST
    Figure CN119025440A_ABST
Patent Text Reader

Abstract

The invention provides a remapping method and device, equipment and a storage medium. The method is applied to the electronic equipment, the electronic equipment comprises a processor, a read-only first memory and a random access second memory, and the method comprises the steps that a data modification request is acquired, and the data modification request is used for requesting to modify data on a first address in the first memory into target data; determining a first data block where the first address is located in the first memory, and judging whether the first data block exists in a second memory or not; if yes, a first data block in a second memory is updated according to the first address and the target data, so that the processor reads the target data in the second memory; if not, the first data block is stored in the second memory, and the first data block in the second memory is updated according to the first address and the target data, so that the processor reads the target data in the second memory, the modifiable data range is expanded, and the method can be suitable for more complex use scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a remapping method, apparatus, device and storage medium. Background Art

[0002] The read-only memory on the chip is often used to store various fixed programs and data, especially the boot program. After the chip is packaged and tested, the data in the internal read-only memory cannot be modified or lost, but the programs and data therein may have errors or omissions, or the programs or data in the read-only memory may need to be modified to meet the ever-changing market needs.

[0003] In order to reduce costs and avoid re-spinning, in the prior art, a small amount of data in the chip's read-only memory is modified by adding a read control module and less circuit logic in the channel between the processor and the read-only memory. However, this method can only set the replacement address and replacement data to the system register through the DEBUG module, and can only replace a single instruction statement, and cannot cope with complex scenarios of processor burst transmission or continuous transmission (burst access). Another way is to implement it through software pre-embedded points, which can only modify the value of the register at a fixed embedded point position, and cannot modify non-register code errors. Summary of the invention

[0004] The present application provides a remapping method, apparatus, device and storage medium to solve the problem that when modifying data in a first memory, it is impossible to cope with complex scenarios of processor burst transmission or continuous transmission (burst access), and it is impossible to modify non-register code errors.

[0005] In a first aspect, the present application provides a remapping method, comprising:

[0006] Obtaining a data modification request, wherein the data modification request is used to request to modify the data at the first address in the first memory to target data;

[0007] Determine in the first memory a first data block where the first address is located, and determine whether the first data block exists in the second memory;

[0008] If so, updating the first data block in the second memory according to the first address and the target data, so that the processor reads the target data in the second memory;

[0009] If not, the first data block is stored in the second memory, and the first data block in the second memory is updated according to the first address and the target data, so that the processor reads the target data in the second memory.

[0010] In a possible implementation manner, updating the first data block in the second memory according to the first address and the target data includes:

[0011] Determine a first starting address of the first data block in the first memory and a second starting address of the first data block in the second memory;

[0012] Determine, in the second memory, a second address corresponding to the first address according to the first address, the first starting address, and the second starting address;

[0013] In the second memory, the data at the second address is updated to the target data.

[0014] In a possible implementation manner, determining, in the second memory, a second address corresponding to the first address according to the first address, the first start address, and the second start address includes:

[0015] Determining a target offset of the first address relative to the first starting address;

[0016] The second address is determined according to the second starting address and the target offset, wherein the offset between the second address and the second starting address is the target offset.

[0017] In a possible implementation manner, the data modification request further includes a target address corresponding to the first address and an enable signal corresponding to the first address, and the target address is an address in the second memory; storing the first data block to the second memory includes:

[0018] receiving a first data access request sent by the processor, wherein the first data access request includes a first access address;

[0019] When the first access address and the first address are the same, determining whether the enable signal is a preset value;

[0020] If so, the target address is obtained in the data modification request, and the first data block is stored in the second memory according to the target address.

[0021] In a possible implementation, the method further includes:

[0022] acquiring the target data according to the first data access request;

[0023] The target data is sent to the processor.

[0024] In a possible implementation manner, after storing the first data block in the second memory and updating the first data block in the second memory according to the first address and the target data, the method further includes:

[0025] The target address of the target data in the second memory is sent to the processor, so that the processor creates a mapping relationship between the first address and the target address.

[0026] In a possible implementation, the method further includes:

[0027] determining, by the processor, a third address to be accessed in the first memory;

[0028] Acquire a mapping relationship table, wherein the mapping relationship table includes at least one address in the first memory and a mapping address of each address in the second memory;

[0029] Determine whether there is a mapping address corresponding to the third address in the mapping relationship table;

[0030] If yes, accessing data to the second memory according to the mapping address corresponding to the third address;

[0031] If not, data is accessed to the first memory according to the third address.

[0032] In a possible implementation manner, a control component is provided on a data bus between the processor and the first memory; and accessing data to the first memory according to the third address includes:

[0033] generating, by the processor, a second data access request according to the third address, wherein the second data access request includes the third address;

[0034] sending the second data access request to the control component by the processor;

[0035] Acquiring information to be modified through the control component, wherein the information to be modified includes an address to be modified, an enable signal corresponding to the address to be modified, a target modification address corresponding to the address to be modified, and data to be modified corresponding to the address to be modified;

[0036] Determining, by the control component, whether the information to be modified includes the third address;

[0037] If so, the data to be modified corresponding to the third address is sent to the processor, and the control component performs address remapping processing according to the third address, the enable signal corresponding to the third address, the target modification address corresponding to the third address, and the data to be modified corresponding to the third address;

[0038] If not, the control component queries the first processor for data corresponding to the third address, and sends the data corresponding to the third address to the processor.

[0039] In a possible implementation, performing address remapping processing by the control component according to the third address, an enable signal corresponding to the third address, a target modification address corresponding to the third address, and data to be modified corresponding to the third address includes:

[0040] Determining whether the enable signal corresponding to the third address is equal to a preset value;

[0041] If so, determining, in the first memory, a third data block corresponding to the third address;

[0042] storing the third data block in the second memory according to the target modification address corresponding to the third address;

[0043] The third data block in the second memory is updated according to the third address and the data to be modified corresponding to the third address.

[0044] In a possible implementation manner, after the control component performs address remapping processing according to the third address and the data to be modified corresponding to the third address, the method further includes:

[0045] The third address and the data to be modified corresponding to the third address are deleted from the information to be modified.

[0046] In a second aspect, an embodiment of the present application provides a remapping device, the device comprising: a first acquisition module, a first judgment module and an update module, wherein:

[0047] A first acquisition module, used for acquiring a data modification request, wherein the data modification request is used for requesting to modify the data at the first address in the first memory into target data;

[0048] A first determination module, configured to determine a first data block where the first address is located in the first memory, and determine whether the first data block exists in the second memory;

[0049] If so, the update module is used to update the first data block in the second memory according to the first address and the target data, so that the processor reads the target data in the second memory;

[0050] If not, the update module is used to store the first data block in the second memory, and update the first data block in the second memory according to the first address and the target data, so that the processor reads the target data in the second memory.

[0051] In a possible implementation, the update module is specifically used for:

[0052] Determine a first starting address of the first data block in the first memory and a second starting address of the first data block in the second memory;

[0053] Determine, in the second memory, a second address corresponding to the first address according to the first address, the first starting address, and the second starting address;

[0054] In the second memory, the data at the second address is updated to the target data.

[0055] In a possible implementation, the update module is specifically used for:

[0056] Determining a target offset of the first address relative to the first starting address;

[0057] The second address is determined according to the second starting address and the target offset, wherein the offset between the second address and the second starting address is the target offset.

[0058] In a possible implementation, the update module is specifically used for:

[0059] receiving a first data access request sent by the processor, wherein the first data access request includes a first access address;

[0060] When the first access address and the first address are the same, determining whether the enable signal is a preset value;

[0061] If so, the target address is obtained in the data modification request, and the first data block is stored in the second memory according to the target address.

[0062] In a possible implementation, the update module is specifically used for:

[0063] acquiring the target data according to the first data access request;

[0064] The target data is sent to the processor.

[0065] In a possible implementation, the update module is specifically used for:

[0066] The target address of the target data in the second memory is sent to the processor, so that the processor creates a mapping relationship between the first address and the target address.

[0067] In a possible implementation, the remapping device further includes a determination module, a second acquisition module, a second judgment module, and a data access module, wherein:

[0068] a determination module, configured to determine, by the processor, a third address to be accessed in the first memory;

[0069] A second acquisition module, configured to acquire a mapping relationship table, wherein the mapping relationship table includes at least one address in the first memory and a mapping address of each address in the second memory;

[0070] A second judgment module is used to judge whether there is a mapping address corresponding to the third address in the mapping relationship table;

[0071] If so, the data access module is used to access data from the second memory according to the mapping address corresponding to the third address;

[0072] If not, the data access module is used to access data from the first memory according to the third address.

[0073] In a possible implementation, the data access module is specifically used to:

[0074] generating, by the processor, a second data access request according to the third address, wherein the second data access request includes the third address;

[0075] sending the second data access request to the control component by the processor;

[0076] Acquiring information to be modified through the control component, wherein the information to be modified includes an address to be modified, an enable signal corresponding to the address to be modified, a target modification address corresponding to the address to be modified, and data to be modified corresponding to the address to be modified;

[0077] Determining, by the control component, whether the information to be modified includes the third address;

[0078] If so, the data to be modified corresponding to the third address is sent to the processor, and the control component performs address remapping processing according to the third address, the enable signal corresponding to the third address, the target modification address corresponding to the third address, and the data to be modified corresponding to the third address;

[0079] If not, the control component queries the first processor for data corresponding to the third address, and sends the data corresponding to the third address to the processor.

[0080] In a possible implementation, the data access module is specifically used to:

[0081] Determining whether the enable signal corresponding to the third address is equal to a preset value;

[0082] If so, determining, in the first memory, a third data block corresponding to the third address;

[0083] storing the third data block in the second memory according to the target modification address corresponding to the third address;

[0084] The third data block in the second memory is updated according to the third address and the data to be modified corresponding to the third address.

[0085] In a possible implementation, the data access module is specifically used to:

[0086] The third address and the data to be modified corresponding to the third address are deleted from the information to be modified.

[0087] In a third aspect, an embodiment of the present application provides a terminal device, the terminal device including a memory and a processor;

[0088] Memory and processor coupling;

[0089] The memory is used to store program instructions;

[0090] The processor is used to call program instructions so that the terminal device executes the remapping method involved in the first aspect and any possible implementation manner.

[0091] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer-readable storage medium stores computer execution instructions, which, when executed by a terminal device, are used to implement the remapping method involved in the first aspect and any possible implementation manner.

[0092] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a terminal device, is used to implement the remapping method involved in the first aspect and any possible implementation manner.

[0093] The remapping method, device, equipment and storage medium provided by the present application can map the data block in the read-only memory where the data is located to the random access memory when the data in the read-only memory needs to be modified, and modify the data in the data block in the random access memory. In this way, the data at any address in the read-only memory can be flexibly modified, which improves the flexibility of modifying the data in the read-only memory, expands the range of modifiable data, and can be applied to complex scenarios of processor burst transmission or continuous transmission (burst access). BRIEF DESCRIPTION OF THE DRAWINGS

[0094] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0095] Figure 1 A schematic diagram of the system architecture provided for an embodiment of the present application;

[0096] Figure 2 It is a flowchart of a remapping method provided in an embodiment of the present application;

[0097] Figure 3 A schematic diagram of a remapping process provided in an embodiment of the present application;

[0098] Figure 4 A schematic diagram of a process of accessing data to a first memory provided in an embodiment of the present application;

[0099] Figure 5 A schematic diagram of the structure of a control component provided in an embodiment of the present application;

[0100] Figure 6 A schematic diagram of the structure of a remapping device provided in an embodiment of the present application;

[0101] Figure 7 A schematic diagram of the structure of another remapping device provided in an embodiment of the present application;

[0102] Figure 8 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application.

[0103] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0104] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0105] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved shall comply with the provisions of relevant laws and regulations and shall not violate public order and good morals.

[0106] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0107] For ease of understanding, the following Figure 1 , the system architecture applicable to the embodiments of the present application is described.

[0108] Figure 1 This is a schematic diagram of the system architecture provided by the embodiment of this application. Figure 1 , including a processor, a first memory and a second memory, and the processor can interact with the first memory and the second memory respectively. The processor can be a central processing unit (CPU) of a chip, the first memory can be a read-only memory (ROM) in the chip, and the second memory can be a random access memory (RAM) in the chip.

[0109] In actual application, the first memory and the second memory can be used to store data. Since the first memory is a read-only memory, the data in the first memory cannot be modified directly. If the data in the first memory needs to be modified, the data block where the data is located in the first memory can be mapped to the second memory, and the modification of the data can be completed in the second memory. When the processor reads the data at the address, it can directly read the corresponding data in the second memory.

[0110] For example, it is assumed that there are processor 1, first memory 1, and second memory 1, and the address of data 1 in first memory 1 is address 1, and address 1 is located in data block 1. If data 1 in first memory 1 needs to be modified to data 3, data block 1 can be remapped to second memory 1, and data 1 can be modified to data 3 in second memory 1. When processor 1 reads data at address 1, it can read in data block 1 in second memory 1, that is, the data read by the processor is data 3.

[0111] It should be noted that Figure 1 It is just an example to illustrate a system architecture diagram, and it is not a limitation of the system architecture diagram.

[0112] In the related art, a small amount of data in the chip's read-only memory is modified by adding a read control module and less circuit logic in the channel between the processor and the read-only memory. However, this method can only set the replacement address and replacement data to the system register through the DEBUG module, and can only replace a single instruction statement, and cannot cope with complex scenarios of processor burst transmission or continuous transmission (burst access). Another way is to implement it through software pre-embedded points, which can only modify the value of the register at a fixed embedded point position, and cannot modify non-register code errors.

[0113] In the embodiment of the present application, when the data in the read-only memory needs to be modified, the data block in the read-only memory where the data is located can be mapped to the random access memory, and the data in the data block can be modified in the random access memory. In this way, the data at any address in the read-only memory can be flexibly modified, which improves the flexibility of modifying the data in the read-only memory and expands the range of modifiable data. At the same time, mapping the data in the form of a data block in the second memory can be applied to complex scenarios of processor burst transmission or continuous transmission (burst access).

[0114] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0115] Figure 2 is a flowchart of a remapping method provided in an embodiment of the present application. Figure 2 As shown, the method may include the following steps:

[0116] S201. Obtain a data modification request.

[0117] The data modification request may include a first address and target data, wherein the first address may be the address of the data to be modified in the first memory, and the target data may be used to replace the original data corresponding to the first address. The data modification request is used to request that the data at the first address in the first memory be modified to the target data.

[0118] The execution subject of the embodiment of the present application may be a remapping device, or a remapping apparatus arranged in the remapping device. The remapping apparatus may be implemented by software, or by a combination of software and hardware.

[0119] S202: Determine in the first memory a first data block where the first address is located, and determine whether the first data block exists in the second memory.

[0120] If yes, execute S203.

[0121] If not, execute S204.

[0122] The first data block may be a data block where data at a first address in a first memory is located. The first data block may include multiple data, and the addresses of the multiple data in the first memory are continuous. The multiple continuous addresses corresponding to the multiple data may be determined by the maximum amount of data transmitted during the interaction between the processor and the first memory and the first address. The maximum amount of data transmitted is to ensure that in complex scenarios of processor burst transmission or continuous transmission (burst access), the data corresponding to multiple modified addresses of burst transmission or continuous transmission are in the same data block. In this way, data modification can be achieved even in complex scenarios of processor burst transmission or continuous transmission (burst access).

[0123] For example, assuming that the first address is 0x21000032, the maximum amount of data transmitted during the interaction between the processor and the first memory is 64 bytes, it is determined that the first data block can contain 64 data, and the starting address of multiple consecutive addresses is 0x21000000, then it can be determined that the multiple consecutive addresses corresponding to the multiple data in the first data block can be 0x21000000 to 0x21000064.

[0124] If there is a request to modify certain data in the first data block in the first memory before the current moment, then the data in the first data block has been stored in the second memory before the current moment, and the first data block already exists in the second memory at this time. That is, if the first data block exists in the second memory, it means that the first data block has completed the remapping process in the second memory. At this time, the storage address of the data at the first address in the second memory is determined, and the data modification is completed at the address according to the target data. If the first data block does not exist in the second memory, it means that the first data block has not been remapped before the current moment, and it is necessary to remap the first data block first, and then modify the data at the storage address of the data at the first address in the second memory according to the target data.

[0125] S203: Update the first data block in the second memory according to the first address and the target data, so that the processor reads the target data in the second memory.

[0126] According to the first address and the target data, there are two ways to update the first data block in the second memory:

[0127] Method 1: Determine a first starting address of a first data block in a first memory and a second starting address of the first data block in a second memory; determine a second address corresponding to the first address in the second memory according to the first address, the first starting address and the second starting address; in the second memory, update the data at the second address to the target data.

[0128] The first starting address may be the address of the first data in the first data block in the first memory, the second starting address may be the address of the first data in the first data block in the second memory, and the second address may be the address of the data corresponding to the first address in the second memory.

[0129] The method of determining the second starting address corresponding to the first address in the second memory is as follows: determine the target offset of the first address relative to the first starting address; determine the second address according to the second starting address and the target offset, wherein the offset between the second address and the second starting address is the target offset.

[0130] The target offset may be an offset between the first address and the first start address, and another information may be obtained according to any two information among the target offset, the first address and the first start address.

[0131] For example, assuming that the first address is known to be 0x21000024 and the first starting address is 0x21000000, the target offset can be obtained as 24; assuming that the target offset is known to be 36 and the first starting address is 0x21000000, the first address can be obtained as 0x21000036; assuming that the target offset is known to be 10 and the first address is 0x21000010, the first starting address can be obtained as 0x21000000.

[0132] For example, assuming that there are a first memory 1 and a second memory 1, the first address is 0x21000014, the target data is X, the addresses of the multiple data contained in the first data block corresponding to the first address in the first memory 1 are 0x21000000 to 0x21000064, and the addresses of the multiple data contained in the first data block in the second memory 1 are 0x00000000 to 0x00000064. It is determined that the first starting address of the first data block in the first memory 1 is 0x21000000, and the second starting address of the first data block in the second memory 1 is 0x00000000. The target offset can be determined to be 14 according to the first address 0x21000014 and the first starting address 0x21000000, and then the second address is determined to be 0x00000014 according to the second starting address 0x00000000 and the target offset 14, and the data at the second address 0x00000014 is updated to the target data X.

[0133] Mode 2: The data modification request also includes a target address corresponding to the first address, and the target address can be the storage address of the data at the first address in the second memory when the first data block is stored in the second memory. When the first data block does not exist in the second memory, the target address corresponding to the first address is obtained, and after the first data block is stored in the second memory, the data at the target address in the second memory is updated to the target data according to the target data.

[0134] S204: Store the first data block in the second memory, and update the first data block in the second memory according to the first address and the target data, so that the processor reads the target data in the second memory.

[0135] The first data block can be stored in the second memory in the following manner: the data modification request also includes a target address corresponding to the first address and an enable signal corresponding to the first address, and a first data access request sent by the processor is received, wherein the first data access request includes the first access address; when the first access address and the first address are the same, it is determined whether the enable signal is a preset value; if so, the target address is obtained in the data modification request, and according to the target address, the first data block is stored in the second memory.

[0136] The target address may be an address in the second memory, and is used to determine at which address in the second memory the multiple data in the first data block are stored. Assuming that the multiple consecutive addresses in the first memory of the multiple data in the first data block are 0x21000000 to 0x21000064, and the target address is 0x00000014, then the addresses in the second memory where the multiple data in the first data block are stored are 0x00000000 to 0x00000064.

[0137] The enable signal can be used to determine whether to remap the data at the first address. By determining whether the enable signal is a preset value, it is determined whether to remap the first address corresponding to the enable signal. The preset value can be 0 or other preset values ​​set in advance. Assuming that the preset value is 0, the enable signal corresponding to the first address 1 is 0, and the enable signal corresponding to the first address 2 is 1, the first address 1 is remapped, and the first address 2 is not remapped.

[0138] The first access request may be used by the processor to request access to data in the first memory, and the first access address may be an address in the first memory for the processor to request access to data in the first memory.

[0139] For example, assuming that there are processor 1, first memory 1, and second memory 1, the preset value is 0, the first address contained in the data modification request is 0x21000014, the enable signal is 0, the target address is 0x21000014, and the target data is X, and it is determined that the addresses of multiple data in the first data block corresponding to the first address in the first memory are 0x21000000 to 0x21000064. When the first data access request 1 sent by processor 1 is received, the first access address is obtained as 0x21000014. The first access address 0x21000014 is the same as the first address 0x21000014, and the enable signal is judged to be the preset value. The target address 0x00000014 is obtained in the data modification request. According to the target address, it is determined that the addresses of multiple data in the first data block in the second memory are 0x00000000 to 0x00000064, and the first data block is stored in the second memory.

[0140] After storing the first data block in the second memory and updating the first data block in the second memory according to the first address and the target data, the target address of the target data in the second memory is sent to the processor so that the processor creates a mapping relationship between the first address and the target address.

[0141] At the same time, in order to ensure that the access efficiency of the processor when accessing data is not affected during the data modification process, the target data can be obtained according to the first data access request; and the target data can be sent to the processor.

[0142] exist Figure 2 In the embodiment shown, when the data at the first address in the first memory (read-only memory) needs to be modified to the target data, the first data block where the first address is located can be determined. If the first data block exists in the second memory (random access memory), the address of the data at the first address in the second memory is determined, and the address is modified according to the target data; if it does not exist, the first data block is stored in the second memory according to the target address, and the data at the target address in the second memory is modified according to the target data. After the data modification is completed, the target address is sent to the processor, so that the processor creates a mapping relationship between the first address and the target address, so that the processor can directly access the data at the first address when accessing the data next time. The problem of modifying only the data at some addresses when modifying the first memory is avoided, and the data at any address in the first memory can be modified, which improves the flexibility of data modification and expands the scope of data modification. Data mapping is performed in the form of data blocks during the mapping process, which solves the problem that data modification cannot be realized in complex scenarios such as processor burst transmission or continuous transmission (burst access).

[0143] exist Figure 2 Based on the embodiment shown below, combined with Figure 3 , the remapping process is explained through a specific embodiment.

[0144] Figure 3 A schematic diagram of a remapping process provided in an embodiment of the present application. Figure 3 , the data modification request of the input control component is shown in Table 1:

[0145] Table 1

[0146]

[0147]

[0148] The preset value is 0, and the maximum amount of data transmitted during the interaction between the processor and the first memory is 64 bytes. In the first memory, it is determined that the first data block 1 corresponding to the first address 0x21000001 contains data in the range of addresses 0x21000000 to 0x21000064; the first data block 2 corresponding to the first address 0x15000011 contains data in the range of addresses 0x15000000 to 0x15000064; the first data block 3 corresponding to the first address 0x36000052 contains data in the range of addresses 0x36000000 to 0x36000064.

[0149] When it is determined that the first data block 1 and the first data block 2 do not exist in the second memory, if the first access address included in the first data access request sent by the processor is 0x21000001, the first access address is the same as the first address 0x21000001, it is determined that the enable signal corresponding to the first address 0x21000001 is a preset value, the target address corresponding to the first address 0x21000001 is obtained as 0x00000001 in the data modification request, and the storage addresses of the multiple data in the first data block 1 in the second memory are determined to be 0x00000000 to 0x00000064 according to the target address 0x00000001. Data modification is performed according to the target address 0x00000001 of the target data A in the second memory, and after the data modification is completed, the target address of the target data in the second memory is sent to the processor, so that the processor creates a mapping relationship between the first address 0x21000001 and the target address 0x00000001.

[0150] If the first access address included in the first data access request sent by the processor is 0x15000011, the first access address is the same as the first address 0x15000011, and it is determined that the enable signal corresponding to the first address 0x15000011 is different from the preset value, the first address 0x15000011 is not remapped.

[0151] It is determined that the first data block 3 exists in the second memory, and it is determined that the storage addresses of the plurality of data in the first data block 3 in the second memory are 0x02000000 to 0x02000064.

[0152] The first starting address of the first data block 3 in the first memory is 0x36000000, and the second starting address in the second memory is 0x02000000. According to the first starting address 0x36000000 and the first address 0x36000052, the target offset is 52, and then the second address is determined to be 0x02000052 according to the target offset 52 and the second starting address 0x02000000, and the data corresponding to the second address 0x02000052 in the second memory is modified to the target data C corresponding to the first address 0x36000052.

[0153] exist Figure 3 In the embodiment shown, if it is necessary to modify the data at a certain address in the first memory, it can be determined whether the data block corresponding to the address already exists in the second memory. If it does, the storage address of the data at the address in the second memory is determined, and the data is modified at the storage address according to the target data; if it does not exist, the address is remapped, and the data is modified at the target address corresponding to the address according to the target data. After the modification is completed, the target address is sent to the processor, and the processor creates a mapping relationship between the modified address and the target address, so that the processor can directly access the data at the target address when accessing the data at the modified address later. The data block where the modified data is located is determined by using the maximum transmission data amount, and the data block is mapped to the second memory, so that the data modification of multiple continuous modification addresses can be completed at the same time, which is suitable for complex scenarios such as processor burst transmission or continuous transmission (burst access), where multiple continuous modification addresses may be transmitted.

[0154] Based on any of the above embodiments, Figure 4 , a process of accessing data in the first memory is described.

[0155] Figure 4 A schematic diagram of a flow chart of data access to a first memory provided in an embodiment of the present application.

[0156] See also Figure 4 , the method may include:

[0157] S401. Determine, by a processor, a third address to be accessed in a first memory.

[0158] The third address may be an address in the first memory that the processor is ready to access.

[0159] S402: Obtain a mapping relationship table.

[0160] The mapping relationship table includes at least one address in the first memory and a mapping address of each address in the second memory. For any address in the first memory that has been remapped, the mapping address may be the address corresponding to the address in the second memory.

[0161] For example, assuming that the addresses 0x21000011, 0x20000001 and 0x11000010 in the first memory have been remapped, and the mapping addresses in the second memory are 0x00000011, 0x01000001 and 0x01000010 respectively. The mapping relationship table of the addresses 0x21000011, 0x20000001 and 0x11000010 is shown in Table 2:

[0162] Table 2

[0163] The address in the first memory Mapping address in the second memory 0x21000011 0x00000011 0x20000001 0x01000001 0x11000010 0x01000010

[0164] S403: Determine whether there is a mapping address corresponding to the third address in the mapping relationship table.

[0165] If yes, execute step S404;

[0166] If not, execute step S405.

[0167] If the third address exists in the mapping relationship table, it means that before the current moment, the third address has been remapped in the second memory. At this time, if the processor accesses the data at the third address, it can directly access the data at the mapping address corresponding to the third address in the second memory; if the third address does not exist in the mapping relationship table, it means that the third address has not been remapped. When the processor accesses the data at the third address, it still accesses the data at the third address in the first memory.

[0168] S404: Access data to the second memory according to the mapping address corresponding to the third address.

[0169] For example, assuming that the third address is 0x21000011, the mapping address corresponding to the third address obtained in the mapping relationship table is 0x00000011, and the processor directly accesses data at the mapping address 0x00000011 in the second memory.

[0170] S405: Access data to the first memory according to the third address.

[0171] The method of accessing data to the first memory is as follows: according to the third address, a second data access request is generated by the processor, and the second data access request includes the third address; the second data access request is sent to the control component by the processor; the information to be modified is obtained by the control component, and the information to be modified includes the address to be modified, the enable signal corresponding to the address to be modified, the target modification address corresponding to the address to be modified, and the data to be modified corresponding to the address to be modified; the control component determines whether the information to be modified includes the third address; if so, the data to be modified corresponding to the third address is sent to the processor, and according to the third address, the enable signal corresponding to the third address, the target modification address corresponding to the third address, and the data to be modified corresponding to the third address, the control component performs address remapping processing; if not, the control component queries the data corresponding to the third address in the first processor, and sends the data corresponding to the third address to the processor.

[0172] The second data access request may be a request for the processor to access data to the first memory. A control component is provided on the data bus between the processor and the first memory. The control component may be used to determine whether data modification is required for the third address and to complete the address remapping process. The information to be modified includes at least one address to be modified, an enable signal corresponding to each address to be modified, a target modification address corresponding to each address to be modified, and data to be modified corresponding to each address to be modified, wherein the address to be modified may be the address of the data to be modified in the first memory, the enable signal may be used to determine whether to remap the data at the address to be modified, and by determining whether the enable signal is a preset value, it is determined whether to remap the address to be modified corresponding to the enable signal, the target modification address may be the storage address of the data at the address to be modified in the second memory, and the data to be modified may be the data used to replace the original data at the address to be modified.

[0173] Assume that the data in the first memory needs to be modified, the addresses to be modified are 0x21000001, 0x15000011, 0x04000020, 0x21000011, the enable signals corresponding to each address to be modified are 0, 1, 0, 0, and the target modification addresses corresponding to each address to be modified are 0x00000001, 0x01000011, 0x11000020, 0x10000011, and the data to be modified corresponding to each address to be modified are A, B, C, and D, respectively. The modification information can be shown in Table 3:

[0174] Table 3

[0175] Address to be modified Enable signal Target modification address Data to be modified 0x21000001 0 0x00000001 A 0x15000011 1 0x01000011 B 0x04000020 0 0x11000020 C 0x21000011 0 0x10000011 D

[0176] The method of performing address remapping processing through the control component is as follows: determine whether the enable signal corresponding to the third address is equal to the preset value; if so, determine the third data block corresponding to the third address in the first memory; store the third data block in the second memory according to the target modification address corresponding to the third address; and update the third data block in the second memory according to the third address and the data to be modified corresponding to the third address.

[0177] The third data block may be a data block where the data corresponding to the third address in the first memory is located.

[0178] For the process of performing address remapping by the control component, please refer to step S204, which will not be repeated here.

[0179] The address remapping process is performed through the control component, and after the data modification is completed in the second memory, the third address and the data to be modified corresponding to the third address are deleted from the information to be modified.

[0180] exist Figure 4 In the embodiment shown, when the processor needs to access the third address in the first memory, it determines whether the third address is remapped before the current moment according to the mapping relationship table. If so, the processor performs data access at the mapping address corresponding to the third address in the second memory; if not, it determines whether the third address is included in the information to be modified. If the third address is included in the modification information, the data to be modified corresponding to the third address is returned to the processor, and the third address is remapped; if the third address is not included in the modification information, the data at the third address in the first memory is accessed. In this way, the data block where the modified data is located in the first memory is mapped to the second memory, and when the processor reads the data in the first memory, the modified data can be directly read in the second memory. This method realizes data modification at any address in the read-only memory, improves the flexibility of data modification in the read-only memory, and expands the range of modifiable data. At the same time, in the process of completing the data modification, it does not affect the access efficiency of the system when accessing data.

[0181] Based on any of the above embodiments, the control components in the embodiments of the present application are described in detail below.

[0182] Figure 5 A schematic diagram of the structure of a control component provided in an embodiment of the present application. Figure 5As shown, the control component 12 is arranged between the processor 11 and the first memory 13, and is respectively connected to the processor 11 and the first memory 13 by a data bus 15. When there is no need to modify the data in the first memory 13, the control component 12 will not process the data access request sent by the processor 11. At this time, the role of the control component 12 is consistent with that of the data bus 15, and it only serves as a data transmission channel for transmitting data information when the processor 11 and the first memory 13 interact.

[0183] When the data in the first memory 13 needs to be modified, the control component 12 is started, and the information to be modified is input into the control component 12. The information to be modified may include at least one address to be modified, an enable signal corresponding to each address to be modified, a target modification address corresponding to each address to be modified, and data to be modified corresponding to each address to be modified. When the control component 12 receives the data access request sent by the processor 11, it obtains the access address in the data access request, and determines whether the address to be modified includes the access address, that is, whether there is an address to be modified that is consistent with the access address among the multiple addresses to be modified in the information to be modified. If the access address is included, the data to be modified corresponding to the access address is returned to the processor 11, and the address remapping process is performed according to the address to be modified, the enable signal, the target modification address and the data to be modified; if the information to be modified does not include the access address, the data corresponding to the access address is read in the first memory 13 according to the access address, the access data is obtained and the access data is sent to the processor 11.

[0184] The information input by the control component 12 may include a data access request, information to be modified, and startup information, wherein the data access request is sent by the processor 11 and is input to the control component 12 through the data bus 15. The information to be modified and the startup information are input by the user. When the data in the first memory 13 needs to be modified, the user inputs the startup information and the information to be modified in the control component 12, wherein the startup information is used to start the control component 12.

[0185] exist Figure 5 In the illustrated embodiment, the control component 12 is disposed between the processor 11 and the first memory 13 and is mainly designed inside the chip without the involvement of external programs or modules. When the data in the first memory 13 is modified, there will be no security risks to the data in the first memory 13.

[0186] Figure 6 This is a schematic diagram of the structure of a remapping device provided in an embodiment of the present application. Figure 6 The remapping device 20 may include: a first acquisition module 21, a first judgment module 22 and an update module 23, wherein:

[0187] A first acquisition module 21, used for acquiring a data modification request, where the data modification request is used for requesting to modify the data at the first address in the first memory into target data;

[0188] A first determination module 22, configured to determine in the first memory a first data block where the first address is located, and to determine whether the first data block exists in the second memory;

[0189] If so, the update module 23 is used to update the first data block in the second memory according to the first address and the target data, so that the processor reads the target data in the second memory;

[0190] If not, the updating module 23 is further configured to store the first data block in the second memory, and update the first data block in the second memory according to the first address and the target data, so that the processor reads the target data in the second memory.

[0191] The remapping device provided in this embodiment can be used to execute the remapping method shown in the above method embodiment. Its implementation principle and technical effect are similar and will not be described in detail here.

[0192] In a possible implementation, the updating module 23 is specifically used for:

[0193] Determine a first starting address of the first data block in the first memory and a second starting address of the first data block in the second memory;

[0194] Determine, in a second memory, a second address corresponding to the first address according to the first address, the first starting address, and the second starting address;

[0195] In the second memory, the data at the second address is updated to the target data.

[0196] In a possible implementation, the updating module 23 is specifically used for:

[0197] Determine a target offset of the first address relative to the first start address;

[0198] The second address is determined according to the second starting address and the target offset, wherein the offset between the second address and the second starting address is the target offset.

[0199] In a possible implementation, the updating module 23 is specifically used for:

[0200] receiving a first data access request sent by a processor, wherein the first data access request includes a first access address;

[0201] When the first access address and the first address are the same, determining whether the enable signal is a preset value;

[0202] If so, a target address is obtained in the data modification request, and the first data block is stored in the second memory according to the target address.

[0203] In a possible implementation, the updating module 23 is specifically used for:

[0204] Acquire target data according to the first data access request;

[0205] Send target data to the processor.

[0206] In a possible implementation, the updating module 23 is specifically used for:

[0207] The target address of the target data in the second memory is sent to the processor, so that the processor creates a mapping relationship between the first address and the target address.

[0208] The remapping device provided in this embodiment can be used to execute the remapping method shown in the above method embodiment. Its implementation principle and technical effect are similar and will not be described in detail here.

[0209] Figure 7 This is a schematic diagram of the structure of another remapping device provided in an embodiment of the present application. Figure 7 The remapping device 30 may further include: a determination module 34, a second acquisition module 35, a second judgment module 36 and a data access module 37, wherein:

[0210] A determination module 34, configured to determine, by a processor, a third address to be accessed in the first memory;

[0211] A second acquisition module 35, used to acquire a mapping relationship table, the mapping relationship table including at least one address in the first memory and a mapping address of each address in the second memory;

[0212] A second judgment module 36 is used to judge whether there is a mapping address corresponding to the third address in the mapping relationship table;

[0213] If so, the data access module 37 is used to access data to the second memory according to the mapping address corresponding to the third address;

[0214] If not, the data access module 37 is used to access data to the first memory according to the third address.

[0215] In a possible implementation, the data access module 37 is specifically used to:

[0216] Generate a second data access request by a processor according to the third address, wherein the second data access request includes the third address;

[0217] sending, by the processor, a second data access request to the control component;

[0218] Acquire information to be modified through a control component, wherein the information to be modified includes an address to be modified, an enable signal corresponding to the address to be modified, a target modification address corresponding to the address to be modified, and data to be modified corresponding to the address to be modified;

[0219] Determining, by the control component, whether the information to be modified includes the third address;

[0220] If so, the data to be modified corresponding to the third address is sent to the processor, and the control component performs address remapping processing according to the third address, the enable signal corresponding to the third address, the target modification address corresponding to the third address, and the data to be modified corresponding to the third address;

[0221] If not, the control component queries the first processor for data corresponding to the third address, and sends the data corresponding to the third address to the processor.

[0222] In a possible implementation, the data access module 37 is specifically used to:

[0223] Determine whether the enable signal corresponding to the third address is equal to a preset value;

[0224] If so, determining in the first memory a third data block corresponding to the third address;

[0225] storing the third data block in the second memory according to the target modification address corresponding to the third address;

[0226] The third data block in the second memory is updated according to the third address and the data to be modified corresponding to the third address.

[0227] In a possible implementation, the data access module 37 is specifically used to:

[0228] The third address and the data to be modified corresponding to the third address are deleted from the information to be modified.

[0229] The remapping device provided in this embodiment can be used to execute the remapping method shown in the above method embodiment. Its implementation principle and technical effect are similar and will not be described in detail here.

[0230] Figure 8 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 8 As shown, the terminal device 40 may include a memory 41 and a processor 42 .

[0231] Among them, the memory 41 and the processor 42 are coupled and can communicate with each other; exemplarily, the memory 41 and the processor 42 communicate through a communication bus 43, the memory 41 is used to store computer execution instructions, and the processor 42 is used to call program instructions so that the terminal device executes the remapping method involved in the first aspect and any possible implementation method.

[0232] Optionally, the terminal device may be the same as the computing device, or the terminal device may execute any one of the methods in the embodiments of the present application, and the computing device may also execute any one of the methods in the embodiments of the present application.

[0233] Optionally, the processor may be a central processing unit (CPU), a graphics processing unit (GPU), other general-purpose processors, a digital signal processor (DSP), or an application-specific integrated circuit (ASIC). A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.

[0234] An embodiment of the present application provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used by a first computing device to implement the remapping method involved in the first aspect and any possible implementation manner.

[0235] An embodiment of the present application provides a computer program product, including a computer program, which, when executed by a terminal device, is used to implement the remapping method involved in the first aspect and any possible implementation manner.

[0236] All or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviated: ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.

[0237] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable terminal device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0238] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0239] These computer program instructions can also be loaded onto a computer or other programmable terminal device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0240] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the embodiments of the present application are also intended to include these modifications and variations.

[0241] In the embodiments of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the element. The term "or" and its variations may refer to "and / or". In the embodiments of the present application, the terms "first", "second", etc. are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. In the embodiments of the present application, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, A and / or B, which may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0242] After considering the invention disclosed in the specification and practice, those skilled in the art will easily think of other embodiments of the present application. The embodiments of the present application are intended to cover any variation, use or adaptive change of the embodiments of the present application, which follows the general principles of the embodiments of the present application and includes common knowledge or conventional technical means in the technical field that are not disclosed in the embodiments of the present application.

Claims

1. A remapping method, characterized in that: Applied in an electronic device, the electronic device includes a processor, a read-only first memory, and a random access second memory, including: Obtaining a data modification request, wherein the data modification request is used to request to modify the data at the first address in the first memory to target data; Determine in the first memory a first data block where the first address is located, and determine whether the first data block exists in the second memory; If so, updating the first data block in the second memory according to the first address and the target data, so that the processor reads the target data in the second memory; If not, the first data block is stored in the second memory, and the first data block in the second memory is updated according to the first address and the target data, so that the processor reads the target data in the second memory.

2. The method according to claim 1, characterized in that: Updating the first data block in the second memory according to the first address and the target data includes: Determine a first starting address of the first data block in the first memory and a second starting address of the first data block in the second memory; Determine, in the second memory, a second address corresponding to the first address according to the first address, the first starting address, and the second starting address; In the second memory, the data at the second address is updated to the target data.

3. The method according to claim 2, characterized in that Determining, in the second memory, a second address corresponding to the first address according to the first address, the first starting address, and the second starting address, includes: Determining a target offset of the first address relative to the first starting address; The second address is determined according to the second starting address and the target offset, wherein the offset between the second address and the second starting address is the target offset.

4. The method according to any one of claims 1 to 3, characterized in that: The data modification request further includes a target address corresponding to the first address and an enable signal corresponding to the first address, wherein the target address is an address in the second memory; Storing the first data block in the second memory includes: receiving a first data access request sent by the processor, wherein the first data access request includes a first access address; When the first access address and the first address are the same, determining whether the enable signal is a preset value; If so, the target address is obtained in the data modification request, and the first data block is stored in the second memory according to the target address.

5. The method according to claim 4, characterized in that The method further comprises: acquiring the target data according to the first data access request; The target data is sent to the processor.

6. The method according to any one of claims 1 to 5, characterized in that: After storing the first data block in the second memory and updating the first data block in the second memory according to the first address and the target data, the method further includes: The target address of the target data in the second memory is sent to the processor, so that the processor creates a mapping relationship between the first address and the target address.

7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: determining, by the processor, a third address to be accessed in the first memory; Acquire a mapping relationship table, wherein the mapping relationship table includes at least one address in the first memory and a mapping address of each address in the second memory; Determine whether there is a mapping address corresponding to the third address in the mapping relationship table; If yes, accessing data to the second memory according to the mapping address corresponding to the third address; If not, data is accessed to the first memory according to the third address.

8. The method according to claim 6 or 7, characterized in that: A control component is provided on a data bus between the processor and the first memory; and data access is performed on the first memory according to the third address, including: generating, by the processor, a second data access request according to the third address, wherein the second data access request includes the third address; sending the second data access request to the control component by the processor; Acquiring information to be modified through the control component, wherein the information to be modified includes an address to be modified, an enable signal corresponding to the address to be modified, a target modification address corresponding to the address to be modified, and data to be modified corresponding to the address to be modified; Determining, by the control component, whether the information to be modified includes the third address; If so, the data to be modified corresponding to the third address is sent to the processor, and the control component performs address remapping processing according to the third address, the enable signal corresponding to the third address, the target modification address corresponding to the third address, and the data to be modified corresponding to the third address; If not, the control component queries the first processor for data corresponding to the third address, and sends the data corresponding to the third address to the processor.

9. The method according to claim 7 or 8, characterized in that: According to the third address, the enable signal corresponding to the third address, the target modification address corresponding to the third address, and the to-be-modified data corresponding to the third address, the control component performs address remapping processing, including: Determining whether the enable signal corresponding to the third address is equal to a preset value; If so, determining, in the first memory, a third data block corresponding to the third address; storing the third data block in the second memory according to the target modification address corresponding to the third address; The third data block in the second memory is updated according to the third address and the data to be modified corresponding to the third address.

10. The method according to claim 7 or 8, characterized in that: After the control component performs address remapping processing according to the third address and the data to be modified corresponding to the third address, the method further includes: The third address and the data to be modified corresponding to the third address are deleted from the information to be modified.

11. A remapping device, characterized in that: Applied in an electronic device, the electronic device includes a processor, a read-only first memory, and a randomly accessed second memory, the device includes: A first acquisition module, used for acquiring a data modification request, wherein the data modification request is used for requesting to modify the data at the first address in the first memory into target data; A first determination module, configured to determine a first data block where the first address is located in the first memory, and determine whether the first data block exists in the second memory; If so, the update module is used to update the first data block in the second memory according to the first address and the target data, so that the processor reads the target data in the second memory; If not, the update module is used to store the first data block in the second memory, and update the first data block in the second memory according to the first address and the target data, so that the processor reads the target data in the second memory.

12. A terminal device, characterized in that: Including memory and processor: Memory and processor coupling; The memory is used to store program instructions; The processor is used to call program instructions so that the terminal device executes the method according to any one of claims 1 to 10.

13. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: in, The computer instructions are used to make a computer execute the method according to any one of claims 1 to 10.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Packet management method for electronic hard disk memory space

    CN101192195A

  • Data processing method and device

    CN107678981A

  • Processor and method for single-chip microcomputer, single-chip microcomputer and storage medium

    CN114047952A

  • Data processing method and device, chip and traffic equipment

    CN117573583A

  • ROM software breakpoints

    US20070011431A1