base.hh (9430:a113f27b68bd) base.hh (9446:644f2a2c9bfc)
1/*
2 * Copyright (c) 2011-2012 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

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

319 * are already connected) to the memories connected to the old
320 * CPU.
321 *
322 * @param cpu CPU to initialize read state from.
323 */
324 virtual void takeOverFrom(BaseCPU *cpu);
325
326 /**
1/*
2 * Copyright (c) 2011-2012 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

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

319 * are already connected) to the memories connected to the old
320 * CPU.
321 *
322 * @param cpu CPU to initialize read state from.
323 */
324 virtual void takeOverFrom(BaseCPU *cpu);
325
326 /**
327 * Flush all TLBs in the CPU.
328 *
329 * This method is mainly used to flush stale translations when
330 * switching CPUs. It is also exported to the Python world to
331 * allow it to request a TLB flush after draining the CPU to make
332 * it easier to compare traces when debugging
333 * handover/checkpointing.
334 */
335 void flushTLBs();
336
337 /**
327 * Determine if the CPU is switched out.
328 *
329 * @return True if the CPU is switched out, false otherwise.
330 */
331 bool switchedOut() const { return _switchedOut; }
332
333 /**
334 * Number of threads we're actually simulating (<= SMT_MAX_THREADS).

--- 94 unchanged lines hidden ---
338 * Determine if the CPU is switched out.
339 *
340 * @return True if the CPU is switched out, false otherwise.
341 */
342 bool switchedOut() const { return _switchedOut; }
343
344 /**
345 * Number of threads we're actually simulating (<= SMT_MAX_THREADS).

--- 94 unchanged lines hidden ---