mem.isa (4661:44458219add1) | mem.isa (4673:833d4a116810) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2006 The Regents of The University of Michigan 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 103 unchanged lines hidden (view full) --- 112 } 113 114}}; 115 116output exec {{ 117 /** return data in cases where there the size of data is only 118 known in the packet 119 */ | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2006 The Regents of The University of Michigan 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 103 unchanged lines hidden (view full) --- 112 } 113 114}}; 115 116output exec {{ 117 /** return data in cases where there the size of data is only 118 known in the packet 119 */ |
120 uint64_t getStoreData(Packet *packet) { | 120 uint64_t getStoreData(%(CPU_exec_context)s *xc, Packet *packet) { |
121 switch (packet->getSize()) 122 { 123 case 8: 124 return packet->get<uint8_t>(); 125 126 case 16: 127 return packet->get<uint16_t>(); 128 --- 408 unchanged lines hidden (view full) --- 537 538 if (fault == NoFault) { 539 %(postacc_code)s; 540 } 541 542 if (fault == NoFault) { 543 %(op_wb)s; 544 | 121 switch (packet->getSize()) 122 { 123 case 8: 124 return packet->get<uint8_t>(); 125 126 case 16: 127 return packet->get<uint16_t>(); 128 --- 408 unchanged lines hidden (view full) --- 537 538 if (fault == NoFault) { 539 %(postacc_code)s; 540 } 541 542 if (fault == NoFault) { 543 %(op_wb)s; 544 |
545 if (traceData) { traceData->setData(getStoreData(pkt)); } | 545 if (traceData) { traceData->setData(getStoreData(xc, pkt)); } |
546 } 547 548 return fault; 549 } 550}}; 551 552def template StoreCondCompleteAcc {{ 553 Fault %(class_name)s::completeAcc(Packet *pkt, --- 177 unchanged lines hidden --- | 546 } 547 548 return fault; 549 } 550}}; 551 552def template StoreCondCompleteAcc {{ 553 Fault %(class_name)s::completeAcc(Packet *pkt, --- 177 unchanged lines hidden --- |