utility.hh (2972:f84c6c5309ce) utility.hh (3120:e49afeaf79e9)
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;

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

32#ifndef __ARCH_ALPHA_UTILITY_HH__
33#define __ARCH_ALPHA_UTILITY_HH__
34
35#include "config/full_system.hh"
36#include "arch/alpha/types.hh"
37#include "arch/alpha/isa_traits.hh"
38#include "arch/alpha/regfile.hh"
39#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;

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

32#ifndef __ARCH_ALPHA_UTILITY_HH__
33#define __ARCH_ALPHA_UTILITY_HH__
34
35#include "config/full_system.hh"
36#include "arch/alpha/types.hh"
37#include "arch/alpha/isa_traits.hh"
38#include "arch/alpha/regfile.hh"
39#include "base/misc.hh"
40#include "cpu/thread_context.hh"
40
41namespace AlphaISA
42{
43
44 static inline ExtMachInst
41
42namespace AlphaISA
43{
44
45 static inline ExtMachInst
45 makeExtMI(MachInst inst, const uint64_t &pc) {
46 makeExtMI(MachInst inst, ThreadContext * xc) {
46#if FULL_SYSTEM
47 ExtMachInst ext_inst = inst;
47#if FULL_SYSTEM
48 ExtMachInst ext_inst = inst;
48 if (pc && 0x1)
49 return ext_inst|=(static_cast<ExtMachInst>(pc & 0x1) << 32);
49 if (xc->readPC() && 0x1)
50 return ext_inst|=(static_cast<ExtMachInst>(xc->readPC() & 0x1) << 32);
50 else
51 return ext_inst;
52#else
53 return ExtMachInst(inst);
54#endif
55 }
56
57 inline bool isCallerSaveIntegerRegister(unsigned int reg) {

--- 102 unchanged lines hidden ---
51 else
52 return ext_inst;
53#else
54 return ExtMachInst(inst);
55#endif
56 }
57
58 inline bool isCallerSaveIntegerRegister(unsigned int reg) {

--- 102 unchanged lines hidden ---