utility.hh (5086:e7913ffb379d) | utility.hh (5135:6ae576eada5c) |
---|---|
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 * --- 47 unchanged lines hidden (view full) --- 56 */ 57 58#ifndef __ARCH_X86_UTILITY_HH__ 59#define __ARCH_X86_UTILITY_HH__ 60 61#include "arch/x86/types.hh" 62#include "base/hashmap.hh" 63#include "base/misc.hh" | 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 * --- 47 unchanged lines hidden (view full) --- 56 */ 57 58#ifndef __ARCH_X86_UTILITY_HH__ 59#define __ARCH_X86_UTILITY_HH__ 60 61#include "arch/x86/types.hh" 62#include "base/hashmap.hh" 63#include "base/misc.hh" |
64#include "config/full_system.hh" |
|
64#include "cpu/thread_context.hh" 65#include "sim/host.hh" 66 67class ThreadContext; 68 69namespace __hash_namespace { 70 template<> 71 struct hash<X86ISA::ExtMachInst> { --- 63 unchanged lines hidden (view full) --- 135 136 /** 137 * Function to insure ISA semantics about 0 registers. 138 * @param tc The thread context. 139 */ 140 template <class TC> 141 void zeroRegisters(TC *tc); 142 | 65#include "cpu/thread_context.hh" 66#include "sim/host.hh" 67 68class ThreadContext; 69 70namespace __hash_namespace { 71 template<> 72 struct hash<X86ISA::ExtMachInst> { --- 63 unchanged lines hidden (view full) --- 136 137 /** 138 * Function to insure ISA semantics about 0 registers. 139 * @param tc The thread context. 140 */ 141 template <class TC> 142 void zeroRegisters(TC *tc); 143 |
143 inline void initCPU(ThreadContext *tc, int cpuId) 144 { 145 panic("initCPU not implemented!\n"); 146 } | 144#if FULL_SYSTEM |
147 | 145 |
148 inline void startupCPU(ThreadContext *tc, int cpuId) 149 { 150 tc->activate(0); 151 } | 146 void initCPU(ThreadContext *tc, int cpuId); 147 148#endif 149 150 void startupCPU(ThreadContext *tc, int cpuId); |
152}; 153 154#endif // __ARCH_X86_UTILITY_HH__ | 151}; 152 153#endif // __ARCH_X86_UTILITY_HH__ |