mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
target-microblaze: mmu: Prepare for 64-bit addresses
Prepare for 64-bit addresses. This makes no functional difference as the upper parts of the 64-bit addresses are not yet reachable. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
96716533af
commit
d2f004c3cd
2 changed files with 10 additions and 10 deletions
|
@ -28,7 +28,7 @@
|
|||
#define RAM_TAG 0
|
||||
|
||||
/* Tag portion */
|
||||
#define TLB_EPN_MASK 0xFFFFFC00 /* Effective Page Number */
|
||||
#define TLB_EPN_MASK MAKE_64BIT_MASK(10, 64 - 10)
|
||||
#define TLB_PAGESZ_MASK 0x00000380
|
||||
#define TLB_PAGESZ(x) (((x) & 0x7) << 7)
|
||||
#define PAGESZ_1K 0
|
||||
|
@ -42,7 +42,7 @@
|
|||
#define TLB_VALID 0x00000040 /* Entry is valid */
|
||||
|
||||
/* Data portion */
|
||||
#define TLB_RPN_MASK 0xFFFFFC00 /* Real Page Number */
|
||||
#define TLB_RPN_MASK MAKE_64BIT_MASK(10, 64 - 10)
|
||||
#define TLB_PERM_MASK 0x00000300
|
||||
#define TLB_EX 0x00000200 /* Instruction execution allowed */
|
||||
#define TLB_WR 0x00000100 /* Writes permitted */
|
||||
|
@ -63,7 +63,7 @@
|
|||
struct microblaze_mmu
|
||||
{
|
||||
/* Data and tag brams. */
|
||||
uint32_t rams[2][TLB_ENTRIES];
|
||||
uint64_t rams[2][TLB_ENTRIES];
|
||||
/* We keep a separate ram for the tids to avoid the 48 bit tag width. */
|
||||
uint8_t tids[TLB_ENTRIES];
|
||||
/* Control flops. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue