diff options
| author | Max Filippov | 2014-05-20 22:50:12 +0200 |
|---|---|---|
| committer | Max Filippov | 2014-05-26 10:33:54 +0200 |
| commit | ca3164df4d8aa130f4d1b8eb647b110250724d3b (patch) | |
| tree | 04d42cab94ea38b0d0886d3b1ac3971495306e66 /tests/tcg | |
| parent | target-xtensa: fix cross-page jumps/calls at the end of TB (diff) | |
| download | qemu-ca3164df4d8aa130f4d1b8eb647b110250724d3b.tar.gz qemu-ca3164df4d8aa130f4d1b8eb647b110250724d3b.tar.xz qemu-ca3164df4d8aa130f4d1b8eb647b110250724d3b.zip | |
target-xtensa: completely clean TLB between MMU tests
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'tests/tcg')
| -rw-r--r-- | tests/tcg/xtensa/test_mmu.S | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/tests/tcg/xtensa/test_mmu.S b/tests/tcg/xtensa/test_mmu.S index 099031fd14..37174b96df 100644 --- a/tests/tcg/xtensa/test_mmu.S +++ b/tests/tcg/xtensa/test_mmu.S @@ -4,16 +4,28 @@ test_suite mmu .purgem test_init -.macro test_init - movi a2, 0x00000004 - idtlb a2 - movi a2, 0x00100004 +.macro clean_tlb_way way, page_size, n_entries + movi a2, \way + movi a3, \page_size + movi a4, \n_entries + loop a4, 1f idtlb a2 - movi a2, 0x00200004 + iitlb a2 + add a2, a2, a3 +1: +.endm + +.macro test_init + clean_tlb_way 0, 0x00001000, 4 + clean_tlb_way 1, 0x00001000, 4 + clean_tlb_way 2, 0x00001000, 4 + clean_tlb_way 3, 0x00001000, 4 + clean_tlb_way 4, 0x00100000, 4 + movi a2, 0x00000007 idtlb a2 - movi a2, 0x00300004 + movi a2, 0x00000008 idtlb a2 - movi a2, 0x00000007 + movi a2, 0x00000009 idtlb a2 .endm |
