RubyPort.cc (7906:5ccd97218ca0) RubyPort.cc (7907:d648b8409d4c)
1/*
2 * Copyright (c) 2009 Advanced Micro Devices, Inc.
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;

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

190 Addr pc = 0;
191 if (pkt->req->hasPC()) {
192 pc = pkt->req->getPC();
193 }
194
195 if (pkt->isLLSC()) {
196 if (pkt->isWrite()) {
197 DPRINTF(MemoryAccess, "Issuing SC\n");
1/*
2 * Copyright (c) 2009 Advanced Micro Devices, Inc.
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;

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

190 Addr pc = 0;
191 if (pkt->req->hasPC()) {
192 pc = pkt->req->getPC();
193 }
194
195 if (pkt->isLLSC()) {
196 if (pkt->isWrite()) {
197 DPRINTF(MemoryAccess, "Issuing SC\n");
198 type = RubyRequestType_Locked_Write;
198 type = RubyRequestType_Store_Conditional;
199 } else {
200 DPRINTF(MemoryAccess, "Issuing LL\n");
201 assert(pkt->isRead());
199 } else {
200 DPRINTF(MemoryAccess, "Issuing LL\n");
201 assert(pkt->isRead());
202 type = RubyRequestType_Locked_Read;
202 type = RubyRequestType_Load_Linked;
203 }
204 } else {
205 if (pkt->isRead()) {
206 if (pkt->req->isInstFetch()) {
207 type = RubyRequestType_IFETCH;
208 } else {
209 type = RubyRequestType_LD;
210 }

--- 142 unchanged lines hidden ---
203 }
204 } else {
205 if (pkt->isRead()) {
206 if (pkt->req->isInstFetch()) {
207 type = RubyRequestType_IFETCH;
208 } else {
209 type = RubyRequestType_LD;
210 }

--- 142 unchanged lines hidden ---