timing.hh (5728:9574f561dfa2) timing.hh (5744:342cbc20a188)
1/*
2 * Copyright (c) 2002-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;

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

60 * count is zero, the entire larger access is complete.
61 */
62 class SplitMainSenderState : public Packet::SenderState
63 {
64 public:
65 int outstanding;
66 PacketPtr fragments[2];
67
1/*
2 * Copyright (c) 2002-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;

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

60 * count is zero, the entire larger access is complete.
61 */
62 class SplitMainSenderState : public Packet::SenderState
63 {
64 public:
65 int outstanding;
66 PacketPtr fragments[2];
67
68 SplitMainSenderState()
69 {
70 fragments[0] = NULL;
71 fragments[1] = NULL;
72 }
73
74 int
75 getPendingFragment()
76 {
77 if (fragments[0]) {
78 return 0;
79 } else if (fragments[1]) {
80 return 1;
81 } else {

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

97 clearFromParent()
98 {
99 SplitMainSenderState * main_send_state =
100 dynamic_cast<SplitMainSenderState *>(bigPkt->senderState);
101 main_send_state->fragments[index] = NULL;
102 }
103 };
104
68 int
69 getPendingFragment()
70 {
71 if (fragments[0]) {
72 return 0;
73 } else if (fragments[1]) {
74 return 1;
75 } else {

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

91 clearFromParent()
92 {
93 SplitMainSenderState * main_send_state =
94 dynamic_cast<SplitMainSenderState *>(bigPkt->senderState);
95 main_send_state->fragments[index] = NULL;
96 }
97 };
98
99 Fault buildSplitPacket(PacketPtr &pkt1, PacketPtr &pkt2, RequestPtr &req,
100 Addr split_addr, uint8_t *data, bool read);
101 Fault buildPacket(PacketPtr &pkt, RequestPtr &req, bool read);
102
105 bool handleReadPacket(PacketPtr pkt);
106 // This function always implicitly uses dcache_pkt.
107 bool handleWritePacket();
108
109 class CpuPort : public Port
110 {
111 protected:
112 TimingSimpleCPU *cpu;

--- 153 unchanged lines hidden ---
103 bool handleReadPacket(PacketPtr pkt);
104 // This function always implicitly uses dcache_pkt.
105 bool handleWritePacket();
106
107 class CpuPort : public Port
108 {
109 protected:
110 TimingSimpleCPU *cpu;

--- 153 unchanged lines hidden ---