Transaction-Level Modeling Framework for Space Applications
Macros | |
#define | NODO_CLEAR |
#define | TLBNUM 8 |
#define | fail(err) do { } while(1); |
#define | report(test_case) |
#define | PGD_IDX(v) (((v) >> pgd_sh) & pgd_m) |
#define | PMD_IDX(v) (((v) >> pmd_sh) & pmd_m) |
#define | PTE_IDX(v) (((v) >> pte_sh) & pte_m) |
#define | DEF_ADDR(a, b, c, d) (((((a)&pgd_m)<<pgd_sh) | (((b)&pmd_m)<<pmd_sh) | (((c)&pte_m)<<pte_sh)) | (d)) |
#define | REAL_PAGE_SIZE (1<<(PAGE_SHIFT+pgsz)) |
#define | a_30080000 DEF_ADDR(0x3,2,0,0) |
#define | a_30041000 DEF_ADDR(0x3,1,1,0) |
#define | a_30041004 DEF_ADDR(0x3,1,1,4) |
#define | a_30042000 DEF_ADDR(0x3,1,2,0) |
#define | a_30043000 DEF_ADDR(0x3,1,3,0) |
#define | a_31000000 DEF_ADDR(0x3,3,0,0) |
Typedefs | |
typedef void(* | functype )(void) |
Functions | |
void | leon_flush_cache_all (void) |
void | leon_flush_tlb_all (void) |
unsigned int | mmugetpagesize (unsigned int k) |
void | mmu_func1 (void) |
int | mmu_test (void) |
Variables | |
unsigned long | ctx |
unsigned long | pg0 |
unsigned long | pm0 |
unsigned long | pt0 |
unsigned long | page0 |
unsigned long | page1 |
unsigned long | page2 |
unsigned long | pth_addr |
unsigned long | pth_addr1 |
int | pgsz = 0 |
unsigned int | pgd_sh = 24 |
unsigned int | pgd_m = 0xff |
unsigned int | pmd_sh = 18 |
unsigned int | pmd_m = 0x3f |
unsigned int | pte_sh = 12 |
unsigned int | pte_m = 0x3f |
#define a_30041000 DEF_ADDR(0x3,1,1,0) |
Referenced by mmu_test().
#define a_30041004 DEF_ADDR(0x3,1,1,4) |
Referenced by mmu_test().
#define a_30042000 DEF_ADDR(0x3,1,2,0) |
Referenced by mmu_test().
#define a_30043000 DEF_ADDR(0x3,1,3,0) |
Referenced by mmu_test().
#define a_30080000 DEF_ADDR(0x3,2,0,0) |
Referenced by mmu_test().
#define a_31000000 DEF_ADDR(0x3,3,0,0) |
Referenced by mmu_test().
#define DEF_ADDR | ( | a, | |
b, | |||
c, | |||
d | |||
) | (((((a)&pgd_m)<<pgd_sh) | (((b)&pmd_m)<<pmd_sh) | (((c)&pte_m)<<pte_sh)) | (d)) |
#define fail | ( | err | ) | do { } while(1); |
Referenced by apbps2_test(), apbuart_test(), brm_1553_test(), can_oc_test(), check_tbuf(), cramtest(), divtest(), ehc_check_opresvals(), ehc_test(), fpu_main(), gpio_test(), gptimer_test(), grcan_test(), greth_test(), grfpu_test(), grhcan_test(), grpwm_test(), grtc_test(), grtm_test(), i2c_test(), i2cmst_test(), i2cslv_test(), irqtest(), l2irqtest(), l2timers_test(), leon2_test(), leon3_test(), main(), mmu_test(), mptest(), mptest_end(), multest(), pcif_test(), rt_1553_test(), spictrl_test(), spimctrl_test(), spw_test(), svgactrl_test(), uhc_check_resvals(), and uhc_test().
#define NODO_CLEAR |
Referenced by mmu_test().
#define REAL_PAGE_SIZE (1<<(PAGE_SHIFT+pgsz)) |
Referenced by mmu_test().
#define report | ( | test_case | ) |
#define TLBNUM 8 |
Referenced by mmu_test().
typedef void(* functype)(void) |
void leon_flush_cache_all | ( | void | ) |
Referenced by leon_flush_tlb_all(), and mmu_test().
void leon_flush_tlb_all | ( | void | ) |
References leon_flush_cache_all().
Referenced by mmu_test().
void mmu_func1 | ( | void | ) |
Referenced by mmu_test().
int mmu_test | ( | void | ) |
References a_30041000, a_30041004, a_30042000, a_30043000, a_30080000, a_31000000, ctx, fail, func, g0, i, leon_flush_cache_all(), leon_flush_tlb_all(), l2regs::leonconf, MMU_CONF_BIT, mmu_double, mmu_func1(), MMU_TEST, mmugetpagesize(), p0, page0, page2, PAGE_SIZE, PAGE_SIZE_MAX, pg0, PGD_IDX, pgd_m, pm0, pmd_m, pt0, pte_m, pth_addr, pth_addr1, REAL_PAGE_SIZE, report_subtest(), rsysreg(), SRMMU_CACHE, SRMMU_DIRTY, SRMMU_ET_PTE, SRMMU_EXEC, SRMMU_PGD_TABLE_SIZE, SRMMU_PMD_TABLE_SIZE, SRMMU_PRIV, SRMMU_PRIV_RDONLY, SRMMU_PTE_TABLE_SIZE, SRMMU_PTRS_PER_CTX, SRMMU_REF, SRMMU_WRITE, and TLBNUM.
Referenced by leon2_test(), leon3_test(), and main().
Referenced by mmu_test().
unsigned long ctx |
Referenced by mmu_test().
unsigned long page0 |
Referenced by init_grpci(), and mmu_test().
unsigned long page1 |
unsigned long page2 |
Referenced by mmu_test().
unsigned long pg0 |
Referenced by mmu_test().
unsigned int pgd_m = 0xff |
Referenced by mmu_test().
unsigned int pgd_sh = 24 |
int pgsz = 0 |
unsigned long pm0 |
Referenced by mmu_test().
unsigned int pmd_m = 0x3f |
Referenced by mmu_test().
unsigned int pmd_sh = 18 |
unsigned long pt0 |
Referenced by mmu_test().
unsigned int pte_m = 0x3f |
Referenced by mmu_test().
unsigned int pte_sh = 12 |
unsigned long pth_addr |
Referenced by mmu_test().
unsigned long pth_addr1 |
Referenced by mmu_test().