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
/
44x
/
tlbwe.S
blob
ec6ef5c57fc479d673fc2aa6512777c068d609c2
1
#define SPRN_MMUCR 0x3b2
2
3
/* Create a mapping at 4MB */
4
#define TLBWORD0 0x00400210
5
#define TLBWORD1 0x00400000
6
#define TLBWORD2 0x00000003
7
8
.global _start
9
_start:
10
li r4, 0
11
mtspr SPRN_MMUCR, r4
12
13
li r3, 23
14
15
lis r4, TLBWORD0@h
16
ori r4, r4, TLBWORD0@l
17
tlbwe r4, r3, 0
18
19
lis r4, TLBWORD1@h
20
ori r4, r4, TLBWORD1@l
21
tlbwe r4, r3, 1
22
23
lis r4, TLBWORD2@h
24
ori r4, r4, TLBWORD2@l
25
tlbwe r4, r3, 2
26
27
b .