kvm: qemu: include qemu-kvm.h unconditionally
[kvm-userspace.git] / user / test / powerpc / io.S
blob97567cb6c73f2e6ba6ac66f235ab15d702a1f337
1 #define SPRN_MMUCR 0x3b2
3 #define TLBWORD0 0xf0000210
4 #define TLBWORD1 0xf0000000
5 #define TLBWORD2 0x00000003
7 .global _start
8 _start:
9         li      r4, 0
10         mtspr   SPRN_MMUCR, r4
12         li      r3, 2
14         lis     r4, TLBWORD0@h
15         ori     r4, r4, TLBWORD0@l
16         tlbwe   r4, r3, 0
18         lis     r4, TLBWORD1@h
19         ori     r4, r4, TLBWORD1@l
20         tlbwe   r4, r3, 1
22         lis     r4, TLBWORD2@h
23         ori     r4, r4, TLBWORD2@l
24         tlbwe   r4, r3, 2
26         lis     r3, 0xf000
27         lis     r4, 0x1234
28         ori     r4, r4, 0x5678
29         stb     r4, 0(r3)
30         lbz     r5, 0(r3)
32         b       .