exec_context.hh (13622:ba31c2a23eca) exec_context.hh (13652:45d94ac03a27)
1/*
2 * Copyright (c) 2014, 2016-2017 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

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

256 /**
257 * For atomic-mode contexts, perform an atomic memory write operation.
258 * For timing-mode contexts, initiate a timing memory write operation.
259 */
260 virtual Fault writeMem(uint8_t *data, unsigned int size, Addr addr,
261 Request::Flags flags, uint64_t *res) = 0;
262
263 /**
1/*
2 * Copyright (c) 2014, 2016-2017 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

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

256 /**
257 * For atomic-mode contexts, perform an atomic memory write operation.
258 * For timing-mode contexts, initiate a timing memory write operation.
259 */
260 virtual Fault writeMem(uint8_t *data, unsigned int size, Addr addr,
261 Request::Flags flags, uint64_t *res) = 0;
262
263 /**
264 * For atomic-mode contexts, perform an atomic AMO (a.k.a., Atomic
265 * Read-Modify-Write Memory Operation)
266 */
267 virtual Fault amoMem(Addr addr, uint8_t *data, unsigned int size,
268 Request::Flags flags,
269 AtomicOpFunctor *amo_op)
270 {
271 panic("ExecContext::amoMem() should be overridden\n");
272 }
273
274 /**
275 * For timing-mode contexts, initiate an atomic AMO (atomic
276 * read-modify-write memory operation)
277 */
278 virtual Fault initiateMemAMO(Addr addr, unsigned int size,
279 Request::Flags flags,
280 AtomicOpFunctor *amo_op)
281 {
282 panic("ExecContext::initiateMemAMO() should be overridden\n");
283 }
284
285 /**
264 * Sets the number of consecutive store conditional failures.
265 */
266 virtual void setStCondFailures(unsigned int sc_failures) = 0;
267
268 /**
269 * Returns the number of consecutive store conditional failures.
270 */
271 virtual unsigned int readStCondFailures() const = 0;

--- 79 unchanged lines hidden ---
286 * Sets the number of consecutive store conditional failures.
287 */
288 virtual void setStCondFailures(unsigned int sc_failures) = 0;
289
290 /**
291 * Returns the number of consecutive store conditional failures.
292 */
293 virtual unsigned int readStCondFailures() const = 0;

--- 79 unchanged lines hidden ---