kvm: qemu: include qemu-kvm.h unconditionally
[kvm-userspace.git] / user / test / powerpc / 44x / tlbwe.S
blobec6ef5c57fc479d673fc2aa6512777c068d609c2
1 #define SPRN_MMUCR 0x3b2
3 /* Create a mapping at 4MB */
4 #define TLBWORD0 0x00400210
5 #define TLBWORD1 0x00400000
6 #define TLBWORD2 0x00000003
8 .global _start
9 _start:
10         li      r4, 0
11         mtspr   SPRN_MMUCR, r4
13         li      r3, 23
15         lis     r4, TLBWORD0@h
16         ori     r4, r4, TLBWORD0@l
17         tlbwe   r4, r3, 0
19         lis     r4, TLBWORD1@h
20         ori     r4, r4, TLBWORD1@l
21         tlbwe   r4, r3, 1
23         lis     r4, TLBWORD2@h
24         ori     r4, r4, TLBWORD2@l
25         tlbwe   r4, r3, 2
27         b       .