Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gem5i
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Clark
gem5i
Commits
4b0c6a14
Commit
4b0c6a14
authored
16 years ago
by
Gabe Black
Browse files
Options
Downloads
Patches
Plain Diff
X86: Only recognize the first startup IPI after INIT or reset.
parent
fc80b2c0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/arch/x86/interrupts.cc
+5
-2
5 additions, 2 deletions
src/arch/x86/interrupts.cc
src/arch/x86/interrupts.hh
+1
-0
1 addition, 0 deletions
src/arch/x86/interrupts.hh
with
6 additions
and
2 deletions
src/arch/x86/interrupts.cc
+
5
−
2
View file @
4b0c6a14
...
@@ -282,7 +282,8 @@ X86ISA::Interrupts::requestInterrupt(uint8_t vector,
...
@@ -282,7 +282,8 @@ X86ISA::Interrupts::requestInterrupt(uint8_t vector,
}
else
if
(
deliveryMode
==
DeliveryMode
::
INIT
&&
!
pendingInit
)
{
}
else
if
(
deliveryMode
==
DeliveryMode
::
INIT
&&
!
pendingInit
)
{
pendingUnmaskableInt
=
pendingInit
=
true
;
pendingUnmaskableInt
=
pendingInit
=
true
;
initVector
=
vector
;
initVector
=
vector
;
}
else
if
(
deliveryMode
==
DeliveryMode
::
SIPI
&&
!
pendingStartup
)
{
}
else
if
(
deliveryMode
==
DeliveryMode
::
SIPI
&&
!
pendingStartup
&&
!
startedUp
)
{
pendingUnmaskableInt
=
pendingStartup
=
true
;
pendingUnmaskableInt
=
pendingStartup
=
true
;
startupVector
=
vector
;
startupVector
=
vector
;
}
}
...
@@ -562,7 +563,7 @@ X86ISA::Interrupts::Interrupts(Params * p) :
...
@@ -562,7 +563,7 @@ X86ISA::Interrupts::Interrupts(Params * p) :
pendingExtInt
(
false
),
extIntVector
(
0
),
pendingExtInt
(
false
),
extIntVector
(
0
),
pendingInit
(
false
),
initVector
(
0
),
pendingInit
(
false
),
initVector
(
0
),
pendingStartup
(
false
),
startupVector
(
0
),
pendingStartup
(
false
),
startupVector
(
0
),
pendingUnmaskableInt
(
false
)
startedUp
(
false
),
pendingUnmaskableInt
(
false
)
{
{
pioSize
=
PageBytes
;
pioSize
=
PageBytes
;
memset
(
regs
,
0
,
sizeof
(
regs
));
memset
(
regs
,
0
,
sizeof
(
regs
));
...
@@ -643,9 +644,11 @@ X86ISA::Interrupts::updateIntrInfo(ThreadContext *tc)
...
@@ -643,9 +644,11 @@ X86ISA::Interrupts::updateIntrInfo(ThreadContext *tc)
}
else
if
(
pendingInit
)
{
}
else
if
(
pendingInit
)
{
DPRINTF
(
LocalApic
,
"Init sent to core.
\n
"
);
DPRINTF
(
LocalApic
,
"Init sent to core.
\n
"
);
pendingInit
=
false
;
pendingInit
=
false
;
startedUp
=
false
;
}
else
if
(
pendingStartup
)
{
}
else
if
(
pendingStartup
)
{
DPRINTF
(
LocalApic
,
"SIPI sent to core.
\n
"
);
DPRINTF
(
LocalApic
,
"SIPI sent to core.
\n
"
);
pendingStartup
=
false
;
pendingStartup
=
false
;
startedUp
=
true
;
}
}
if
(
!
(
pendingSmi
||
pendingNmi
||
pendingInit
||
pendingStartup
))
if
(
!
(
pendingSmi
||
pendingNmi
||
pendingInit
||
pendingStartup
))
pendingUnmaskableInt
=
false
;
pendingUnmaskableInt
=
false
;
...
...
This diff is collapsed.
Click to expand it.
src/arch/x86/interrupts.hh
+
1
−
0
View file @
4b0c6a14
...
@@ -131,6 +131,7 @@ class Interrupts : public BasicPioDevice, IntDev
...
@@ -131,6 +131,7 @@ class Interrupts : public BasicPioDevice, IntDev
uint8_t
initVector
;
uint8_t
initVector
;
bool
pendingStartup
;
bool
pendingStartup
;
uint8_t
startupVector
;
uint8_t
startupVector
;
bool
startedUp
;
// This is a quick check whether any of the above (except ExtInt) are set.
// This is a quick check whether any of the above (except ExtInt) are set.
bool
pendingUnmaskableInt
;
bool
pendingUnmaskableInt
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment