memhelpers.hh (11881:f0a07f1e8ee2) memhelpers.hh (12386:2bf5fb25a5f1)
1/*
2 * Copyright (c) 2013 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

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

109 if (traceData) {
110 traceData->setData(mem);
111 }
112 MemT host_mem = TheISA::htog(mem);
113 Fault fault =
114 xc->writeMem((uint8_t *)&host_mem, sizeof(MemT), addr, flags, res);
115 if (fault == NoFault && res != NULL) {
116 if (flags & Request::MEM_SWAP || flags & Request::MEM_SWAP_COND)
1/*
2 * Copyright (c) 2013 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

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

109 if (traceData) {
110 traceData->setData(mem);
111 }
112 MemT host_mem = TheISA::htog(mem);
113 Fault fault =
114 xc->writeMem((uint8_t *)&host_mem, sizeof(MemT), addr, flags, res);
115 if (fault == NoFault && res != NULL) {
116 if (flags & Request::MEM_SWAP || flags & Request::MEM_SWAP_COND)
117 *res = TheISA::gtoh((MemT)*res);
117 *(MemT *)res = TheISA::gtoh(*(MemT *)res);
118 else
119 *res = TheISA::gtoh(*res);
120 }
121 return fault;
122}
123
124#endif
118 else
119 *res = TheISA::gtoh(*res);
120 }
121 return fault;
122}
123
124#endif