1/*
2 * Copyright (c) 2011-2013, 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
--- 151 unchanged lines hidden (view full) ---
160 * Write object T to address. Writes sizeof(T) bytes.
161 * Performs endianness conversion from host to the selected guest order.
162 */
163 template <typename T>
164 void write(Addr address, T data, ByteOrder guest_byte_order) const;
165};
166
167
168template <typename T>
169T
170PortProxy::read(Addr address) const
171{
172 T data;
173 readBlob(address, (uint8_t*)&data, sizeof(T));
174 return data;
175}
--- 26 unchanged lines hidden ---
2 * Copyright (c) 2011-2013, 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
--- 151 unchanged lines hidden (view full) ---
160 * Write object T to address. Writes sizeof(T) bytes.
161 * Performs endianness conversion from host to the selected guest order.
162 */
163 template <typename T>
164 void write(Addr address, T data, ByteOrder guest_byte_order) const;
165};
166
167
168template <typename T>
169T
170PortProxy::read(Addr address) const
171{
172 T data;
173 readBlob(address, (uint8_t*)&data, sizeof(T));
174 return data;
175}
--- 26 unchanged lines hidden ---