What does TimeBuffer in gem5 do? I read its source code, but there are no 
comments and it is not easy to understand operations. I saw in the tick 
function in the cpu.cc file that every tick() will proceed
    timeBuffer.advance();
    fetchQueue.advance();
    decodeQueue.advance();
    renameQueue.advance();
    iewQueue.advance();
But the function of advance is
advance()
{
 if (++base >= size)
    base = 0;
    int ptr = base + future;
    if (ptr >= (int)size)
        ptr -= size;
    (reinterpret_cast<T *>(index[ptr]))->~T();
    std::memset(index[ptr], 0, sizeof(T));
    new (index[ptr]) T;
}
Just looking at the source code, this is really hard to understand. I think if 
someone can tell me what it is doing? I think it’s easier for me to understand 
this code
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to