interrupts.hh (4120:3e09b5d32c45) | interrupts.hh (5086:e7913ffb379d) |
---|---|
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 * --- 44 unchanged lines hidden (view full) --- 53 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 54 * 55 * Authors: Gabe Black 56 */ 57 58#ifndef __ARCH_X86_INTERRUPTS_HH__ 59#define __ARCH_X86_INTERRUPTS_HH__ 60 | 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 * --- 44 unchanged lines hidden (view full) --- 53 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 54 * 55 * Authors: Gabe Black 56 */ 57 58#ifndef __ARCH_X86_INTERRUPTS_HH__ 59#define __ARCH_X86_INTERRUPTS_HH__ 60 |
61#error X86 is not yet supported! | 61#include "arch/x86/faults.hh" 62#include "cpu/thread_context.hh" |
62 63namespace X86ISA 64{ | 63 64namespace X86ISA 65{ |
66 67class Interrupts 68{ 69 public: 70 Interrupts() 71 { 72 clear_all(); 73 } 74 75 int InterruptLevel(uint64_t softint) 76 { 77 panic("Interrupts don't work on x86!\n"); 78 return 0; 79 } 80 81 void post(int int_num, int index) 82 { 83 panic("Interrupts don't work on x86!\n"); 84 } 85 86 void clear(int int_num, int index) 87 { 88 panic("Interrupts don't work on x86!\n"); 89 } 90 91 void clear_all() 92 { 93 panic("Interrupts don't work on x86!\n"); 94 } 95 96 bool check_interrupts(ThreadContext * tc) const 97 { 98 panic("Interrupts don't work on x86!\n"); 99 return false; 100 } 101 102 Fault getInterrupt(ThreadContext * tc) 103 { 104 panic("Interrupts don't work on x86!\n"); 105 return NoFault; 106 } 107 108 void updateIntrInfo(ThreadContext * tc) 109 { 110 panic("Interrupts don't work on x86!\n"); 111 } 112 113 uint64_t get_vec(int int_num) 114 { 115 panic("Interrupts don't work on x86!\n"); 116 return 0; 117 } 118 119 void serialize(std::ostream & os) 120 { 121 panic("Interrupts don't work on x86!\n"); 122 } 123 124 void unserialize(Checkpoint * cp, const std::string & section) 125 { 126 panic("Interrupts don't work on x86!\n"); 127 } |
|
65}; 66 | 128}; 129 |
130}; 131 |
|
67#endif // __ARCH_X86_INTERRUPTS_HH__ | 132#endif // __ARCH_X86_INTERRUPTS_HH__ |