HD6417320 RENESAS [Renesas Technology Corp], HD6417320 Datasheet - Page 253

no-image

HD6417320

Manufacturer Part Number
HD6417320
Description
Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7700 Series
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
• Software (TLB Invalid Exception Handler) Operations
4.5.4
An initial page write exception results in a write access when the virtual address and the address
array of the selected TLB entry are compared and a valid entry with the appropriate access rights
is found to match, but the D (dirty) bit of the entry is 0 (the page has not been written to). Initial
page write exception processing includes both hardware and software operations.
• Hardware Operations
The software searches the page tables in external memory and assigns the required page table
entry. Upon retrieving the required page table entry, software must execute the following
operations:
A. Write the values of the physical page number (PPN) field and the values of the protection
B. If using software for way selection for entry replacement, write the desired value to the RC
C. Issue the LDTLB instruction to load the contents of PTEH and PTEL into the TLB.
D. Issue the RTE instruction to terminate the handler and return to the instruction stream. The
In an initial page write exception, this hardware executes a set of prescribed operations, as
follows:
A. The VPN field of the virtual address causing the exception is written to the PTEH register.
B. The virtual address causing the exception is written to the TEA register.
C. Exception code H'080 is written to the EXPEVT register.
D. The PC value indicating the address of the instruction in which the exception occurred is
E. The contents of SR at the time of the exception are written to SSR.
F. The MD bit in SR is set to 1 to place the privileged mode.
G. The BL bit in SR is set to 1 to mask any further exception requests.
H. The RB bit in SR is set to 1.
I. The way that caused the exception is set in the RC field in MMUCR.
J. Execution branches to the address obtained by adding the value of the VBR contents and
key (PR), page size (SZ), cacheable (C), dirty (D), share status (SH), and valid (V) bits of
the page table entry recorded in the external memory to the PTEL register.
field in MMUCR.
RTE instruction should be issued after two instructions form the LDTLB instruction.
written to the SPC. If the exception occurred in a delay slot, the PC value indicating the
address of the related delayed branch instruction is written to the SPC.
H'0000 0100 to invoke the user-written initial page write exception handler.
Initial Page Write Exception
Section 4 Memory Management Unit (MMU)
Rev. 3.00 Jan. 18, 2008 Page 191 of 1458
REJ09B0033-0300

Related parts for HD6417320