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: include qemu-kvm.h unconditionally
[kvm-userspace.git]
/
user
/
test
/
powerpc
/
io.S
blob
97567cb6c73f2e6ba6ac66f235ab15d702a1f337
1
#define SPRN_MMUCR 0x3b2
2
3
#define TLBWORD0 0xf0000210
4
#define TLBWORD1 0xf0000000
5
#define TLBWORD2 0x00000003
6
7
.global _start
8
_start:
9
li r4, 0
10
mtspr SPRN_MMUCR, r4
11
12
li r3, 2
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 r3, 0xf000
27
lis r4, 0x1234
28
ori r4, r4, 0x5678
29
stb r4, 0(r3)
30
lbz r5, 0(r3)
31
32
b .