utility.hh (7680:f4eda002333b) utility.hh (7692:8173327c9c65)
1/*
2 * Copyright (c) 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

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

40 *
41 * Authors: Korey Sewell
42 * Stephen Hines
43 */
44
45#ifndef __ARCH_ARM_UTILITY_HH__
46#define __ARCH_ARM_UTILITY_HH__
47
1/*
2 * Copyright (c) 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

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

40 *
41 * Authors: Korey Sewell
42 * Stephen Hines
43 */
44
45#ifndef __ARCH_ARM_UTILITY_HH__
46#define __ARCH_ARM_UTILITY_HH__
47
48#include "arch/arm/isa_traits.hh"
48#include "arch/arm/miscregs.hh"
49#include "arch/arm/types.hh"
50#include "base/misc.hh"
51#include "base/trace.hh"
52#include "base/types.hh"
53#include "cpu/thread_context.hh"
54
55namespace ArmISA {

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

87 template <class TC>
88 void zeroRegisters(TC *tc);
89
90 inline void startupCPU(ThreadContext *tc, int cpuId)
91 {
92 tc->activate(0);
93 }
94
49#include "arch/arm/miscregs.hh"
50#include "arch/arm/types.hh"
51#include "base/misc.hh"
52#include "base/trace.hh"
53#include "base/types.hh"
54#include "cpu/thread_context.hh"
55
56namespace ArmISA {

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

88 template <class TC>
89 void zeroRegisters(TC *tc);
90
91 inline void startupCPU(ThreadContext *tc, int cpuId)
92 {
93 tc->activate(0);
94 }
95
96 static inline bool
97 isThumb(Addr pc)
98 {
99 return (pc & PcTBit);
100 }
101
95 static inline void
96 copyRegs(ThreadContext *src, ThreadContext *dest)
97 {
98 panic("Copy Regs Not Implemented Yet\n");
99 }
100
101 static inline void
102 copyMiscRegs(ThreadContext *src, ThreadContext *dest)

--- 58 unchanged lines hidden ---
102 static inline void
103 copyRegs(ThreadContext *src, ThreadContext *dest)
104 {
105 panic("Copy Regs Not Implemented Yet\n");
106 }
107
108 static inline void
109 copyMiscRegs(ThreadContext *src, ThreadContext *dest)

--- 58 unchanged lines hidden ---