cpu.hh (6974:4d4903a3e7c5) cpu.hh (7520:67c670459d01)
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 688 unchanged lines hidden (view full) ---

697
698 /** Mapping for system thread id to cpu id */
699 std::map<ThreadID, unsigned> threadMap;
700
701 /** Available thread ids in the cpu*/
702 std::vector<ThreadID> tids;
703
704 /** CPU read function, forwards read to LSQ. */
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 688 unchanged lines hidden (view full) ---

697
698 /** Mapping for system thread id to cpu id */
699 std::map<ThreadID, unsigned> threadMap;
700
701 /** Available thread ids in the cpu*/
702 std::vector<ThreadID> tids;
703
704 /** CPU read function, forwards read to LSQ. */
705 template <class T>
706 Fault read(RequestPtr &req, RequestPtr &sreqLow, RequestPtr &sreqHigh,
705 Fault read(RequestPtr &req, RequestPtr &sreqLow, RequestPtr &sreqHigh,
707 T &data, int load_idx)
706 uint8_t *data, int load_idx)
708 {
709 return this->iew.ldstQueue.read(req, sreqLow, sreqHigh,
710 data, load_idx);
711 }
712
713 /** CPU write function, forwards write to LSQ. */
707 {
708 return this->iew.ldstQueue.read(req, sreqLow, sreqHigh,
709 data, load_idx);
710 }
711
712 /** CPU write function, forwards write to LSQ. */
714 template <class T>
715 Fault write(RequestPtr &req, RequestPtr &sreqLow, RequestPtr &sreqHigh,
713 Fault write(RequestPtr &req, RequestPtr &sreqLow, RequestPtr &sreqHigh,
716 T &data, int store_idx)
714 uint8_t *data, int store_idx)
717 {
718 return this->iew.ldstQueue.write(req, sreqLow, sreqHigh,
719 data, store_idx);
720 }
721
722 /** Get the dcache port (used to find block size for translations). */
723 Port *getDcachePort() { return this->iew.ldstQueue.getDcachePort(); }
724

--- 24 unchanged lines hidden ---
715 {
716 return this->iew.ldstQueue.write(req, sreqLow, sreqHigh,
717 data, store_idx);
718 }
719
720 /** Get the dcache port (used to find block size for translations). */
721 Port *getDcachePort() { return this->iew.ldstQueue.getDcachePort(); }
722

--- 24 unchanged lines hidden ---