Last change
on this file since 107 was
101,
checked in by rosiere, 16 years ago
|
1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)
|
-
Property svn:keywords set to
Id
|
File size:
288 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Manipulation of processor information |
---|
3 | */ |
---|
4 | |
---|
5 | .file "cpu_info.s" |
---|
6 | .section .text |
---|
7 | .align 4 |
---|
8 | |
---|
9 | .global _get_cpu_id |
---|
10 | _get_cpu_id : |
---|
11 | l.jr r9 |
---|
12 | l.mfspr r11,r0,21 /* R11 <- SPR[0][21] */ |
---|
13 | |
---|
14 | .global _set_cpu_id |
---|
15 | _set_cpu_id : |
---|
16 | l.jr r9 |
---|
17 | l.mtspr r0 ,r3,21 /* SPR[0][21] <- r3 */ |
---|
18 | |
---|
Note: See
TracBrowser
for help on using the repository browser.