kvm: qemu: include qemu-kvm.h unconditionally
[kvm-userspace.git] / user / test / powerpc / 44x / tlbwe_16KB.S
blob1bd10bf17a187d46d9f9e8faef4f2b5155a52f0a
1 #define SPRN_MMUCR 0x3b2
3 /* 16KB mapping at 4MB */
4 #define TLBWORD0 0x00400220
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, 5
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         /* load from 4MB */
28         lis     r3, 0x0040
29         lwz     r4, 0(r3)
31         /* load from 4MB+8KB */
32         ori     r3, r3, 0x2000
33         lwz     r4, 0(r3)
35         b       .