Deleted Added
sdiff udiff text old ( 4040:eb894f3fc168 ) new ( 4050:cf1daaef9109 )
full compact
1// -*- mode:c++ -*-
2
3// Copyright (c) 2003-2005 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

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

345
346def template StoreMemAccExecute {{
347 Fault
348 %(class_name)s::MemAcc::execute(%(CPU_exec_context)s *xc,
349 Trace::InstRecord *traceData) const
350 {
351 Addr EA;
352 Fault fault = NoFault;
353 uint64_t write_result = 0;
354
355 %(fp_enable_check)s;
356 %(op_decl)s;
357 %(op_rd)s;
358 EA = xc->getEA();
359
360 if (fault == NoFault) {

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

381
382
383def template StoreExecute {{
384 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc,
385 Trace::InstRecord *traceData) const
386 {
387 Addr EA;
388 Fault fault = NoFault;
389 uint64_t write_result = 0;
390
391 %(fp_enable_check)s;
392 %(op_decl)s;
393 %(op_rd)s;
394 %(ea_code)s;
395
396 if (fault == NoFault) {

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

609
610 if mem_flags:
611 s = '\n\tmemAccessFlags = ' + string.join(mem_flags, '|') + ';'
612 iop.constructor += s
613 memacc_iop.constructor += s
614
615 # select templates
616
617 # define aliases... most StoreCond templates are the same as the
618 # corresponding Store templates (only CompleteAcc is different).
619 StoreCondMemAccExecute = StoreMemAccExecute
620 StoreCondExecute = StoreExecute
621 StoreCondInitiateAcc = StoreInitiateAcc
622
623 memAccExecTemplate = eval(exec_template_base + 'MemAccExecute')
624 fullExecTemplate = eval(exec_template_base + 'Execute')
625 initiateAccTemplate = eval(exec_template_base + 'InitiateAcc')
626 completeAccTemplate = eval(exec_template_base + 'CompleteAcc')
627
628 # (header_output, decoder_output, decode_block, exec_output)

--- 78 unchanged lines hidden ---