projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d41c904
)
moved devices around in config space and support figuring out cpuid
author
Ali Saidi
<saidi@eecs.umich.edu>
Thu, 29 Jan 2004 01:23:40 +0000
(20:23 -0500)
committer
Ali Saidi
<saidi@eecs.umich.edu>
Thu, 29 Jan 2004 01:23:40 +0000
(20:23 -0500)
from cchip register
dev/tsunami_cchip.cc:
added support for figuring out which cpu you are
--HG--
extra : convert_revision :
7862678a259931bb0a5b2ca8ad298a704bd272ec
dev/tsunami_cchip.cc
patch
|
blob
|
history
diff --git
a/dev/tsunami_cchip.cc
b/dev/tsunami_cchip.cc
index 9c14bc3b099a3b91353f1bfc546afe6a8d0bbc91..9dba502e42a6e49ca92d7d0b2d8e989c537bec84 100644
(file)
--- a/
dev/tsunami_cchip.cc
+++ b/
dev/tsunami_cchip.cc
@@
-49,8
+49,7
@@
TsunamiCChip::read(MemReqPtr req, uint8_t *data)
req->vaddr, req->size);
Addr daddr = (req->paddr & addr_mask) >> 6;
-// ExecContext *xc = req->xc;
-// int cpuid = xc->cpu_id;
+ ExecContext *xc = req->xc;
switch (req->size) {
@@
-63,7
+62,7
@@
TsunamiCChip::read(MemReqPtr req, uint8_t *data)
panic("TSDEV_CC_MTR not implemeted\n");
return No_Fault;
case TSDEV_CC_MISC:
- *(uint64_t*)data = misc;
+ *(uint64_t*)data = misc
| (xc->cpu_id & 0x3)
;
return No_Fault;
case TSDEV_CC_AAR0:
case TSDEV_CC_AAR1: