kvm: qemu: fix pci_enable_capabilities to set the CAP feature in pci::status
[kvm-userspace.git] / user / test / powerpc / 44x / tlbsx.S
blobb15874b18b74c7845756ccdc571e70042a31c694
1 #define SPRN_MMUCR 0x3b2
3 #define TLBWORD0 0x10000210
4 #define TLBWORD1 0x10000000
5 #define TLBWORD2 0x00000003
7 .global _start
8 _start:
9         li      r4, 0
10         mtspr   SPRN_MMUCR, r4
12         li      r3, 23
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     r4, 0x1000
27         tlbsx   r5, r4, r0
28         cmpwi   r5, 23
29         beq     good
30         trap
32 good:
33         b       .