utility.cc (8706:b1838faf3bcc) utility.cc (8733:64a7bf8fa56c)
1/*
2 * Copyright (c) 2009-2010 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

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

36 *
37 * Authors: Ali Saidi
38 */
39
40
41#include "arch/arm/faults.hh"
42#include "arch/arm/isa_traits.hh"
43#include "arch/arm/utility.hh"
1/*
2 * Copyright (c) 2009-2010 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

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

36 *
37 * Authors: Ali Saidi
38 */
39
40
41#include "arch/arm/faults.hh"
42#include "arch/arm/isa_traits.hh"
43#include "arch/arm/utility.hh"
44#include "config/use_checker.hh"
44#include "cpu/thread_context.hh"
45
46#if FULL_SYSTEM
47#include "arch/arm/vtophys.hh"
48#include "mem/fs_translating_port_proxy.hh"
49#endif
50
51#include "arch/arm/tlb.hh"

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

111#endif
112}
113
114void
115skipFunction(ThreadContext *tc)
116{
117 TheISA::PCState newPC = tc->pcState();
118 newPC.set(tc->readIntReg(ReturnAddressReg) & ~ULL(1));
45#include "cpu/thread_context.hh"
46
47#if FULL_SYSTEM
48#include "arch/arm/vtophys.hh"
49#include "mem/fs_translating_port_proxy.hh"
50#endif
51
52#include "arch/arm/tlb.hh"

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

112#endif
113}
114
115void
116skipFunction(ThreadContext *tc)
117{
118 TheISA::PCState newPC = tc->pcState();
119 newPC.set(tc->readIntReg(ReturnAddressReg) & ~ULL(1));
120#if USE_CHECKER
121 tc->pcStateNoRecord(newPC);
122#else
119 tc->pcState(newPC);
123 tc->pcState(newPC);
124#endif
120}
121
122void
123copyRegs(ThreadContext *src, ThreadContext *dest)
124{
125 int i;
126
127 int saved_mode = ((CPSR)src->readMiscReg(MISCREG_CPSR)).mode;

--- 43 unchanged lines hidden ---
125}
126
127void
128copyRegs(ThreadContext *src, ThreadContext *dest)
129{
130 int i;
131
132 int saved_mode = ((CPSR)src->readMiscReg(MISCREG_CPSR)).mode;

--- 43 unchanged lines hidden ---