utility.hh (8300:eb279d6e08a2) utility.hh (8780:89e0822462a1)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

31
32#ifndef __ARCH_ALPHA_UTILITY_HH__
33#define __ARCH_ALPHA_UTILITY_HH__
34
35#include "arch/alpha/isa_traits.hh"
36#include "arch/alpha/registers.hh"
37#include "arch/alpha/types.hh"
38#include "base/misc.hh"
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

31
32#ifndef __ARCH_ALPHA_UTILITY_HH__
33#define __ARCH_ALPHA_UTILITY_HH__
34
35#include "arch/alpha/isa_traits.hh"
36#include "arch/alpha/registers.hh"
37#include "arch/alpha/types.hh"
38#include "base/misc.hh"
39#include "config/full_system.hh"
40#include "cpu/static_inst.hh"
41#include "cpu/thread_context.hh"
42#include "arch/alpha/ev5.hh"
43
44namespace AlphaISA {
45
46inline PCState
47buildRetPC(const PCState &curPC, const PCState &callPC)

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

91TruncPage(Addr addr)
92{ return addr & ~(PageBytes - 1); }
93
94inline Addr
95RoundPage(Addr addr)
96{ return (addr + PageBytes - 1) & ~(PageBytes - 1); }
97
98void initIPRs(ThreadContext *tc, int cpuId);
39#include "cpu/static_inst.hh"
40#include "cpu/thread_context.hh"
41#include "arch/alpha/ev5.hh"
42
43namespace AlphaISA {
44
45inline PCState
46buildRetPC(const PCState &curPC, const PCState &callPC)

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

90TruncPage(Addr addr)
91{ return addr & ~(PageBytes - 1); }
92
93inline Addr
94RoundPage(Addr addr)
95{ return (addr + PageBytes - 1) & ~(PageBytes - 1); }
96
97void initIPRs(ThreadContext *tc, int cpuId);
99#if FULL_SYSTEM
100void initCPU(ThreadContext *tc, int cpuId);
98void initCPU(ThreadContext *tc, int cpuId);
101#endif
102
103void copyRegs(ThreadContext *src, ThreadContext *dest);
104
105void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
106
107void skipFunction(ThreadContext *tc);
108
109inline void

--- 14 unchanged lines hidden ---
99
100void copyRegs(ThreadContext *src, ThreadContext *dest);
101
102void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
103
104void skipFunction(ThreadContext *tc);
105
106inline void

--- 14 unchanged lines hidden ---