utility.hh (2680:246e7104f744) utility.hh (3272:c28038eaefb8)
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;

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

28 * Authors: Gabe Black
29 */
30
31#ifndef __ARCH_SPARC_UTILITY_HH__
32#define __ARCH_SPARC_UTILITY_HH__
33
34#include "arch/sparc/isa_traits.hh"
35#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;

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

28 * Authors: Gabe Black
29 */
30
31#ifndef __ARCH_SPARC_UTILITY_HH__
32#define __ARCH_SPARC_UTILITY_HH__
33
34#include "arch/sparc/isa_traits.hh"
35#include "base/misc.hh"
36#include "cpu/thread_context.hh"
36
37namespace SparcISA
38{
39 inline ExtMachInst
37
38namespace SparcISA
39{
40 inline ExtMachInst
40 makeExtMI(MachInst inst, const Addr &pc) {
41 return ExtMachInst(inst);
41 makeExtMI(MachInst inst, ThreadContext * xc) {
42 ExtMachInst emi = (unsigned MachInst) inst;
43 //The I bit, bit 13, is used to figure out where the ASI
44 //should come from. Use that in the ExtMachInst. This is
45 //slightly redundant, but it removes the need to put a condition
46 //into all the execute functions
47 if(inst & (1 << 13))
48 emi |= (static_cast<ExtMachInst>(xc->readMiscReg(MISCREG_ASI))
49 << (sizeof(MachInst) * 8));
50 return emi;
42 }
43
44 inline bool isCallerSaveIntegerRegister(unsigned int reg) {
45 panic("register classification not implemented");
46 return false;
47 }
48
49 inline bool isCalleeSaveIntegerRegister(unsigned int reg) {

--- 42 unchanged lines hidden ---
51 }
52
53 inline bool isCallerSaveIntegerRegister(unsigned int reg) {
54 panic("register classification not implemented");
55 return false;
56 }
57
58 inline bool isCalleeSaveIntegerRegister(unsigned int reg) {

--- 42 unchanged lines hidden ---