exec_context.hh (13954:2f400a5f2627) | exec_context.hh (14297:b4519e586f5e) |
---|---|
1/* 2 * Copyright (c) 2014-2018 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 449 unchanged lines hidden (view full) --- 458 const std::vector<bool>& byteEnable = std::vector<bool>()) 459 override 460 { 461 assert(byteEnable.empty() || byteEnable.size() == size); 462 return cpu->writeMem(data, size, addr, flags, res, byteEnable); 463 } 464 465 Fault amoMem(Addr addr, uint8_t *data, unsigned int size, | 1/* 2 * Copyright (c) 2014-2018 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 449 unchanged lines hidden (view full) --- 458 const std::vector<bool>& byteEnable = std::vector<bool>()) 459 override 460 { 461 assert(byteEnable.empty() || byteEnable.size() == size); 462 return cpu->writeMem(data, size, addr, flags, res, byteEnable); 463 } 464 465 Fault amoMem(Addr addr, uint8_t *data, unsigned int size, |
466 Request::Flags flags, AtomicOpFunctor *amo_op) override | 466 Request::Flags flags, AtomicOpFunctorPtr amo_op) override |
467 { | 467 { |
468 return cpu->amoMem(addr, data, size, flags, amo_op); | 468 return cpu->amoMem(addr, data, size, flags, std::move(amo_op)); |
469 } 470 471 Fault initiateMemAMO(Addr addr, unsigned int size, 472 Request::Flags flags, | 469 } 470 471 Fault initiateMemAMO(Addr addr, unsigned int size, 472 Request::Flags flags, |
473 AtomicOpFunctor *amo_op) override | 473 AtomicOpFunctorPtr amo_op) override |
474 { | 474 { |
475 return cpu->initiateMemAMO(addr, size, flags, amo_op); | 475 return cpu->initiateMemAMO(addr, size, flags, std::move(amo_op)); |
476 } 477 478 /** 479 * Sets the number of consecutive store conditional failures. 480 */ 481 void 482 setStCondFailures(unsigned int sc_failures) override 483 { --- 90 unchanged lines hidden --- | 476 } 477 478 /** 479 * Sets the number of consecutive store conditional failures. 480 */ 481 void 482 setStCondFailures(unsigned int sc_failures) override 483 { --- 90 unchanged lines hidden --- |