mem.isa (6739:48d10ba361c9) mem.isa (7045:e21fe6a62b1c)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 MIPS Technologies, Inc.
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

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

300
301 if (fault == NoFault) {
302 %(memacc_code)s;
303 }
304
305 if (fault == NoFault) {
306 fault = xc->write((uint%(mem_acc_size)d_t&)Mem, EA,
307 memAccessFlags, NULL);
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 MIPS Technologies, Inc.
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

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

300
301 if (fault == NoFault) {
302 %(memacc_code)s;
303 }
304
305 if (fault == NoFault) {
306 fault = xc->write((uint%(mem_acc_size)d_t&)Mem, EA,
307 memAccessFlags, NULL);
308 if (traceData) { traceData->setData(Mem); }
309 }
310
311 if (fault == NoFault) {
312 %(postacc_code)s;
313 }
314
315 if (fault == NoFault) {
316 %(op_wb)s;

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

337
338 if (fault == NoFault) {
339 %(memacc_code)s;
340 }
341
342 if (fault == NoFault) {
343 fault = xc->write((uint%(mem_acc_size)d_t&)Mem, EA,
344 memAccessFlags, NULL);
308 }
309
310 if (fault == NoFault) {
311 %(postacc_code)s;
312 }
313
314 if (fault == NoFault) {
315 %(op_wb)s;

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

336
337 if (fault == NoFault) {
338 %(memacc_code)s;
339 }
340
341 if (fault == NoFault) {
342 fault = xc->write((uint%(mem_acc_size)d_t&)Mem, EA,
343 memAccessFlags, NULL);
345 if (traceData) { traceData->setData(Mem); }
346 }
347
348 if (fault == NoFault) {
349 %(postacc_code)s;
350 }
351
352 if (fault == NoFault) {
353 %(op_wb)s;

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

372
373 if (fault == NoFault) {
374 %(memacc_code)s;
375 }
376
377 if (fault == NoFault) {
378 fault = xc->write((uint%(mem_acc_size)d_t&)Mem, EA,
379 memAccessFlags, &write_result);
344 }
345
346 if (fault == NoFault) {
347 %(postacc_code)s;
348 }
349
350 if (fault == NoFault) {
351 %(op_wb)s;

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

370
371 if (fault == NoFault) {
372 %(memacc_code)s;
373 }
374
375 if (fault == NoFault) {
376 fault = xc->write((uint%(mem_acc_size)d_t&)Mem, EA,
377 memAccessFlags, &write_result);
380 if (traceData) { traceData->setData(Mem); }
381 }
382
383 if (fault == NoFault) {
384 %(postacc_code)s;
385 }
386
387 if (fault == NoFault) {
388 %(op_wb)s;

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

406
407 if (fault == NoFault) {
408 %(memacc_code)s;
409 }
410
411 if (fault == NoFault) {
412 fault = xc->write((uint%(mem_acc_size)d_t&)Mem, EA,
413 memAccessFlags, NULL);
378 }
379
380 if (fault == NoFault) {
381 %(postacc_code)s;
382 }
383
384 if (fault == NoFault) {
385 %(op_wb)s;

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

403
404 if (fault == NoFault) {
405 %(memacc_code)s;
406 }
407
408 if (fault == NoFault) {
409 fault = xc->write((uint%(mem_acc_size)d_t&)Mem, EA,
410 memAccessFlags, NULL);
414 if (traceData) { traceData->setData(Mem); }
415 }
416
417 return fault;
418 }
419}};
420
421
422def template StoreCompleteAcc {{

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

430 %(op_dest_decl)s;
431
432 if (fault == NoFault) {
433 %(postacc_code)s;
434 }
435
436 if (fault == NoFault) {
437 %(op_wb)s;
411 }
412
413 return fault;
414 }
415}};
416
417
418def template StoreCompleteAcc {{

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

426 %(op_dest_decl)s;
427
428 if (fault == NoFault) {
429 %(postacc_code)s;
430 }
431
432 if (fault == NoFault) {
433 %(op_wb)s;
438
439 if (traceData) { traceData->setData(getMemData(xc, pkt)); }
440 }
441
442 return fault;
443 }
444}};
445
446
447def template StoreCompleteAcc {{

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

454 %(op_dest_decl)s;
455
456 if (fault == NoFault) {
457 %(postacc_code)s;
458 }
459
460 if (fault == NoFault) {
461 %(op_wb)s;
434 }
435
436 return fault;
437 }
438}};
439
440
441def template StoreCompleteAcc {{

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

448 %(op_dest_decl)s;
449
450 if (fault == NoFault) {
451 %(postacc_code)s;
452 }
453
454 if (fault == NoFault) {
455 %(op_wb)s;
462
463 if (traceData) { traceData->setData(getMemData(xc, pkt)); }
464 }
465
466 return fault;
467 }
468}};
469
470def template StoreCondCompleteAcc {{
471 Fault %(class_name)s::completeAcc(Packet *pkt,

--- 168 unchanged lines hidden ---
456 }
457
458 return fault;
459 }
460}};
461
462def template StoreCondCompleteAcc {{
463 Fault %(class_name)s::completeAcc(Packet *pkt,

--- 168 unchanged lines hidden ---