exec_context.hh (13953:43ae8a30ec1f) exec_context.hh (13954:2f400a5f2627)
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

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

429 }
430
431 void
432 pcState(const PCState &val) override
433 {
434 thread->pcState(val);
435 }
436
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

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

429 }
430
431 void
432 pcState(const PCState &val) override
433 {
434 thread->pcState(val);
435 }
436
437
438 Fault
439 readMem(Addr addr, uint8_t *data, unsigned int size,
437 Fault
438 readMem(Addr addr, uint8_t *data, unsigned int size,
440 Request::Flags flags) override
439 Request::Flags flags,
440 const std::vector<bool>& byteEnable = std::vector<bool>())
441 override
441 {
442 {
442 return cpu->readMem(addr, data, size, flags);
443 return cpu->readMem(addr, data, size, flags, byteEnable);
443 }
444
445 Fault
446 initiateMemRead(Addr addr, unsigned int size,
444 }
445
446 Fault
447 initiateMemRead(Addr addr, unsigned int size,
447 Request::Flags flags) override
448 Request::Flags flags,
449 const std::vector<bool>& byteEnable = std::vector<bool>())
450 override
448 {
451 {
449 return cpu->initiateMemRead(addr, size, flags);
452 return cpu->initiateMemRead(addr, size, flags, byteEnable);
450 }
451
452 Fault
453 writeMem(uint8_t *data, unsigned int size, Addr addr,
453 }
454
455 Fault
456 writeMem(uint8_t *data, unsigned int size, Addr addr,
454 Request::Flags flags, uint64_t *res) override
457 Request::Flags flags, uint64_t *res,
458 const std::vector<bool>& byteEnable = std::vector<bool>())
459 override
455 {
460 {
456 return cpu->writeMem(data, size, addr, flags, res);
461 assert(byteEnable.empty() || byteEnable.size() == size);
462 return cpu->writeMem(data, size, addr, flags, res, byteEnable);
457 }
458
459 Fault amoMem(Addr addr, uint8_t *data, unsigned int size,
460 Request::Flags flags, AtomicOpFunctor *amo_op) override
461 {
462 return cpu->amoMem(addr, data, size, flags, amo_op);
463 }
464

--- 103 unchanged lines hidden ---
463 }
464
465 Fault amoMem(Addr addr, uint8_t *data, unsigned int size,
466 Request::Flags flags, AtomicOpFunctor *amo_op) override
467 {
468 return cpu->amoMem(addr, data, size, flags, amo_op);
469 }
470

--- 103 unchanged lines hidden ---