repo.or.cz
/
kvm-userspace.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
kvm: qemu: fix pci_enable_capabilities to set the CAP feature in pci::status
[kvm-userspace.git]
/
user
/
test
/
powerpc
/
44x
/
tlbsx.S
blob
b15874b18b74c7845756ccdc571e70042a31c694
1
#define SPRN_MMUCR 0x3b2
2
3
#define TLBWORD0 0x10000210
4
#define TLBWORD1 0x10000000
5
#define TLBWORD2 0x00000003
6
7
.global _start
8
_start:
9
li r4, 0
10
mtspr SPRN_MMUCR, r4
11
12
li r3, 23
13
14
lis r4, TLBWORD0@h
15
ori r4, r4, TLBWORD0@l
16
tlbwe r4, r3, 0
17
18
lis r4, TLBWORD1@h
19
ori r4, r4, TLBWORD1@l
20
tlbwe r4, r3, 1
21
22
lis r4, TLBWORD2@h
23
ori r4, r4, TLBWORD2@l
24
tlbwe r4, r3, 2
25
26
lis r4, 0x1000
27
tlbsx r5, r4, r0
28
cmpwi r5, 23
29
beq good
30
trap
31
32
good:
33
b .