venti: new icache

This commit is contained in:
Russ Cox
2007-09-25 09:47:31 -04:00
parent 25a4e89fa9
commit 7a400ee957
17 changed files with 854 additions and 468 deletions

View File

@@ -581,9 +581,9 @@ unpackientry(IEntry *ie, u8int *buf)
scorecp(ie->score, p);
p += VtScoreSize;
ie->wtime = U32GET(p);
/* ie->wtime = U32GET(p); */
p += U32Size;
ie->train = U16GET(p);
/* ie->train = U16GET(p); */
p += U16Size;
if(p - buf != IEntryAddrOff)
sysfatal("unpackentry bad IEntryAddrOff amount");
@@ -613,9 +613,9 @@ packientry(IEntry *ie, u8int *buf)
scorecp(p, ie->score);
p += VtScoreSize;
U32PUT(p, ie->wtime);
U32PUT(p, 0); /* wtime */
p += U32Size;
U16PUT(p, ie->train);
U16PUT(p, 0); /* train */
p += U16Size;
U64PUT(p, ie->ia.addr, t32);
p += U64Size;