1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 45 unchanged lines hidden (view full) --- 54 * 55 * Authors: Gabe Black 56 */ 57 58#ifndef __ARCH_X86_UTILITY_HH__ 59#define __ARCH_X86_UTILITY_HH__ 60 61#include "arch/x86/types.hh" |
62#include "base/misc.hh" 63#include "sim/host.hh" 64 65class ThreadContext; 66 |
67namespace X86ISA 68{ 69 static inline bool 70 inUserMode(ThreadContext *tc) 71 { 72 return false; 73 } 74 |
75 inline ExtMachInst 76 makeExtMI(MachInst inst, ThreadContext * xc) { 77 return inst; 78 } 79 |
80 inline bool isCallerSaveIntegerRegister(unsigned int reg) { 81 panic("register classification not implemented"); 82 return false; 83 } 84 85 inline bool isCalleeSaveIntegerRegister(unsigned int reg) { 86 panic("register classification not implemented"); 87 return false; --- 33 unchanged lines hidden (view full) --- 121 */ 122 template <class TC> 123 void zeroRegisters(TC *tc); 124 125 inline void initCPU(ThreadContext *tc, int cpuId) 126 { 127 panic("initCPU not implemented!\n"); 128 } |
129 130 inline void startupCPU(ThreadContext *tc, int cpuId) 131 { 132 tc->activate(0); 133 } |
134}; 135 136#endif // __ARCH_X86_UTILITY_HH__ |