table_walker.cc (7728:cf9db1c47a77) table_walker.cc (7733:08d6a773d1b6)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

54}
55
56TableWalker::~TableWalker()
57{
58 ;
59}
60
61
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

54}
55
56TableWalker::~TableWalker()
57{
58 ;
59}
60
61
62unsigned int
63drain(Event *de)
62unsigned int TableWalker::drain(Event *de)
64{
63{
65 panic("Not implemented\n");
64 if (stateQueueL1.size() != 0 || stateQueueL2.size() != 0)
65 {
66 changeState(Draining);
67 DPRINTF(Checkpoint, "TableWalker busy, wait to drain\n");
68 return 1;
69 }
70 else
71 {
72 changeState(Drained);
73 DPRINTF(Checkpoint, "TableWalker free, no need to drain\n");
74 return 0;
75 }
66}
67
68Port*
69TableWalker::getPort(const std::string &if_name, int idx)
70{
71 if (if_name == "port") {
72 if (port != NULL)
73 fatal("%s: port already connected to %s",

--- 632 unchanged lines hidden ---
76}
77
78Port*
79TableWalker::getPort(const std::string &if_name, int idx)
80{
81 if (if_name == "port") {
82 if (port != NULL)
83 fatal("%s: port already connected to %s",

--- 632 unchanged lines hidden ---