gem5 v24.0.0.0
Loading...
Searching...
No Matches
apic.hh
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 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;
9 * redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution;
12 * neither the name of the copyright holders nor the names of its
13 * contributors may be used to endorse or promote products derived from
14 * this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#ifndef __ARCH_X86_APICREGS_HH__
30#define __ARCH_X86_APICREGS_HH__
31
32#include "base/bitunion.hh"
33
34namespace gem5
35{
36
37namespace X86ISA
38{
74
75 static inline ApicRegIndex
80
81 static inline ApicRegIndex
86
87 static inline ApicRegIndex
92
93 BitUnion32(InterruptCommandRegLow)
94 Bitfield<7, 0> vector;
95 Bitfield<10, 8> deliveryMode;
96 Bitfield<11> destMode;
97 Bitfield<12> deliveryStatus;
98 Bitfield<14> level;
99 Bitfield<15> trigger;
100 Bitfield<19, 18> destShorthand;
101 EndBitUnion(InterruptCommandRegLow)
102
103 BitUnion32(InterruptCommandRegHigh)
104 Bitfield<31, 24> destination;
105 EndBitUnion(InterruptCommandRegHigh)
106
107} // namespace X86ISA
108} // namespace gem5
109
110#endif
#define BitUnion32(name)
Definition bitunion.hh:495
#define EndBitUnion(name)
This closes off the class and union started by the above macro.
Definition bitunion.hh:428
static ApicRegIndex APIC_TRIGGER_MODE(int index)
Definition apic.hh:82
Bitfield< 19 > destMode
Definition intmessage.hh:50
Bitfield< 20 > level
Definition intmessage.hh:51
Bitfield< 18, 16 > deliveryMode
Definition intmessage.hh:49
Bitfield< 19, 18 > destShorthand
Definition apic.hh:100
@ APIC_TRIGGER_MODE_BASE
Definition apic.hh:53
@ APIC_INTERNAL_STATE
Definition apic.hh:70
@ APIC_LVT_LINT0
Definition apic.hh:63
@ APIC_TASK_PRIORITY
Definition apic.hh:43
@ APIC_LOGICAL_DESTINATION
Definition apic.hh:47
@ APIC_LVT_LINT1
Definition apic.hh:64
@ APIC_CURRENT_COUNT
Definition apic.hh:67
@ APIC_INTERRUPT_COMMAND_HIGH
Definition apic.hh:59
@ APIC_INITIAL_COUNT
Definition apic.hh:66
@ APIC_DESTINATION_FORMAT
Definition apic.hh:48
@ APIC_VERSION
Definition apic.hh:42
@ APIC_INTERRUPT_REQUEST_BASE
Definition apic.hh:55
@ APIC_INTERRUPT_COMMAND_LOW
Definition apic.hh:58
@ APIC_LVT_THERMAL_SENSOR
Definition apic.hh:61
@ APIC_PROCESSOR_PRIORITY
Definition apic.hh:45
@ APIC_ARBITRATION_PRIORITY
Definition apic.hh:44
@ NUM_APIC_REGS
Definition apic.hh:72
@ APIC_SPURIOUS_INTERRUPT_VECTOR
Definition apic.hh:49
@ APIC_DIVIDE_CONFIGURATION
Definition apic.hh:68
@ APIC_ERROR_STATUS
Definition apic.hh:57
@ APIC_LVT_TIMER
Definition apic.hh:60
@ APIC_IN_SERVICE_BASE
Definition apic.hh:51
@ APIC_LVT_PERFORMANCE_MONITORING_COUNTERS
Definition apic.hh:62
@ APIC_LVT_ERROR
Definition apic.hh:65
Bitfield< 15, 8 > vector
Definition intmessage.hh:48
static ApicRegIndex APIC_INTERRUPT_REQUEST(int index)
Definition apic.hh:88
Bitfield< 5, 3 > index
Definition types.hh:98
Bitfield< 21 > trigger
Definition intmessage.hh:52
static ApicRegIndex APIC_IN_SERVICE(int index)
Definition apic.hh:76
Bitfield< 12 > deliveryStatus
Definition apic.hh:97
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Definition binary32.hh:36

Generated on Tue Jun 18 2024 16:24:00 for gem5 by doxygen 1.11.0